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

:root {
  --bg: #fafbfd;
  --text: #0c1222;
  --muted: #5c6578;
  --border: rgba(12, 18, 34, 0.1);
  --blue: #4f46e5;
  --blue-2: #4338ca;
  --blue-soft: rgba(79, 70, 229, 0.1);
  --accent: #7c3aed;
  --gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 55%, #a855f7 100%);
  --card: #ffffff;
  --shadow: 0 16px 40px rgba(12, 18, 34, 0.08);
  --shadow-sm: 0 4px 20px rgba(12, 18, 34, 0.05);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
}

/* Menu portal (body.mop) brings its own background/colors in orders.css — do not flatten it to the marketing site theme. */
body:not(.mop) {
  font-family: "Plus Jakarta Sans", "Inter", ui-sans-serif, system-ui, -apple-system, Segoe UI,
    Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: var(--bg);
  color: var(--text);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  padding: 10px 14px;
  background: var(--blue);
  color: #fff;
  border-radius: 10px;
  text-decoration: none;
}
.skip-link:focus {
  left: 12px;
  z-index: 10;
}

/* Visually hidden (accessible text); Tailwind sr-only may be absent from dist build */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(12, 18, 32, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 240px;
}

.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

/* --- Public QR scan error (ScanUnavailableResponse); no Tailwind --- */
.scan-unavailable-page {
  margin: 0;
  min-height: 100%;
  background: linear-gradient(165deg, #e8edff 0%, #f4f6fb 42%, #eef1f6 100%);
  color: var(--text);
}

.scan-unavailable {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.25rem, 4vw, 2.5rem);
}

.scan-unavailable__inner {
  width: 100%;
  max-width: 26rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
}

.scan-unavailable__card {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  box-shadow: var(--shadow);
  padding: 2rem 1.75rem 2.25rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.scan-unavailable__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), #5b7cff);
}

.scan-unavailable__brand {
  display: flex;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.scan-unavailable__logo {
  display: block;
  max-height: 2.75rem;
  max-width: min(11rem, 100%);
  width: auto;
  height: auto;
  object-fit: contain;
}

.scan-unavailable__title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text);
}

.scan-unavailable__text {
  margin: 0.85rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--muted);
}

.scan-unavailable__actions {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

@media (min-width: 420px) {
  .scan-unavailable__actions {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }
}

.scan-unavailable__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.6rem 1.25rem;
  border-radius: 0.65rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.scan-unavailable__btn--primary {
  background: var(--blue);
  color: #fff;
  border: 1px solid transparent;
}

.scan-unavailable__btn--primary:hover {
  background: var(--blue-2);
}

.scan-unavailable__btn--ghost {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
}

.scan-unavailable__btn--ghost:hover {
  background: var(--blue-soft);
  border-color: rgba(36, 91, 255, 0.28);
}

.scan-unavailable__btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.scan-unavailable__site {
  margin: 0;
  font-size: 0.75rem;
  color: #8b95a8;
  letter-spacing: 0.02em;
}

.brand-name {
  font-weight: 800;
  letter-spacing: 0.2px;
}

.brand-tag {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 10px;
  transition: background 160ms ease, color 160ms ease;
}
.nav-link:hover {
  background: rgba(36, 91, 255, 0.08);
  color: var(--text);
}

.nav-cta {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 10px 28px rgba(79, 70, 229, 0.28);
}
.nav-cta:hover {
  background: linear-gradient(135deg, #4338ca 0%, #6d28d9 55%, #9333ea 100%);
}

.hero {
  padding: 46px 0 20px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 26px;
}

.hero-title {
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.05;
  margin: 0;
  letter-spacing: -0.6px;
}

.hero-subtitle {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  max-width: 54ch;
}

.hero-actions {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  border-radius: 14px;
  padding: 12px 16px;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid transparent;
  transition: transform 120ms ease, background 160ms ease, border-color 160ms ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 14px 34px rgba(79, 70, 229, 0.24);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #4338ca 0%, #6d28d9 55%, #9333ea 100%);
}

.btn-ghost {
  background: #fff;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover {
  border-color: rgba(36, 91, 255, 0.35);
  background: rgba(36, 91, 255, 0.06);
}

.btn-block {
  width: 100%;
}

.trust-row {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.trust-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(36, 91, 255, 0.18);
  box-shadow: inset 0 0 0 4px rgba(36, 91, 255, 0.08);
}

.hero-art {
  display: flex;
  justify-content: flex-end;
}

.phone-mock {
  width: min(430px, 100%);
  height: auto;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.section {
  padding: 44px 0;
}

.section.alt {
  background: linear-gradient(to bottom, #ffffff 0%, rgba(36, 91, 255, 0.04) 100%);
  border-top: 1px solid rgba(12, 18, 32, 0.04);
  border-bottom: 1px solid rgba(12, 18, 32, 0.04);
}

.section-head {
  margin-bottom: 22px;
}

.section-title {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.3px;
}

.section-subtitle {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
  max-width: 70ch;
}

/* Home: template preview hub CTA */
.landing-template-story__head {
  text-align: center;
}

.landing-template-story__head .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

.landing-template-story__cta {
  margin: 1.75rem 0 0;
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
}

.landing-template-story .tp-hub-card__body h3.landing-template-story__card-title {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.pricing-region-note {
  max-width: 42rem;
  margin: 0 auto 1.25rem;
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.6;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  align-items: start;
}

.card {
  background: var(--card);
  border: 1px solid rgba(12, 18, 32, 0.08);
  border-radius: 18px;
  padding: 18px;
}

.card.soft {
  background: #fff;
  box-shadow: 0 14px 40px rgba(12, 18, 32, 0.05);
}

.card-title {
  margin: 0;
  font-size: 16px;
}

.card-text {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}

.tool-card {
  background: #fff;
  border: 1px solid rgba(12, 18, 32, 0.08);
  border-radius: 20px;
  padding: 18px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(12, 18, 32, 0.04);
}
.tool-card::before {
  content: "";
  position: absolute;
  inset: -60px -40px auto auto;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: rgba(36, 91, 255, 0.12);
}

.tool-icon {
  font-weight: 900;
  color: var(--blue);
  letter-spacing: 0.4px;
}

.tool-title {
  margin: 12px 0 0;
  font-size: 16px;
}
.tool-text {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}
.tool-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--blue);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}
.tool-link:hover {
  text-decoration: underline;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid rgba(12, 18, 32, 0.08);
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 12px 30px rgba(12, 18, 32, 0.04);
}
.step-no {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: var(--blue-soft);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}
.step-title {
  margin: 0;
  font-size: 16px;
}
.step-text {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}

/* Home: How it works — hub layout with centered brand circle */
.landing-how {
  scroll-margin-top: 92px;
}

.landing-how__head .landing-how__intro {
  max-width: 62ch;
}

.landing-how__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 1.25rem 1.25rem;
  align-items: stretch;
  max-width: 1040px;
  margin: 1.5rem auto 0;
}

.landing-how__card {
  background: #fff;
  border: 1px solid rgba(12, 18, 32, 0.08);
  border-radius: 20px;
  padding: 1.25rem 1.35rem;
  box-shadow: 0 12px 32px rgba(12, 18, 32, 0.06);
}

.landing-how__card--1 {
  grid-column: 1;
  grid-row: 1;
}

.landing-how__center {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  justify-self: center;
}

.landing-how__circle {
  width: min(200px, 42vw);
  height: min(200px, 42vw);
  max-width: 220px;
  max-height: 220px;
  border-radius: 50%;
  background: linear-gradient(160deg, #ffffff 0%, rgba(36, 91, 255, 0.1) 100%);
  border: 3px solid rgba(36, 91, 255, 0.18);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.75) inset,
    0 20px 48px rgba(12, 18, 32, 0.09);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12%;
  box-sizing: border-box;
}

.landing-how__circle-img {
  width: 78%;
  height: 78%;
  object-fit: contain;
}

.landing-how__card--2 {
  grid-column: 3;
  grid-row: 1;
}

.landing-how__card--3 {
  grid-column: 1 / -1;
  grid-row: 2;
  max-width: 680px;
  margin: 0 auto;
  width: 100%;
}

.landing-how__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.5rem;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 900;
  font-size: 0.9rem;
  margin-bottom: 0.65rem;
}

.landing-how__title {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.landing-how__text {
  margin: 0.55rem 0 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.9375rem;
}

@media (max-width: 900px) {
  .landing-how__grid {
    grid-template-columns: 1fr;
    max-width: 26rem;
  }

  .landing-how__card--1,
  .landing-how__card--2,
  .landing-how__card--3,
  .landing-how__center {
    grid-column: 1;
    grid-row: auto;
  }

  .landing-how__center {
    justify-self: center;
    padding: 0.35rem 0;
  }
}

.feature {
  background: #fff;
  border: 1px solid rgba(12, 18, 32, 0.08);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 14px 40px rgba(12, 18, 32, 0.05);
}
.feature.blue {
  background: linear-gradient(180deg, rgba(36, 91, 255, 0.08), #fff 56%);
  border-color: rgba(36, 91, 255, 0.18);
}
.feature-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--blue);
  font-weight: 800;
  font-size: 13px;
}
.feature-title {
  margin: 12px 0 0;
  font-size: 18px;
}
.feature-text {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
}

.snippet {
  margin-top: 16px;
  border-radius: 18px;
  border: 1px solid rgba(12, 18, 32, 0.08);
  padding: 14px;
  background: rgba(36, 91, 255, 0.04);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  font-size: 13px;
  color: #1a2b4f;
}
.snippet-dark {
  background: rgba(11, 18, 32, 0.92);
  border-color: rgba(255, 255, 255, 0.12);
  color: #e7ecff;
}

.snippet-line {
  margin: 4px 0;
}
.snippet-note {
  color: rgba(26, 43, 79, 0.75);
}
.snippet-note-inverse {
  color: rgba(231, 236, 255, 0.72);
}

.steps,
.grid-3,
.grid-4,
.grid-2 {
  scroll-margin-top: 92px;
}

.plan {
  background: #fff;
  border: 1px solid rgba(12, 18, 32, 0.08);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 14px 40px rgba(12, 18, 32, 0.05);
  position: relative;
  overflow: hidden;
}

.plan.featured {
  border-color: rgba(36, 91, 255, 0.28);
  background: linear-gradient(180deg, rgba(36, 91, 255, 0.08), #fff 58%);
}

.plan-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--blue);
  color: #fff;
  font-weight: 900;
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 999px;
}

.plan-top {
  padding-top: 8px;
}
.plan-name {
  font-weight: 900;
  font-size: 16px;
}
.plan-price {
  margin-top: 10px;
  font-weight: 950;
  font-size: 34px;
  letter-spacing: -0.6px;
}
.plan-period {
  margin-top: -6px;
  color: var(--muted);
  font-size: 13px;
}

.plan-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 10px;
}
.plan-list li {
  color: var(--muted);
  line-height: 1.55;
  font-size: 14px;
  display: flex;
  gap: 10px;
}
.plan-list li::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(36, 91, 255, 0.18);
  box-shadow: inset 0 0 0 4px rgba(36, 91, 255, 0.08);
  margin-top: 6px;
  flex: 0 0 auto;
}

.plan-list--plain li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.plan-list--plain li::before {
  display: none;
}
.plan-list--plain.plan-list--crosses li::before {
  display: block;
  content: "✕";
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: #dc2626;
  font-size: 12px;
  font-weight: 900;
  margin-top: 4px;
  flex: 0 0 auto;
}

.grid-plans-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

@media (max-width: 1100px) {
  .grid-plans-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .grid-plans-4 {
    grid-template-columns: 1fr;
  }
}

.plan-emoji-title {
  font-weight: 900;
  font-size: 1.05rem;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.plan-tagline {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.plan-sub {
  margin: 14px 0 8px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #475569;
}

.plan-save-note {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 800;
  color: #059669;
}

.plan-limited-note {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 800;
  color: #b45309;
}

.plan-annual-equiv {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

/* Pricing (#pricing): smaller, readable type (Inter) — cards stay scannable */
#pricing {
  font-family: "Inter", "Roboto", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    sans-serif;
  font-feature-settings: "kern" 1, "liga" 1;
}

#pricing .section-title {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

#pricing .section-subtitle {
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-top: 0.5rem;
}

#pricing .pricing-region-note {
  font-size: 0.8125rem;
  line-height: 1.55;
  max-width: 48rem;
}

#pricing .plan {
  padding: 16px;
  border-radius: 18px;
}

#pricing .plan-badge {
  font-size: 0.625rem;
  font-weight: 700;
  padding: 5px 9px;
  top: 12px;
  right: 12px;
}

#pricing .plan-emoji-title {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 6px;
}

#pricing .plan-name {
  font-size: 0.875rem;
  font-weight: 600;
}

#pricing .plan-price {
  margin-top: 8px;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

#pricing .plan-period {
  margin-top: -4px;
  font-size: 0.75rem;
}

#pricing .plan-tagline {
  font-size: 0.8125rem;
  line-height: 1.5;
  margin-bottom: 10px;
}

#pricing .plan-sub {
  margin: 12px 0 6px;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

#pricing .plan-list {
  gap: 8px;
  margin-top: 12px;
}

#pricing .plan-list li {
  font-size: 0.8125rem;
  line-height: 1.45;
}

#pricing .plan-save-note,
#pricing .plan-limited-note {
  font-size: 0.75rem;
  font-weight: 600;
}

#pricing .plan-annual-equiv {
  font-size: 0.75rem;
}

#pricing .plan .btn {
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.55rem 0.875rem;
}

/* Plans page hero: match readable scale */
.plans-main .plans-hero-text {
  font-family: "Inter", "Roboto", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    sans-serif;
}

.plans-main .plans-hero-title {
  font-size: 1.625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.plans-main .plans-hero-subtitle {
  font-size: 0.9375rem;
  line-height: 1.65;
}

@media (min-width: 640px) {
  .plans-main .plans-hero-title {
    font-size: 1.875rem;
  }
}

/* Landing: QR tools — split-card slider (text left, image right; reference layout) */
.landing-tools-showcase__intro {
  max-width: 62ch;
}

.landing-qr-slider--split-cards {
  max-width: 960px;
  margin: 0 auto;
}

.landing-qr-slider__viewport {
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(12, 18, 32, 0.08);
  background: #0b1220;
  box-shadow: 0 18px 50px rgba(12, 18, 32, 0.12);
}

.landing-qr-slider__viewport--split {
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
}

.landing-qr-slider__track {
  display: flex;
  transition: transform 0.38s ease;
  will-change: transform;
}

.landing-qr-slider__slide {
  margin: 0;
  position: relative;
  flex-shrink: 0;
}

/* Split card: 50% copy / 50% photo */
.qr-tool-split-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 280px;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(12, 18, 32, 0.08);
  box-shadow: 0 16px 44px rgba(12, 18, 32, 0.1);
}

.qr-tool-split-card__text {
  padding: clamp(22px, 4vw, 36px) clamp(22px, 4vw, 36px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.qr-tool-split-card__title {
  margin: 0 0 1rem;
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #0b1220;
  line-height: 1.2;
}

.qr-tool-split-card__list {
  margin: 0;
  padding: 0 0 0 1.25rem;
  color: #64748b;
  font-size: 0.9375rem;
  line-height: 1.65;
}

.qr-tool-split-card__list li {
  margin: 0.35rem 0;
}

.qr-tool-split-card__media {
  min-height: 260px;
  min-width: 0;
  background: #e2e8f0;
}

.qr-tool-split-card__img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

@media (max-width: 720px) {
  .qr-tool-split-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .qr-tool-split-card__media {
    order: -1;
    min-height: 220px;
    max-height: 280px;
  }

  .qr-tool-split-card__img {
    min-height: 220px;
    max-height: 280px;
  }
}

.landing-qr-slider__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
}

.landing-qr-slider__btn {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(12, 18, 32, 0.12);
  background: #fff;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  color: #0f172a;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.landing-qr-slider__btn:hover {
  background: rgba(36, 91, 255, 0.08);
  border-color: rgba(36, 91, 255, 0.35);
}

.landing-qr-slider__dots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  max-width: min(100%, 420px);
}

.landing-qr-slider__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(12, 18, 32, 0.18);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.landing-qr-slider__dot[aria-current="true"] {
  background: var(--blue);
  transform: scale(1.15);
}

/* QR tools grid */
.qr-tools-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 900px) {
  .qr-tools-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .qr-tools-grid {
    grid-template-columns: 1fr;
  }
}

.qr-tool-card {
  background: #fff;
  border: 1px solid rgba(12, 18, 32, 0.08);
  border-radius: 20px;
  padding: 18px 18px 16px;
  box-shadow: 0 12px 34px rgba(12, 18, 32, 0.05);
}

.qr-tool-card__head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.qr-tool-card__icon {
  font-size: 1.35rem;
  line-height: 1;
}

