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

:root {
  --bg: #ffffff;
  --text: #0b1220;
  --muted: #5b6577;
  --border: rgba(12, 18, 32, 0.12);
  --blue: #245bff;
  --blue-2: #0f3dff;
  --blue-soft: rgba(36, 91, 255, 0.08);
  --card: #ffffff;
  --shadow: 0 10px 30px rgba(12, 18, 32, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Montserrat", 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;
}

.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(--blue);
  color: #fff;
  box-shadow: 0 12px 30px rgba(36, 91, 255, 0.22);
}
.nav-cta:hover {
  background: var(--blue-2);
}

.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(--blue);
  color: #fff;
  box-shadow: 0 14px 34px rgba(36, 91, 255, 0.22);
}
.btn-primary:hover {
  background: var(--blue-2);
}

.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;
}

.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;
}

.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: #f3f6fb;
}

.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: 14px;
  box-shadow: 0 14px 40px rgba(12, 18, 32, 0.07);
  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;
  }
}

/* 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;
  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;
  color: var(--text);
}

.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(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-right: 1px solid rgba(15, 23, 42, 0.07);
  box-shadow: 4px 0 40px rgba(15, 23, 42, 0.05);
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dash-sidenav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px 18px;
  margin: -4px -4px 0;
  border-bottom: 1px solid 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: #64748b;
  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;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease,
    transform 0.15s ease;
}

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

.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;
  font-weight: 600;
}

.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(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);
}

/* 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-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 {
  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;
}

@media (min-width: 768px) {
  .dashboard-qr-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

.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-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-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) {
  /* Tailwind overflow-x-auto on the wrap forces a scroll box; clip + stacking break the action menu */
  .dashboard-qr-table-wrap {
    overflow: visible !important;
    border: none;
    background: transparent;
    box-shadow: none;
  }

  .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;
  }

  .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.5rem;
    padding: 0.5rem 0.65rem;
    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),
      0 4px 14px rgba(15, 23, 42, 0.06);
    position: relative;
    z-index: 1;
  }

  .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: 1.125rem;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
  }

  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;
    z-index: 60;
    transform: none;
    transition: left 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  .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-sidenav-item {
  color: #64748b !important;
  font-weight: 500 !important;
}

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

.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-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-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-anonymous) .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;
  }

  .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-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-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;
}

/* 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;
}

.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;
}

/* 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;
}

/* Anonymous landing generator: same preview column + iframe behavior as portfolio */
@media (min-width: 768px) {
  .gen-url-page--landing-anonymous .gen-url-columns {
    grid-template-columns: minmax(0, 1fr) minmax(240px, min(320px, 38vw));
  }
}

.gen-url-page--landing-anonymous .gen-phone__frame {
  max-width: min(280px, 100%);
}

.gen-url-page--landing-anonymous .gen-phone__screen--landing {
  overflow: hidden;
}

.gen-url-page--landing-anonymous .gen-phone__preview-inner--landing {
  overflow: hidden;
  min-width: 0;
}

.gen-url-page--landing-anonymous .gen-phone__landing-iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.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-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.25rem;
  border-radius: 0.5rem;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  padding: 0.5rem;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.pf-preset-tile:hover {
  border-color: #93c5fd;
  background: #eff6ff;
}

.pf-preset-tile__img {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
}

.pf-preset-tile__label {
  font-size: 0.625rem;
  line-height: 1.2;
  text-align: center;
  color: #64748b;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}

.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-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: 3rem;
  height: 2.25rem;
  padding: 0;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  cursor: pointer;
  background: #fff;
}

.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-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: wrap;
  }

  .gen-footer-bar__center {
    order: 3;
    flex-basis: 100%;
    justify-content: center;
    padding-top: 0.25rem;
  }

  .gen-footer-bar__left {
    order: 1;
  }

  .gen-footer-bar__right {
    order: 2;
    margin-left: auto;
  }
}

/* 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);
}