.qr-tool-card__title {
  margin: 0;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.qr-tool-card__list {
  margin: 0;
  padding: 0 0 0 1.1rem;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.qr-tool-card__list li {
  margin: 6px 0;
}

.site-footer {
  padding: 26px 0 36px;
  border-top: 1px solid rgba(12, 18, 32, 0.06);
  margin-top: 16px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-brand {
  font-weight: 900;
}
.footer-small {
  color: var(--muted);
  font-size: 13px;
  margin-top: 6px;
}
.footer-right {
  display: flex;
  gap: 14px;
}
.footer-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 10px;
}
.footer-link:hover {
  background: rgba(36, 91, 255, 0.06);
  color: var(--text);
}

@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .hero-art {
    justify-content: flex-start;
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Auth / Dashboard Pages */
.auth-main {
  padding: 34px 0 44px;
}

.auth-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 22px;
  align-items: start;
}

.auth-card {
  background: #fff;
  border: 1px solid rgba(12, 18, 32, 0.08);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 14px 40px rgba(12, 18, 32, 0.05);
}

.auth-title {
  margin: 4px 0 0;
  font-size: 30px;
  letter-spacing: -0.4px;
}

.auth-subtitle {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.auth-form {
  margin-top: 16px;
}

.field {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.field-label {
  font-weight: 800;
  font-size: 14px;
}

.field-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(12, 18, 32, 0.14);
  background: #fff;
  font-size: 14px;
  outline: none;
}

.field-input:focus {
  border-color: rgba(36, 91, 255, 0.45);
  box-shadow: 0 0 0 4px rgba(36, 91, 255, 0.14);
}

.auth-row {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.check input {
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
}

.auth-link {
  color: var(--blue);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}
.auth-link:hover {
  text-decoration: underline;
}

.muted {
  color: var(--muted);
}

.auth-bottom {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(12, 18, 32, 0.08);
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.auth-image-wrap {
  display: flex;
  justify-content: flex-end;
}

.page-hero-img {
  width: 100%;
  max-width: 520px;
  height: auto;
  border-radius: 22px;
  border: 1px solid rgba(12, 18, 32, 0.08);
  box-shadow: 0 18px 50px rgba(12, 18, 32, 0.08);
}

.plans-main {
  padding: 22px 0 44px;
}

.plans-hero {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(12, 18, 32, 0.08);
  box-shadow: 0 14px 40px rgba(12, 18, 32, 0.05);
}

.plans-hero-img {
  width: 100%;
  height: auto;
  display: block;
}

.plans-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11, 18, 32, 0.7) 0%, rgba(11, 18, 32, 0.05) 60%);
  display: flex;
  align-items: center;
}

.plans-hero-text {
  padding: 22px;
  color: #fff;
  max-width: 520px;
}

.plans-hero-title {
  margin: 0;
  font-size: 34px;
  letter-spacing: -0.5px;
}

.plans-hero-subtitle {
  margin: 12px 0 0;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
  font-size: 16px;
}

.dashboard-main {
  padding: 30px 0 44px;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 18px;
  align-items: start;
}

.dash-sidebar {
  background: #fff;
  border: 1px solid rgba(12, 18, 32, 0.08);
  border-radius: 22px;
  padding: 16px;
  box-shadow: 0 14px 40px rgba(12, 18, 32, 0.05);
  position: sticky;
  top: 96px;
}

.dash-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dash-avatar {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  background: rgba(36, 91, 255, 0.12);
  box-shadow: inset 0 0 0 4px rgba(36, 91, 255, 0.06);
}

.dash-user-name {
  font-weight: 900;
}

.dash-user-email {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.dash-nav {
  margin-top: 18px;
  display: grid;
  gap: 8px;
}

.dash-nav-link {
  text-decoration: none;
  color: var(--muted);
  font-weight: 800;
  font-size: 14px;
  padding: 10px 12px;
  border-radius: 14px;
  transition: background 160ms ease, color 160ms ease;
}

.dash-nav-link:hover {
  background: rgba(36, 91, 255, 0.06);
  color: var(--text);
}

.dash-nav-link-active {
  background: rgba(36, 91, 255, 0.10);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(36, 91, 255, 0.2);
}

.dash-sidebar-bottom {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(12, 18, 32, 0.08);
}

.dash-content {
  min-height: 520px;
}

.dash-top {
  margin-bottom: 16px;
}

.dash-title {
  margin: 0;
  font-size: 30px;
  letter-spacing: -0.4px;
}

.dash-subtitle {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.dash-mock-wrap {
  background: #fff;
  border: 1px solid rgba(12, 18, 32, 0.08);
  border-radius: 22px;
  padding: 12px;
  box-shadow: 0 14px 40px rgba(12, 18, 32, 0.05);
}

.dashboard-mock {
  width: 100%;
  height: auto;
  border-radius: 18px;
  display: block;
}

@media (max-width: 980px) {
  .auth-layout {
    grid-template-columns: 1fr;
  }
  .auth-image-wrap {
    justify-content: flex-start;
  }
  .page-hero-img {
    max-width: 100%;
  }

  .dashboard-layout {
    grid-template-columns: 1fr;
  }
  .dash-sidebar {
    position: relative;
    top: 0;
  }
}

/* Auth (login/register) - centered card + slide animation */
.auth-screen {
  min-height: 100vh;
  background:
    radial-gradient(1000px 520px at 90% 0%, rgba(59, 115, 246, 0.14), transparent 52%),
    radial-gradient(720px 420px at 0% 100%, rgba(99, 102, 241, 0.1), transparent 50%),
    linear-gradient(180deg, #eef2ff 0%, #f3f6fb 48%, #f1f5f9 100%);
}

/* Login footer — was Tailwind; standalone for no-build auth */
.auth-legal {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.75rem;
  line-height: 1.5;
  color: #94a3b8;
}
.auth-legal a {
  color: #64748b;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid rgba(100, 116, 139, 0.25);
  transition: color 0.15s ease, border-color 0.15s ease;
}
.auth-legal a:hover {
  color: #0f172a;
  border-bottom-color: #64748b;
}
.auth-legal__sep {
  display: inline-block;
  margin: 0 0.45rem;
  opacity: 0.5;
}

.auth-top-links {
  position: fixed;
  top: 18px;
  right: 22px;
  display: flex;
  gap: 18px;
  z-index: 20;
}

.auth-top-link {
  color: #9aa7bd;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}
.auth-top-link.is-active {
  color: var(--text);
}

.auth-main-screen {
  padding: 68px 0 56px;
}

.auth-center {
  width: min(460px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.auth-logo {
  width: 56px;
  height: auto;
  margin: 6px 0 14px;
  border-radius: 0;
  box-shadow: none;
  object-fit: contain;
}

.auth-slider-viewport {
  width: 100%;
  overflow: hidden;
  border-radius: 14px;
}

.auth-slider {
  display: flex;
  width: 200%;
  transition: transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
  transform: translateX(0%);
}
.auth-slider.is-register {
  transform: translateX(-50%);
}

.auth-panel {
  width: 50%;
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.06), 0 22px 50px -12px rgba(15, 23, 42, 0.1);
  padding: 22px 22px 18px;
}

.auth-h1 {
  margin: 6px 0 6px;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.2px;
}

.auth-lead {
  margin: 0 0 14px;
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.5;
}

.auth-notice {
  background: rgba(36, 91, 255, 0.08);
  border: 1px solid rgba(36, 91, 255, 0.18);
  color: var(--text);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  margin-bottom: 12px;
}

.auth-form {
  margin: 0;
}

.auth-field {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #e5e7f0;
  border-radius: 8px;
  background: #fff;
  height: 40px;
  padding: 0 12px;
  margin-top: 12px;
}

.auth-field-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-input {
  width: 100%;
  border: 0;
  outline: none;
  font-size: 14px;
  color: var(--text);
  background: transparent;
}

.auth-input::placeholder {
  color: #aab6cc;
}

.auth-btn {
  width: 100%;
  margin-top: 16px;
  height: 42px;
  border-radius: 10px;
  border: 0;
  background: #3b73f6;
  color: #fff;
  font-weight: 900;
  letter-spacing: -0.1px;
  box-shadow: 0 12px 30px rgba(59, 115, 246, 0.22);
  cursor: pointer;
}
.auth-btn:hover {
  background: #2f63e8;
}

.auth-btn-primary {
  background: #3b73f6;
}

.auth-aux {
  margin-top: 10px;
  color: #97a6c0;
  font-size: 12px;
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.auth-screen .auth-link {
  color: #97a6c0;
  text-decoration: none;
  font-weight: 700;
}
.auth-screen .auth-link:hover {
  text-decoration: underline;
}

.auth-divider {
  margin-top: 18px;
  margin-bottom: 12px;
  position: relative;
  text-align: center;
  font-weight: 900;
  font-size: 12px;
  color: #9aa7bd;
}
.auth-divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: #e8eaf1;
}
.auth-divider span {
  position: relative;
  z-index: 1;
  background: #fff;
  padding: 0 14px;
}

.auth-social-row {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.social-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid #e5e7f0;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.auth-forgot {
  margin-top: 10px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  color: #94a3b8;
  font-size: 12px;
  flex-wrap: wrap;
}
.social-btn-google {
  border-color: rgba(36, 91, 255, 0.25);
  box-shadow: 0 12px 28px rgba(36, 91, 255, 0.15);
}

.auth-bottom {
  margin-top: 16px;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 13px;
}

.auth-muted {
  color: #9aa7bd;
  font-weight: 700;
}

.auth-link-switch {
  color: #3b73f6;
  text-decoration: none;
  font-weight: 900;
}
.auth-link-switch:hover {
  text-decoration: underline;
}

/* Plans hero illustration positioning (no pages/*.jpg) */
.plans-hero-overlay {
  z-index: 2;
}
.plans-hero-illustration {
  position: absolute;
  right: -90px;
  top: -40px;
  width: 520px;
  height: auto;
  opacity: 0.18;
  filter: saturate(1.15);
  z-index: 1;
  pointer-events: none;
}

@media (max-width: 520px) {
  .auth-main-screen {
    padding-top: 60px;
  }
  .auth-panel {
    padding: 18px 16px 14px;
  }
  .auth-logo {
    width: 52px;
  }
  .auth-top-links {
    gap: 14px;
  }
}

/* OTP verification (PayMongo-style layout) */
.otp-verify-screen {
  margin: 0;
  min-height: 100vh;
  background: #fff;
  color: #0f172a;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.otp-verify-main {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px 48px;
}

.otp-verify-card {
  width: 100%;
  max-width: 420px;
  text-align: center;
}

.otp-verify-title {
  margin: 0 0 28px;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.otp-verify-illustration {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.otp-verify-envelope {
  display: block;
}

.otp-verify-badge {
  position: absolute;
  top: 4px;
  right: -6px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #7c3aed;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 28px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.35);
}

.otp-verify-lead {
  margin: 0 0 28px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #64748b;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

.otp-verify-notice {
  margin: 0 0 20px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.875rem;
  line-height: 1.45;
  text-align: left;
}

.otp-verify-notice--error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

.otp-verify-notice--success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
}

.otp-verify-form {
  margin-bottom: 8px;
}

.otp-verify-digits {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 18px;
}

.otp-verify-digit {
  width: 48px;
  height: 52px;
  padding: 0;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
  font-size: 1.35rem;
  font-weight: 600;
  text-align: center;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.otp-verify-digit:focus {
  border-color: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
}

.otp-verify-remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 0.875rem;
  color: #64748b;
  cursor: pointer;
}

.otp-verify-remember input {
  width: 16px;
  height: 16px;
  accent-color: #16a34a;
}

.otp-verify-resend-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 20px 0 18px;
  font-size: 0.9rem;
}

.otp-verify-resend-muted {
  color: #94a3b8;
}

.otp-verify-resend-form {
  display: inline;
  margin: 0;
  padding: 0;
}

.otp-verify-resend-btn {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
}

.otp-verify-resend-btn:disabled {
  color: #64748b;
  cursor: not-allowed;
}

.otp-verify-resend-btn:not(:disabled):hover {
  color: #16a34a;
}

.otp-verify-logout {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 36px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #64748b;
  text-decoration: none;
}

.otp-verify-logout:hover {
  color: #0f172a;
}

.otp-verify-footer {
  padding-top: 28px;
  border-top: 1px solid #e2e8f0;
}

.otp-verify-footer-title {
  margin: 0 0 6px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #0f172a;
}

.otp-verify-footer-text {
  margin: 0;
  font-size: 0.9rem;
  color: #64748b;
}

.otp-verify-footer-text a {
  color: #16a34a;
  font-weight: 600;
  text-decoration: none;
}

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

@media (max-width: 400px) {
  .otp-verify-digit {
    width: 42px;
    height: 48px;
    font-size: 1.2rem;
  }

  .otp-verify-digits {
    gap: 8px;
  }
}

/* User portal (dotqr/user): Roboto typography + modern shell */
.dash-portal {
  margin: 0;
  font-family: "Roboto", ui-sans-serif, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  color: #e2e8f0;
  background:
    radial-gradient(900px 480px at 88% -6%, rgba(99, 102, 241, 0.18), transparent 55%),
    radial-gradient(640px 360px at -6% 32%, rgba(59, 130, 246, 0.12), transparent 50%),
    linear-gradient(165deg, #0b1120 0%, #0f172a 45%, #111827 100%) !important;
}

.dash-portal--light {
  color: var(--text, #0f172a);
  background:
    radial-gradient(1000px 520px at 85% -8%, rgba(99, 102, 241, 0.14), transparent 52%),
    radial-gradient(720px 380px at -8% 35%, rgba(59, 130, 246, 0.1), transparent 48%),
    linear-gradient(165deg, #eef2ff 0%, #f8fafc 42%, #f1f5f9 100%) !important;
}

.dash-shell {
  display: flex;
  min-height: 100vh;
}

.dash-sidenav {
  width: 264px;
  flex-shrink: 0;
  font-family: "Roboto", ui-sans-serif, system-ui, sans-serif;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-right: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow: 4px 0 40px rgba(0, 0, 0, 0.28);
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.dash-sidenav::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.dash-portal--light .dash-sidenav {
  background: rgba(255, 255, 255, 0.82);
  border-right: 1px solid rgba(15, 23, 42, 0.07);
  box-shadow: 4px 0 40px rgba(15, 23, 42, 0.05);
}

/* Desktop: sidebar stays visible while scrolling the QR list */
@media (min-width: 981px) {
  .dash-sidenav {
    position: sticky;
    top: 0;
    align-self: flex-start;
    min-height: 100vh;
    max-height: 100vh;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

.dash-sidenav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px 18px;
  margin: -4px -4px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.dash-portal--light .dash-sidenav-logo {
  border-bottom-color: rgba(15, 23, 42, 0.06);
}

.dash-sidenav-logo-img {
  width: 38px;
  height: 38px;
  border-radius: 0;
  object-fit: contain;
  box-shadow: none;
  background: transparent;
}

/* Sidebar: logo mark only (no “dotqr” text), full image visible */
.dash-sidenav-logo--mark-only {
  justify-content: center;
  align-items: center;
  padding: 12px 8px 20px;
}

.dash-sidenav-brand-link {
  display: block;
  width: 100%;
  text-align: center;
  text-decoration: none;
  line-height: 0;
}

.dash-sidenav-logo--mark-only .dash-sidenav-logo-img {
  width: 100%;
  max-width: 176px;
  height: auto;
  min-height: 40px;
  max-height: 72px;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

/* Dashboard — Create QR (solid button; survives Tailwind load order) */
.dashboard-create-qr-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 1.15rem !important;
  border-radius: 0.75rem !important;
  font-family: "Roboto", ui-sans-serif, system-ui, sans-serif !important;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
  line-height: 1.25 !important;
  border: 1px solid #4338ca !important;
  background: linear-gradient(180deg, #4f46e5 0%, #4338ca 100%) !important;
  color: #ffffff !important;
  text-decoration: none !important;
  box-shadow: 0 4px 16px rgba(67, 56, 202, 0.35);
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.dashboard-create-qr-btn:hover {
  background: linear-gradient(180deg, #6366f1 0%, #4f46e5 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 6px 20px rgba(67, 56, 202, 0.45);
}

.dashboard-create-qr-btn:active {
  transform: translateY(1px);
}

.dashboard-create-qr-btn:focus-visible {
  outline: 2px solid #6366f1;
  outline-offset: 2px;
}

.dashboard-create-qr-btn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1;
  color: inherit !important;
}

.dash-sidenav-logo-text {
  font-family: "Roboto", sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.dash-sidenav-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
}

.dash-sidenav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #94a3b8;
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  line-height: 1.35;
  padding: 11px 14px;
  border-radius: 12px;
  border: 0;
  background: transparent;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease,
    transform 0.15s ease;
}

.dash-sidenav-item:hover {
  background: rgba(99, 102, 241, 0.14);
  color: #f1f5f9;
}

.dash-sidenav-item.is-active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.22), rgba(79, 70, 229, 0.12));
  box-shadow: inset 0 0 0 1px rgba(129, 140, 248, 0.35);
  color: #ffffff;
  font-weight: 600;
}

.dash-portal--light .dash-sidenav-item {
  color: #64748b;
}

.dash-portal--light .dash-sidenav-item:hover {
  background: rgba(79, 70, 229, 0.07);
  color: #0f172a;
}

.dash-portal--light .dash-sidenav-item.is-active {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.12), rgba(99, 102, 241, 0.08));
  box-shadow: inset 0 0 0 1px rgba(79, 70, 229, 0.2);
  color: #1e1b4b;
}

.dash-sidenav-icon {
  width: 20px;
  text-align: center;
  font-size: 16px;
}

.dash-sidenav-bottom {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.dash-portal--light .dash-sidenav-bottom {
  border-top-color: rgba(15, 23, 42, 0.06);
}

.dash-main {
  flex: 1;
  min-width: 0;
  padding: 22px clamp(16px, 3vw, 32px) 48px;
}

/* User — edit QR page */
.qr-edit-link-text {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* User — account.php (indigo / some slate utilities not in dist/tailwind.css) */
body.account-page .account-page-kicker {
  color: #4f46e5;
}

body.account-page .account-summary-head {
  border-bottom: 1px solid #e2e8f0;
  background: linear-gradient(120deg, #eef2ff 0%, #f8fafc 55%, #f1f5f9 100%);
}

body.account-page .account-page-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(180deg, #4f46e5 0%, #4338ca 100%);
  box-shadow: 0 4px 14px rgba(67, 56, 202, 0.35);
}

body.account-page .account-btn-primary {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  width: 100%;
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.25;
  border: 1px solid #4338ca;
  background: linear-gradient(180deg, #4f46e5 0%, #4338ca 100%);
  color: #ffffff !important;
  box-shadow: 0 2px 10px rgba(67, 56, 202, 0.3);
  cursor: pointer;
  transition: filter 0.15s ease, box-shadow 0.15s ease;
}

@media (min-width: 640px) {
  body.account-page .account-btn-primary {
    width: auto;
  }
}

body.account-page .account-btn-primary:hover {
  filter: brightness(1.06);
  box-shadow: 0 4px 14px rgba(67, 56, 202, 0.4);
}

body.account-page .account-btn-primary:focus-visible {
  outline: 2px solid #6366f1;
  outline-offset: 2px;
}

body.account-page .account-btn-dark {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  width: 100%;
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.25;
  border: 1px solid #0f172a;
  background: #0f172a;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

@media (min-width: 640px) {
  body.account-page .account-btn-dark {
    width: auto;
  }
}

body.account-page .account-btn-dark:hover {
  background: #1e293b;
  border-color: #1e293b;
}

body.account-page .account-btn-dark:focus-visible {
  outline: 2px solid #334155;
  outline-offset: 2px;
}

body.account-page .account-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.75rem;
  padding: 0.625rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #334155 !important;
  text-decoration: none !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  transition: background 0.15s ease, border-color 0.15s ease;
}

body.account-page .account-btn-outline:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

body.account-page input.rounded-xl:focus {
  outline: none;
  border-color: #6366f1 !important;
  background-color: #fff !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.22);
}

/* User — category_unavailable.php (404 generator category removed/disabled) */
body.category-unavailable-page .category-unavailable-btn-primary {
  border: 1px solid #4338ca;
  background: linear-gradient(180deg, #4f46e5 0%, #4338ca 100%);
  box-shadow: 0 2px 10px rgba(67, 56, 202, 0.28);
  transition: filter 0.15s ease;
}

body.category-unavailable-page .category-unavailable-btn-primary:hover {
  filter: brightness(1.06);
}

/* User — hunt_entries.php: layout (styles.css only; no Tailwind on this page) */
body.hunt-entries-page {
  color: #0f172a;
}

body.hunt-entries-page .hunt-entries-dash-main {
  max-width: 100vw;
  min-width: 0;
  padding-bottom: 7.5rem;
}

body.hunt-entries-page .hunt-entries-toolbar {
  margin-bottom: 1.25rem;
}

body.hunt-entries-page .hunt-entries-toolbar__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  justify-content: space-between;
  min-width: 0;
}

body.hunt-entries-page .hunt-entries-toolbar__badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(99, 102, 241, 0.4);
  background: #eef2ff;
  color: #3730a3;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
}

body.hunt-entries-page .hunt-entries-card {
  min-width: 0;
  border-radius: 1.35rem;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #fff;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04), 0 12px 40px -12px rgba(15, 23, 42, 0.12);
  overflow: hidden;
}

body.hunt-entries-page .hunt-entries-hero {
  position: relative;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(160deg, #0f172a 0%, #4c1d95 50%, #312e81 100%);
  padding: 1.75rem 1.25rem 2rem;
}

@media (min-width: 640px) {
  body.hunt-entries-page .hunt-entries-hero {
    padding: 2rem 2rem 2.25rem;
  }
}

body.hunt-entries-page .hunt-entries-hero__bloom {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.4;
}
body.hunt-entries-page .hunt-entries-hero__bloom--tr {
  right: -3rem;
  top: -5rem;
  width: 14rem;
  height: 14rem;
  background: rgba(251, 191, 36, 0.2);
}
body.hunt-entries-page .hunt-entries-hero__bloom--bl {
  left: 50%;
  transform: translateX(-50%);
  bottom: -4rem;
  width: 18rem;
  height: 10rem;
  background: rgba(139, 92, 246, 0.25);
}

body.hunt-entries-page .hunt-entries-hero__grid {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 66rem;
}
@media (min-width: 1024px) {
  body.hunt-entries-page .hunt-entries-hero__grid {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }
}
body.hunt-entries-page .hunt-entries-hero__copy {
  min-width: 0;
  flex: 1;
  max-width: 40rem;
}
body.hunt-entries-page .hunt-entries-hero__kicker {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: #fde68a;
  margin: 0;
}
body.hunt-entries-page .hunt-entries-hero__title {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0.35rem 0 0;
  line-height: 1.2;
}
@media (min-width: 640px) {
  body.hunt-entries-page .hunt-entries-hero__title {
    font-size: 1.9rem;
  }
}
body.hunt-entries-page .hunt-entries-hero__lede {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(226, 232, 240, 0.95);
  margin: 0.5rem 0 0;
}
body.hunt-entries-page .hunt-entries-hero__lede strong {
  color: #fff;
  font-weight: 800;
}
body.hunt-entries-page .hunt-entries-hero__slugline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #cbd5e1;
  margin: 1rem 0 0;
}
body.hunt-entries-page .hunt-entries-hero__sluglabel {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fde68a;
  opacity: 0.9;
}
body.hunt-entries-page .hunt-entries-hero__slugcode {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.75rem;
  padding: 0.35rem 0.6rem;
}
body.hunt-entries-page .hunt-entries-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
body.hunt-entries-page .hunt-entries-hero__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  min-width: 0;
  flex-shrink: 0;
  max-width: 20rem;
}
body.hunt-entries-page .hunt-entries-hero__btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 800;
  text-decoration: none;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.06);
  transition: background 0.15s ease, border-color 0.15s ease;
}
body.hunt-entries-page .hunt-entries-hero__btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.12);
}
body.hunt-entries-page .hunt-entries-hero__icon {
  opacity: 0.9;
  flex-shrink: 0;
}
body.hunt-entries-page .hunt-entries-raffle-btn {
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1rem;
  border: none;
  border-radius: 0.75rem;
  background: #fbbf24;
  color: #0f172a;
  font-size: 0.875rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.35);
  transition: background 0.15s ease, transform 0.1s ease;
}
body.hunt-entries-page .hunt-entries-raffle-btn:hover {
  background: #f59e0b;
}
body.hunt-entries-page .hunt-entries-raffle-btn__icon {
  font-size: 1.1rem;
  line-height: 1;
}
body.hunt-entries-page .hunt-entries-raffle-btn__hint {
  font-size: 0.6rem;
  font-weight: 800;
  opacity: 0.8;
  margin-left: 0.15rem;
}
body.hunt-entries-page .hunt-entries-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.12);
  padding: 0.2rem 0.7rem;
  font-size: 0.7rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.92);
}
body.hunt-entries-page .hunt-entries-pill__n {
  color: #fff;
}
body.hunt-entries-page .hunt-entries-pill--emerald {
  border-color: rgba(52, 211, 153, 0.45);
  background: rgba(16, 185, 129, 0.2);
}
body.hunt-entries-page .hunt-entries-pill--violet {
  border-color: rgba(167, 139, 250, 0.4);
  background: rgba(124, 58, 237, 0.25);
}
body.hunt-entries-page .hunt-entries-card__main {
  padding: 1rem 1.25rem 1.5rem;
}
@media (min-width: 640px) {
  body.hunt-entries-page .hunt-entries-card__main {
    padding: 1.5rem 1.75rem 1.75rem;
  }
}
body.hunt-entries-page .hunt-entries-alert {
  margin-top: 1rem;
  border-radius: 0.75rem;
  padding: 0.9rem 1rem;
  font-size: 0.875rem;
  line-height: 1.45;
}
body.hunt-entries-page .hunt-entries-alert--amber {
  border: 1px solid #fbbf24;
  background: #fffbeb;
  color: #78350f;
}
body.hunt-entries-page .hunt-entries-alert__code {
  font-size: 0.8rem;
  background: #fef3c7;
  padding: 0.1rem 0.35rem;
  border-radius: 0.25rem;
}
body.hunt-entries-page .hunt-entries-lists {
  margin-top: 1.5rem;
}
body.hunt-entries-page .hunt-entries-lists__label {
  margin: 0 0 0.75rem;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #94a3b8;
}
body.hunt-entries-page .hunt-data-table,
body.hunt-entries-page .hunt-entries-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.8rem;
}
body.hunt-entries-page .hunt-entries-thead th {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  padding: 0.7rem 0.5rem;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}
body.hunt-entries-page .hunt-th--right {
  text-align: right;
}
body.hunt-entries-page .hunt-th--check {
  width: 2.25rem;
  padding-left: 0.35rem !important;
  padding-right: 0.35rem !important;
  text-align: center;
}
body.hunt-entries-page .hunt-th__muted {
  font-weight: 600;
  text-transform: none;
  color: #94a3b8;
}
body.hunt-entries-page .hunt-td--check {
  width: 2.25rem;
  text-align: center;
  vertical-align: middle;
}
body.hunt-entries-page .hunt-td {
  padding: 0.7rem 0.5rem;
  color: #334155;
  vertical-align: top;
  border-bottom: 1px solid #f1f5f9;
}
body.hunt-entries-page .hunt-td--when {
  white-space: nowrap;
  color: #0f172a;
}
body.hunt-entries-page .hunt-td--compact {
  max-width: 10rem;
  font-weight: 600;
  color: #0f172a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.hunt-entries-page .hunt-td--addr {
  max-width: 12rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.hunt-entries-page .hunt-td--small {
  font-size: 0.7rem;
  color: #475569;
  max-width: 10rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.hunt-entries-page .hunt-td--dev {
  max-width: 14rem;
  font-size: 0.7rem;
  line-height: 1.4;
  color: #64748b;
}
body.hunt-entries-page .hunt-td--right {
  text-align: right;
  white-space: nowrap;
}
body.hunt-entries-page .hunt-td--muted {
  color: #94a3b8;
}
body.hunt-entries-page .hunt-td__mono {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  color: #334155;
}
body.hunt-entries-page .hunt-td__sub {
  font-size: 0.6rem;
  color: #64748b;
  margin-top: 0.2rem;
}
body.hunt-entries-page .hunt-td__sub--muted {
  color: #94a3b8;
}
body.hunt-entries-page .hunt-mobile-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.65rem;
  color: #0f172a;
}
body.hunt-entries-page .hunt-mobile-mask {
  word-break: break-all;
}
body.hunt-entries-page .hunt-copy-phone {
  display: inline-flex;
  width: 1.7rem;
  height: 1.7rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border: 1px solid #e2e8f0;
  border-radius: 0.4rem;
  background: #fff;
  color: #64748b;
  cursor: pointer;
  padding: 0;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
body.hunt-entries-page .hunt-copy-phone:hover {
  border-color: #a5b4fc;
  background: #eef2ff;
  color: #3730a3;
}
body.hunt-entries-page .hunt-bulk-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 0 0 0.65rem;
}
body.hunt-entries-page .hunt-bulk-bar--above-table {
  margin-top: 0.35rem;
}
body.hunt-entries-page .hunt-entry-name-btn {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0;
  margin: 0;
  border: none;
  background: none;
  font: inherit;
  font-weight: 600;
  color: #4338ca;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  text-align: left;
}
body.hunt-entries-page .hunt-entry-name-btn:hover {
  color: #312e81;
}

body.hunt-participant-modal[hidden],
body.hunt-entries-page .hunt-participant-modal[hidden] {
  display: none !important;
}
body.hunt-entries-page .hunt-participant-modal.hunt-participant-modal--open {
  display: flex !important;
  position: fixed;
  z-index: 110;
  inset: 0;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}
body.hunt-entries-page .hunt-participant-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.52);
  backdrop-filter: blur(3px);
}
body.hunt-entries-page .hunt-participant-modal__sheet {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 26rem;
  max-height: min(90vh, 36rem);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  box-shadow:
    0 25px 80px rgba(15, 23, 42, 0.18),
    0 10px 28px rgba(15, 23, 42, 0.08);
}
body.hunt-entries-page .hunt-participant-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1rem 0.65rem;
  border-bottom: 1px solid #f1f5f9;
}
body.hunt-entries-page .hunt-participant-modal__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
}
body.hunt-entries-page .hunt-participant-modal__close {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  background: #fff;
  font-size: 1.35rem;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
}
body.hunt-entries-page .hunt-participant-modal__close:hover {
  border-color: #cbd5e1;
  color: #0f172a;
}
body.hunt-entries-page .hunt-participant-modal__body {
  padding: 0.65rem 1rem 1rem;
  overflow-y: auto;
}
body.hunt-entries-page .hunt-participant-dl {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(5.5rem, 32%) 1fr;
  gap: 0.35rem 0.75rem;
  font-size: 0.78rem;
  line-height: 1.45;
}
body.hunt-entries-page .hunt-participant-dl dt {
  margin: 0;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.62rem;
}
body.hunt-entries-page .hunt-participant-dl dd {
  margin: 0;
  word-break: break-word;
  color: #0f172a;
}
body.hunt-entries-page .hunt-participant-dd--mono {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  color: #334155;
}
body.hunt-entries-page .hunt-participant-pre {
  margin: 0;
  padding: 0.55rem 0.65rem;
  max-height: 8rem;
  overflow: auto;
  border-radius: 0.5rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 0.62rem;
  line-height: 1.35;
  white-space: pre-wrap;
  word-break: break-word;
  color: #334155;
  font-family: ui-monospace, Menlo, Consolas, monospace;
}
body.hunt-entries-page .hunt-rank-cell {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem 0.5rem;
  max-width: 100%;
}
body.hunt-entries-page .hunt-rank-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #a7f3d0;
  background: #ecfdf5;
  color: #064e3b;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.1rem 0.45rem;
}
body.hunt-entries-page .hunt-prize-txt {
  max-width: 8rem;
  font-size: 0.65rem;
  color: #334155;
  text-align: left;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.hunt-entries-page .hunt-table-panel--hidden {
  display: none !important;
}
body.hunt-entries-page .hunt-raffle-pick[hidden] {
  display: none;
}
body.hunt-entries-page .hunt-raffle-pick.hunt-raffle-pick--open {
  display: flex;
  position: fixed;
  z-index: 100;
  inset: 0;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}
body.hunt-entries-page .hunt-raffle-pick__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(3px);
}
body.hunt-entries-page .hunt-raffle-pick__sheet {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 26rem;
  max-height: min(90vh, 40rem);
  overflow-y: auto;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1.4rem 1.35rem 1.5rem;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
}
body.hunt-entries-page .hunt-raffle-pick__title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}
body.hunt-entries-page .hunt-raffle-pick__lede {
  font-size: 0.88rem;
  line-height: 1.5;
  color: #64748b;
  margin: 0.4rem 0 0;
}
body.hunt-entries-page .hunt-raffle-pick__code {
  font-size: 0.75rem;
  background: #f1f5f9;
  border-radius: 0.3rem;
  padding: 0.1rem 0.3rem;
  font-family: ui-monospace, Menlo, Consolas, monospace;
}
body.hunt-entries-page .hunt-raffle-pick__form {
  margin: 1.1rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
body.hunt-entries-page .hunt-raffle-pick__duration {
  border: 2px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 0.75rem 0.85rem;
  background: #f8fafc;
}
body.hunt-entries-page .hunt-raffle-pick__dlabel {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  margin-bottom: 0.45rem;
}
body.hunt-entries-page .hunt-raffle-pick__drow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
body.hunt-entries-page .hunt-raffle-pick__dnum {
  width: 5.5rem;
  min-height: 2.5rem;
  padding: 0.35rem 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid #cbd5e1;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  background: #fff;
}
body.hunt-entries-page .hunt-raffle-pick__dnum:focus {
  outline: 2px solid #7c3aed;
  outline-offset: 1px;
}
body.hunt-entries-page .hunt-raffle-pick__dunitwrap {
  margin: 0;
}
body.hunt-entries-page .hunt-raffle-pick__dunit {
  min-height: 2.5rem;
  padding: 0.35rem 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid #cbd5e1;
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f172a;
  background: #fff;
  cursor: pointer;
}
body.hunt-entries-page .hunt-raffle-pick__option {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  border: 2px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 0.75rem 0.85rem;
  cursor: pointer;
  margin: 0;
  transition: border-color 0.15s ease, background 0.15s ease;
}
body.hunt-entries-page .hunt-raffle-pick__option:has(:checked) {
  border-color: #7c3aed;
  background: #f5f3ff;
}
@supports not selector(:has(a)) {
  body.hunt-entries-page .hunt-raffle-pick__option:focus-within {
    border-color: #a78bfa;
  }
}
body.hunt-entries-page .hunt-raffle-pick__radio {
  margin-top: 0.2rem;
  flex-shrink: 0;
  accent-color: #7c3aed;
}
body.hunt-entries-page .hunt-raffle-pick__optitle {
  display: block;
  font-weight: 800;
  color: #0f172a;
  font-size: 0.9rem;
}
body.hunt-entries-page .hunt-raffle-pick__ocount {
  display: block;
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 0.15rem;
}
body.hunt-entries-page .hunt-raffle-pick__foot {
  font-size: 0.75rem;
  color: #a16207;
  margin: 0.5rem 0 0;
}
body.hunt-entries-page .hunt-raffle-pick__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.1rem;
}
@media (min-width: 480px) {
  body.hunt-entries-page .hunt-raffle-pick__actions {
    flex-direction: row;
    justify-content: flex-end;
  }
}
body.hunt-entries-page .hunt-raffle-pick__cancel,
body.hunt-entries-page .hunt-raffle-pick__go {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #334155;
  padding: 0.5rem 1rem;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
body.hunt-entries-page .hunt-raffle-pick__go {
  border-color: #6d28d9;
  background: #7c3aed;
  color: #fff;
}
body.hunt-entries-page .hunt-raffle-pick__go:hover {
  background: #6d28d9;
}
body.hunt-entries-page .hunt-raffle-pick__cancel:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

/* User — hunt_entries.php: mobile table + hide device column (legacy) */
body.hunt-entries-page .hunt-entries-card {
  min-width: 0;
}

body.hunt-entries-page .hunt-entries-card-shell {
  position: relative;
  overflow: hidden;
}

body.hunt-entries-page .hunt-entries-card-shell::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 45%, #a855f7 100%);
  opacity: 0.92;
  pointer-events: none;
}

body.hunt-entries-page .hunt-tabs-segmented {
  width: 100%;
  max-width: 100%;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

body.hunt-entries-page .hunt-tab-pill {
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  font: inherit;
  color: #475569;
  border-radius: 0.7rem;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease;
}

body.hunt-entries-page .hunt-tab-pill:hover:not(.hunt-tab-pill--active) {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.45);
}

body.hunt-entries-page .hunt-tab-pill--active {
  color: #312e81;
  background: #ffffff;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.06),
    0 4px 14px -4px rgba(79, 70, 229, 0.35);
}

body.hunt-entries-page .hunt-tab-pill-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.65rem;
  padding: 0.35rem 0.85rem;
}

body.hunt-entries-page .hunt-tab-pill-title {
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

body.hunt-entries-page .hunt-tab-pill-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.65rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

body.hunt-entries-page .hunt-tab-pill-count--win {
  background: #dbeafe;
  color: #1e3a8a;
}

body.hunt-entries-page .hunt-tab-pill--active .hunt-tab-pill-count--win {
  background: #c7d2fe;
  color: #312e81;
}

body.hunt-entries-page .hunt-tab-pill-count--wait {
  background: #e2e8f0;
  color: #334155;
}

body.hunt-entries-page .hunt-tab-pill--active .hunt-tab-pill-count--wait {
  background: #cbd5e1;
  color: #0f172a;
}

body.hunt-entries-page .hunt-table-panel {
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

body.hunt-entries-page .hunt-entries-table-wrap--elevated {
  border-radius: 0.85rem;
}

body.hunt-entries-page .hunt-entries-thead {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
}

body.hunt-entries-page .hunt-entries-thead th {
  white-space: nowrap;
}

body.hunt-entries-page .hunt-entries-tbody tr {
  transition: background 0.12s ease;
}

body.hunt-entries-page .hunt-entries-tbody tr:nth-child(even) {
  background: rgba(248, 250, 252, 0.85);
}

body.hunt-entries-page .hunt-table-row:hover {
  background: rgba(238, 242, 255, 0.55) !important;
}

body.hunt-entries-page .hunt-table-row--winner td.hunt-cell-when {
  box-shadow: 3px 0 0 0 #34d399 inset;
}

body.hunt-entries-page .hunt-row-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.85rem;
  padding: 0.2rem 0.65rem;
  border-radius: 0.5rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    background 0.12s ease,
    border-color 0.12s ease,
    color 0.12s ease;
}

@media (min-width: 640px) {
  body.hunt-entries-page .hunt-row-btn {
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
    min-height: 2rem;
  }
}

body.hunt-entries-page .hunt-row-btn--primary {
  border-color: #a5b4fc;
  background: linear-gradient(180deg, #eef2ff 0%, #e0e7ff 100%);
  color: #3730a3;
}

body.hunt-entries-page .hunt-row-btn--primary:hover {
  border-color: #818cf8;
  background: #e0e7ff;
  color: #1e1b4b;
}

body.hunt-entries-page .hunt-row-btn--primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

body.hunt-entries-page .hunt-row-btn:not(.hunt-row-btn--primary):not(.hunt-row-btn--danger) {
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #334155;
}
body.hunt-entries-page .hunt-row-btn:not(.hunt-row-btn--primary):not(.hunt-row-btn--danger):hover {
  border-color: #cbd5e1;
  background: #f1f5f9;
}

body.hunt-entries-page .hunt-row-btn--danger {
  border-color: #fecaca;
  background: #fff;
  color: #b91c1c;
}

body.hunt-entries-page .hunt-row-btn--danger:hover {
  border-color: #f87171;
  background: #fef2f2;
}

body.hunt-entries-page .hunt-row-btn--danger:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

body.hunt-entries-page .hunt-empty-state {
  padding: 2.25rem 1.25rem;
  text-align: center;
}

body.hunt-entries-page .hunt-empty-state--spaced {
  margin-top: 0.5rem;
}

body.hunt-entries-page .hunt-empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 0.75rem;
  border-radius: 1rem;
  background: linear-gradient(145deg, #eef2ff 0%, #e0e7ff 100%);
  color: #4f46e5;
}

body.hunt-entries-page .hunt-empty-icon--wait {
  background: linear-gradient(145deg, #ecfdf5 0%, #d1fae5 100%);
  color: #059669;
}

body.hunt-entries-page .hunt-empty-icon--inbox {
  background: linear-gradient(145deg, #f8fafc 0%, #e2e8f0 100%);
  color: #64748b;
}

body.hunt-entries-page .hunt-empty-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
}

body.hunt-entries-page .hunt-empty-text {
  margin: 0.4rem auto 0;
  max-width: 22rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: #64748b;
}

body.hunt-entries-page .hunt-back-details:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.28);
}

body.hunt-entries-page .hunt-entries-table-wrap {
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  min-width: 0;
  max-width: 100%;
}

body.hunt-entries-page .hunt-entries-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
  min-width: 480px;
}

@media (min-width: 768px) {
  body.hunt-entries-page .hunt-entries-table {
    min-width: 100%;
  }
}

/* Hunt entries — sort / filter (icon + slide panel on small screens) */
body.hunt-entries-page .hunt-filter-wrapper {
  position: relative;
}

body.hunt-entries-page .hunt-filter-open-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0 0.9rem;
  border-radius: 0.75rem;
  border: 1px solid #c7d2fe;
  background: #ffffff;
  color: #4338ca;
  font-family: "Roboto", ui-sans-serif, system-ui, sans-serif;
  font-size: 0.8125rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

body.hunt-entries-page .hunt-filter-open-btn:hover {
  background: #eef2ff;
}

body.hunt-entries-page .hunt-filter-open-icon {
  flex-shrink: 0;
}

body.hunt-entries-page .hunt-sort-label {
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

body.hunt-entries-page .hunt-sort-select {
  width: 100%;
  min-width: 0;
  border-radius: 0.5rem;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  padding: 0.5rem 0.65rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #0f172a;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

body.hunt-entries-page .hunt-sort-select:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

body.hunt-entries-page .hunt-sort-apply-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid #4338ca;
  background: linear-gradient(180deg, #4f46e5 0%, #4338ca 100%);
  color: #ffffff !important;
  font-size: 0.875rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(67, 56, 202, 0.25);
}

body.hunt-entries-page .hunt-sort-apply-btn:hover {
  filter: brightness(1.05);
}

body.hunt-entries-page .hunt-filter-hint {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: #64748b;
}

@media (max-width: 767px) {
  body.hunt-entries-page .hunt-filter-panel {
    position: fixed;
    inset: 0;
    z-index: 60;
    pointer-events: none;
    visibility: hidden;
  }

  body.hunt-entries-page .hunt-filter-panel.is-open {
    pointer-events: auto;
    visibility: visible;
  }

  body.hunt-entries-page .hunt-filter-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    transition: opacity 0.22s ease;
  }

  body.hunt-entries-page .hunt-filter-panel.is-open .hunt-filter-backdrop {
    opacity: 1;
  }

  body.hunt-entries-page .hunt-filter-sheet {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    width: min(20rem, 92vw);
    max-width: 100%;
    background: #ffffff;
    border-left: 1px solid #e2e8f0;
    border-radius: 0.75rem 0 0 0.75rem;
    box-shadow: -8px 0 32px rgba(15, 23, 42, 0.12);
    transform: translateX(100%);
    transition: transform 0.26s cubic-bezier(0.2, 0.8, 0.2, 1);
    min-height: 0;
  }

  body.hunt-entries-page .hunt-filter-panel.is-open .hunt-filter-sheet {
    transform: translateX(0);
  }

  body.hunt-entries-page .hunt-filter-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-shrink: 0;
    padding: 0.65rem 0.75rem 0.65rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
  }

  body.hunt-entries-page .hunt-filter-sheet-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0f172a;
  }

  body.hunt-entries-page .hunt-filter-close-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: none;
    border-radius: 0.5rem;
    background: transparent;
    color: #64748b;
    cursor: pointer;
  }

  body.hunt-entries-page .hunt-filter-close-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
  }

  body.hunt-entries-page .hunt-sort-bar {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow-y: auto;
    padding: 1rem 1rem 0.75rem;
    -webkit-overflow-scrolling: touch;
  }

  body.hunt-entries-page .hunt-sort-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
  }

  body.hunt-entries-page .hunt-sort-actions {
    margin-top: 0.25rem;
  }

  body.hunt-entries-page .hunt-sort-apply-btn {
    width: 100%;
  }

  body.hunt-entries-page .hunt-filter-hint {
    flex-shrink: 0;
    padding: 0.75rem 1rem 1rem;
    border-top: 1px solid #f1f5f9;
    background: #fafafa;
  }

  body.hunt-entries-page .hunt-col-device {
    display: none !important;
  }

  body.hunt-entries-page .hunt-entries-table {
    font-size: 0.6875rem;
    line-height: 1.35;
  }

  body.hunt-entries-page .hunt-entries-table thead th {
    font-size: 0.625rem;
    padding: 0.35rem 0.35rem;
    letter-spacing: 0.03em;
  }

  body.hunt-entries-page .hunt-entries-table tbody td {
    padding: 0.35rem 0.35rem;
  }

  body.hunt-entries-page .hunt-entries-table .hunt-cell-compact {
    max-width: 7rem;
  }

  body.hunt-entries-page .hunt-tab-pill-inner {
    min-height: 2.45rem;
    padding: 0.3rem 0.55rem;
  }

  body.hunt-entries-page .hunt-tab-pill-title {
    font-size: 0.8125rem;
  }
}

@media (min-width: 768px) {
  body.hunt-entries-page .hunt-filter-mobile-bar {
    display: none !important;
  }

  body.hunt-entries-page .hunt-filter-panel {
    position: static;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  body.hunt-entries-page .hunt-filter-backdrop {
    display: none !important;
  }

  body.hunt-entries-page .hunt-filter-sheet {
    position: static;
    transform: none !important;
    width: 100%;
    display: block;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    background: rgba(248, 250, 252, 0.85);
    box-shadow: none;
  }

  body.hunt-entries-page .hunt-filter-sheet-head {
    display: none !important;
  }

  body.hunt-entries-page .hunt-sort-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
  }

  body.hunt-entries-page .hunt-sort-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 11rem;
  }

  body.hunt-entries-page .hunt-sort-select {
    min-width: 11rem;
    width: auto;
  }

  body.hunt-entries-page .hunt-sort-actions {
    display: flex;
    align-items: flex-end;
  }

  body.hunt-entries-page .hunt-filter-hint {
    padding: 0 1rem 0.85rem;
    border-top: none;
    background: transparent;
  }
}

.hunt-raffle-pick {
  -webkit-tap-highlight-color: transparent;
}

.hunt-raffle-pick__sheet {
  max-height: min(92dvh, 40rem);
  overflow-y: auto;
}

.hunt-raffle-pick__option:has(:checked) {
  border-color: #7c3aed;
  background: rgba(245, 243, 255, 0.9);
}

@supports not selector(:has(*)) {
  .hunt-raffle-pick__option:focus-within {
    border-color: #a78bfa;
    background: rgba(245, 243, 255, 0.5);
  }
}

/* User — hunt_raffle.php (no Tailwind) */
body.hunt-raffle-page {
  margin: 0;
  min-height: 100vh;
  background: #020617;
  color: #e2e8f0;
  font-family: "Roboto", ui-sans-serif, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.hunt-raffle-wrap {
  box-sizing: border-box;
  max-width: 64rem;
  margin: 0 auto;
  padding: 1.5rem 0.75rem 2.5rem;
}
@media (min-width: 640px) {
  .hunt-raffle-wrap {
    padding: 2rem 1.25rem 3rem;
  }
}
.hunt-raffle-head {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 640px) {
  .hunt-raffle-head {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }
}
.hunt-raffle-head__kicker {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #fde68a;
  margin: 0;
  opacity: 0.9;
}
.hunt-raffle-head__title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  margin: 0.35rem 0 0;
  letter-spacing: -0.02em;
}
.hunt-raffle-head__meta {
  font-size: 0.9rem;
  color: #94a3b8;
  margin: 0.35rem 0 0;
  line-height: 1.45;
}
.hunt-raffle-head__pool {
  font-weight: 700;
  color: #e2e8f0;
}
.hunt-raffle-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 800;
  padding: 0.65rem 1rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.hunt-raffle-back:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.1);
}
.hunt-raffle-empty {
  text-align: center;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 23, 42, 0.75);
  padding: 2.5rem 1.25rem;
}
.hunt-raffle-empty__title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
}
.hunt-raffle-empty__text {
  font-size: 0.9rem;
  color: #94a3b8;
  margin: 0.5rem 0 0;
  line-height: 1.5;
}
.hunt-raffle-empty__btn {
  display: inline-flex;
  margin-top: 1.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: #fbbf24;
  color: #0f172a;
  font-size: 0.875rem;
  font-weight: 800;
  text-decoration: none;
  padding: 0.6rem 1.25rem;
}
.hunt-raffle-hint {
  font-size: 0.9rem;
  color: #94a3b8;
  margin: 0 0 0.9rem;
  line-height: 1.55;
}
.hunt-raffle-hint strong {
  color: #e2e8f0;
}
.hunt-raffle-wheel-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  padding: 1rem 0 1.25rem;
  max-width: min(100%, 22rem);
}
.hunt-raffle-wheel-pointer {
  position: absolute;
  top: 0.1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: #fbbf24;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.45));
  line-height: 0;
  pointer-events: none;
}
.hunt-raffle-wheel-pointer__svg {
  display: block;
}
.hunt-raffle-wheel {
  position: relative;
  width: min(85vw, 20rem);
  height: min(85vw, 20rem);
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45), inset 0 0 0 2px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
  transform-origin: center center;
  will-change: transform;
  overflow: hidden;
  isolation: isolate;
}
.hunt-raffle-wheel-bg {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}
.hunt-raffle-wheel-labels {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}
.hunt-raffle-wheel-label {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  min-width: 0;
  max-width: 0;
  height: 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  transform: rotate(var(--a, 0deg)) translateY(-4.1rem) rotate(calc(-1 * var(--a, 0deg)));
  transform-origin: 0 0;
}
@media (min-width: 400px) {
  .hunt-raffle-wheel-label {
    transform: rotate(var(--a, 0deg)) translateY(-4.75rem) rotate(calc(-1 * var(--a, 0deg)));
  }
}
.hunt-raffle-wheel-label__t {
  min-width: 2.2rem;
  max-width: 4.6rem;
  font-size: clamp(0.5rem, 0.2rem + 1.1vw, 0.7rem);
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  color: rgba(15, 23, 42, 0.92);
  text-shadow: 0 0 0.1rem rgba(255, 255, 255, 0.4), 0 1px 0 rgba(255, 255, 255, 0.2);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-word;
  hyphens: auto;
  pointer-events: none;
}
.hunt-raffle-arena {
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 23, 42, 0.55);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2);
  padding: 0.6rem 0.75rem 0.9rem;
  margin-bottom: 1rem;
}
@media (min-width: 640px) {
  .hunt-raffle-arena {
    padding: 1.1rem 1.25rem 1.2rem;
  }
}
.hunt-raffle-sky {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  overflow: hidden;
  min-height: 1.4rem;
  border-radius: 0.5rem 0.5rem 0 0;
  border-bottom: 2px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.25) 0%, transparent 100%);
  padding: 0.2rem 0.4rem;
  margin-bottom: 0.35rem;
}
.hunt-raffle-sky__label {
  font-size: 0.55rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.4);
}

/* Dog race: single-track pack — scrolling turf + finish flag + names above silhouettes */
.hunt-raffle-arena--dog-pack .hunt-raffle-sky {
  display: none;
}
.hunt-raffle-pack {
  width: 100%;
}
.hunt-raffle-pack__surface {
  position: relative;
  border-radius: 0.65rem;
  border: 2px solid rgba(255, 255, 255, 0.22);
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(180deg, #60a5fa 0%, #7dd3fc 26%, #86efac 27%, #166534 36%, #92400e 36%, #451a03 100%);
  box-shadow:
    inset 0 4px 14px rgba(255, 255, 255, 0.18),
    inset 0 -18px 35px rgba(0, 0, 0, 0.3),
    0 14px 32px rgba(15, 23, 42, 0.22);
}
.hunt-raffle-pack__surface::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 calc(100% - 4.2rem), rgba(255, 255, 255, 0.16) calc(100% - 4.2rem), rgba(255, 255, 255, 0.16) calc(100% - 4rem), transparent calc(100% - 4rem)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.13) 0 2px, transparent 2px 76px);
  mix-blend-mode: screen;
}
.hunt-raffle-pack__surface::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  height: 28%;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.22) 100%);
}
.hunt-raffle-pack__rail {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 4;
  height: 0.5rem;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, #f8fafc 0 22px, #ef4444 22px 44px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(148, 163, 184, 0.55));
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.35);
}
.hunt-raffle-pack__rail--top {
  top: 0.15rem;
}
.hunt-raffle-pack__rail--bottom {
  bottom: 0.15rem;
}
.hunt-raffle-pack__ground {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 68%;
  min-height: 4.25rem;
  overflow: hidden;
  pointer-events: none;
}
.hunt-raffle-pack__ground-mover {
  display: flex;
  flex-direction: row;
  width: 200%;
  height: 100%;
  will-change: transform;
}
.hunt-raffle-pack--running .hunt-raffle-pack__ground-mover {
  animation: hunt-raffle-pack-scroll var(--pack-scroll-dur, 0.45s) linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .hunt-raffle-pack--running .hunt-raffle-pack__ground-mover {
    animation: none;
  }
}

.hunt-raffle-pack--done .hunt-raffle-pack__ground-mover {
  animation: none !important;
  transform: translateX(0);
}
@keyframes hunt-raffle-pack-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
.hunt-raffle-pack__ground-tile {
  flex: 0 0 50%;
  height: 100%;
  box-sizing: border-box;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.12) 0 3px,
      transparent 3px 72px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(254, 243, 199, 0.12) 0 1px,
      transparent 1px 36px
    ),
    repeating-linear-gradient(
      -8deg,
      rgba(146, 64, 14, 0.5) 0,
      rgba(146, 64, 14, 0.5) 10px,
      rgba(120, 53, 15, 0.48) 10px,
      rgba(120, 53, 15, 0.48) 20px
    ),
    linear-gradient(180deg, #b45309 0%, #78350f 54%, #451a03 100%);
}
.hunt-raffle-pack__rows {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0.15rem 0.35rem 0.35rem;
}
.hunt-raffle-pack-row {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex-shrink: 0;
}
.hunt-raffle-pack-row__track {
  position: relative;
  height: clamp(30px, 6vmin, 42px);
  min-height: 30px;
  border-radius: 0;
  overflow: visible;
  background: transparent;
}
.hunt-raffle-arena--dog-pack .hunt-raffle-pack-row__track::before {
  display: none;
}
.hunt-raffle-pack-runner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 0.08rem;
  width: auto;
  max-width: calc(100% - 3.25rem);
}
.hunt-raffle-pack-runner__name {
  font-size: 0.58rem;
  font-weight: 800;
  line-height: 1.1;
  max-width: 100%;
  padding: 1px 5px 2px;
  border-radius: 4px;
  color: var(--dog-label-fg, #fef3c7);
  background: var(--dog-label-bg, rgba(15, 23, 42, 0.62));
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
  pointer-events: none;
}
.hunt-raffle-pack-runner__body {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  flex-shrink: 0;
}
.hunt-raffle-pack__finish {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 0.55rem 0.45rem 0.7rem;
  gap: 0.15rem;
  pointer-events: none;
}
.hunt-raffle-pack__finish[hidden] {
  display: none !important;
}
.hunt-raffle-pack__finish:not([hidden]) {
  display: flex;
}
.hunt-raffle-pack__flag-svg {
  width: 2.9rem;
  height: 3.85rem;
  filter: drop-shadow(-2px 2px 3px rgba(0, 0, 0, 0.5));
}
.hunt-raffle-pack__finish-cap {
  font-size: 0.5rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
  padding: 2px 4px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.7);
}

.hunt-raffle-dogbox--pack {
  position: absolute;
  left: 0;
  top: 50%;
  width: clamp(6.75rem, 16vw, 10rem);
  max-width: 165px;
  min-height: 2.95rem;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
}
.hunt-raffle-dogbox--sprite {
  width: clamp(6.75rem, 16vw, 10rem);
  max-width: 165px;
  min-height: 3.25rem;
  align-items: flex-end;
}

.hunt-raffle-dog--side {
  display: block;
  overflow: visible;
  width: 4.55rem;
  height: auto;
  filter:
    drop-shadow(0 1px 0 rgba(255, 255, 255, 0.18))
    drop-shadow(3px 4px 3px rgba(0, 0, 0, 0.42));
}
.hunt-raffle-dog-sprite {
  display: block;
  width: 100%;
  height: auto;
  max-height: 3.85rem;
  object-fit: contain;
  object-position: left bottom;
  user-select: none;
  pointer-events: none;
}

.hunt-raffle-pack-runner__body .hunt-raffle-dog--side {
  width: clamp(5.25rem, 12vw, 7rem);
  max-width: 112px;
  height: auto;
}

.hunt-raffle-pack--running .hunt-raffle-dogbox--running .hunt-raffle-dog--side {
  animation: hunt-dog-run-bob 0.26s linear infinite alternate;
  transform-origin: 60% 100%;
}
.hunt-raffle-pack--running .hunt-raffle-dogbox--running .hunt-raffle-dog-sprite {
  animation: hunt-dog-run-bob 0.22s linear infinite alternate;
  transform-origin: 55% 100%;
}

@media (prefers-reduced-motion: reduce) {
  .hunt-raffle-pack--running .hunt-raffle-dogbox--running .hunt-raffle-dog--side,
  .hunt-raffle-pack--running .hunt-raffle-dogbox--running .hunt-raffle-dog-sprite {
    animation: none;
  }
}

@keyframes hunt-dog-run-bob {
  0% {
    transform: translateY(1px) rotate(-1.8deg);
  }
  100% {
    transform: translateY(-3px) rotate(2deg);
  }
}

.hunt-raffle-pack--running .hunt-dog-leg--hl,
.hunt-raffle-pack--running .hunt-dog-leg--hr,
.hunt-raffle-pack--running .hunt-dog-leg--fl,
.hunt-raffle-pack--running .hunt-dog-leg--fr {
  animation: hunt-dog-leg-spin 0.27s linear infinite;
  transform-box: fill-box;
  transform-origin: 50% 0%;
}
.hunt-raffle-pack--running .hunt-dog-leg--hr {
  animation-delay: -0.135s;
}
.hunt-raffle-pack--running .hunt-dog-leg--fl {
  animation-delay: -0.068s;
}
.hunt-raffle-pack--running .hunt-dog-leg--fr {
  animation-delay: -0.2s;
}

@media (prefers-reduced-motion: reduce) {
  .hunt-raffle-pack--running .hunt-dog-leg--hl,
  .hunt-raffle-pack--running .hunt-dog-leg--hr,
  .hunt-raffle-pack--running .hunt-dog-leg--fl,
  .hunt-raffle-pack--running .hunt-dog-leg--fr {
    animation: none;
  }
}

@keyframes hunt-dog-leg-spin {
  0%, 100% {
    transform: rotate(21deg);
  }
  50% {
    transform: rotate(-24deg);
  }
}

.hunt-raffle-lanes {
  max-height: min(70vh, 52rem);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-right: 0.2rem;
}
.hunt-raffle-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}
.hunt-raffle-start {
  min-height: 3rem;
  min-width: 10rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 1rem;
  background: #fbbf24;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  padding: 0.65rem 1.25rem;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.35);
  transition: background 0.15s ease, opacity 0.15s ease;
}
.hunt-raffle-start:hover:not(:disabled) {
  background: #f59e0b;
}
.hunt-raffle-start:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.hunt-raffle-timer {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0;
}
.hunt-raffle-dialog[hidden] {
  display: none !important;
}
.hunt-raffle-dialog {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}
.hunt-raffle-dialog--open {
  display: flex !important;
}
.hunt-raffle-dialog__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.82);
  backdrop-filter: blur(4px);
}
.hunt-raffle-dialog__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 24rem;
  border-radius: 1rem;
  border: 1px solid rgba(251, 191, 36, 0.45);
  background: #0f172a;
  padding: 1.5rem;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
  box-sizing: border-box;
}
.hunt-raffle-trophy {
  text-align: center;
  font-size: 2.5rem;
  line-height: 1.2;
}
.hunt-raffle-dialog__title {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  margin: 0.5rem 0 0;
}
.hunt-raffle-dialog__name {
  text-align: center;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fde68a;
  margin: 0.6rem 0 0;
  word-break: break-word;
}
.hunt-raffle-dialog__congrats {
  text-align: center;
  font-size: 0.85rem;
  color: #94a3b8;
  margin: 0.4rem 0 0;
  line-height: 1.45;
}
.hunt-raffle-dialog__btns {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 1.1rem;
}
@media (min-width: 400px) {
  .hunt-raffle-dialog__btns {
    flex-direction: row;
    justify-content: center;
  }
  .hunt-raffle-rerun,
  .hunt-raffle-close {
    flex: 1;
  }
}
.hunt-raffle-rerun,
.hunt-raffle-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.6rem;
  border-radius: 0.75rem;
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  font-family: inherit;
}
.hunt-raffle-rerun {
  background: #fbbf24;
  color: #0f172a;
  border-color: #f59e0b;
}
.hunt-raffle-rerun:hover:not(:disabled) {
  background: #f59e0b;
}
.hunt-raffle-close {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}
.hunt-raffle-close:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.1);
}
.hunt-raffle-dialog__left {
  text-align: center;
  font-size: 0.7rem;
  color: #64748b;
  margin: 0.6rem 0 0;
}
.hunt-raffle-lane {
  position: relative;
}
.hunt-raffle-lane__inner {
  display: flex;
  min-height: 3.5rem;
  flex-direction: column;
  gap: 0.35rem;
}
@media (min-width: 640px) {
  .hunt-raffle-lane__inner {
    flex-direction: row;
    align-items: stretch;
    gap: 0;
  }
}
.hunt-raffle-lane__label {
  flex-shrink: 0;
  min-width: 0;
  width: 100%;
  max-width: 11rem;
}
.hunt-raffle-lane__name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.8rem;
  font-weight: 800;
  color: #e2e8f0;
  line-height: 1.3;
  word-break: break-word;
}
@media (min-width: 640px) {
  .hunt-raffle-lane__name {
    font-size: 0.9rem;
  }
}
.hunt-raffle-lane__idx {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.55rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #64748b;
  letter-spacing: 0.06em;
}
.hunt-raffle-lane__track {
  position: relative;
  flex: 1;
  min-height: 3.1rem;
  min-width: 0;
  overflow: hidden;
  border-radius: 0.5rem;
  border: 2px dashed rgba(255, 255, 255, 0.2);
  background: linear-gradient(180deg, rgba(6, 78, 59, 0.35) 0%, #0f172a 100%);
}
.hunt-raffle-turf {
  pointer-events: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hunt-raffle-finish {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 3px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.12) 100%);
  pointer-events: none;
}
.hunt-raffle-dogbox {
  position: absolute;
  left: 0;
  top: 50%;
  width: 4rem;
  height: 2.5rem;
  transform: translate(0, -50%);
  will-change: transform;
  box-sizing: border-box;
}

.hunt-raffle-dog {
  display: block;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}
.hunt-raffle-mass {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}
.hunt-raffle-mass__bar {
  position: relative;
  width: 100%;
  border-radius: 0.5rem;
  border: 2px dashed rgba(255, 255, 255, 0.2);
  background: linear-gradient(180deg, rgba(6, 78, 59, 0.35) 0%, #0f172a 100%);
  overflow: hidden;
  min-height: 7.5rem;
}
.hunt-raffle-canvas {
  display: block;
  width: 100%;
  height: 7.5rem;
  vertical-align: top;
}
.hunt-raffle-mass__note {
  margin: 0;
  font-size: 0.7rem;
  line-height: 1.35;
  color: #94a3b8;
  font-weight: 600;
}
.hunt-raffle-saved {
  margin-top: 1.5rem;
  max-width: 40rem;
}
.hunt-raffle-saved__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 800;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 0.65rem;
  cursor: pointer;
  width: 100%;
  text-align: left;
  box-sizing: border-box;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.hunt-raffle-saved__toggle:hover {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(167, 139, 250, 0.45);
}
.hunt-raffle-saved__count {
  color: #a78bfa;
  font-weight: 800;
}
.hunt-raffle-saved__panel {
  margin-top: 0.65rem;
  padding: 0.9rem 1rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(51, 65, 85, 0.8);
  background: rgba(15, 23, 42, 0.5);
}
.hunt-raffle-saved__note {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  line-height: 1.4;
  color: #94a3b8;
  font-weight: 600;
}
.hunt-raffle-saved__empty {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  color: #64748b;
  font-style: italic;
}
.hunt-raffle-saved__ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.hunt-raffle-saved__row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 0.5rem 0.75rem;
  font-size: 0.8rem;
  color: #e2e8f0;
  padding: 0.4rem 0.15rem;
  border-bottom: 1px solid rgba(51, 65, 85, 0.45);
}
.hunt-raffle-saved__row:last-child {
  border-bottom: none;
}
.hunt-raffle-saved__rank {
  font-weight: 800;
  color: #a78bfa;
  font-size: 0.75rem;
  white-space: nowrap;
}
.hunt-raffle-saved__name {
  font-weight: 800;
  min-width: 0;
  word-break: break-word;
}
.hunt-raffle-saved__phone {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  color: #cbd5e1;
  text-align: right;
}
.hunt-raffle-saved__copy {
  min-height: 2rem;
  padding: 0.25rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 800;
  border-radius: 0.45rem;
  border: 1px solid #64748b;
  background: rgba(30, 41, 59, 0.9);
  color: #f1f5f9;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.12s ease, border-color 0.12s ease;
}
.hunt-raffle-saved__copy:hover {
  background: rgba(51, 65, 85, 0.95);
  border-color: #7c3aed;
}
@media (max-width: 520px) {
  .hunt-raffle-saved__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.6rem;
  }
  .hunt-raffle-saved__name {
    flex: 1 1 8rem;
    min-width: 0;
  }
  .hunt-raffle-saved__phone {
    flex: 1 1 6rem;
    text-align: left;
  }
  .hunt-raffle-saved__copy {
    margin-left: auto;
  }
}

/* Edit QR — buttons (indigo Tailwind colors not in dist/tailwind.css) */
.qr-edit-save-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 2rem !important;
  border-radius: 0.75rem !important;
  font-family: "Roboto", ui-sans-serif, system-ui, sans-serif !important;
  font-weight: 800 !important;
  font-size: 1rem !important;
  line-height: 1.25 !important;
  border: 1px solid #4338ca !important;
  background: linear-gradient(180deg, #4f46e5 0%, #4338ca 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(67, 56, 202, 0.35);
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.qr-edit-save-btn:hover {
  background: linear-gradient(180deg, #6366f1 0%, #4f46e5 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 6px 20px rgba(67, 56, 202, 0.45);
}

.qr-edit-save-btn:focus-visible {
  outline: 2px solid #6366f1;
  outline-offset: 2px;
}

.qr-edit-save-btn:active {
  transform: translateY(1px);
}

.qr-edit-cancel-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 2rem !important;
  border-radius: 0.75rem !important;
  font-family: "Roboto", ui-sans-serif, system-ui, sans-serif !important;
  font-weight: 800 !important;
  font-size: 1rem !important;
  line-height: 1.25 !important;
  border: 1px solid #e2e8f0 !important;
  background: #ffffff !important;
  color: #334155 !important;
  text-decoration: none !important;
  box-sizing: border-box;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.qr-edit-cancel-btn:hover {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #1e293b !important;
}

.qr-edit-copy-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem !important;
  min-height: 2.75rem;
  border-radius: 0.75rem !important;
  font-family: "Roboto", ui-sans-serif, system-ui, sans-serif !important;
  font-weight: 800 !important;
  font-size: 0.875rem !important;
  border: 1px solid #c7d2fe !important;
  background: #eef2ff !important;
  color: #4338ca !important;
  cursor: pointer;
  box-sizing: border-box;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.qr-edit-copy-btn:hover {
  background: #e0e7ff !important;
  border-color: #a5b4fc !important;
}

.qr-edit-copy-btn:focus-visible {
  outline: 2px solid #818cf8;
  outline-offset: 2px;
}

/* Dashboard — tabs + filter stack */
.dashboard-qr-controls {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

/* Dashboard — header: narrow screens = [menu | credits | filter] then full-width Create */
.dashboard-dash-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  gap: 0.75rem;
  align-items: center;
}

.dashboard-dash-header .dash-header__menu {
  grid-column: 1;
  grid-row: 1;
}

.dashboard-dash-header .dash-header__credits {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}

.dashboard-dash-header .dash-header__filter {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
}

.dashboard-dash-header .dash-header__create {
  grid-column: 1 / -1;
  grid-row: 2;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .dashboard-dash-header {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
  }

  .dashboard-dash-header .dash-header__credits {
    flex: 1 1 12rem;
    min-width: 0;
  }

  .dashboard-dash-header .dash-header__create {
    width: auto !important;
    max-width: none;
    flex-shrink: 0;
  }
}

.dashboard-qr-controls__bar {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.dashboard-qr-controls__bar .dashboard-qr-type-tabs {
  flex: 1 1 min(0, 100%);
  margin-bottom: 0;
}

.dashboard-filter-open-btn {
  display: none;
  flex: 0 0 auto;
  position: relative;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.dashboard-filter-open-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}

.dashboard-filter-open-btn:focus-visible {
  outline: 2px solid #6366f1;
  outline-offset: 2px;
}

.dashboard-filter-open-btn__dot {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: #4f46e5;
  border: 2px solid #ffffff;
}

@media (max-width: 899px) {
  .dashboard-filter-open-btn {
    display: inline-flex;
  }
}

.dashboard-filter-backdrop {
  position: fixed;
  inset: 0;
  z-index: 65;
  background: rgba(15, 23, 42, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.dashboard-filter-backdrop:not([hidden]) {
  opacity: 1;
  pointer-events: auto;
}

/* Dashboard — Actions drawer (mobile slider like filters) */
.dashboard-actions-drawer {
  display: none;
}

@media (max-width: 899px) {
  #dashboardActionsDrawer.dashboard-actions-drawer {
    display: block;
    position: fixed;
    right: -110%;
    top: 0;
    bottom: 0;
    width: min(20rem, 91vw);
    max-width: 100%;
    z-index: 72;
    margin: 0;
    border-radius: 0;
    padding: 1rem 1rem 1.25rem;
    background: #ffffff;
    border-left: 1px solid rgba(226, 232, 240, 0.95);
    transform: none;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: -12px 0 48px rgba(15, 23, 42, 0.2);
  }

  #dashboardActionsDrawer.dashboard-actions-drawer--open {
    right: 0;
  }

  .dashboard-actions-drawer__body .dashboard-qr-actions__sheet {
    display: flex !important;
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    margin-top: 0.5rem;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 0.5rem !important;
  }

  .dashboard-actions-drawer__body .dashboard-qr-action-btn--sheet {
    width: 100% !important;
    min-height: 2.75rem;
    justify-content: flex-start !important;
    padding: 0 0.85rem !important;
    border-radius: 0.85rem;
    font-weight: 800;
  }

  .dashboard-actions-drawer__body .dashboard-qr-action-btn--sheet span {
    display: inline !important;
    font-size: 0.875rem;
    font-weight: 800;
  }

  .dashboard-actions-drawer__body .dashboard-qr-action-btn--sheet:hover {
    background: rgba(79, 70, 229, 0.08) !important;
    border-color: rgba(79, 70, 229, 0.35) !important;
    color: #3730a3 !important;
  }

  .dashboard-actions-drawer__body .dashboard-qr-action-btn--sheet:active {
    transform: scale(0.99);
  }

  .dashboard-actions-drawer__body .dashboard-qr-action-btn--danger:hover {
    background: rgba(220, 38, 38, 0.08) !important;
    border-color: rgba(220, 38, 38, 0.35) !important;
    color: #b91c1c !important;
  }
}

@media (min-width: 900px) {
  #dashboardActionsDrawer.dashboard-actions-drawer {
    display: none !important;
  }
}

/* Dashboard — type tabs (All / Dynamic / Static) */
.dashboard-qr-type-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  padding-bottom: 0.25rem;
  margin-bottom: 0;
  scrollbar-width: thin;
}

.dashboard-qr-type-tabs::-webkit-scrollbar {
  height: 4px;
}

.dashboard-qr-type-tabs::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}

.dashboard-qr-type-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  scroll-snap-align: start;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 800;
  color: #475569;
  background: #f1f5f9;
  border: 1px solid transparent;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.dashboard-qr-type-tab:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.dashboard-qr-type-tab--active {
  background: #4f46e5;
  color: #ffffff;
  border-color: #4338ca;
}

.dashboard-qr-type-tab--active:hover {
  background: #4338ca;
  color: #ffffff;
}

/* Dashboard — bulk selection bar (hidden until at least one row is checked; [hidden] must win over flex) */
.dashboard-qr-bulk-bar {
  display: none;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 0.65rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(248, 113, 113, 0.45);
  background: #fff1f2;
}

.dashboard-qr-bulk-bar:not([hidden]) {
  display: flex;
}

@media (max-width: 479px) {
  .dashboard-qr-bulk-bar:not([hidden]) {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .dashboard-qr-bulk-bar__btn {
    width: 100%;
  }
}

.dashboard-qr-bulk-bar__text {
  font-size: 0.8125rem;
  font-weight: 800;
  color: #9f1239;
}

.dashboard-qr-bulk-bar__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 800;
  color: #ffffff;
  background: #dc2626;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

.dashboard-qr-bulk-bar__btn:hover {
  background: #b91c1c;
}

.dashboard-qr-action-btn--danger:hover {
  color: #dc2626;
}

/* Dashboard — filter bar (responsive, modern) */
.dashboard-qr-filter-form {
  margin-bottom: 0;
  padding: 0.875rem 1rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

@media (min-width: 640px) {
  .dashboard-qr-filter-form {
    padding: 1rem 1.125rem 1.125rem;
  }
}

.dashboard-qr-filter-form__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.dashboard-qr-filter-form__head-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dashboard-qr-filter-form__close {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: none;
  border-radius: 0.5rem;
  background: #f1f5f9;
  color: #475569;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease;
}

.dashboard-qr-filter-form__close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

@media (max-width: 899px) {
  .dashboard-qr-filter-form__close {
    display: inline-flex;
  }
}

.dashboard-qr-filter-form__title {
  font-family: "Roboto", ui-sans-serif, system-ui, sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #0f172a;
}

.dashboard-qr-filter-form__reset {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #4f46e5;
  text-decoration: none;
  padding: 0.25rem 0.5rem;
  border-radius: 0.5rem;
  transition: background 0.15s ease;
}

.dashboard-qr-filter-form__reset:hover {
  background: rgba(79, 70, 229, 0.08);
  color: #4338ca;
}

.dashboard-qr-filter-form__inner {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  align-items: stretch;
  min-width: 0;
}

.dashboard-qr-filter-field {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  width: 100%;
}

.dashboard-qr-filter-field__label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.35rem;
  line-height: 1.2;
}

.dashboard-qr-filter-form__search,
.dashboard-qr-filter-form__select,
.dashboard-qr-filter-form__sort {
  width: 100%;
  min-width: 0;
  min-height: 2.75rem;
  padding: 0 0.875rem !important;
  border-radius: 0.75rem !important;
  border: 1px solid #e2e8f0 !important;
}

.dashboard-qr-filter-form__search {
  padding: 0 1rem !important;
}

.dashboard-qr-filter-form__actions {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 0.5rem;
  align-items: stretch;
  margin-top: 0.15rem;
  padding-top: 0.35rem;
}

.dashboard-qr-filter-form__actions .dashboard-filter-apply-btn,
.dashboard-qr-filter-form__actions .dashboard-filter-clear-link {
  flex: 1 1 0;
  min-width: 0;
}

@media (min-width: 480px) and (max-width: 899px) {
  .dashboard-qr-filter-form__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    align-items: start;
  }

  .dashboard-qr-filter-field--search,
  .dashboard-qr-filter-field--sort,
  .dashboard-qr-filter-form__actions {
    grid-column: 1 / -1;
  }
}

@media (min-width: 900px) {
  .dashboard-qr-filter-field__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .dashboard-qr-filter-field {
    position: relative;
  }

  .dashboard-qr-filter-form__inner {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 7.5rem) minmax(0, 7.5rem) minmax(0, 10.5rem) auto;
    gap: 0.5rem 0.6rem;
    align-items: end;
  }

  .dashboard-qr-filter-form__actions {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0.45rem;
    margin-top: 0;
    padding-top: 0;
    align-self: end;
  }

  .dashboard-qr-filter-form__actions .dashboard-filter-apply-btn,
  .dashboard-qr-filter-form__actions .dashboard-filter-clear-link {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}

@media (min-width: 900px) and (max-width: 1100px) {
  .dashboard-qr-filter-form__inner {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 6.5rem) minmax(0, 6.5rem) minmax(0, 9rem) auto;
  }
}

@media (max-width: 899px) {
  #dashboardFilterForm.dashboard-qr-filter-form {
    position: fixed;
    right: -110%;
    top: 0;
    bottom: 0;
    width: min(20rem, 91vw);
    max-width: 100%;
    z-index: 70;
    margin: 0;
    border-radius: 0;
    padding: 1rem 1rem 1.25rem;
    transform: none;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: -12px 0 48px rgba(15, 23, 42, 0.2);
  }

  #dashboardFilterForm.dashboard-qr-filter-form--open {
    right: 0;
  }
}

@media (min-width: 900px) {
  #dashboardFilterForm.dashboard-qr-filter-form {
    position: static !important;
    transform: none !important;
    width: auto !important;
    max-width: none !important;
    border-radius: 1rem !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
    overflow: visible !important;
  }
}

.dashboard-qr-filter-input {
  font-family: "Roboto", ui-sans-serif, system-ui, sans-serif !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  color: #0f172a !important;
  background: #fafbfc !important;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.dashboard-qr-filter-input:hover {
  border-color: #cbd5e1 !important;
  background: #ffffff !important;
}

.dashboard-qr-filter-input:focus {
  outline: none !important;
  border-color: #818cf8 !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2) !important;
}

/* Apply — indigo, matches app primary (not heavy navy) */
.dashboard-filter-apply-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 1rem !important;
  border-radius: 0.75rem !important;
  font-family: "Roboto", ui-sans-serif, system-ui, sans-serif !important;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
  line-height: 1.25 !important;
  cursor: pointer;
  border: 1px solid #4338ca !important;
  background: linear-gradient(180deg, #6366f1 0%, #4f46e5 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.28);
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.dashboard-filter-apply-btn:hover {
  background: linear-gradient(180deg, #818cf8 0%, #6366f1 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.38);
}

.dashboard-filter-apply-btn:active {
  transform: translateY(1px);
}

.dashboard-filter-apply-btn:focus-visible {
  outline: 2px solid #a5b4fc;
  outline-offset: 2px;
}

.dashboard-filter-clear-link {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 1rem !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  color: #475569 !important;
  text-decoration: none !important;
  border-radius: 0.75rem !important;
  border: 1px solid #e2e8f0 !important;
  background: #ffffff !important;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.dashboard-filter-clear-link:hover {
  border-color: #cbd5e1 !important;
  background: #f8fafc !important;
  color: #0f172a !important;
}

/* Dashboard QR list */
.dashboard-qr-table-wrap {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-radius: 1.125rem;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: #ffffff;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 12px 40px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.dashboard-qr-table-wrap__scroll {
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.dashboard-qr-table-wrap__footer {
  flex-shrink: 0;
  border-top: 1px solid rgba(226, 232, 240, 0.95);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.65) 0%, #ffffff 100%);
}

@media (min-width: 768px) {
  .dashboard-qr-table-wrap {
    max-height: min(62vh, calc(100vh - 13.5rem));
  }

  .dashboard-qr-table-wrap__scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
  }

  .dashboard-qr-table thead th {
    position: sticky;
    top: 0;
    z-index: 4;
    background: linear-gradient(
      180deg,
      rgba(248, 250, 252, 0.98) 0%,
      rgba(241, 245, 249, 0.95) 100%
    );
    box-shadow: 0 1px 0 #e2e8f0;
  }
}

/* Dashboard header: credits + renewal beside menu (replaces visible “My QR codes” title) */
.dashboard-header-credits {
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 800;
  color: #475569;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
}

@media (min-width: 640px) {
  .dashboard-header-credits {
    font-size: 0.8125rem;
    padding: 0.4rem 0.9rem;
  }
}

.dashboard-header-credits__inner {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0;
  max-width: 100%;
}

.dashboard-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-top: 1rem;
  padding: 0.65rem 1rem;
  border-radius: 0.875rem;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  font-family: "Roboto", ui-sans-serif, system-ui, sans-serif;
}

.dashboard-pagination--in-card {
  margin-top: 0;
  margin-bottom: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.dashboard-pagination__meta {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #64748b;
}

.dashboard-pagination__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.dashboard-pagination__current {
  font-size: 0.8125rem;
  font-weight: 800;
  color: #0f172a;
  padding: 0 0.25rem;
}

.dashboard-pagination__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  padding: 0 0.85rem;
  border-radius: 0.65rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
  color: #1e293b;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.dashboard-pagination__btn:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #4338ca;
}

.dashboard-pagination__btn--disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.dashboard-qr-table {
  table-layout: auto;
  width: 100%;
  min-width: 0;
  border-collapse: separate;
  border-spacing: 0;
  font-family: "Roboto", ui-sans-serif, system-ui, sans-serif;
}

@media (min-width: 768px) {
  .dashboard-qr-table {
    min-width: 720px;
  }
}

.dashboard-qr-table__head-row {
  background: linear-gradient(
    180deg,
    rgba(248, 250, 252, 0.98) 0%,
    rgba(241, 245, 249, 0.95) 100%
  );
  border-bottom: 1px solid #e2e8f0;
}

.dashboard-qr-table__th {
  padding: 0.875rem 0.75rem !important;
  font-size: 0.6875rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  color: #64748b !important;
  white-space: nowrap;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: middle;
  text-align: left;
}

.dashboard-qr-table__th--check {
  width: 2.75rem;
  padding-left: 1rem !important;
  text-align: center !important;
}

.dashboard-qr-table__th--thumb {
  width: 4rem;
}

.dashboard-qr-table__th--actions {
  width: 11.5rem;
  min-width: 11.5rem;
  padding-right: 1rem !important;
  text-align: right !important;
}

.dashboard-qr-table__th--scans {
  text-align: center !important;
}

.dashboard-qr-table__body tr.dashboard-qr-table__row td {
  vertical-align: middle;
  border-bottom: 1px solid #f1f5f9;
  padding: 0.875rem 0.75rem !important;
}

.dashboard-qr-table__body tr.dashboard-qr-table__row:last-child td {
  border-bottom: none;
}

.dashboard-qr-table__body tr.dashboard-qr-table__row td.dashboard-qr-cell--check {
  padding-left: 1rem !important;
}

.dashboard-qr-table__body tr.dashboard-qr-table__row td.dashboard-qr-cell--actions {
  padding-right: 1rem !important;
  text-align: right !important;
}

.dashboard-qr-table__body tr.dashboard-qr-table__row td.dashboard-qr-cell--scans {
  text-align: center !important;
}

.dashboard-qr-table__body tr.dashboard-qr-table__row td.dashboard-qr-cell--check {
  text-align: center !important;
}

.dashboard-qr-table__row {
  transition: background 0.15s ease;
}

.dashboard-qr-table__row:hover {
  background: rgba(79, 70, 229, 0.035) !important;
}

.dashboard-qr-checkbox {
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 0.25rem;
  border: 1px solid #cbd5e1;
  accent-color: #4f46e5;
  cursor: pointer;
}

.dashboard-qr-thumb-btn {
  display: inline-block;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  border-radius: 0.625rem;
  cursor: zoom-in;
  line-height: 0;
  vertical-align: middle;
}

.dashboard-qr-thumb-btn:focus-visible {
  outline: 2px solid #4f46e5;
  outline-offset: 2px;
}

.dashboard-qr-thumb-btn .dashboard-qr-thumb {
  display: block;
}

.dashboard-qr-thumb {
  display: block;
  width: 3rem;
  height: 3rem;
  border-radius: 0.625rem;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  object-fit: contain;
}

.dashboard-qr-thumb--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

.dashboard-qr-thumb__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.125rem;
}

.dashboard-qr-thumb__grid span {
  display: block;
  width: 0.25rem;
  height: 0.25rem;
  border-radius: 0.0625rem;
  background: rgba(148, 163, 184, 0.85);
}

.dashboard-qr-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}

.dashboard-qr-preview-modal[hidden] {
  display: none !important;
}

.dashboard-qr-preview-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  cursor: pointer;
}

.dashboard-qr-preview-modal__dialog {
  position: relative;
  z-index: 1;
  max-width: min(92vw, 28rem);
  max-height: min(88vh, 32rem);
  padding: 1.25rem;
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.35);
}

.dashboard-qr-preview-modal__close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 0.5rem;
  background: #f1f5f9;
  color: #475569;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.dashboard-qr-preview-modal__close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.dashboard-qr-preview-modal__close:focus-visible {
  outline: 2px solid #4f46e5;
  outline-offset: 2px;
}

.dashboard-qr-preview-modal__img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(80vw, 24rem);
  max-height: min(75vh, 28rem);
  margin: 0 auto;
  object-fit: contain;
  border-radius: 0.5rem;
}

/* Dashboard: download QR (format picker) */
.dashboard-qr-download-modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}

.dashboard-qr-download-modal[hidden] {
  display: none !important;
}

.dashboard-qr-download-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  cursor: pointer;
}

.dashboard-qr-download-modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: min(92vw, 22rem);
  max-height: min(92vh, 36rem);
  overflow: auto;
  padding: 1.25rem 1.25rem 1rem;
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.35);
}

.dashboard-qr-download-modal__title {
  margin: 0 2rem 0.35rem 0;
  font-size: 1.125rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.dashboard-qr-download-modal__hint {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #64748b;
}

.dashboard-qr-download-modal__preview {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
  padding: 0.75rem;
  background: #f8fafc;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
}

.dashboard-qr-download-modal__img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 12rem;
  object-fit: contain;
  border-radius: 0.35rem;
}

.dashboard-qr-download-modal__formats {
  margin: 0 0 1rem;
  padding: 0;
  border: none;
}

.dashboard-qr-download-modal__legend {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  margin-bottom: 0.5rem;
}

.dashboard-qr-download-modal__format {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-right: 0.75rem;
  margin-bottom: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
}

.dashboard-qr-download-modal__format input {
  accent-color: #4f46e5;
}

.dashboard-qr-download-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.dashboard-qr-download-modal__btn {
  min-height: 2.5rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
}

.dashboard-qr-download-modal__btn--primary {
  background: #4f46e5;
  color: #fff;
}

.dashboard-qr-download-modal__btn--primary:hover {
  background: #4338ca;
}

.dashboard-qr-download-modal__btn--primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.dashboard-qr-download-modal__btn--ghost {
  background: #f1f5f9;
  color: #475569;
  border-color: #e2e8f0;
}

.dashboard-qr-download-modal__btn--ghost:hover {
  background: #e2e8f0;
}

.dashboard-qr-download-modal__close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 0.5rem;
  background: #f1f5f9;
  color: #475569;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.dashboard-qr-download-modal__close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.dashboard-qr-download-modal__close:focus-visible {
  outline: 2px solid #4f46e5;
  outline-offset: 2px;
}

.dashboard-qr-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.35;
  max-width: 22rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-qr-redirect {
  margin-top: 0.2rem;
  font-size: 0.6875rem;
  line-height: 1.35;
  color: #64748b;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-word;
}

.dashboard-qr-token {
  margin-top: 0.25rem;
  font-size: 0.6875rem;
  color: #94a3b8;
  max-width: min(22rem, 100%);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-qr-meta {
  margin-top: 0.35rem;
  font-size: 0.625rem;
  color: #64748b;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.dashboard-qr-meta__date {
  color: #94a3b8;
}

.dashboard-qr-pill {
  display: inline-flex;
  padding: 0.125rem 0.5rem;
  border-radius: 0.375rem;
  font-weight: 600;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #f1f5f9;
  color: #475569;
}

.dashboard-qr-type-pill {
  display: inline-flex;
  padding: 0.25rem 0.625rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
  color: #475569;
}

.dashboard-qr-scans {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #0f172a;
  font-size: 0.9375rem;
}

.dashboard-qr-dates {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  font-size: 0.75rem;
  color: #64748b;
}

.dashboard-qr-dates__sub {
  color: #94a3b8;
  font-size: 0.6875rem;
}

.dashboard-qr-status {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.dashboard-qr-status--on {
  border: 1px solid rgba(16, 185, 129, 0.35);
  background: rgba(236, 253, 245, 0.9);
  color: #047857;
}

.dashboard-qr-status--off {
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #64748b;
}

.dashboard-qr-status--inline {
  padding: 0.1rem 0.45rem;
  font-size: 0.5625rem;
}

/* Dashboard: status column toggle (active ↔ disabled) */
.dashboard-qr-status-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.2rem 0;
  border: none;
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-align: left;
  max-width: 100%;
}

.dashboard-qr-status-switch:disabled {
  opacity: 0.55;
  cursor: wait;
}

.dashboard-qr-status-switch:focus-visible {
  outline: 2px solid #6366f1;
  outline-offset: 2px;
  border-radius: 0.375rem;
}

.dashboard-qr-status-switch__track {
  flex: 0 0 auto;
  position: relative;
  width: 2.375rem;
  height: 1.25rem;
  border-radius: 999px;
  background: #cbd5e1;
  transition: background 0.15s ease;
}

.dashboard-qr-status-switch--on .dashboard-qr-status-switch__track {
  background: #34d399;
}

.dashboard-qr-status-switch__thumb {
  position: absolute;
  top: 0.125rem;
  left: 0.125rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
  transition: transform 0.15s ease;
}

.dashboard-qr-status-switch--on .dashboard-qr-status-switch__thumb {
  transform: translateX(1.125rem);
}

.dashboard-qr-status-switch__label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #64748b;
  white-space: nowrap;
}

.dashboard-qr-status-switch--on .dashboard-qr-status-switch__label {
  color: #047857;
}

.dashboard-qr-actions {
  position: relative;
  display: inline-flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.375rem;
  margin-left: auto;
  width: max-content;
  max-width: 100%;
}

/* Open menu: ensure stacking context above sibling rows (mobile absolute fallback) */
@media (max-width: 767px) {
  .dashboard-qr-actions.dashboard-qr-actions--open {
    z-index: 999999;
    isolation: isolate;
  }
}

.dashboard-qr-action-toggle {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border-radius: 0.625rem;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.dashboard-qr-action-toggle:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}

.dashboard-qr-action-toggle:focus-visible {
  outline: 2px solid #6366f1;
  outline-offset: 2px;
}

.dashboard-qr-actions__sheet {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.375rem;
}

.dashboard-qr-action-btn--sheet {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.dashboard-qr-action-btn--sheet span {
  font-size: 0.8125rem;
  font-weight: 600;
}

@media (min-width: 768px) {
  .dashboard-qr-action-toggle {
    display: none !important;
  }

  .dashboard-qr-actions__sheet {
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    flex-direction: row !important;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.375rem;
    min-width: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .dashboard-qr-actions--open .dashboard-qr-actions__sheet {
    transform: none !important;
  }

  .dashboard-qr-action-btn--sheet span {
    display: none !important;
  }

  .dashboard-qr-action-btn--sheet {
    min-width: 2.75rem;
    width: auto;
    padding: 0 !important;
    justify-content: center !important;
  }
}

.dashboard-qr-action-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0 !important;
  border-radius: 0.625rem;
  border: 1px solid #e2e8f0 !important;
  background: #ffffff !important;
  color: #475569 !important;
  font-size: 1rem !important;
  line-height: 1 !important;
  text-decoration: none !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease,
    transform 0.1s ease;
}

.dashboard-qr-action-btn:hover {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

.dashboard-qr-action-btn:active {
  transform: scale(0.97);
}

.dashboard-qr-action-btn--disabled {
  opacity: 0.45;
  pointer-events: none;
}

tr.dashboard-qr-table__empty td {
  border-bottom: none !important;
  background: linear-gradient(180deg, #fcfcff 0%, #f8fafc 100%);
}

.dashboard-qr-table th,
.dashboard-qr-table td {
  vertical-align: middle;
}

/* Mobile: one horizontal row per QR + slide-out actions */
@media (max-width: 767px) {
  /* Avoid a scroll/clipping box on the list wrapper so row action menus stack correctly */
  .dashboard-qr-table-wrap {
    display: block;
    overflow: visible !important;
    border: none;
    background: transparent;
    box-shadow: none;
  }

  .dashboard-qr-table-wrap__scroll {
    overflow: visible !important;
  }

  .dashboard-qr-table-wrap__footer {
    margin-top: 0.75rem;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 0.875rem;
    background: #ffffff;
    box-shadow:
      0 1px 2px rgba(15, 23, 42, 0.04),
      0 4px 14px rgba(15, 23, 42, 0.06);
  }

  .dashboard-qr-table {
    display: block;
    width: 100%;
    min-width: 0 !important;
  }

  .dashboard-qr-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .dashboard-qr-table tbody {
    display: block;
    border-radius: 0.875rem;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: #ffffff;
    overflow: hidden;
    box-shadow:
      0 1px 2px rgba(15, 23, 42, 0.04),
      0 4px 14px rgba(15, 23, 42, 0.06);
  }

  .dashboard-qr-table tbody tr.dashboard-qr-table__row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0;
    padding: 0.55rem 0.65rem;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid rgba(226, 232, 240, 0.95);
    background: #ffffff;
    box-shadow: none;
    position: relative;
    z-index: 1;
  }

  .dashboard-qr-table tbody tr.dashboard-qr-table__row:last-child {
    border-bottom: none;
  }

  .dashboard-qr-table__row--actions-open {
    z-index: 999998;
  }

  .dashboard-qr-table tbody tr.dashboard-qr-table__row:hover {
    background: #ffffff !important;
  }

  .dashboard-qr-table tbody tr.dashboard-qr-table__row td.dashboard-qr-cell {
    display: block !important;
    border: none !important;
    padding: 0 !important;
  }

  /* Columns that should not appear in the compact mobile row */
  .dashboard-qr-table tbody tr.dashboard-qr-table__row td.dashboard-qr-cell.dashboard-qr-cell--modified,
  .dashboard-qr-table tbody tr.dashboard-qr-table__row td.dashboard-qr-cell.dashboard-qr-cell--status {
    display: none !important;
  }

  .dashboard-qr-cell::before {
    display: none !important;
    content: none !important;
  }

  .dashboard-qr-cell--check {
    flex: 0 0 auto;
    align-self: center;
  }

  .dashboard-qr-cell--thumb {
    flex: 0 0 auto;
    align-self: center;
  }

  .dashboard-qr-cell--thumb .dashboard-qr-thumb,
  .dashboard-qr-cell--thumb .dashboard-qr-thumb-btn .dashboard-qr-thumb {
    width: 2.5rem;
    height: 2.5rem;
  }

  .dashboard-qr-cell--name {
    flex: 1 1 0;
    min-width: 0;
  }

  .dashboard-qr-cell--name .dashboard-qr-name {
    font-size: 0.8125rem;
    line-height: 1.3;
    max-width: none;
    font-weight: 700;
    white-space: normal;
    overflow: hidden;
  }

  .dashboard-qr-cell--name .dashboard-qr-name a {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
  }

  .dashboard-qr-cell--scans {
    flex: 0 0 auto;
    align-self: center;
  }

  .dashboard-qr-cell--actions {
    flex: 0 0 auto;
    align-self: center;
    position: relative;
    overflow: visible;
  }

  .dashboard-qr-action-toggle {
    display: inline-flex !important;
  }

  .dashboard-qr-scans {
    font-size: 0.8125rem;
  }

  .dashboard-qr-table tbody tr.dashboard-qr-table__row td.dashboard-qr-cell.dashboard-qr-cell--type,
  .dashboard-qr-table tbody tr.dashboard-qr-table__row td.dashboard-qr-cell.dashboard-qr-cell--modified {
    display: none !important;
  }

  .dashboard-qr-cell__stack {
    text-align: left;
  }

  .dashboard-qr-cell__stack .dashboard-qr-name,
  .dashboard-qr-cell__stack .dashboard-qr-token,
  .dashboard-qr-cell__stack .dashboard-qr-meta {
    text-align: left;
    max-width: 100%;
  }

  .dashboard-qr-actions__sheet {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 0.35rem);
    z-index: 999999;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.35rem;
    min-width: 10.75rem;
    max-width: min(12rem, 72vw);
    padding: 0.45rem;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.18);
    transition:
      transform 0.28s cubic-bezier(0.4, 0, 0.2, 1),
      opacity 0.22s ease;
  }

  .dashboard-qr-actions--open .dashboard-qr-actions__sheet {
    display: flex;
  }

  /* Fixed + portaled to body (JS): row z-index is unreliable with flex <tr>; keep menu visible */
  .dashboard-qr-actions__sheet.dashboard-qr-actions__sheet--fixed {
    position: fixed !important;
    right: auto !important;
    z-index: 999999 !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  .dashboard-qr-actions__sheet .dashboard-qr-action-btn--sheet {
    width: 100%;
    min-height: 2.45rem;
    justify-content: flex-start;
    padding: 0 0.65rem !important;
  }

  tr.dashboard-qr-table__empty {
    display: block;
    border-radius: 0;
    border: none;
    background: transparent;
    box-shadow: none;
  }

  tr.dashboard-qr-table__empty td {
    display: block !important;
    width: 100% !important;
    padding: 2rem 1.25rem !important;
  }
}

.dash-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.dash-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Roboto", sans-serif;
  font-weight: 600;
  font-size: 12px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(79, 70, 229, 0.1);
  border: 1px solid rgba(79, 70, 229, 0.18);
  color: #4338ca;
}

.dash-primary-btn {
  text-decoration: none;
  font-family: "Roboto", sans-serif;
  font-weight: 600;
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #fff;
  border-radius: 12px;
  padding: 11px 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 28px rgba(79, 70, 229, 0.28);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.dash-primary-btn:hover {
  box-shadow: 0 14px 36px rgba(79, 70, 229, 0.35);
}

.dash-primary-btn-icon {
  font-size: 14px;
}

.dash-page-head {
  margin-top: 6px;
  margin-bottom: 10px;
}

.dash-page-title {
  margin: 0;
  font-family: "Roboto", sans-serif;
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.dash-like-banner {
  background: rgba(103, 110, 255, 0.18);
  border: 1px solid rgba(103, 110, 255, 0.28);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dash-like-text {
  color: #4b5563;
  font-weight: 900;
  font-size: 13px;
}

.dash-like-actions {
  display: flex;
  gap: 10px;
}

.dash-like-btn {
  border-radius: 8px;
  border: 1px solid rgba(59, 115, 246, 0.25);
  background: #fff;
  padding: 6px 14px;
  font-weight: 900;
  color: #4b5563;
}

.dash-like-btn.is-active {
  background: #3b73f6;
  border-color: #3b73f6;
  color: #fff;
}

.dash-controls {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1.35fr 0.95fr 0.95fr 0.95fr;
  gap: 12px;
}

.dash-input,
.dash-select {
  width: 100%;
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(12, 18, 32, 0.1);
  background: #fff;
  padding: 0 14px;
  outline: none;
  font-size: 14px;
  color: var(--text);
}

.dash-input::placeholder {
  color: #9aa7bd;
  font-weight: 700;
}

.dash-select {
  appearance: none;
}

.dash-table {
  margin-top: 14px;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(12, 18, 32, 0.08);
}

.dash-table-row {
  display: grid;
  grid-template-columns: 52px 74px 1.35fr 90px 240px 140px 120px;
  align-items: center;
  padding: 14px 16px;
  gap: 10px;
}

.dash-table-head {
  background: #f6f7ff;
  padding-top: 12px;
  padding-bottom: 12px;
  font-weight: 950;
  font-size: 12px;
  color: #7b879c;
  border-bottom: 1px solid rgba(12, 18, 32, 0.06);
}

.dash-table-row:not(.dash-table-head) {
  border-top: 1px solid rgba(12, 18, 32, 0.06);
}

.dash-cell-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
}

.qr-thumb {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(12, 18, 32, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-thumb-grid {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background:
    linear-gradient(#111827 1px, transparent 1px),
    linear-gradient(90deg, #111827 1px, transparent 1px);
  background-size: 6px 6px;
  opacity: 0.12;
  position: relative;
}

.or-name {
  font-weight: 950;
  font-size: 14px;
  letter-spacing: -0.1px;
}

.or-sub,
.or-type {
  color: #7b879c;
  font-size: 12px;
  margin-top: 4px;
}

.muted {
  color: #98a2b3;
  font-size: 12px;
  margin-top: 4px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.22);
  color: #16a34a;
  font-weight: 950;
  font-size: 12px;
}

.row-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

.icon-btn {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  border: 1px solid rgba(12, 18, 32, 0.1);
  background: #fff;
  cursor: pointer;
  font-weight: 900;
  color: #6b7280;
}

.dash-bottom-upgrade {
  position: fixed;
  right: 26px;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 30;
}

.dash-days {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(12, 18, 32, 0.08);
  padding: 9px 12px;
  border-radius: 999px;
  font-weight: 950;
  color: #4b5563;
  font-size: 13px;
}

.dash-upgrade-btn {
  text-decoration: none;
  background: #3b73f6;
  color: #fff;
  font-weight: 950;
  padding: 10px 16px;
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(59, 115, 246, 0.22);
}

.dash-sidebar-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.dash-sidebar-toggle:hover {
  background: #fff;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}

.mobile-sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 18, 32, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
  z-index: 55;
}
.mobile-sidebar-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 980px) {
  .dash-shell {
    flex-direction: column;
  }

  .dash-sidebar-toggle {
    display: inline-flex;
  }

  .dash-sidenav {
    width: min(288px, 88vw);
    position: fixed;
    top: 0;
    left: -110%;
    height: 100vh;
    max-height: 100vh;
    z-index: 60;
    transform: none;
    transition: left 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .dash-sidenav.is-open {
    left: 0;
  }

  .dash-table-row {
    grid-template-columns: 52px 74px 1fr;
    grid-auto-rows: auto;
    row-gap: 8px;
  }
  .dash-table-head {
    display: none;
  }
  .dash-controls {
    grid-template-columns: 1fr;
  }
  .dash-bottom-upgrade {
    position: static;
    margin-top: 16px;
    justify-content: flex-end;
  }

  /* Dashboard: ensure actions (3-dots) shows on small screens */
  .dashboard-qr-action-toggle {
    display: inline-flex !important;
  }
}

/* Site Header Mobile Hamburger + Slide Navigation */
.nav-desktop {
  display: flex;
  align-items: center;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(12, 18, 32, 0.1);
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
}

.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 18, 32, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
  z-index: 40;
}
.mobile-nav-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 88vw);
  height: 100vh;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  border-left: 1px solid rgba(12, 18, 32, 0.08);
  padding: 78px 16px 16px;
  transform: translateX(110%);
  transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mobile-nav.is-open {
  transform: translateX(0%);
}

.mobile-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 12px;
  border-radius: 14px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 850;
}
.mobile-nav a:hover {
  background: rgba(36, 91, 255, 0.06);
  color: var(--text);
}

.mobile-nav .nav-cta {
  background: rgba(36, 91, 255, 0.12);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(36, 91, 255, 0.22);
}

body.mobile-nav-open {
  overflow: hidden;
}

@media (max-width: 720px) {
  .nav-desktop {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
}

/* Tailwind overrides: softer typography + more modern palette.
   These apply to the Tailwind-based dashboard pages (we load tailwind.css first,
   then styles.css, so this stylesheet wins). */
.font-extrabold {
  font-weight: 700 !important;
}

/* Primary CTA / links (blue -> indigo) */
.bg-blue-500 {
  background-color: #4f46e5 !important;
}
.bg-blue-600 {
  background-color: #4338ca !important;
}
.bg-blue-50 {
  background-color: #eef2ff !important;
}
.border-blue-200 {
  border-color: #c7d2fe !important;
}
.text-blue-700 {
  color: #3730a3 !important;
}

/* Status colors softened */
.bg-red-50 {
  background-color: #fef2f2 !important;
}
.border-red-200 {
  border-color: #fecaca !important;
}
.text-red-700 {
  color: #b91c1c !important;
}

.bg-emerald-50 {
  background-color: #ecfdf5 !important;
}
.border-emerald-200 {
  border-color: #bbf7d0 !important;
}
.text-emerald-700 {
  color: #047857 !important;
}

.bg-rose-50 {
  background-color: #fff1f2 !important;
}
.border-rose-200 {
  border-color: #fecdd3 !important;
}
.text-rose-700 {
  color: #be123c !important;
}

/* Navigation overrides (sidebar + mobile nav) — Roboto */
.dash-sidenav,
.dash-sidenav a,
.dash-sidenav .dash-sidenav-item {
  font-family: "Roboto", ui-sans-serif, system-ui, sans-serif !important;
}

.dash-sidenav-logo-text {
  font-family: "Roboto", sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: -0.03em !important;
}

.dash-portal--light .dash-sidenav-item {
  color: #64748b !important;
  font-weight: 500 !important;
}

.dash-portal--light .dash-sidenav-item:hover {
  background: rgba(79, 70, 229, 0.07) !important;
  color: #0f172a !important;
}

.dash-portal--light .dash-sidenav-item.is-active {
  background: linear-gradient(
    135deg,
    rgba(79, 70, 229, 0.12),
    rgba(99, 102, 241, 0.08)
  ) !important;
  box-shadow: inset 0 0 0 1px rgba(79, 70, 229, 0.2) !important;
  color: #1e1b4b !important;
  font-weight: 600 !important;
}

.dash-portal--dark .dash-sidenav-item,
.dash-portal:not(.dash-portal--light) .dash-sidenav-item {
  color: #94a3b8 !important;
  font-weight: 500 !important;
}

.dash-portal--dark .dash-sidenav-item:hover,
.dash-portal:not(.dash-portal--light) .dash-sidenav-item:hover {
  background: rgba(99, 102, 241, 0.14) !important;
  color: #f1f5f9 !important;
}

.dash-portal--dark .dash-sidenav-item.is-active,
.dash-portal:not(.dash-portal--light) .dash-sidenav-item.is-active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.22), rgba(79, 70, 229, 0.12)) !important;
  box-shadow: inset 0 0 0 1px rgba(129, 140, 248, 0.35) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
}

.dash-pill {
  font-weight: 650 !important;
  background: rgba(79, 70, 229, 0.10) !important;
  border-color: rgba(79, 70, 229, 0.16) !important;
  color: #4338ca !important;
}

.dash-primary-btn {
  font-weight: 700 !important;
  background: #4f46e5 !important;
  box-shadow: 0 14px 34px rgba(79, 70, 229, 0.18) !important;
}

.mobile-nav a {
  font-family: "Roboto", ui-sans-serif, system-ui, sans-serif !important;
  font-weight: 500 !important;
}

.mobile-nav a:hover {
  background: rgba(79, 70, 229, 0.06) !important;
}

.gen-hidden {
  display: none !important;
}

/* —— Generator URL flow (modern two-column layout) —— */
.gen-theme #main.dash-main {
  background: #f4f7fa !important;
  padding-bottom: 5.75rem;
}

.gen-url-page {
  flex: 1;
  min-width: 0;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.gen-url-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.gen-url-toolbar--mobile-only {
  display: flex;
}

@media (min-width: 1024px) {
  .gen-url-toolbar--mobile-only {
    display: none;
  }
}

.gen-url-toolbar__link {
  font-size: 0.875rem;
  font-weight: 600;
  color: #64748b;
  text-decoration: none;
}

.gen-url-toolbar__link:hover {
  color: #0f172a;
}

.gen-url-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-bottom: 1.5rem;
}

.gen-url-kicker {
  margin: 0 0 0.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.02em;
}

.gen-url-title {
  margin: 0;
  font-family: "Roboto", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
  line-height: 1.25;
  max-width: 36rem;
}

.gen-url-lead {
  margin: 0.65rem 0 0;
  max-width: 40rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #475569;
}

.gen-url-header--hunt,
.gen-url-header--landing-editor {
  padding: 1.125rem 1.25rem 1.35rem;
  margin-bottom: 1.75rem;
  border-radius: 1rem;
  border: 1px solid rgba(199, 210, 254, 0.95);
  background: linear-gradient(145deg, #fafbff 0%, #f5f3ff 42%, #eef2ff 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 12px 40px -16px rgba(79, 70, 229, 0.28);
}

.gen-url-header--hunt .gen-url-kicker,
.gen-url-header--landing-editor .gen-url-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 0.5rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.14);
  color: #4338ca;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.gen-url-header--hunt .gen-url-title,
.gen-url-header--landing-editor .gen-url-title {
  max-width: 42rem;
}

.gen-url-header__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

.gen-url-help {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #64748b;
  text-decoration: none;
}

.gen-url-help:hover {
  color: #0f172a;
}

.gen-preview-toggle {
  display: inline-flex;
  padding: 0.2rem;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.gen-preview-toggle__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.9rem;
  border: none;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: "Roboto", ui-sans-serif, system-ui, sans-serif;
  cursor: pointer;
  background: transparent;
  color: #64748b;
  transition: background 0.15s ease, color 0.15s ease;
}

.gen-preview-toggle__btn--active {
  background: #3b82f6 !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.35);
}

.gen-preview-toggle__ico {
  font-size: 0.75rem;
  opacity: 0.9;
}

.gen-preview-toggle__ico--svg {
  display: block;
  flex-shrink: 0;
}

.gen-preview-toggle--stack {
  width: 100%;
  justify-content: center;
  margin-bottom: 1rem;
}

.gen-preview-toggle--desktop-only {
  display: none;
}

.gen-preview-toggle--mobile-only {
  display: inline-flex;
}

@media (min-width: 1024px) {
  .gen-preview-toggle--desktop-only {
    display: inline-flex;
  }

  .gen-preview-toggle--mobile-only {
    display: none;
  }
}

.gen-alert {
  padding: 0.875rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.gen-alert--error {
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

.gen-alert--success {
  border: 1px solid #bbf7d0;
  background: #ecfdf5;
  color: #047857;
}

.gen-alert--info {
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1e40af;
  font-weight: 500;
}

.gen-alert__warn {
  display: inline-block;
  margin-left: 0.35rem;
  font-weight: 700;
  color: #b45309;
}

.gen-alert__link {
  margin-left: 0.35rem;
  font-weight: 700;
  color: #1d4ed8;
  text-decoration: underline;
}

.gen-segment {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-bottom: 0.75rem;
}

.gen-segment--row {
  align-items: center;
}

.gen-segment--col {
  flex-direction: column;
  align-items: flex-start;
}

.gen-radio {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
}

.gen-radio input {
  width: 1rem;
  height: 1rem;
}

.gen-radio--disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.gen-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.gen-input--grow {
  flex: 1;
  min-width: 0;
}

.gen-step1-preview-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.gen-step1-preview-row__hint {
  margin: 0;
  flex: 1;
  min-width: 12rem;
}

.gen-logo-bg-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.gen-logo-bg-row .gen-label {
  margin: 0;
}

.gen-footer-btn--secondary {
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
}

.gen-footer-btn--secondary:hover {
  background: #f1f5f9;
}

.gen-footer-btn--secondary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Outer wrapper (width only); two-column layout lives on .gen-url-columns so <aside> is never mistaken for part of .gen-url-main */
.gen-url-grid {
  width: 100%;
  min-width: 0;
}

.gen-url-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
  width: 100%;
  min-width: 0;
}

/* Landing generator: only on small phones stack preview + form; put preview first so it isn’t buried. */
@media (max-width: 767px) {
  .gen-url-columns--landing {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .gen-url-columns--landing .gen-url-preview {
    order: -1;
    position: relative;
    top: auto;
    width: 100%;
    max-width: 22rem;
    margin-left: auto;
    margin-right: auto;
  }

  .gen-url-columns--landing .gen-url-main {
    order: 0;
    width: 100%;
  }
}

/* Form + phone side by side from tablet / narrow laptop up (was 1024px only, so the phone sat below the form in 768–1023px). */
@media (min-width: 768px) {
  .gen-url-columns {
    /* Second track minmax(0,…) lets the aside shrink; cap width so the phone column doesn’t steal space from the form */
    grid-template-columns: minmax(0, 1fr) minmax(0, min(280px, 32vw));
    gap: clamp(1rem, 2.2vw, 2rem);
  }

  .gen-url-columns > .gen-url-main {
    grid-column: 1;
  }

  .gen-url-columns > .gen-url-preview {
    grid-column: 2;
  }

  /*
   * Landing generator: second track must not collapse to 0. With minmax(0,…) + aside min-width:0
   * and a failed phone frame image (onerror hides img), the preview column could shrink away entirely.
   */
  .gen-url-page--landing:not(.gen-url-page--landing-portfolio):not(.gen-url-page--landing-wide) .gen-url-columns {
    grid-template-columns: minmax(0, 1fr) minmax(220px, min(280px, 34vw));
  }

  /* Website URL generator (url.php): fixed preview column 280×439 — design spec */
  .gen-url-page--url .gen-url-columns {
    grid-template-columns: minmax(0, 1fr) 280px;
  }

  /* Menu/Store step 2: no inline phone column — one full-width form column */
  .gen-url-page--url.gen-url-page--menu .gen-url-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .gen-url-page--url .gen-url-preview {
    /* Override .gen-url-preview { min-width: 0 } — otherwise the grid track can paint as empty */
    min-width: 280px;
    width: 280px;
    max-width: 280px;
    height: 439px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
  }

  .gen-url-page--url .gen-url-preview-device {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 280px;
    max-height: 439px;
    min-height: 0;
    flex: 0 1 auto;
  }

  .gen-url-page--url .gen-phone {
    max-width: 100%;
    max-height: 439px;
  }

  .gen-url-page--url .gen-phone__frame {
    max-width: min(260px, 100%);
    max-height: 439px;
    margin-left: auto;
    margin-right: auto;
  }

  .gen-url-page--url .gen-phone__img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 439px;
    object-fit: contain;
  }
}

.gen-url-main {
  min-width: 0;
}

.gen-url-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.gen-menu-actions {
  border-radius: 0.75rem;
  border: 1px solid #e8ecf1;
  background: #f8fafc;
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.gen-menu-actions__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

.gen-menu-actions__row--avail {
  justify-content: space-between;
}

.gen-menu-actions__hint {
  margin: 0;
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.45;
}

.gen-menu-actions__row--io {
  gap: 0.5rem;
}

.gen-menu-actions__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.85rem;
  border-radius: 0.5rem;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #0f172a;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
}

.gen-menu-actions__btn:hover {
  background: #f1f5f9;
}

.gen-menu-actions__btn--primary {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
}

.gen-menu-actions__btn--primary:hover {
  background: #1d4ed8;
}

/* Full-screen busy state while menu/store import runs */
.dotqr-menu-import-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
}

.dotqr-menu-import-backdrop__panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.75rem 2.25rem;
  border-radius: 0.875rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
}

.dotqr-menu-import-backdrop__text {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #0f172a;
}

.dotqr-menu-import-backdrop__spinner {
  width: 2.5rem;
  height: 2.5rem;
  border: 3px solid #e2e8f0;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: dotqr-menu-import-spin 0.7s linear infinite;
}

@keyframes dotqr-menu-import-spin {
  to {
    transform: rotate(360deg);
  }
}

.gen-toggle-pill {
  min-width: 7.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid #22c55e;
  background: #ecfdf5;
  color: #14532d;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}

.gen-toggle-pill--off {
  border-color: #94a3b8;
  background: #f1f5f9;
  color: #475569;
}

.gen-menu-cat-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.gen-menu-cat-section__title {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
}

.gen-menu-cat-section__avail {
  flex: 0 0 auto;
}

.gen-menu-cat-avail-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border-radius: 0.5rem;
  border: 1px solid #c7f0d8;
  background: #ecfdf5;
  color: #15803d;
  cursor: pointer;
  line-height: 0;
}

.gen-menu-cat-avail-btn:hover {
  background: #d1fae5;
}

.gen-menu-cat-avail-btn--off {
  border-color: #cbd5e1;
  background: #f1f5f9;
  color: #64748b;
}

.gen-menu-cat-avail-btn__ic {
  position: relative;
  display: inline-block;
  width: 20px;
  height: 20px;
}

.gen-menu-cat-avail-btn__svg {
  position: absolute;
  top: 0;
  left: 0;
}

.gen-menu-cat-avail-btn .gen-menu-cat-avail-btn__svg--off {
  display: none;
}

.gen-menu-cat-avail-btn--off .gen-menu-cat-avail-btn__svg--on {
  display: none;
}

.gen-menu-cat-avail-btn--off .gen-menu-cat-avail-btn__svg--off {
  display: block;
}

.gen-menu-cat-chip-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.55rem;
  margin: 0 0 0.75rem;
  min-height: 0;
}

.gen-menu-cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 100%;
  padding: 0.35rem 0.45rem 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  font-size: 0.8rem;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.2;
}

.gen-menu-cat-chip__text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: min(14rem, 100%);
}

.gen-menu-cat-chip .gen-menu-cat-chip__remove {
  flex-shrink: 0;
}

.gen-menu-cat-add-row__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.5rem;
}

.gen-menu-cat-add-row__controls .gen-input {
  flex: 1 1 12rem;
  min-width: 0;
}

.gen-menu-items-section--muted .gen-hunt-section__head {
  opacity: 0.88;
}

.gen-menu-editor-stack {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.gen-menu-items-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.1rem;
  margin: 0 0 0.65rem;
  border-bottom: 1px solid #e2e8f0;
}

.gen-menu-items-tab {
  position: relative;
  border: none;
  background: transparent;
  color: #64748b;
  border-radius: 0;
  padding: 0.5rem 0.8rem 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.12s ease, border-color 0.12s ease;
}

.gen-menu-items-tab:hover {
  color: #0f172a;
}

.gen-menu-items-tab--active {
  color: #4338ca;
  font-weight: 700;
  border-bottom-color: #6366f1;
  background: transparent;
}

.gen-menu-table-panel {
  min-width: 0;
}

.gen-menu-table-toolbar {
  margin-bottom: 0.5rem;
}

.gen-menu-table-search-wrap {
  display: block;
  max-width: 24rem;
}

.gen-menu-table-search {
  width: 100%;
}

.gen-menu-table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.gen-menu-table {
  width: 100%;
  min-width: 40rem;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.gen-menu-table__th,
.gen-menu-table__td {
  text-align: left;
  padding: 0.45rem 0.4rem;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: top;
}

.gen-menu-table__th {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
  background: #f8fafc;
}

.gen-menu-table__th--name,
.gen-menu-table__td--name {
  width: 9.5rem;
  max-width: 11rem;
}

.gen-menu-table__td--name .gen-input {
  max-width: 100%;
}

.gen-menu-table__th--price {
  width: 5.5rem;
}

.gen-menu-table__th--photo {
  width: 4.5rem;
}

.gen-menu-table__th--desc {
  width: auto;
  min-width: 8rem;
}

.gen-menu-table__th--status,
.gen-menu-table__td--status {
  width: 3.25rem;
  text-align: center;
  vertical-align: middle;
}

.gen-menu-table__th--act {
  width: 2.5rem;
}

.gen-menu-table__td .gen-input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.gen-menu-item-thumb--table {
  max-width: 3.5rem;
}

.gen-menu-item-thumb--table .gen-menu-item-thumb__box {
  width: 2.75rem;
  min-height: 2.5rem;
}

.gen-menu-item-thumb--table .gen-menu-item-thumb__preview {
  cursor: pointer;
}

.gen-menu-item-thumb--table .gen-menu-item-thumb__preview:focus-visible {
  outline: 2px solid #4f46e5;
  outline-offset: 2px;
}

.gen-menu-gallery-modal[hidden],
.gen-menu-gallery-modal.gen-hidden {
  display: none !important;
}

.gen-menu-gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}

.gen-menu-gallery-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 23, 42, 0.52);
}

.gen-menu-gallery-modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 42rem);
  max-height: min(88dvh, 42rem);
  overflow: auto;
  border-radius: 1rem;
  background: #fff;
  color: #111827;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
  padding: 1rem;
  box-sizing: border-box;
}

.gen-menu-gallery-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.gen-menu-gallery-modal__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
}

.gen-menu-gallery-modal__hint {
  margin: 0.25rem 0 0;
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.4;
}

.gen-menu-gallery-modal__x {
  border: 0;
  border-radius: 999px;
  width: 2rem;
  height: 2rem;
  background: #f1f5f9;
  color: #334155;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.gen-menu-gallery-modal__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
  gap: 0.75rem;
}

.gen-menu-gallery-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 0.8rem;
  background: #f8fafc;
}

.gen-menu-gallery-card__img {
  width: 100%;
  aspect-ratio: 1;
  background-size: cover;
  background-position: center;
  background-color: #e5e7eb;
}

.gen-menu-gallery-card__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  padding: 0.45rem;
}

.gen-menu-gallery-card__primary {
  flex: 1 1 auto;
  border: 0;
  border-radius: 0.55rem;
  background: #ede9fe;
  color: #4f46e5;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 0.42rem 0.5rem;
  cursor: pointer;
}

.gen-menu-gallery-card__primary.is-current {
  background: #4f46e5;
  color: #fff;
  cursor: default;
}

.gen-menu-gallery-card__remove {
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  width: 1.75rem;
  height: 1.75rem;
  background: #fee2e2;
  color: #b91c1c;
  font-weight: 900;
  cursor: pointer;
}

.gen-menu-gallery-modal__add {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  margin-top: 0.85rem;
  padding: 0.85rem;
  border: 1px dashed #a5b4fc;
  border-radius: 0.85rem;
  color: #4f46e5;
  background: #f8f7ff;
  font-weight: 800;
  cursor: pointer;
}

.gen-menu-gallery-modal__add input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.gen-menu-gallery-modal__add small {
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 600;
}

.gen-menu-gallery-modal__foot {
  margin-top: 1rem;
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.gen-menu-gallery-modal__save {
  min-width: 11rem;
}

.gen-menu-table-pager {
  margin-top: 0.6rem;
}

.gen-menu-table-pager__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.75rem;
}

.gen-menu-table-pager__btn {
  padding: 0.3rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 0.4rem;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
  cursor: pointer;
}

.gen-menu-table-pager__btn:hover:not([disabled]) {
  background: #f1f5f9;
}

.gen-menu-table-pager__btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.gen-menu-table-pager__meta {
  font-size: 0.8rem;
  color: #64748b;
}

.gen-menu-item-table__rm {
  margin: 0 auto;
  display: block;
}

.gen-menu-item-active-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border-radius: 0.5rem;
  border: 2px solid #22c55e;
  background: #f0fdf4;
  color: #16a34a;
  cursor: pointer;
  line-height: 0;
}

.gen-menu-item-active-btn:hover {
  background: #dcfce7;
  border-color: #16a34a;
}

.gen-menu-item-active-btn--off {
  border-color: #ef4444;
  background: #fef2f2;
  color: #dc2626;
}

.gen-menu-item-active-btn--off:hover {
  background: #fee2e2;
  border-color: #dc2626;
}

.gen-menu-item-active-btn__ic {
  position: relative;
  display: inline-block;
  width: 22px;
  height: 22px;
}

.gen-menu-item-active-btn__svg {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
}

.gen-menu-item-active-btn__svg--off {
  display: none;
}

.gen-menu-item-active-btn--off .gen-menu-item-active-btn__svg--on {
  display: none;
}

.gen-menu-item-active-btn--off .gen-menu-item-active-btn__svg--off {
  display: block;
}

.gen-card {
  border-radius: 0.75rem;
  border: 1px solid #e8ecf1;
  background: #ffffff;
  box-shadow: 0 4px 6px rgba(15, 23, 42, 0.05);
  overflow: hidden;
}

.gen-card__summary {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 1.125rem 1.25rem;
  cursor: pointer;
  list-style: none;
}

.gen-card__summary::-webkit-details-marker {
  display: none;
}

.gen-card__icon-wrap {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: rgba(59, 130, 246, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3b82f6;
}

.gen-card__icon {
  width: 1.25rem;
  height: 1.25rem;
}

.gen-card__head-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.gen-card__title {
  font-family: "Roboto", ui-sans-serif, system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
}

.gen-card__sub {
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.35;
}

.gen-card__chev {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.2rem;
  border-right: 2px solid #cbd5e1;
  border-bottom: 2px solid #cbd5e1;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

details.gen-card[open] .gen-card__chev {
  transform: rotate(225deg);
  margin-top: 0.45rem;
}

.gen-card__body {
  padding: 0 1.25rem 1.25rem;
  border-top: 1px solid #f1f5f9;
}

.gen-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.4rem;
}

.gen-label__req {
  color: #ef4444;
}

.gen-input {
  width: 100%;
  min-height: 2.75rem;
  padding: 0 1rem;
  border-radius: 0.625rem;
  border: 1px solid #e2e8f0;
  font-size: 0.9375rem;
  font-family: "Roboto", ui-sans-serif, system-ui, sans-serif;
  background: #fafbfc;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.gen-input:hover {
  border-color: #cbd5e1;
  background: #ffffff;
}

.gen-input:focus {
  outline: none;
  border-color: #60a5fa;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.gen-card__note {
  margin: 0.75rem 0 0;
  font-size: 0.75rem;
  color: #94a3b8;
  line-height: 1.45;
}

.gen-card__note--lock {
  margin-top: 0.65rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #64748b;
}

.gen-scan-limit-credits-btn {
  display: inline-block;
  margin-top: 0.65rem;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #2563eb;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.gen-scan-limit-credits-btn:hover {
  color: #1d4ed8;
}

.gen-modal {
  margin: auto;
  max-width: min(28rem, 94vw);
  padding: 0;
  border: none;
  border-radius: 1rem;
  background: transparent;
  box-shadow: none;
}

.gen-modal::backdrop {
  background: rgba(15, 23, 42, 0.45);
}

.gen-modal__panel {
  position: relative;
  padding: 1.35rem 1.35rem 1.15rem;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.18);
}

.gen-modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 0.5rem;
  background: #f1f5f9;
  color: #64748b;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.gen-modal__close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.gen-modal__title {
  margin: 0 2rem 0.5rem 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
}

.gen-modal__lead {
  margin: 0 0 0.85rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #64748b;
}

.gen-modal__list {
  margin: 0 0 1rem;
  padding-left: 1.15rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: #475569;
}

.gen-modal__field {
  margin-bottom: 0.75rem;
}

.gen-modal__hint {
  margin: 0.45rem 0 0;
  font-size: 0.75rem;
  color: #64748b;
}

.gen-modal__warn {
  margin: 0 0 1rem;
  padding: 0.75rem 0.85rem;
  border-radius: 0.65rem;
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #991b1b;
  font-size: 0.8125rem;
  line-height: 1.45;
}

.gen-modal__warn-title {
  margin: 0 0 0.35rem;
  font-weight: 800;
  font-size: 0.8rem;
}

.gen-modal__cta {
  display: inline-block;
  margin-top: 0.65rem;
  font-weight: 700;
  color: #b91c1c;
  text-decoration: underline;
}

.gen-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.gen-modal__btn {
  padding: 0.45rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
}

.gen-modal__btn:hover {
  background: #f8fafc;
}

.gen-modal__btn--primary {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
}

.gen-modal__btn--primary:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
}

.gen-input--readonly-locked {
  cursor: not-allowed;
  background: #f1f5f9 !important;
  color: #334155;
}

.gen-input--readonly-locked:hover,
.gen-input--readonly-locked:focus {
  border-color: #e2e8f0 !important;
  background: #f1f5f9 !important;
  box-shadow: none !important;
}

.gen-upload {
  position: relative;
  display: block;
  cursor: pointer;
}

.gen-upload__input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.gen-upload__zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 7rem;
  padding: 1.25rem;
  border: 2px dashed #cbd5e1;
  border-radius: 0.75rem;
  background: #f8fafc;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.gen-upload:hover .gen-upload__zone {
  border-color: #93c5fd;
  background: #eff6ff;
}

.gen-upload__hint {
  font-size: 0.875rem;
  font-weight: 600;
  color: #475569;
}

.gen-upload__meta {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 0.25rem;
}

.gen-url-preview {
  position: sticky;
  top: 1rem;
  /* Grid default min-width:auto can let the mockup overflow the assigned column */
  min-width: 0;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

.gen-phone {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
}

.gen-phone__frame {
  position: relative;
  width: 100%;
  /* Never wider than the preview column */
  max-width: min(240px, 100%);
  margin: 0 auto;
  box-sizing: border-box;
  /* If the frame image fails (onerror hides img), absolute screen still needs a box — avoid 0-height column */
  min-height: 11.5rem;
}

.gen-phone__img {
  display: block;
  width: 100%;
  height: auto;
}

.gen-phone__screen {
  position: absolute;
  /* Inset slightly inside the bezel so overlays do not cover the phone body */
  left: 11%;
  right: 15%;
  top: 6.5%;
  bottom: 7%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* Match inner screen curvature so white QR layer does not square off over the frame */
  border-radius: 1.5rem;
}

.gen-phone__screen--qr-only {
  justify-content: center;
}

.gen-phone__step2-qr-mount {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 94%;
}

.gen-phone__step2-qr-mount canvas {
  width: 100% !important;
  height: auto !important;
  max-width: 200px;
  border-radius: 0.35rem;
}

.gen-phone__step2-qr-mount img.gen-phone__step2-qr-img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 200px;
  border-radius: 0.35rem;
  object-fit: contain;
}

/* Landing generator: stretch preview into full screen area so iframe/placeholder isn’t a short strip with empty space above/below inside the bezel */
.gen-phone__screen--landing {
  align-items: stretch;
  justify-content: flex-start;
}

/* Step 3 landing: phone shows QR only (no page iframe) — center the QR in the screen */
.gen-phone__screen--landing.gen-phone__screen--qr-only {
  align-items: center;
  justify-content: center;
}

.gen-phone__screen--landing > .gen-phone__preview-inner--landing {
  flex: 1 1 auto;
  min-height: 0;
  align-self: stretch;
  width: 100%;
}

.gen-phone__screen--landing .gen-phone__landing-iframe {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
}

/* Portfolio step 3 (?qr_id=…): QR-only phone — same shell as landing preview; iframe row hidden. */
.gen-phone__screen--landing > .gen-phone__qr-view:not(.gen-hidden) {
  position: absolute;
  inset: 0;
}

.gen-phone__preview-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-align: center;
  padding: 0.5rem;
}

.gen-phone__qr-placeholder {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 0.5rem;
  background: #e2e8f0;
  border: 2px dashed #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.gen-phone__qr-placeholder span {
  font-size: 0.625rem;
  font-weight: 700;
  color: #64748b;
}

.gen-phone__hint {
  margin: 0.5rem 0 0;
  font-size: 0.625rem;
  line-height: 1.35;
  color: #64748b;
  max-width: 100%;
  word-break: break-word;
}

/* Landing generator: same empty state as URL QR (LOGO + hint), then iframe when ready */
.gen-phone__preview-inner--landing {
  padding: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 0;
  text-align: center;
}

.gen-phone__landing-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  min-height: 0;
  width: 100%;
}

.gen-phone__landing-iframe {
  display: block;
  width: 100%;
  min-height: 0;
  height: 100%;
  flex: 1 1 auto;
  border: 0;
  background: #fff;
  border-radius: 0.35rem;
}

/**
 * Invitation generator: render preview at standard mobile width (390px) then scale down so
 * typography and buttons match the live /invite/ page proportions inside the small mock bezel.
 */
.gen-url-page--invitation .gen-phone__screen--landing {
  overflow: hidden;
}

.gen-url-page--invitation .gen-phone__preview-inner--landing {
  overflow: hidden;
  min-width: 0;
}

.gen-phone__landing-viewport--inv {
  --gen-inv-mw: 390px;
  --gen-inv-mh: 780px;
  --gen-inv-scale: 0.46;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  height: 100%;
  max-height: 100%;
  position: relative;
  overflow: hidden;
  align-self: stretch;
}

.gen-phone__landing-viewport--inv .gen-phone__landing-iframe {
  position: absolute;
  top: 0;
  left: 50%;
  width: var(--gen-inv-mw);
  height: var(--gen-inv-mh);
  max-width: none;
  min-width: 0;
  flex: none;
  margin: 0;
  margin-left: calc(-0.5 * var(--gen-inv-mw));
  transform: scale(var(--gen-inv-scale));
  transform-origin: top center;
  border: 0;
  background: #fff;
  border-radius: 0.35rem;
}

@media (min-width: 768px) {
  .gen-url-page--invitation .gen-phone__landing-viewport--inv {
    --gen-inv-scale: 0.52;
  }
}

/**
 * Digital card generator: same 390px live shell as /card/ (output.css .scan-viewport), scaled into the mock bezel.
 */
.gen-url-page--card .gen-phone__screen--landing {
  overflow: hidden;
}

.gen-url-page--card .gen-phone__preview-inner--landing {
  overflow: hidden;
  min-width: 0;
}

@media (min-width: 768px) {
  .gen-url-page--card .gen-url-columns {
    grid-template-columns: minmax(0, 1fr) minmax(240px, min(320px, 38vw));
  }
}

.gen-url-page--card .gen-phone__frame {
  max-width: min(280px, 100%);
}

.gen-phone__landing-viewport--card {
  --gen-card-mw: 390px;
  --gen-card-mh: 780px;
  --gen-card-scale: 0.46;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  height: 100%;
  max-height: 100%;
  position: relative;
  overflow: hidden;
  align-self: stretch;
}

.gen-phone__landing-viewport--card .gen-phone__landing-iframe {
  position: absolute;
  top: 0;
  left: 50%;
  width: var(--gen-card-mw);
  height: var(--gen-card-mh);
  max-width: none;
  min-width: 0;
  flex: none;
  margin: 0;
  margin-left: calc(-0.5 * var(--gen-card-mw));
  transform: scale(var(--gen-card-scale));
  transform-origin: top center;
  border: 0;
  background: #fff;
  border-radius: 0.35rem;
}

@media (min-width: 768px) {
  .gen-url-page--card .gen-phone__landing-viewport--card {
    --gen-card-scale: 0.52;
  }
}

/**
 * Menu generator: use same 390px live shell scale behavior so the page
 * fits and stays readable inside the compact preview phone.
 */
.gen-url-page--menu .gen-phone__screen--landing {
  overflow: hidden;
}

.gen-url-page--menu .gen-phone__preview-inner--landing {
  overflow: hidden;
  min-width: 0;
}

.gen-phone__landing-viewport--menu {
  --gen-menu-mw: 390px;
  /* Taller canvas so long category/item lists scroll inside the iframe like a real phone */
  --gen-menu-mh: 1100px;
  --gen-menu-scale: 0.42;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  height: 100%;
  max-height: 100%;
  position: relative;
  overflow: hidden;
  align-self: stretch;
}

.gen-phone__landing-viewport--menu .gen-phone__landing-iframe {
  position: absolute;
  top: 0;
  left: 50%;
  width: var(--gen-menu-mw);
  height: var(--gen-menu-mh);
  max-width: none;
  min-width: 0;
  flex: none;
  margin: 0;
  margin-left: calc(-0.5 * var(--gen-menu-mw));
  transform: scale(var(--gen-menu-scale));
  transform-origin: top center;
  border: 0;
  background: #fff;
  border-radius: 0.35rem;
}

@media (min-width: 768px) {
  .gen-url-page--menu .gen-phone__landing-viewport--menu {
    --gen-menu-scale: 0.48;
  }
}

/* Digital card step 2 — repeatable phone / mobile / social rows */
.gen-card-repeat-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.gen-card-repeat__row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
}

.gen-card-repeat__row--social {
  flex-wrap: wrap;
}

.gen-card-repeat__input {
  flex: 1 1 auto;
  min-width: 0;
}

.gen-card-repeat__row--social .gen-card-repeat__label {
  flex: 0 0 7rem;
  max-width: 42%;
}

.gen-card-repeat__row--social .gen-card-repeat__url {
  flex: 1 1 12rem;
  min-width: 0;
}

.gen-card-repeat__btn {
  flex: 0 0 2rem;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border-radius: 0.5rem;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #64748b;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.gen-card-repeat__btn:hover {
  background: #fee2e2;
  border-color: #fecaca;
  color: #b91c1c;
}

.gen-card-repeat__add {
  margin-top: 0.25rem;
  padding: 0.35rem 0.65rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #047857;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 0.5rem;
  cursor: pointer;
  font-family: "Roboto", ui-sans-serif, system-ui, sans-serif;
}

.gen-card-repeat__add:hover {
  background: #d1fae5;
}

/* Digital card: social network picker (logos) */
.gen-card-social-pick {
  margin-bottom: 0.75rem;
}

.gen-card-social-pick__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.15rem;
  padding: 0.4rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #1e40af;
  background: #eff6ff;
  border: 1px solid #93c5fd;
  border-radius: 0.5rem;
  cursor: pointer;
  font-family: "Roboto", ui-sans-serif, system-ui, sans-serif;
}

.gen-card-social-pick__toggle:hover {
  background: #dbeafe;
}

.gen-card-social-pick__panel {
  margin-top: 0.65rem;
  padding: 0.75rem;
  border-radius: 0.65rem;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}

.gen-card-social-pick__hint {
  margin: 0 0 0.6rem;
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.4;
}

.gen-card-social-pick__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.gen-card-social-pick__chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border-radius: 0.5rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.15s ease;
}

.gen-card-social-pick__chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
}

.gen-card-social-pick__svg {
  display: block;
}

.gen-card-social-pick__emoji {
  font-size: 1.35rem;
  line-height: 1;
}

.gen-card__body--landing-fields .gen-portfolio-fields__block + .gen-portfolio-fields__block {
  margin-top: 1rem;
}

.gen-portfolio-fields__hint {
  margin-top: 0.35rem;
  margin-bottom: 0.75rem;
}

.gen-portfolio-upload-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-top: 0.5rem;
}

.gen-portfolio-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.gen-portfolio-file-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.85rem;
  border-radius: 0.5rem;
  border: 1px solid #c7d2fe;
  background: linear-gradient(180deg, #eef2ff 0%, #e0e7ff 100%);
  font-size: 0.8125rem;
  font-weight: 700;
  color: #3730a3;
  cursor: pointer;
  font-family: "Roboto", ui-sans-serif, system-ui, sans-serif;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.gen-portfolio-file-btn:hover {
  border-color: #818cf8;
  background: #e0e7ff;
}

.gen-portfolio-upload-note {
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.35;
}

.gen-portfolio-gallery-add-url {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.5rem;
  margin-bottom: 0.35rem;
}

.gen-portfolio-gallery-add-url .gen-input {
  flex: 1 1 12rem;
  min-width: 0;
}

.gen-portfolio-gallery-add-url-btn {
  flex: 0 0 auto;
  padding: 0.4rem 0.85rem;
  border-radius: 0.5rem;
  border: 1px solid #c7d2fe;
  background: linear-gradient(180deg, #eef2ff 0%, #e0e7ff 100%);
  font-size: 0.8125rem;
  font-weight: 700;
  color: #3730a3;
  cursor: pointer;
  font-family: "Roboto", ui-sans-serif, system-ui, sans-serif;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.gen-portfolio-gallery-add-url-btn:hover {
  border-color: #818cf8;
  background: #e0e7ff;
}

.gen-portfolio-gallery-preview-wrap {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.gen-portfolio-gallery-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: flex-start;
}

.gen-portfolio-gallery-preview__item {
  margin: 0;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  flex-shrink: 0;
}

.gen-portfolio-gallery-preview__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gen-portfolio-gallery-preview__item--broken {
  background: repeating-linear-gradient(
    -45deg,
    #f1f5f9,
    #f1f5f9 6px,
    #e2e8f0 6px,
    #e2e8f0 12px
  );
}

.gen-portfolio-gallery-preview__item--url {
  overflow: visible;
}

.gen-portfolio-gallery-preview__item--pending {
  overflow: visible;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.35);
}

.gen-portfolio-gallery-preview__thumb-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 0.5rem;
  overflow: hidden;
}

.gen-portfolio-gallery-preview__thumb-inner .gen-style-bg-thumb-remove {
  z-index: 2;
}

.gen-style-bg-thumb-wrap {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.gen-style-bg-thumb-inner {
  position: relative;
  display: inline-block;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.gen-style-bg-thumb-img {
  display: block;
  width: 72px;
  height: 72px;
  object-fit: cover;
  background: #f1f5f9;
}

.gen-style-bg-thumb-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  border: none;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.65);
  color: #fff;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gen-style-bg-thumb-remove:hover {
  background: rgba(220, 38, 38, 0.95);
}

.gen-style-bg-thumb-label {
  font-size: 0.6875rem;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.02em;
}

/* Invitation step 2: local thumbnails for banner + picture uploads */
.gen-inv-thumb-wrap {
  margin-top: 0.65rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.gen-inv-thumb-label {
  font-size: 0.6875rem;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.02em;
}

.gen-inv-thumb-inner {
  position: relative;
  display: inline-block;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  background: #f1f5f9;
}

.gen-inv-thumb-inner--banner {
  width: 100%;
  max-width: 280px;
  height: 88px;
  border-radius: 0.5rem;
}

.gen-inv-thumb-inner--banner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.gen-inv-thumb-inner--picture {
  width: 72px;
  height: 72px;
  border-radius: 9999px;
}

.gen-inv-thumb-inner--picture img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Portfolio landing generator: wider preview column + clip inner scroll (no horizontal bar in phone) */
@media (min-width: 768px) {
  .gen-url-page--landing-portfolio .gen-url-columns {
    grid-template-columns: minmax(0, 1fr) minmax(240px, min(320px, 38vw));
  }
}

.gen-url-page--landing-portfolio .gen-phone__frame {
  max-width: min(280px, 100%);
}

.gen-url-page--landing-portfolio .gen-phone__screen--landing {
  overflow: hidden;
}

.gen-url-page--landing-portfolio .gen-phone__preview-inner--landing {
  overflow: hidden;
  min-width: 0;
}

.gen-url-page--landing-portfolio .gen-phone__landing-iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

/* Landing step 2 wide layout: invitation, anonymous, hunt, card, menu, video, wifi, customize */
@media (min-width: 768px) {
  .gen-url-page--landing-wide .gen-url-columns {
    grid-template-columns: minmax(0, 1fr) minmax(240px, min(320px, 38vw));
  }
}

.gen-url-page--landing-wide .gen-phone__frame {
  max-width: min(280px, 100%);
}

.gen-url-page--landing-wide .gen-phone__screen--landing {
  overflow: hidden;
}

.gen-url-page--landing-wide .gen-phone__preview-inner--landing {
  overflow: hidden;
  min-width: 0;
}

/* Direct iframe only — menu/card/inv use .gen-phone__landing-viewport wrapper; child iframe uses scaled absolute layout */
.gen-url-page--landing-wide .gen-phone__preview-inner--landing > .gen-phone__landing-iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

/* QR Hunt — step 2 field groups */
.gen-hunt-fields {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.gen-hunt-section {
  border-radius: 0.85rem;
  border: 1px solid #e8ecf1;
  background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}

.gen-hunt-section__head {
  padding: 0.9rem 1rem 0.65rem;
  border-bottom: 1px solid #f1f5f9;
  background: rgba(248, 250, 252, 0.85);
}

.gen-hunt-section__title {
  margin: 0;
  font-family: "Roboto", ui-sans-serif, system-ui, sans-serif;
  font-size: 0.9375rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.gen-hunt-section__hint {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: #64748b;
}

.gen-hunt-section__body {
  padding: 1rem 1rem 1.1rem;
}

.gen-hunt-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.gen-hunt-field {
  min-width: 0;
}

.gen-hunt-field__note {
  margin: 0.35rem 0 0;
  font-size: 0.6875rem;
  line-height: 1.45;
  color: #94a3b8;
}

.gen-hunt-field--limit {
  margin-top: 0.25rem;
  max-width: 12rem;
}

.gen-hunt-grid {
  display: grid;
  gap: 1rem;
}

.gen-hunt-grid--2 {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .gen-hunt-grid--2 {
    grid-template-columns: 1fr 1fr;
  }
}

.gen-label__opt {
  font-weight: 600;
  color: #94a3b8;
  font-size: 0.75em;
}

.gen-label--compact {
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.gen-input--narrow {
  max-width: 12rem;
}

.gen-input--compact {
  min-height: 2.35rem;
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
  font-size: 0.875rem;
}

.gen-hunt-toggle-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .gen-hunt-toggle-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.gen-hunt-toggle-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0.75rem 0.85rem 0.9rem;
  border-radius: 0.65rem;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.gen-hunt-toggle-card:hover {
  border-color: #c7d2fe;
  box-shadow: 0 4px 14px -6px rgba(79, 70, 229, 0.2);
}

.gen-hunt-toggle-card__top {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  cursor: pointer;
  margin: 0 0 0.65rem;
  font-weight: 700;
  font-size: 0.8125rem;
  color: #1e293b;
}

.gen-hunt-toggle-card__cb {
  margin-top: 0.15rem;
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  accent-color: #4f46e5;
  cursor: pointer;
}

.gen-hunt-toggle-card__label {
  flex: 1;
  line-height: 1.35;
}

.gen-url-page--landing-wide .gen-card__body--landing-fields {
  padding-top: 0.5rem;
}

.gen-landing-textarea--mono {
  font-family: ui-monospace, "Cascadia Code", "Consolas", monospace;
  font-size: 0.8125rem;
  line-height: 1.45;
}

.gen-landing-wifi-option {
  padding-top: 0.25rem;
}

.gen-landing-wifi-check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0;
  padding: 0.65rem 0.8rem;
  border-radius: 0.65rem;
  border: 1px solid #e2e8f0;
  background: #fafbfc;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background 0.18s ease;
}

.gen-landing-wifi-check:hover {
  border-color: #c7d2fe;
  background: #f5f3ff;
}

.gen-landing-wifi-check__input {
  margin-top: 0.12rem;
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  accent-color: #4f46e5;
  cursor: pointer;
}

.gen-landing-wifi-check__text {
  font-size: 0.875rem;
  font-weight: 700;
  color: #334155;
  line-height: 1.4;
}

.gen-input.gen-textarea {
  min-height: 6.5rem;
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
  resize: vertical;
}

.pf-links-root > * + * {
  margin-top: 0.75rem;
}

.pf-link-row {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.5rem;
  border-radius: 0.625rem;
  border: 1px solid #e8ecf1;
  background: #fafbfc;
  padding: 0.75rem;
  /* Respond to column width (generator sidebar), not viewport — avoids squished Label | URL */
  container-type: inline-size;
  container-name: pf-link-row;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.pf-link-row:hover {
  border-color: #c7d2fe;
  background: #f8fafc;
  box-shadow: 0 2px 10px rgba(79, 70, 229, 0.08);
}

.pf-link-row__stack {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pf-link-style-details {
  border-radius: 0.5rem;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  padding: 0.35rem 0.5rem;
}

.pf-link-style-summary {
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 700;
  color: #475569;
  list-style-position: outside;
  padding: 0.25rem 0.15rem;
  border-radius: 0.35rem;
  transition: color 0.15s ease, background 0.15s ease;
}

.pf-link-style-summary:hover {
  color: #3730a3;
  background: color-mix(in srgb, #eef2ff 85%, transparent);
}

.pf-link-style-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
  gap: 0.5rem;
  padding: 0.35rem 0 0.25rem;
}

@container pf-link-row (max-width: 24rem) {
  .pf-link-style-grid {
    grid-template-columns: 1fr;
  }
}

.pf-link-style-field {
  min-width: 0;
}

.pf-link-style-field--wide {
  grid-column: 1 / -1;
}

.pf-link-style-field .pf-link-color-input {
  width: 100%;
  height: 2.25rem;
  padding: 0.1rem;
  border-radius: 0.375rem;
  border: 1px solid #e2e8f0;
  cursor: pointer;
}

.pf-add-link-btn {
  margin-top: 0.75rem;
  width: 100%;
  border-radius: 0.625rem;
  border: 2px dashed #cbd5e1;
  background: #ffffff;
  padding: 0.65rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  font-family: "Roboto", ui-sans-serif, system-ui, sans-serif;
  color: #475569;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.pf-add-link-btn:hover {
  border-color: #93c5fd;
  background: #f8fafc;
  color: #0f172a;
}

.pf-link-row__fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  min-width: 0;
  width: 100%;
  align-items: end;
}

.pf-link-row__fields > div {
  min-width: 0;
}

@container pf-link-row (min-width: 28rem) {
  .pf-link-row__fields {
    grid-template-columns: 1fr 1fr;
  }
}

.pf-link-icon-btn {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.625rem;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  cursor: pointer;
  padding: 0;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pf-link-icon-btn:hover {
  border-color: #60a5fa;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

.pf-link-icon-btn__placeholder {
  font-size: 1.25rem;
  line-height: 1;
  color: #94a3b8;
}

.pf-link-icon-img {
  width: 1.75rem;
  height: 1.75rem;
  object-fit: contain;
}

.pf-link-file {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  left: -9999px;
}

.pf-social-file,
#pfDialogCustomFile,
#pfSocialDialogCustomFile {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  left: -9999px;
}

.pf-link-remove {
  flex-shrink: 0;
  border-radius: 0.5rem;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  padding: 0.4rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  font-family: inherit;
}

.pf-link-remove:hover {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

.pf-preset-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  padding: 0.75rem 0.5rem;
  min-height: 5.5rem;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.pf-preset-tile:hover {
  border-color: #93c5fd;
  background: #eff6ff;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.12);
}

.pf-preset-tile__img {
  width: 2.75rem;
  height: 2.75rem;
  object-fit: contain;
}

.pf-preset-tile__label {
  font-size: 0.6875rem;
  line-height: 1.2;
  text-align: center;
  color: #64748b;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-word;
}

.pf-preset-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 0.65rem !important;
  width: 100%;
}

@media (min-width: 480px) {
  .pf-preset-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 640px) {
  .pf-preset-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }
}

/* Icon picker dialog — beat Tailwind button/dialog resets */
.pf-icon-dialog {
  max-width: min(36rem, calc(100vw - 2rem));
  width: calc(100vw - 2rem);
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 0;
  background: #fff;
  color: #0f172a;
}

.pf-icon-dialog__toolbar {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.75rem !important;
  padding: 0.875rem 1rem !important;
  border-bottom: 1px solid #f1f5f9 !important;
  background: #f8fafc !important;
}

@media (min-width: 480px) {
  .pf-icon-dialog__toolbar {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
  }
}

.pf-icon-tabs {
  display: inline-flex !important;
  flex-shrink: 0 !important;
  gap: 0.25rem !important;
  padding: 0.2rem !important;
  border-radius: 0.625rem !important;
  background: #e2e8f0 !important;
}

.pf-icon-tab {
  appearance: none !important;
  -webkit-appearance: none !important;
  border: none !important;
  background: transparent !important;
  background-image: none !important;
  color: #475569 !important;
  font: inherit !important;
  font-size: 0.8125rem !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  padding: 0.45rem 0.9rem !important;
  margin: 0 !important;
  border-radius: 0.5rem !important;
  cursor: pointer !important;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease !important;
}

.pf-icon-tab:hover {
  color: #0f172a !important;
}

.pf-icon-tab.is-active {
  background: #ffffff !important;
  color: #0f172a !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08) !important;
}

.pf-icon-search {
  display: block !important;
  flex: 1 1 12rem !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
}

.pf-icon-search__input {
  width: 100% !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 0.5rem !important;
  padding: 0.5rem 0.75rem !important;
  font: inherit !important;
  font-size: 0.875rem !important;
  color: #0f172a !important;
  background: #fff !important;
  box-sizing: border-box !important;
}

.pf-icon-search__input:focus {
  outline: none !important;
  border-color: #60a5fa !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15) !important;
}

.pf-icon-empty {
  margin: 0.75rem 0 0 !important;
  font-size: 0.8125rem !important;
  color: #64748b !important;
  text-align: center !important;
}

.pf-icon-pane[hidden],
.pf-icon-pane.gen-hidden {
  display: none !important;
}

.pf-icon-dialog .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;
}

.gen-phone__qr-view {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.5rem;
  box-sizing: border-box;
  background: #ffffff;
  border-radius: inherit;
  overflow: hidden;
}

.gen-phone__qr-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-height: 100%;
  gap: 0.35rem;
}

.gen-phone__qr-stack--caption-above {
  flex-direction: column-reverse;
}

/* Phone preview: caption below QR, right-aligned (matches template “caption bottom-right” poster) */
.gen-phone__qr-stack--caption-end .gen-phone__frame-caption {
  text-align: right;
  align-self: flex-end;
  width: 100%;
}

.gen-phone__qr-cell {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.gen-phone__qr-fake {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 0.375rem;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gen-phone__qr-fake span {
  font-size: 0.625rem;
  font-weight: 700;
  color: #94a3b8;
}

/* Stepper (shared) */
.gen-stepper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.5rem;
}

.gen-stepper__step {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.gen-stepper__dot {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.gen-stepper__dot--active {
  background: #3b82f6;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.35);
}

.gen-stepper__dot--done {
  background: #ffffff;
  border: 2px solid #e2e8f0;
  color: #64748b;
}

.gen-stepper__dot--todo {
  background: #ffffff;
  border: 2px solid #e2e8f0;
  color: #cbd5e1;
}

.gen-stepper__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #94a3b8;
  white-space: nowrap;
}

.gen-stepper__label--active {
  color: #0f172a;
}

.gen-stepper__sep {
  color: #cbd5e1;
  font-size: 0.875rem;
  padding: 0 0.15rem;
}

/* Fixed footer bar (above page chrome; sidenav/backdrop use z-index 55–60) */
.gen-footer-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: #ffffff;
  border-top: 1px solid #e8ecf1;
  box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.06);
}

@media (min-width: 1024px) {
  .gen-footer-bar {
    left: 264px;
  }
}

.gen-footer-bar__left,
.gen-footer-bar__right {
  flex: 0 0 auto;
  min-width: 0;
}

.gen-footer-bar__center {
  flex: 1;
  min-width: 0;
  display: flex;
  justify-content: center;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 0.25rem;
}

.gen-footer-bar__center .gen-stepper {
  flex-shrink: 0;
}

.gen-footer-bar__back {
  font-size: 0.875rem;
  font-weight: 600;
  color: #64748b;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.35rem 0.5rem;
  font-family: inherit;
}

.gen-footer-bar__back:hover {
  color: #0f172a;
}

.gen-footer-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 1.35rem;
  border-radius: 0.625rem;
  font-size: 0.9375rem;
  font-weight: 700;
  font-family: "Roboto", ui-sans-serif, system-ui, sans-serif;
  cursor: pointer;
  border: none;
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.gen-footer-btn--primary {
  background: linear-gradient(180deg, #4a80ff 0%, #3b82f6 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
}

.gen-footer-btn--primary:hover {
  background: linear-gradient(180deg, #60a5fa 0%, #4a80ff 100%);
  box-shadow: 0 6px 18px rgba(59, 130, 246, 0.42);
}

.gen-footer-btn--primary:active {
  transform: translateY(1px);
}

.gen-design-section-head {
  margin: 0.25rem 0 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e8ecf1;
}

.gen-design-section-head__kicker {
  margin: 0 0 0.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.02em;
}

.gen-design-section-head__title {
  margin: 0 0 0.35rem;
  font-family: "Roboto", ui-sans-serif, system-ui, sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: #0f172a;
}

.gen-design-section-head__lead {
  margin: 0;
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.45;
}

.gen-design-form .gen-select {
  appearance: auto;
}

.gen-design-form .gen-select--caption-font {
  font-size: 0.95rem;
  line-height: 1.35;
  min-height: 2.75rem;
}

.gen-color-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.75rem;
}

.gen-color-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.gen-color-field--grow {
  flex: 1 1 10rem;
  min-width: 0;
}

.gen-caption-size {
  margin-top: 0.65rem;
}

.gen-color-input {
  width: 2.65rem;
  height: 2.65rem;
  padding: 0;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  cursor: pointer;
  background: #fff;
  overflow: hidden;
}

.gen-color-input::-webkit-color-swatch-wrapper {
  padding: 0.22rem;
}

.gen-color-input::-webkit-color-swatch {
  border: none;
  border-radius: 999px;
}

.gen-color-input::-moz-color-swatch {
  border: none;
  border-radius: 999px;
}

.gen-color-row--page-look .gen-color-field {
  min-width: 8.25rem;
}

.gen-color-row--page-look .gen-color-input {
  vertical-align: middle;
}

.gen-color-row--main-look {
  padding: 0.85rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.9rem;
  background: #f8fafc;
}

.gen-color-hex-input {
  width: 6.2rem;
  min-height: 2.35rem;
  margin-left: 0.45rem;
  padding-inline: 0.6rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.gen-subsection-title {
  margin: 0.9rem 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 800;
  color: #334155;
  letter-spacing: 0.02em;
}

.gen-page-look-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.9rem;
}

.gen-page-look-head .gen-subsection-title {
  margin: 0;
}

.gen-page-look-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  padding: 0;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #ffffff;
  color: #475569;
  cursor: pointer;
}

.gen-page-look-reset:hover {
  border-color: #94a3b8;
  color: #0f172a;
}

.gen-page-look-reset svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gen-page-look-hint {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #64748b;
}

.gen-page-look-hint--tight {
  margin-top: -0.2rem;
  margin-bottom: 0.5rem;
}

.gen-page-look-advanced-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0.8rem 0 0.15rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #ffffff;
  color: #334155;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
}

.gen-page-look-advanced-toggle:hover {
  border-color: #94a3b8;
  color: #0f172a;
}

.gen-page-look-advanced[hidden] {
  display: none !important;
}

.gen-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
}

.gen-range {
  width: 100%;
  margin-top: 0.35rem;
}

.gen-range-val {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 0.25rem;
}

.gen-logo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: stretch;
}

.gen-logo-preset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  padding: 0.25rem;
  border-radius: 0.5rem;
  border: 2px solid #e2e8f0;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.gen-logo-preset img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.gen-logo-preset:hover {
  border-color: #93c5fd;
}

.gen-logo-preset.is-active {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
}

.gen-logo-preset--none {
  font-size: 0.65rem;
  font-weight: 700;
  color: #64748b;
}

.gen-logo-preset--uploaded {
  position: relative;
}

/* Session upload tile: no layout until the user picks a file (see updateUploadedLogoPresetTile in qr_design_step). */
#genLogoUploadedPreset[hidden],
#genLogoUploadedPresetImg[hidden] {
  display: none !important;
}

.gen-logo-preset__remove {
  position: absolute;
  top: -0.35rem;
  right: -0.35rem;
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  line-height: 1;
  font-weight: 700;
  border: 1px solid #fff;
  cursor: pointer;
  z-index: 2;
}

.gen-template-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: stretch;
}

.gen-template-preset {
  padding: 0;
  border: 2px solid #e2e8f0;
  border-radius: 0.5rem;
  background: #f8fafc;
  cursor: pointer;
  overflow: hidden;
  width: 5.25rem;
  height: 5.25rem;
  flex-shrink: 0;
}

.gen-template-preset img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gen-template-preset:hover {
  border-color: #94a3b8;
}

.gen-template-preset.is-active {
  border-color: #3b82f6;
  box-shadow: 0 0 0 1px #3b82f6;
}

.gen-template-preset--none {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: #64748b;
}

.gen-url-preview-device {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.gen-url-preview-device .gen-phone {
  filter: drop-shadow(0 12px 22px rgba(15, 23, 42, 0.12));
}

.gen-upload--mt {
  margin-top: 1rem;
}

.gen-qr-mount {
  width: 100%;
  max-width: 220px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gen-qr-mount canvas,
.gen-qr-mount svg {
  max-width: 100% !important;
  height: auto !important;
}

.gen-qr-mount img.gen-qr-mount__existing {
  max-width: 100%;
  height: auto;
  border-radius: 0.35rem;
}

.gen-phone__frame-caption {
  margin: 0;
  text-align: center;
  line-height: 1.2;
  max-width: 100%;
  word-break: break-word;
}

.gen-phone__qr-cell--captioned {
  position: relative;
  width: 100%;
  flex-direction: column;
  align-items: center;
}

.gen-phone__frame-caption.gen-phone__frame-caption--inside {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  max-width: 88%;
  margin: 0;
  line-height: 1.15;
}

.gen-phone__frame-caption--inside.gen-phone__frame-caption--br {
  bottom: 1.1rem;
  right: 1.2rem;
  left: auto;
  top: auto;
  text-align: right;
}

.gen-phone__frame-caption--inside.gen-phone__frame-caption--bl {
  bottom: 0.2rem;
  left: 0.25rem;
  right: auto;
  top: auto;
  text-align: left;
}

.gen-phone__frame-caption--inside.gen-phone__frame-caption--tr {
  top: 0.2rem;
  right: 0.25rem;
  bottom: auto;
  left: auto;
  text-align: right;
}

.gen-phone__frame-caption--inside.gen-phone__frame-caption--tl {
  top: 0.2rem;
  left: 0.25rem;
  bottom: auto;
  right: auto;
  text-align: left;
}

@media (max-width: 640px) {
  .gen-footer-bar {
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 0.65rem;
  }

  .gen-footer-bar__left,
  .gen-footer-bar__right {
    order: unset;
    flex: 0 0 auto;
  }

  .gen-footer-bar__right {
    margin-left: 0;
  }

  .gen-footer-bar__center {
    order: unset;
    flex: 1 1 auto;
    flex-basis: auto;
    justify-content: center;
    padding-top: 0;
    min-width: 0;
    overflow: hidden;
  }

  .gen-footer-bar__center .gen-stepper {
    flex-wrap: nowrap;
    gap: 0;
    width: 100%;
    justify-content: center;
  }

  /* Mobile: show only the active step so Back + step + Next fit one row */
  .gen-footer-bar .gen-stepper__step:not(.gen-stepper__step--active) {
    display: none;
  }

  .gen-footer-bar .gen-stepper__sep {
    display: none;
  }

  .gen-footer-bar .gen-stepper__step--active {
    min-width: 0;
  }

  .gen-footer-bar .gen-stepper__label {
    font-size: 0.75rem;
    max-width: 6.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .gen-footer-bar .gen-stepper__dot {
    width: 1.65rem;
    height: 1.65rem;
    font-size: 0.6875rem;
  }

  .gen-footer-bar__back {
    font-size: 0.8125rem;
    padding: 0.25rem 0.15rem;
  }

  .gen-footer-bar .gen-footer-btn {
    padding: 0.55rem 0.85rem;
    font-size: 0.8125rem;
    white-space: nowrap;
  }
}

/* Subscription upgrade: solid colors so buttons stay visible if Tailwind omits utilities (e.g. violet-*) */
.subscription-pay-btn {
  border: 0;
  cursor: pointer;
  box-sizing: border-box;
}

.subscription-pay-btn--paymongo {
  background: #5b21b6;
  color: #fff;
}

.subscription-pay-btn--paymongo:hover {
  background: #4c1d95;
}

.subscription-pay-btn--paypal {
  background: #2563eb;
  color: #fff;
}

.subscription-pay-btn--paypal:hover {
  background: #1d4ed8;
}

/* Subscription pricing table (user/subscription.php) */
.subscription-pricing-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.25rem;
}

@media (min-width: 1024px) {
  .subscription-pricing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }
}

.subscription-pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 1.25rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  box-shadow: 0 10px 30px rgba(12, 18, 32, 0.06);
  padding: 1.35rem 1.25rem 1.25rem;
}

.subscription-pricing-card--featured {
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow:
    0 10px 30px rgba(12, 18, 32, 0.06),
    0 0 0 1px rgba(37, 99, 235, 0.12),
    0 12px 40px rgba(37, 99, 235, 0.12);
}

.subscription-pricing-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.subscription-pricing-card__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #0f172a;
}

.subscription-pricing-badge {
  flex-shrink: 0;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
}

.subscription-pricing-card__price {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-bottom: 0.5rem;
}

.subscription-pricing-card__amount {
  font-size: 1.75rem;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.1;
}

.subscription-pricing-card__period {
  font-size: 0.9rem;
  font-weight: 700;
  color: #64748b;
}

.subscription-pricing-card__subprice {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  color: #64748b;
}

.subscription-pricing-card__tagline {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  color: #475569;
  line-height: 1.45;
}

.subscription-pricing-card__includes {
  margin: 0 0 0.5rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #2563eb;
}

.subscription-pricing-card__alert {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.35;
}

.subscription-pricing-card__alert--success {
  color: #15803d;
}

.subscription-pricing-card__alert--warn {
  color: #b45309;
}

.subscription-pricing-features {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.8rem;
  color: #334155;
}

.subscription-pricing-features li {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.subscription-pricing-features__icon {
  flex-shrink: 0;
  width: 1.25rem;
  text-align: center;
}

.subscription-pricing-card__actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.subscription-pricing-card__actions form {
  margin: 0;
}

.subscription-pricing-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  padding: 0.65rem 0.9rem;
  font-size: 0.875rem;
  font-weight: 800;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
  box-sizing: border-box;
}

.subscription-pricing-btn--primary {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}

.subscription-pricing-btn--primary:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
}

.subscription-pricing-btn--outline {
  background: #fff;
  color: #2563eb;
  border-color: #2563eb;
}

.subscription-pricing-btn--outline:hover {
  background: #eff6ff;
}

.subscription-pricing-btn--ghost {
  background: #fff;
  color: #0f172a;
  border-color: #cbd5e1;
}

.subscription-pricing-btn--ghost:hover {
  background: #f8fafc;
}

.subscription-pricing-btn--muted {
  background: #fff;
  color: #0f172a;
  border-color: #e2e8f0;
}

.subscription-pricing-btn--muted:hover {
  background: #f8fafc;
}

.subscription-credits-panel {
  border-radius: 1.25rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  box-shadow: 0 10px 30px rgba(12, 18, 32, 0.06);
  padding: 1.25rem 1.25rem 1.35rem;
}

.subscription-credits-form {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.subscription-credits-form__row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.subscription-credits-label {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
}

.subscription-credits-input-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.subscription-credits-input {
  width: 8rem;
  border-radius: 0.75rem;
  border: 2px solid #e2e8f0;
  padding: 0.55rem 0.65rem;
  font-weight: 800;
  font-size: 1rem;
  color: #0f172a;
}

.subscription-credits-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.subscription-credits-summary {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.subscription-credits-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.subscription-credits-preset {
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.35rem 0.65rem;
  cursor: pointer;
}

.subscription-credits-preset:hover {
  background: #eff6ff;
  border-color: #93c5fd;
}

.subscription-credits-submit {
  max-width: 16rem;
}

.subscription-pricing-btn--paypalapi {
  background: #ffc439;
  color: #111827;
  border-color: #e6a800;
}

.subscription-pricing-btn--paypalapi:hover {
  background: #f0b82e;
  border-color: #d4a012;
}

.subscription-credits-submit--pp {
  max-width: 16rem;
}

/* Portfolio landing: icon picker dialog (generator) */
.pf-icon-dialog::backdrop {
  background: rgba(15, 23, 42, 0.45);
}

/* —— Generator hub: user/generator.php —— */
body.generator-hub-page {
  background: linear-gradient(165deg, #f5f7ff 0%, #eef2ff 38%, #f8fafc 100%);
}

/* Landing step-2: Next button saving overlay — above menu/store gallery modal (12000), import backdrop (10050), sticky table rows (999999) */
.dotqr-saving-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
}

.dotqr-saving-overlay__card {
  width: min(420px, 100%);
  border-radius: 0.85rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 18px 60px rgba(15, 23, 42, 0.25);
  padding: 1rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.dotqr-saving-overlay__spinner {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  border: 3px solid #e2e8f0;
  border-top-color: #4f46e5;
  animation: dotqr-spin 0.9s linear infinite;
}

.dotqr-saving-overlay__text {
  font-size: 0.9375rem;
  font-weight: 800;
  color: #0f172a;
}

@keyframes dotqr-spin {
  to { transform: rotate(360deg); }
}

/* Generator SweetAlert2: same stacking band as .dotqr-saving-overlay (menu/store step 2 modals use very high z-index) */
.swal2-container.dotqr-swal-on-top {
  z-index: 2000001 !important;
}

/* Oversized menu/menu-logo upload preview (SweetAlert2) */
.swal2-popup.dotqr-swal-menu-upload-tl {
  max-width: 22rem;
}

.dotqr-menu-upload-too-large {
  text-align: center;
  max-width: 100%;
}

.dotqr-menu-upload-too-large__frame {
  position: relative;
  display: inline-block;
  max-width: min(100%, 19rem);
  margin: 0 auto 0.75rem;
  border-radius: 0.5rem;
  overflow: hidden;
  background: #0f172a;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.dotqr-menu-upload-too-large__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 14rem;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.72;
}

.dotqr-menu-upload-too-large__badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: rgba(254, 243, 199, 0.95);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.35);
}

.dotqr-menu-upload-too-large__badge svg {
  display: block;
}

.dotqr-menu-upload-too-large__msg,
.dotqr-menu-upload-too-large__extra {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: #334155;
  text-align: center;
}

.dotqr-menu-upload-too-large__extra {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: #64748b;
}

.generator-hub-main {
  padding-bottom: 0.5rem;
}

.gen-hub-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.gen-hub-back {
  font-size: 0.875rem;
  font-weight: 700;
  color: #4f46e5;
  text-decoration: none;
  padding: 0.35rem 0.75rem;
  border-radius: 0.65rem;
  transition:
    background 0.18s ease,
    color 0.18s ease;
}

.gen-hub-back:hover {
  background: rgba(99, 102, 241, 0.12);
  color: #4338ca;
}

.gen-hub-hero {
  margin-bottom: 1.75rem;
  max-width: 42rem;
}

.gen-hub-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6366f1;
}

.gen-hub-hero__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}

.gen-hub-title {
  margin: 0;
  font-family: "Roboto", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
  line-height: 1.2;
}

.gen-hub-help {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #64748b;
  text-decoration: none;
  padding: 0.25rem 0.5rem;
  border-radius: 0.5rem;
  transition:
    color 0.15s ease,
    background 0.15s ease;
}

.gen-hub-help:hover {
  color: #4338ca;
  background: rgba(99, 102, 241, 0.08);
}

.gen-hub-lead {
  margin: 0.65rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #64748b;
}

.gen-picker-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .gen-picker-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem;
  }
}

@media (min-width: 1280px) {
  .gen-picker-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.gen-picker-form {
  margin: 0;
  padding: 0;
  display: block;
  height: 100%;
}

.gen-picker-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  min-height: 100%;
  padding: 1.1rem 1.15rem 1.1rem 1.15rem;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  text-decoration: none;
  color: #0f172a;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 4px 14px -4px rgba(15, 23, 42, 0.07);
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s ease,
    background 0.22s ease;
}

.gen-picker-card:hover {
  border-color: #a5b4fc;
  background: linear-gradient(145deg, #ffffff 0%, #f5f3ff 55%, #eef2ff 100%);
  box-shadow:
    0 4px 6px rgba(79, 70, 229, 0.07),
    0 16px 36px -12px rgba(79, 70, 229, 0.22);
  transform: translateY(-3px);
}

.gen-picker-card:focus-visible {
  outline: none;
  border-color: #818cf8;
  box-shadow:
    0 0 0 3px rgba(99, 102, 241, 0.35),
    0 8px 24px -8px rgba(79, 70, 229, 0.35);
}

.gen-picker-card--action {
  width: 100%;
  text-align: left;
  cursor: pointer;
  appearance: none;
  font: inherit;
  color: inherit;
}

.gen-picker-card__icon {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  line-height: 1;
  background: linear-gradient(145deg, #f1f5f9 0%, #e2e8f0 100%);
  border: 1px solid #e2e8f0;
  transition:
    background 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.gen-picker-card:hover .gen-picker-card__icon {
  background: linear-gradient(145deg, #eef2ff 0%, #e0e7ff 100%);
  border-color: #c7d2fe;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.15);
}

.gen-picker-card__icon--profile {
  background: linear-gradient(145deg, #dbeafe 0%, #bfdbfe 100%);
  border-color: #93c5fd;
}

.gen-picker-card:hover .gen-picker-card__icon--profile {
  background: linear-gradient(145deg, #bfdbfe 0%, #93c5fd 100%);
  border-color: #60a5fa;
}

.gen-picker-card__icon--dynamic {
  background: linear-gradient(145deg, #ede9fe 0%, #ddd6fe 100%);
  border-color: #c4b5fd;
}

.gen-picker-card:hover .gen-picker-card__icon--dynamic {
  background: linear-gradient(145deg, #ddd6fe 0%, #c4b5fd 100%);
  border-color: #a78bfa;
}

.gen-picker-card__icon--muted {
  background: #f1f5f9;
  border-color: #e2e8f0;
  opacity: 0.85;
}

.gen-picker-card__body {
  flex: 1;
  min-width: 0;
  padding-right: 1.5rem;
}

.gen-picker-card__title {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.gen-picker-card__desc {
  margin: 0.25rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #64748b;
}

.gen-picker-card__meta {
  margin-top: 0.45rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #64748b;
}

.gen-picker-card__cost {
  font-family: ui-monospace, monospace;
  font-weight: 800;
  color: #4338ca;
}

.gen-picker-card__meta--muted {
  color: #94a3b8;
  font-weight: 500;
}

.gen-hub-credits {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: #475569;
}

.gen-picker-card__chev {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
  pointer-events: none;
}

.gen-picker-card:hover .gen-picker-card__chev {
  color: #6366f1;
  transform: translateY(-50%) translateX(3px);
}

.gen-picker-card--disabled {
  opacity: 0.58;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}

.gen-picker-card--disabled:hover {
  border-color: #e2e8f0 !important;
  background: #ffffff !important;
  transform: none !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}

.gen-picker-card--disabled:hover .gen-picker-card__icon {
  background: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
  box-shadow: none !important;
}

.gen-picker-card--disabled .gen-picker-card__chev {
  display: none;
}

.gen-picker-card__lock {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #b45309;
}

.gen-hub-stepper {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.75rem;
  padding: 1rem 1rem 1.25rem;
  border-top: 1px solid #e2e8f0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, #ffffff 100%);
  box-shadow: 0 -8px 32px -12px rgba(15, 23, 42, 0.08);
}

.gen-hub-step {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  transition: background 0.18s ease;
}

.gen-hub-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 800;
  border: 2px solid #e2e8f0;
  background: #ffffff;
  color: #94a3b8;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}

.gen-hub-step__label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #94a3b8;
  transition: color 0.18s ease;
}

.gen-hub-step--current .gen-hub-step__num {
  border-color: #6366f1;
  background: linear-gradient(145deg, #6366f1 0%, #4f46e5 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}

.gen-hub-step--current .gen-hub-step__label {
  color: #0f172a;
}

.gen-hub-step__sep {
  width: 1.5rem;
  height: 2px;
  border-radius: 1px;
  background: linear-gradient(90deg, #e2e8f0, #cbd5e1);
  flex-shrink: 0;
}

@media (max-width: 639px) {
  .gen-hub-stepper {
    flex-direction: column;
    gap: 0.65rem;
  }

  .gen-hub-step__sep {
    width: 2px;
    height: 0.75rem;
    background: #e2e8f0;
  }
}

/* Portal sidenav — upgrade + theme toggle */
.dash-sidenav-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.dash-sidenav-upgrade {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  color: #ffffff !important;
  background: linear-gradient(180deg, #6366f1 0%, #4f46e5 100%);
  border: 1px solid #4338ca;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.dash-sidenav-upgrade:hover {
  background: linear-gradient(180deg, #818cf8 0%, #6366f1 100%);
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.45);
}

.dash-sidenav-upgrade__icon {
  font-size: 0.95rem;
  line-height: 1;
}

.dash-sidenav-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.6rem 0.85rem;
  border-radius: 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #cbd5e1;
  background: rgba(30, 41, 59, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.2);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.dash-sidenav-theme-toggle:hover {
  background: rgba(51, 65, 85, 0.85);
  border-color: rgba(148, 163, 184, 0.35);
  color: #f8fafc;
}

.dash-portal--light .dash-sidenav-theme-toggle {
  color: #475569;
  background: #ffffff;
  border-color: #e2e8f0;
}

.dash-portal--light .dash-sidenav-theme-toggle:hover {
  background: #f8fafc;
  color: #0f172a;
}

/* Dashboard — dark mode (default) */
.dash-portal--dark .text-slate-900,
.dash-portal--dark .text-slate-800,
.dash-portal:not(.dash-portal--light) .text-slate-900,
.dash-portal:not(.dash-portal--light) .text-slate-800 {
  color: #e2e8f0 !important;
}

.dash-portal--dark .text-slate-600,
.dash-portal--dark .text-slate-500,
.dash-portal--dark .text-slate-400,
.dash-portal:not(.dash-portal--light) .text-slate-600,
.dash-portal:not(.dash-portal--light) .text-slate-500,
.dash-portal:not(.dash-portal--light) .text-slate-400 {
  color: #94a3b8 !important;
}

.dash-portal--dark .dashboard-header-credits,
.dash-portal:not(.dash-portal--light) .dashboard-header-credits {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(30, 41, 59, 0.85);
  color: #cbd5e1;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.dash-portal--dark .dashboard-filter-open-btn,
.dash-portal:not(.dash-portal--light) .dashboard-filter-open-btn {
  border-color: rgba(148, 163, 184, 0.22) !important;
  background: rgba(30, 41, 59, 0.9) !important;
  color: #e2e8f0 !important;
}

.dash-portal--dark .dashboard-filter-open-btn:hover,
.dash-portal:not(.dash-portal--light) .dashboard-filter-open-btn:hover {
  background: rgba(51, 65, 85, 0.95) !important;
  border-color: rgba(148, 163, 184, 0.35) !important;
}

.dash-portal--dark .dash-sidebar-toggle,
.dash-portal:not(.dash-portal--light) .dash-sidebar-toggle {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(30, 41, 59, 0.9);
}

.dash-portal--dark .dash-sidebar-toggle path,
.dash-portal:not(.dash-portal--light) .dash-sidebar-toggle path {
  stroke: #e2e8f0;
}

.dash-portal--dark .dashboard-qr-type-tabs,
.dash-portal:not(.dash-portal--light) .dashboard-qr-type-tabs {
  background: rgba(30, 41, 59, 0.65);
  border-color: rgba(148, 163, 184, 0.16);
}

.dash-portal--dark .dashboard-qr-type-tab,
.dash-portal:not(.dash-portal--light) .dashboard-qr-type-tab {
  color: #94a3b8;
}

.dash-portal--dark .dashboard-qr-type-tab:hover,
.dash-portal:not(.dash-portal--light) .dashboard-qr-type-tab:hover {
  color: #e2e8f0;
  background: rgba(99, 102, 241, 0.12);
}

.dash-portal--dark .dashboard-qr-type-tab--active,
.dash-portal:not(.dash-portal--light) .dashboard-qr-type-tab--active {
  color: #eef2ff !important;
  background: rgba(99, 102, 241, 0.22) !important;
  box-shadow: inset 0 0 0 1px rgba(129, 140, 248, 0.35);
}

.dash-portal--dark .dashboard-qr-filter-form,
.dash-portal:not(.dash-portal--light) .dashboard-qr-filter-form {
  background: #111827;
  border-color: rgba(148, 163, 184, 0.16);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.dash-portal--dark .dashboard-qr-filter-form__title,
.dash-portal:not(.dash-portal--light) .dashboard-qr-filter-form__title {
  color: #f1f5f9;
}

.dash-portal--dark .dashboard-qr-filter-field__label,
.dash-portal:not(.dash-portal--light) .dashboard-qr-filter-field__label {
  color: #94a3b8;
}

.dash-portal--dark .dashboard-qr-filter-input,
.dash-portal:not(.dash-portal--light) .dashboard-qr-filter-input {
  color: #e2e8f0 !important;
  background: #0f172a !important;
  border-color: rgba(148, 163, 184, 0.22) !important;
}

.dash-portal--dark .dashboard-qr-filter-input:hover,
.dash-portal:not(.dash-portal--light) .dashboard-qr-filter-input:hover {
  background: #1e293b !important;
  border-color: rgba(148, 163, 184, 0.32) !important;
}

.dash-portal--dark .dashboard-qr-filter-input:focus,
.dash-portal:not(.dash-portal--light) .dashboard-qr-filter-input:focus {
  background: #1e293b !important;
  border-color: #818cf8 !important;
}

.dash-portal--dark .dashboard-filter-clear-link,
.dash-portal:not(.dash-portal--light) .dashboard-filter-clear-link {
  color: #cbd5e1 !important;
  background: #1e293b !important;
  border-color: rgba(148, 163, 184, 0.22) !important;
}

.dash-portal--dark .dashboard-qr-table-wrap,
.dash-portal:not(.dash-portal--light) .dashboard-qr-table-wrap {
  border-color: rgba(148, 163, 184, 0.16);
  background: #111827;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.dash-portal--dark .dashboard-qr-table-wrap__footer,
.dash-portal:not(.dash-portal--light) .dashboard-qr-table-wrap__footer {
  border-top-color: rgba(148, 163, 184, 0.14);
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.65) 0%, #111827 100%);
}

.dash-portal--dark .dashboard-qr-table__head-row,
.dash-portal:not(.dash-portal--light) .dashboard-qr-table__head-row {
  background: rgba(30, 41, 59, 0.98);
  border-bottom-color: rgba(148, 163, 184, 0.14);
}

.dash-portal--dark .dashboard-qr-table__th,
.dash-portal:not(.dash-portal--light) .dashboard-qr-table__th {
  color: #94a3b8 !important;
}

.dash-portal--dark .dashboard-qr-table thead th,
.dash-portal:not(.dash-portal--light) .dashboard-qr-table thead th {
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.98) 0%, rgba(15, 23, 42, 0.95) 100%) !important;
  box-shadow: 0 1px 0 rgba(148, 163, 184, 0.12);
}

.dash-portal--dark .dashboard-qr-table__body tr.dashboard-qr-table__row td,
.dash-portal:not(.dash-portal--light) .dashboard-qr-table__body tr.dashboard-qr-table__row td {
  border-bottom-color: rgba(148, 163, 184, 0.1);
  color: #e2e8f0;
}

.dash-portal--dark .dashboard-qr-table__row:hover,
.dash-portal:not(.dash-portal--light) .dashboard-qr-table__row:hover {
  background: rgba(99, 102, 241, 0.08);
}

.dash-portal--dark .dashboard-qr-bulk-bar,
.dash-portal:not(.dash-portal--light) .dashboard-qr-bulk-bar {
  background: #1e293b;
  border-color: rgba(129, 140, 248, 0.35);
  color: #e2e8f0;
}

.dash-portal--dark .dashboard-pagination,
.dash-portal:not(.dash-portal--light) .dashboard-pagination {
  background: rgba(30, 41, 59, 0.75);
  border-color: rgba(148, 163, 184, 0.14);
  color: #cbd5e1;
}

.dash-portal--dark .dashboard-pagination__btn,
.dash-portal:not(.dash-portal--light) .dashboard-pagination__btn {
  color: #cbd5e1;
  border-color: rgba(148, 163, 184, 0.2);
  background: #0f172a;
}

.dash-portal--dark .dashboard-pagination__btn:hover,
.dash-portal:not(.dash-portal--light) .dashboard-pagination__btn:hover {
  background: #1e293b;
  color: #f1f5f9;
}

.dash-portal--dark .dashboard-pagination__current,
.dash-portal:not(.dash-portal--light) .dashboard-pagination__current {
  color: #94a3b8;
}

.dash-portal--dark .dashboard-pagination__meta,
.dash-portal:not(.dash-portal--light) .dashboard-pagination__meta {
  color: #94a3b8;
}

.dash-portal--dark .dashboard-actions-drawer,
.dash-portal:not(.dash-portal--light) .dashboard-actions-drawer {
  background: #111827;
  border-color: rgba(148, 163, 184, 0.16);
}

.dash-portal--dark .dashboard-filter-backdrop:not([hidden]),
.dash-portal:not(.dash-portal--light) .dashboard-filter-backdrop:not([hidden]) {
  background: rgba(2, 6, 23, 0.72);
}

.dash-portal--dark .border-red-200,
.dash-portal:not(.dash-portal--light) .border-red-200 {
  border-color: rgba(248, 113, 113, 0.35) !important;
}

.dash-portal--dark .bg-red-50,
.dash-portal:not(.dash-portal--light) .bg-red-50 {
  background: rgba(127, 29, 29, 0.35) !important;
}

.dash-portal--dark .text-red-700,
.dash-portal:not(.dash-portal--light) .text-red-700 {
  color: #fca5a5 !important;
}

.dash-portal--dark .border-emerald-200,
.dash-portal:not(.dash-portal--light) .border-emerald-200 {
  border-color: rgba(52, 211, 153, 0.35) !important;
}

.dash-portal--dark .bg-emerald-50,
.dash-portal:not(.dash-portal--light) .bg-emerald-50 {
  background: rgba(6, 78, 59, 0.35) !important;
}

.dash-portal--dark .text-emerald-700,
.dash-portal:not(.dash-portal--light) .text-emerald-700 {
  color: #6ee7b7 !important;
}

