:root {
  --bg-1: #f7f1e8;
  --bg-2: #e4f6f3;
  --ink: #1f2933;
  --muted: #4b5563;
  --accent: #0f766e;
  --accent-strong: #115e59;
  --accent-warm: #f59e0b;
  --danger: #b91c1c;
  --card: rgba(255, 255, 255, 0.88);
  --border: rgba(17, 24, 39, 0.12);
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top, var(--bg-2), var(--bg-1) 55%);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
}

body::before,
body::after {
  content: "";
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  z-index: -1;
  filter: blur(0);
  opacity: 0.35;
  pointer-events: none;
}

body::before {
  top: -140px;
  right: -120px;
  background: radial-gradient(circle, #fcd34d, transparent 70%);
}

body::after {
  bottom: -180px;
  left: -140px;
  background: radial-gradient(circle, #5eead4, transparent 70%);
}

h1,
h2,
h3 {
  font-family: "Fraunces", "Times New Roman", serif;
  letter-spacing: -0.02em;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-strong);
}

.page-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav-shell {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.82));
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #1f2933;
  display: block;
}

.nav-backdrop {
  display: none;
}

.brand {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero {
  background:
    radial-gradient(circle at 22% 14%, rgba(255, 255, 255, 0.4), transparent 38%),
    radial-gradient(circle at 86% 88%, rgba(13, 148, 136, 0.2), transparent 46%),
    linear-gradient(122deg, #f8d54f 0%, #f3d865 35%, #b9e28e 70%, #8fe4d4 100%);
  color: #1b1b1b;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  box-shadow: 0 26px 58px rgba(15, 23, 42, 0.2);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -30% -50% -30%;
  height: 220px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.65), transparent 70%);
}

.home-hero {
  position: relative;
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
  text-align: left;
}

.hero-copy {
  max-width: 610px;
}

.hero-copy h1 {
  line-height: 0.95;
  max-width: 13ch;
}

.hero-copy p {
  max-width: 55ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.6rem;
}

.hero-meta > div {
  min-width: 112px;
  background: rgba(255, 255, 255, 0.34);
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 14px;
  padding: 0.55rem 0.75rem 0.62rem;
  backdrop-filter: blur(3px);
}

.hero-meta span {
  font-size: 1.2rem;
  font-weight: 700;
  display: block;
}

.hero-meta small {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.65rem;
  color: var(--muted);
}

.hero-panel {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 26px;
  padding: 1.4rem;
  box-shadow: 0 24px 44px rgba(15, 23, 42, 0.14);
  transform: translateY(4px);
}

.panel-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.panel-pill {
  background: rgba(15, 118, 110, 0.12);
  color: var(--accent-strong);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.panel-dots span {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.2);
  margin-left: 0.35rem;
}

.panel-body {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: center;
}

.qr-mock {
  width: 120px;
  height: 120px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background:
    linear-gradient(#111827, #111827) 10px 10px / 28px 28px no-repeat,
    linear-gradient(#111827, #111827) calc(100% - 38px) 10px / 28px 28px no-repeat,
    linear-gradient(#111827, #111827) 10px calc(100% - 38px) / 28px 28px no-repeat,
    #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 0 8px #fff;
}

.qr-mock::before {
  content: "";
  position: absolute;
  inset: 24px;
  background:
    repeating-linear-gradient(90deg, rgba(17, 24, 39, 0.8) 0 6px, transparent 6px 12px),
    repeating-linear-gradient(0deg, rgba(17, 24, 39, 0.8) 0 6px, transparent 6px 12px);
  border-radius: 8px;
  opacity: 0.7;
}

.panel-title {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  color: var(--muted);
}

.panel-url {
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 0.4rem;
}

.panel-metrics {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
}

.panel-metrics span {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.panel-metrics strong {
  display: block;
  margin-top: 0.35rem;
  font-size: 1.1rem;
}

.panel-footer {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(15, 23, 42, 0.1);
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--muted);
}

.demo-input {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0.6rem 0;
}

.demo-input input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.52rem 0.9rem;
  font-size: 0.85rem;
  background: rgba(248, 250, 252, 0.94);
  color: var(--ink);
}

.btn-sm {
  padding: 0.4rem 0.9rem;
  font-size: 0.8rem;
}

@media (min-width: 1100px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.07fr) minmax(0, 0.93fr);
    gap: 3rem;
  }
}

.section-header {
  max-width: 640px;
  margin: 0 auto;
}

.feature-grid,
.step-grid,
.usecase-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.feature-card,
.step-card,
.usecase-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 1.6rem;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.types-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.type-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 1.5rem;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.type-label {
  display: inline-flex;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-strong);
  background: rgba(15, 118, 110, 0.12);
  margin-bottom: 0.7rem;
}

.showcase-track {
  display: flex;
  gap: 1.4rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scroll-snap-type: x mandatory;
}

.showcase-card {
  flex: 0 0 250px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 1.5rem;
  scroll-snap-align: start;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.1);
}

.showcase-qr {
  width: 130px;
  height: 130px;
  border-radius: 18px;
  border: 1px solid var(--border);
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
}

.qr-theme-a {
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.2), rgba(253, 230, 138, 0.6));
}

.qr-theme-b {
  background: radial-gradient(circle at top, rgba(249, 115, 22, 0.5), transparent 60%),
    linear-gradient(135deg, #fff, rgba(253, 224, 71, 0.5));
}

.qr-theme-c {
  background: linear-gradient(180deg, #111827, #f9fafb);
}

.qr-theme-d {
  background: radial-gradient(circle, rgba(14, 116, 144, 0.2), transparent 60%),
    linear-gradient(135deg, rgba(5, 150, 105, 0.2), rgba(255, 255, 255, 0.8));
}

.qr-theme-e {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(59, 130, 246, 0.05));
}

.showcase-qr::after {
  content: "";
  position: absolute;
  inset: 20px;
  border-radius: 12px;
  background:
    repeating-linear-gradient(90deg, rgba(17, 24, 39, 0.6) 0 6px, transparent 6px 12px),
    repeating-linear-gradient(0deg, rgba(17, 24, 39, 0.6) 0 6px, transparent 6px 12px);
  opacity: 0.7;
}

.showcase-meta h4 {
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.analytics-preview {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.analytics-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 1.6rem;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.1);
}

.analytics-card.span-2 {
  grid-column: span 2;
}

.analytics-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.pill {
  background: rgba(15, 118, 110, 0.12);
  color: var(--accent-strong);
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.mini-bars {
  display: grid;
  grid-template-columns: repeat(14, 1fr);
  gap: 0.4rem;
  align-items: end;
  height: 130px;
  margin-top: 1rem;
}

.mini-bars span {
  height: var(--h);
  min-height: 10px;
  border-radius: 10px 10px 6px 6px;
  background: linear-gradient(180deg, rgba(15, 118, 110, 0.75), rgba(15, 118, 110, 0.2));
}

.mini-stats {
  display: flex;
  gap: 2rem;
  margin-top: 1.2rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.mini-stats strong {
  display: block;
  font-size: 1.1rem;
  color: var(--ink);
}

.stat-line {
  display: grid;
  grid-template-columns: 70px 1fr 50px;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.stat-line strong {
  text-align: right;
  color: var(--ink);
}

.rank-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.2rem;
  display: grid;
  gap: 0.6rem;
}

.rank-list li {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--muted);
}

.rank-list strong {
  color: var(--ink);
}

.heat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  max-width: 120px;
}

.heat-dot {
  width: 22px;
  height: 22px;
  border-radius: 8px;
  background: rgba(15, 118, 110, 0.15);
}

.heat-dot:nth-child(2),
.heat-dot:nth-child(5),
.heat-dot:nth-child(7) {
  background: rgba(15, 118, 110, 0.35);
}

.heat-dot:nth-child(3),
.heat-dot:nth-child(6),
.heat-dot:nth-child(9) {
  background: rgba(15, 118, 110, 0.55);
}

.trust-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.trust-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 1.6rem;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
}

.pricing-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.pricing-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 1.8rem;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.1);
  display: grid;
  gap: 0.8rem;
}

.pricing-card.featured {
  border: 2px solid rgba(15, 118, 110, 0.4);
  background: linear-gradient(160deg, rgba(15, 118, 110, 0.12), rgba(255, 255, 255, 0.95));
}

.pricing-tag {
  display: inline-flex;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: rgba(15, 118, 110, 0.15);
  color: var(--accent-strong);
  font-weight: 600;
  width: fit-content;
}

.price {
  font-size: 2rem;
  font-weight: 700;
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.4rem;
  color: var(--muted);
}

.btn-block {
  width: 100%;
  text-align: center;
}

.brand-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  justify-content: center;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
}

.testimonial-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 1.6rem;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
}

.testimonial-card strong {
  display: block;
  margin-top: 1rem;
  color: var(--ink);
}

.faq-grid {
  display: grid;
  gap: 1rem;
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 0.9rem 1.2rem;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin-top: 0.8rem;
  color: var(--muted);
}

.footer-form {
  display: grid;
  gap: 0.6rem;
  margin: 0.8rem 0 0.5rem;
}

.footer-form input {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.55rem 0.8rem;
  background: #fff;
}

.reset-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.reset-panel input {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.45rem 0.8rem;
  background: #fff;
  min-width: 220px;
}

.profile-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
}

.profile-avatar {
  width: 88px;
  height: 88px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: rgba(15, 118, 110, 0.12);
  color: var(--accent-strong);
  font-weight: 700;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-card h3,
.step-card h3,
.usecase-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(15, 118, 110, 0.12);
  color: var(--accent-strong);
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-panel {
  background: linear-gradient(120deg, rgba(15, 118, 110, 0.15), rgba(249, 115, 22, 0.15));
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-radius: 28px;
  padding: 2.4rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1);
}

.site-footer {
  background: rgba(255, 255, 255, 0.85);
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
}

.analytics-hero {
  background: linear-gradient(130deg, rgba(15, 118, 110, 0.12), rgba(249, 115, 22, 0.1));
}

.analytics-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.analytics-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 1.5rem;
}

.analytics-extra {
  margin-top: 1.5rem;
}

.analytics-extra-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.chart-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 1.5rem;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.1);
}

.bar-chart {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(26px, 1fr));
  gap: 0.5rem;
  align-items: end;
  min-height: 180px;
  padding: 0.5rem 0;
}

.bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  min-height: 160px;
  justify-content: flex-end;
}

.bar-fill {
  width: 100%;
  border-radius: 12px 12px 8px 8px;
  background: linear-gradient(180deg, rgba(15, 118, 110, 0.8), rgba(15, 118, 110, 0.2));
  min-height: 8px;
}

.bar strong {
  font-size: 0.75rem;
}

.bar span {
  font-size: 0.65rem;
  color: var(--muted);
  text-align: center;
}

.chart-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.chart-summary strong {
  color: var(--ink);
}

.metric-stack {
  display: grid;
  gap: 1rem;
}

.metric-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.2rem;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.metric-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.metric-row {
  display: grid;
  grid-template-columns: minmax(70px, 1fr) minmax(80px, 2fr) auto;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  padding: 0.35rem 0;
}

.progress {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, rgba(15, 118, 110, 0.6), rgba(15, 118, 110, 0.2));
}

.hour-grid {
  display: grid;
  grid-template-columns: repeat(24, minmax(0, 1fr));
  gap: 0.25rem;
  align-items: end;
  min-height: 120px;
}

.hour-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
  min-height: 110px;
}

.hour-bar-fill {
  width: 100%;
  min-height: 6px;
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, rgba(15, 118, 110, 0.8), rgba(15, 118, 110, 0.25));
}

.hour-bar span {
  font-size: 0.58rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.footer-grid h4 {
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.footer-links {
  display: grid;
  gap: 0.45rem;
}

.footer-links a {
  color: var(--muted);
}

.footer-bottom {
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  margin-top: 2rem;
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.85rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.12);
  color: var(--accent-strong);
  font-size: 0.85rem;
  font-weight: 600;
}

.glass-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
}

.dashboard-hero {
  background: linear-gradient(120deg, rgba(253, 230, 138, 0.6) 0%, rgba(94, 234, 212, 0.45) 60%, rgba(249, 115, 22, 0.2) 100%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  position: relative;
  overflow: hidden;
}

.dashboard-hero::after {
  content: "";
  position: absolute;
  inset: auto 10% -120px 10%;
  height: 200px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.6), transparent 70%);
  opacity: 0.9;
}

.stat-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.stat-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1rem 1.2rem;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: "";
  position: absolute;
  inset: -40% -20% auto -20%;
  height: 120px;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.12), transparent 70%);
  pointer-events: none;
}

.stat-label {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.65rem;
  color: var(--muted);
}

.stat-value {
  font-size: 1.9rem;
  font-weight: 700;
  margin-top: 0.25rem;
  font-family: "Fraunces", "Times New Roman", serif;
}

.stat-value-sm {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 0.35rem;
}

.stat-meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

.filter-card {
  backdrop-filter: blur(10px);
}

.vcard-media {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.vcard-shell {
  display: flex;
  justify-content: center;
}

.vcard-card {
  width: min(940px, 100%);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 2.5rem;
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.16);
  position: relative;
  overflow: hidden;
}

.vcard-card::before {
  content: "";
  position: absolute;
  inset: -140px -80px auto auto;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 118, 110, 0.18), transparent 70%);
  pointer-events: none;
}

.vcard-hero {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
}

.vcard-identity {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.vcard-avatar {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  background: rgba(15, 118, 110, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--accent-strong);
  overflow: hidden;
  border: 1px solid var(--border);
}

.vcard-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vcard-name {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 0.4rem;
}

.vcard-title {
  font-size: 1rem;
  color: var(--muted);
  margin-top: 0.4rem;
}

.vcard-brand {
  max-height: 72px;
  max-width: 200px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0.4rem 0.6rem;
}

.vcard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2rem;
}

.vcard-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 2rem;
}

.vcard-section {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.3rem;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.vcard-section h2 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 0.8rem;
}

.vcard-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  align-items: flex-start;
}

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

.vcard-row span {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  min-width: 130px;
  flex: 0 0 130px;
}

.vcard-row a,
.vcard-row p {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  text-align: right;
  word-break: break-word;
  overflow-wrap: anywhere;
  flex: 1;
  max-width: 100%;
}

.vcard-photo {
  width: 96px;
  height: 96px;
  border-radius: 18px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: #fff;
}

.vcard-logo {
  max-height: 64px;
  max-width: 180px;
  object-fit: contain;
  border-radius: 12px;
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--border);
  background: #fff;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(15, 118, 110, 0.12);
  color: var(--accent-strong);
}

.chip-muted {
  background: rgba(148, 163, 184, 0.25);
  color: var(--muted);
}

.chip-accent {
  background: rgba(16, 185, 129, 0.18);
  color: #0f766e;
}

.table-meta {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  padding: 0.6rem 0.8rem;
}

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

@media (min-width: 1200px) {
  .widget-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.onboarding-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(236, 251, 247, 0.78));
}

.onboarding-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.onboarding-badge {
  border: 1px solid rgba(15, 118, 110, 0.25);
  background: rgba(15, 118, 110, 0.08);
  border-radius: 16px;
  padding: 0.65rem 0.85rem;
  min-width: 122px;
  text-align: right;
}

.onboarding-badge strong {
  display: block;
  font-size: 1.35rem;
  font-family: "Fraunces", "Times New Roman", serif;
  color: var(--accent-strong);
}

.onboarding-badge span {
  font-size: 0.72rem;
  color: var(--muted);
}

.onboarding-progress {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.onboarding-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0f766e, #10b981);
}

.onboarding-steps {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.onboarding-step {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.7rem 0.8rem;
  background: rgba(255, 255, 255, 0.86);
}

.onboarding-step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.45rem;
}

.onboarding-step strong {
  font-size: 0.86rem;
}

.onboarding-step.is-done {
  border-color: rgba(16, 185, 129, 0.38);
}

.widget-card {
  padding: 1.15rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 252, 0.92));
}

.widget-card::before {
  content: "";
  position: absolute;
  inset: -55% auto auto -35%;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 118, 110, 0.12), transparent 70%);
  pointer-events: none;
}

.widget-card-recent::before {
  background: radial-gradient(circle, rgba(59, 130, 246, 0.14), transparent 70%);
}

.widget-card-top::before {
  background: radial-gradient(circle, rgba(245, 158, 11, 0.18), transparent 70%);
}

.widget-card-leads::before {
  background: radial-gradient(circle, rgba(16, 185, 129, 0.18), transparent 70%);
}

.widget-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.7rem;
  margin-bottom: 0.95rem;
}

.widget-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.widget-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(15, 118, 110, 0.28);
  background: rgba(15, 118, 110, 0.08);
  color: var(--accent-strong);
  flex-shrink: 0;
}

.widget-icon svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.widget-card-recent .widget-icon {
  border-color: rgba(59, 130, 246, 0.3);
  background: rgba(59, 130, 246, 0.1);
  color: #1d4ed8;
}

.widget-card-top .widget-icon {
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.14);
  color: #b45309;
}

.widget-card-leads .widget-icon {
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.14);
  color: #047857;
}

.widget-head h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
}

.widget-head-sub {
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.widget-link,
.widget-link-static {
  display: inline-flex;
  align-items: center;
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1;
}

.widget-link {
  color: var(--accent-strong);
}

.widget-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

.widget-link-static {
  color: var(--muted);
}

.widget-list {
  display: grid;
  gap: 0.62rem;
}

.widget-item {
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 14px;
  padding: 0.74rem 0.82rem;
  background: rgba(255, 255, 255, 0.9);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.widget-item:hover {
  border-color: rgba(15, 118, 110, 0.32);
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

.widget-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.widget-item strong {
  font-size: 0.9rem;
}

.widget-sub {
  margin-top: 0.24rem;
  font-size: 0.77rem;
  color: var(--muted);
  line-height: 1.4;
}

.widget-empty {
  border: 1px dashed rgba(15, 23, 42, 0.24);
  border-radius: 14px;
  padding: 1rem;
  color: var(--muted);
  font-size: 0.88rem;
  background: rgba(255, 255, 255, 0.58);
}

.widget-empty strong {
  display: block;
  color: var(--ink);
  font-size: 0.96rem;
}

.widget-empty p {
  margin-top: 0.4rem;
}

.widget-empty-actions {
  margin-top: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.results-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.38rem 0.74rem;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.1);
  border: 1px solid rgba(15, 118, 110, 0.2);
  color: var(--accent-strong);
  font-size: 0.8rem;
  font-weight: 600;
}

.dashboard-filter-form {
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  padding-top: 0.95rem;
}

.dashboard-filter-form label {
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.rules-overview-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.rules-overview-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 0.95rem 1.05rem;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.rules-overview-card span {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.rules-overview-card strong {
  display: block;
  margin-top: 0.35rem;
  font-size: 1.45rem;
  font-family: "Fraunces", "Times New Roman", serif;
}

.rules-overview-card p {
  margin-top: 0.2rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.rule-builder {
  display: grid;
  gap: 1rem;
}

.rule-builder-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.rule-template-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.template-chip {
  border: 1px solid rgba(15, 118, 110, 0.25);
  color: var(--accent-strong);
  background: rgba(15, 118, 110, 0.08);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1;
}

.template-chip:hover {
  background: rgba(15, 118, 110, 0.16);
}

.template-hero {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  align-items: start;
}

.template-hero-metrics {
  display: grid;
  gap: 0.55rem;
}

.template-metric {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0.7rem 0.85rem;
}

.template-metric span {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.template-metric strong {
  display: block;
  margin-top: 0.3rem;
  font-size: 1.4rem;
  font-family: "Fraunces", "Times New Roman", serif;
}

.template-section-head h2 {
  margin: 0;
  font-size: 1.5rem;
}

.template-section-head p {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

.template-featured-grid {
  margin-top: 0.8rem;
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.template-featured-card {
  border: 1px solid rgba(15, 118, 110, 0.2);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(233, 249, 245, 0.86));
  border-radius: 18px;
  padding: 0.9rem;
  display: grid;
  gap: 0.45rem;
  color: var(--ink);
}

.template-featured-card strong {
  font-size: 1.02rem;
}

.template-featured-action {
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 600;
}

.template-featured-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 32px rgba(15, 118, 110, 0.13);
}

.template-toolbar {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: minmax(0, 2fr) minmax(180px, 1fr) auto;
  align-items: end;
}

.template-toolbar-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.template-category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.template-market-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.template-market-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.12);
}

.template-quick-row {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.template-quick-link {
  border: 1px solid rgba(15, 118, 110, 0.25);
  color: var(--accent-strong);
  background: rgba(15, 118, 110, 0.08);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1;
}

.template-quick-link:hover {
  background: rgba(15, 118, 110, 0.16);
}

.tutorial-hero {
  overflow: hidden;
}

.tutorial-hero-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: minmax(0, 2fr) minmax(230px, 1fr);
  align-items: stretch;
}

.tutorial-hero-panel {
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.75);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.tutorial-hero-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.tutorial-hero-panel strong {
  font-size: 1.8rem;
  line-height: 1.1;
  font-family: "Fraunces", "Times New Roman", serif;
  color: var(--accent-strong);
}

.tutorial-hero-panel p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.tutorial-hero-actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tutorial-menu-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tutorial-menu-card {
  border: 1px solid var(--border);
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.95), rgba(241, 255, 252, 0.82));
  border-radius: 18px;
  padding: 1rem;
  display: grid;
  gap: 0.36rem;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  color: var(--ink);
}

.tutorial-menu-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(15, 118, 110, 0.16);
}

.tutorial-menu-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #0f766e;
  background: rgba(15, 118, 110, 0.12);
  border: 1px solid rgba(15, 118, 110, 0.2);
}

.tutorial-menu-card strong {
  font-size: 1.05rem;
  color: #0f172a;
}

.tutorial-menu-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.tutorial-menu-link {
  margin-top: 0.1rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-strong);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tutorial-section {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(249, 253, 252, 0.92));
}

.tutorial-section-head {
  padding-bottom: 0.25rem;
}

.tutorial-back-btn {
  white-space: nowrap;
}

.tutorial-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: tutorial-step;
  display: grid;
  gap: 0.62rem;
}

.tutorial-steps li {
  counter-increment: tutorial-step;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  padding: 0.7rem 0.78rem 0.7rem 2.65rem;
  position: relative;
  color: #334155;
  font-size: 0.95rem;
}

.tutorial-steps li::before {
  content: counter(tutorial-step);
  position: absolute;
  left: 0.72rem;
  top: 0.64rem;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #0f766e;
  background: rgba(15, 118, 110, 0.14);
  border: 1px solid rgba(15, 118, 110, 0.24);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tutorial-actions .btn {
  min-width: 154px;
  justify-content: center;
}

.tutorial-help {
  border-style: dashed;
}

.rules-list {
  display: grid;
  gap: 1rem;
}

.rule-item {
  display: grid;
  gap: 1rem;
}

.rule-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.rule-item-head h3 {
  margin: 0.35rem 0 0;
  font-size: 1.08rem;
}

.rule-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.24rem 0.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  background: rgba(15, 118, 110, 0.12);
  color: var(--accent-strong);
}

.rule-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
}

.rule-form-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.rule-actions-row {
  display: flex;
  align-items: flex-end;
}

.rule-delete-form {
  display: flex;
  justify-content: flex-end;
}

@media (min-width: 768px) and (max-width: 1023px) {
  .rule-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
  }
}

@media (min-width: 1024px) {
  .rule-form-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    align-items: end;
  }

  .rule-actions-row {
    justify-content: flex-end;
  }
}

@media (max-width: 768px) {
  .rules-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rules-hero-actions {
    width: 100%;
  }

  .rules-hero-actions .btn {
    width: 100%;
  }

  .rule-builder-head {
    flex-direction: column;
    align-items: stretch;
  }

  .template-hero {
    grid-template-columns: 1fr;
  }

  .template-toolbar {
    grid-template-columns: 1fr;
  }

  .template-toolbar-actions {
    justify-content: stretch;
  }

  .template-toolbar-actions .btn {
    flex: 1;
  }

  .rule-template-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.25rem;
  }

  .template-chip {
    flex: 0 0 auto;
    white-space: nowrap;
  }

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

  .tutorial-hero-grid {
    grid-template-columns: 1fr;
  }

  .rule-item-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .rule-meta {
    justify-content: flex-start;
  }

  .rule-form-grid {
    gap: 0.6rem;
  }

  .rule-actions-row,
  .rule-delete-form {
    justify-content: stretch;
  }

  .rule-actions-row .btn,
  .rule-delete-form .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .rules-overview-grid {
    grid-template-columns: 1fr;
  }

  .tutorial-menu-grid {
    grid-template-columns: 1fr;
  }

  .tutorial-menu-card strong {
    font-size: 0.98rem;
  }

  .tutorial-steps li {
    font-size: 0.9rem;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 20px rgba(15, 118, 110, 0.25);
}

.btn-primary:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
}

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
}

.btn-ghost:hover {
  transform: translateY(-1px);
}

.btn-warn {
  color: var(--danger);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="tel"],
textarea,
select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.7rem 0.9rem;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

input[type="color"] {
  width: 42px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.label {
  font-weight: 600;
  color: var(--ink);
}

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

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

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

thead tr {
  background: rgba(15, 118, 110, 0.08);
}

th {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
  color: var(--muted);
}

th,
td {
  padding: 0.85rem 1rem;
}

tbody tr {
  border-top: 1px solid rgba(17, 24, 39, 0.08);
}

tbody tr:hover {
  background: rgba(255, 255, 255, 0.7);
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.6s ease forwards;
}

.delay-1 {
  animation-delay: 0.1s;
}

.delay-2 {
  animation-delay: 0.2s;
}

.delay-3 {
  animation-delay: 0.3s;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .delay-1,
  .delay-2,
  .delay-3 {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 768px) {
  .hero {
    border-radius: 22px;
  }

  .hero-copy h1 {
    line-height: 1.01;
    max-width: none;
  }

  .hero-copy p {
    max-width: none;
  }

  .hero-meta {
    width: 100%;
    gap: 0.7rem;
  }

  .hero-meta > div {
    flex: 1 1 calc(50% - 0.7rem);
    min-width: 130px;
  }

  .dashboard-hero {
    border-radius: 18px;
  }

  .stat-value {
    font-size: 1.5rem;
  }

  .hero-grid {
    text-align: center;
  }

  .hero-actions,
  .hero-meta {
    justify-content: center;
  }

  .panel-body {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .panel-metrics {
    justify-content: center;
  }

  .panel-footer {
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
  }

  .hero-panel {
    transform: none;
  }

  .demo-input {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-panel {
    text-align: center;
    justify-content: center;
  }

  .profile-hero {
    text-align: center;
    justify-content: center;
  }

  .analytics-preview {
    grid-template-columns: 1fr;
  }

  .analytics-card.span-2 {
    grid-column: span 1;
  }

  .mini-stats {
    flex-direction: column;
    gap: 0.6rem;
  }

  .stat-line {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  .stat-line strong {
    text-align: left;
  }

  .analytics-grid {
    grid-template-columns: 1fr;
  }

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

  .metric-row strong {
    justify-self: start;
  }

  .vcard-card {
    padding: 1.6rem;
  }

  .vcard-identity {
    flex-direction: column;
    align-items: flex-start;
  }

  .vcard-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .vcard-row a,
  .vcard-row p {
    text-align: left;
  }

  .vcard-row span {
    min-width: 0;
    flex: none;
  }

  .widget-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .widget-link-static {
    font-size: 0.72rem;
  }

  .results-pill {
    align-self: flex-start;
  }

  .widget-empty-actions .btn {
    width: 100%;
  }

  .onboarding-head {
    flex-direction: column;
    align-items: stretch;
  }

  .onboarding-badge {
    text-align: left;
    width: 100%;
  }

  .onboarding-steps {
    grid-template-columns: 1fr;
  }

  .dashboard-filter-form {
    padding-top: 0.75rem;
  }
}

/* UX Enhancement Pack */
html {
  scroll-behavior: smooth;
}

body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(15, 118, 110, 0.2);
  color: #0b3b39;
}

.nav-shell {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.07);
}

.nav-shell .page-shell {
  max-width: 1320px;
  gap: 0.9rem;
}

.nav-shell .nav-actions {
  display: flex;
  flex: 1;
  min-width: 0;
  margin-left: auto;
  align-items: center;
  justify-content: flex-start;
  gap: 0.45rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 2px;
}

.nav-shell .nav-actions form {
  margin: 0;
  display: inline-flex;
}

.nav-shell .nav-actions .btn {
  white-space: nowrap;
  padding: 0.58rem 0.95rem;
  font-size: 0.9rem;
}

.nav-shell .nav-actions .muted {
  display: none;
  white-space: nowrap;
  font-size: 0.95rem;
  margin-right: 0.4rem !important;
}

.nav-shell .nav-actions::-webkit-scrollbar {
  display: none;
}

.nav-shell-admin .page-shell {
  justify-content: flex-start;
}

.nav-shell-admin .nav-actions {
  margin-left: 1rem;
  justify-content: flex-start;
}

.admin-subnav-shell {
  position: sticky;
  top: 72px;
  z-index: 55;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
  overflow: visible;
}

.admin-subnav-wrap {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.7rem;
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}

.admin-subnav-links {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  overflow: visible;
  white-space: normal;
  flex: 1;
  min-width: 0;
  scrollbar-width: none;
  padding-right: 0.35rem;
}

.admin-subnav-links::-webkit-scrollbar {
  display: none;
}

.admin-subnav-search {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  justify-content: flex-start;
  width: 100%;
}

.admin-subnav-search input {
  min-height: 40px;
  width: min(460px, 100%);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.5rem 0.8rem;
  background: rgba(255, 255, 255, 0.94);
  font-size: 0.88rem;
}

.admin-subnav-links .btn {
  margin-right: 0;
  padding: 0.5rem 0.86rem;
  font-size: 0.84rem;
}

.admin-subnav-links .btn-primary {
  color: #fff !important;
}

.admin-subnav-links .btn-primary,
.admin-subnav-links .nav-current {
  color: #ffffff !important;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
}

.admin-header-card {
  border-radius: 24px;
}

.admin-header-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.admin-header-content {
  max-width: 72ch;
}

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

.admin-header-actions .btn {
  padding: 0.58rem 0.95rem;
  font-size: 0.86rem;
}

.admin-status-strip {
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.admin-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.34rem 0.56rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 118, 110, 0.16);
  background: rgba(255, 255, 255, 0.62);
  font-size: 0.73rem;
  line-height: 1;
}

.admin-status-label {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.admin-status-value {
  color: var(--ink);
  font-weight: 700;
}

.admin-status-chip.is-ok {
  border-color: rgba(15, 118, 110, 0.34);
  background: rgba(20, 184, 166, 0.14);
}

.admin-status-chip.is-warn {
  border-color: rgba(245, 158, 11, 0.45);
  background: rgba(245, 158, 11, 0.12);
}

.admin-status-chip.is-danger {
  border-color: rgba(185, 28, 28, 0.45);
  background: rgba(185, 28, 28, 0.1);
}

.admin-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--muted);
}

.admin-breadcrumbs a {
  color: var(--accent);
}

.admin-breadcrumb-sep {
  opacity: 0.55;
}

.admin-breadcrumb-current {
  font-weight: 600;
  color: var(--ink);
}

.sticky-action-bar {
  position: sticky;
  top: 132px;
  z-index: 30;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-radius: 14px;
}

.admin-sidebar {
  display: none;
}

.admin-sidebar-card {
  padding: 0.9rem;
}

.admin-sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.admin-sidebar-links .btn {
  justify-content: flex-start;
  width: 100%;
}

@media (min-width: 901px) {
  .nav-shell .nav-actions {
    justify-content: flex-start;
  }

  .nav-shell .nav-actions > * {
    flex: 0 0 auto;
  }

  .nav-shell .nav-actions .muted {
    white-space: nowrap;
  }

}

@media (min-width: 1200px) {
  .admin-subnav-shell {
    display: none;
  }

  .admin-sidebar {
    display: block;
    position: fixed;
    top: 86px;
    left: 12px;
    width: 214px;
    z-index: 52;
  }

  .admin-sidebar ~ .page-shell {
    max-width: min(1220px, calc(100vw - 260px));
    width: calc(100vw - 250px);
    margin-left: 238px;
    margin-right: 12px;
  }

  .sticky-action-bar {
    top: 18px;
  }

  .admin-header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
  }

  .admin-header-actions {
    justify-content: flex-end;
  }
}

@media (min-width: 1450px) {
  .admin-sidebar {
    left: max(12px, calc((100vw - 1320px) / 2));
    width: 220px;
  }

  .admin-sidebar ~ .page-shell {
    max-width: 1220px;
    width: auto;
    margin-left: max(246px, calc((100vw - 1320px) / 2 + 234px));
    margin-right: max(12px, calc((100vw - 1320px) / 2));
  }
}

@media (max-width: 1350px) and (min-width: 1200px) {
  .admin-sidebar {
    width: 196px;
  }

  .admin-sidebar ~ .page-shell {
    width: calc(100vw - 226px);
    margin-left: 214px;
  }

  .admin-sidebar-links .btn {
    font-size: 0.82rem;
    padding: 0.48rem 0.7rem;
  }
}

@media (min-width: 901px) and (max-width: 1180px) {
  .nav-shell .nav-actions {
    gap: 0.45rem;
  }

  .nav-shell .nav-actions .muted {
    display: none;
  }

  .nav-shell .nav-actions .btn {
    padding: 0.6rem 1rem;
    font-size: 0.88rem;
  }

  .admin-subnav-links .btn {
    padding: 0.45rem 0.74rem;
    font-size: 0.8rem;
  }
}

a,
button,
input,
select,
textarea {
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.23);
}

.btn {
  border: 1px solid transparent;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #11857c);
  border-color: rgba(15, 118, 110, 0.8);
}

.btn-primary:hover {
  box-shadow: 0 16px 26px rgba(15, 118, 110, 0.27);
}

.btn-ghost {
  backdrop-filter: blur(6px);
}

.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="datetime-local"],
textarea,
select {
  min-height: 44px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

textarea {
  min-height: 98px;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="password"]::placeholder,
input[type="url"]::placeholder,
input[type="tel"]::placeholder,
input[type="number"]::placeholder,
textarea::placeholder {
  color: #94a3b8;
}

input[type="text"]:hover,
input[type="email"]:hover,
input[type="password"]:hover,
input[type="url"]:hover,
input[type="tel"]:hover,
input[type="number"]:hover,
input[type="date"]:hover,
input[type="datetime-local"]:hover,
textarea:hover,
select:hover {
  border-color: rgba(15, 118, 110, 0.35);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="url"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="datetime-local"]:focus,
textarea:focus,
select:focus {
  border-color: rgba(15, 118, 110, 0.8);
  background: #ffffff;
}

input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--accent);
}

.glass-card {
  backdrop-filter: blur(8px);
}

.bg-red-100.text-red-700,
.bg-green-100.text-green-700 {
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.table-wrap {
  border-radius: 18px;
  border: 1px solid var(--border);
}

.table-wrap table {
  min-width: 760px;
}

thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(221, 247, 242, 0.95), rgba(236, 253, 250, 0.95));
  backdrop-filter: blur(6px);
}

tbody tr td {
  vertical-align: top;
}

.table-wrap .btn {
  padding: 0.48rem 0.88rem;
  font-size: 0.78rem;
}

.chip {
  border: 1px solid rgba(15, 118, 110, 0.15);
}

.empty-state h3 {
  font-size: 1.35rem;
  font-weight: 700;
  font-family: "Fraunces", "Times New Roman", serif;
}

.empty-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.quickstart-card {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.96), rgba(232, 252, 246, 0.82));
}

.quickstart-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.quickstart-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.quickstart-step {
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.86);
  border-radius: 14px;
  padding: 0.85rem;
}

.quickstart-step.is-done {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.14), rgba(255, 255, 255, 0.92));
}

.quickstart-step-index {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.67rem;
  color: #64748b;
  margin-bottom: 0.28rem;
}

.quickstart-step-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.quickstart-next {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  border-top: 1px dashed rgba(15, 23, 42, 0.18);
  padding-top: 0.8rem;
}

.quickstart-next-label {
  color: #64748b;
  font-size: 0.85rem;
}

.smart-empty-checklist {
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.74);
  padding: 0.85rem 0.95rem;
}

.smart-empty-title {
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.smart-empty-checklist ol {
  margin: 0;
  padding-left: 1rem;
  color: #475569;
  display: grid;
  gap: 0.22rem;
}

.mobile-sticky-cta {
  display: none;
}

.create-page {
  --builder-gap: 1.15rem;
  max-width: 1180px;
}

.create-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  position: relative;
  z-index: 1;
}

.create-hero h1 {
  line-height: 1.05;
}

.create-stepper {
  display: grid;
  grid-template-columns: repeat(4, minmax(92px, 1fr));
  gap: 0.45rem;
  min-width: min(100%, 470px);
}

.create-step-tab {
  border: 1px solid rgba(15, 118, 110, 0.18);
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink);
  border-radius: 14px;
  padding: 0.62rem 0.68rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 48px;
  text-align: left;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.create-step-tab span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 118, 110, 0.1);
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 700;
  flex: 0 0 auto;
}

.create-step-tab strong {
  font-size: 0.82rem;
  line-height: 1.1;
}

.create-step-tab:hover,
.create-step-tab.is-active {
  border-color: rgba(15, 118, 110, 0.45);
  background: rgba(255, 255, 255, 0.94);
  transform: translateY(-1px);
}

.create-step-tab.is-active span,
.create-step-tab.is-complete span {
  background: var(--accent);
  color: #fff;
}

.create-builder-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.8fr);
  gap: 1.15rem;
  align-items: start;
  margin-top: 1.1rem;
}

.create-form-card,
.create-preview-card {
  height: fit-content;
}

.create-builder-panel {
  display: grid;
  gap: var(--builder-gap);
  min-height: 540px;
}

.create-step-panel {
  display: grid;
  gap: var(--builder-gap);
}

.create-step-panel[hidden] {
  display: none;
}

.create-panel-head,
.create-preview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.create-panel-head h2,
.create-preview-head h2 {
  margin: 0.15rem 0 0;
  font-size: 1.45rem;
  line-height: 1.1;
}

.create-preview-meta {
  margin-top: 0.22rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.qr-type-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.65rem;
}

.qr-type-card {
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.82);
  border-radius: 14px;
  padding: 0.78rem 0.82rem;
  text-align: left;
  min-height: 76px;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.qr-type-card span {
  display: inline-flex;
  color: var(--accent-strong);
  font-weight: 700;
  font-size: 0.78rem;
  margin-bottom: 0.35rem;
}

.qr-type-card strong {
  display: block;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.2;
}

.qr-type-card:hover,
.qr-type-card.is-active {
  border-color: rgba(15, 118, 110, 0.45);
  background: rgba(236, 253, 245, 0.86);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.create-type-select,
.create-form-card input,
.create-form-card select,
.create-form-card textarea {
  background-color: rgba(255, 255, 255, 0.9);
}

.create-form-card input,
.create-form-card select,
.create-form-card textarea {
  min-height: 44px;
}

.create-form-card input[type="checkbox"],
.create-form-card input[type="color"],
.create-form-card input[type="file"] {
  min-height: auto;
}

.create-form-card input[type="file"] {
  width: 100%;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.create-form-card input[type="file"]::file-selector-button {
  border: 1px solid rgba(15, 118, 110, 0.28);
  background: rgba(15, 118, 110, 0.08);
  color: var(--accent-strong);
  border-radius: 10px;
  padding: 0.45rem 0.72rem;
  margin-right: 0.7rem;
  font-weight: 700;
}

.create-password-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.55rem;
  align-items: center;
}

.create-password-field .btn {
  min-height: 42px;
  padding-inline: 0.9rem;
}

.create-field-note {
  border: 1px solid rgba(245, 158, 11, 0.25);
  background: rgba(255, 251, 235, 0.8);
  color: #7c4a03;
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
  font-size: 0.84rem;
  line-height: 1.45;
}

.create-campaign-note {
  border: 1px solid rgba(15, 118, 110, 0.18);
  background: rgba(240, 253, 250, 0.68);
  border-radius: 14px;
  padding: 0.9rem;
}

.create-campaign-note strong {
  display: block;
  margin-bottom: 0.25rem;
}

.create-step-actions {
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  padding-top: 1rem;
}

.create-step-actions .btn {
  min-width: 112px;
  justify-content: center;
}

.create-preview-card {
  position: sticky;
  top: 5.3rem;
}

#preview {
  border-style: dashed !important;
  border-width: 2px !important;
  border-color: rgba(15, 118, 110, 0.3) !important;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

#preview:hover {
  border-color: rgba(15, 118, 110, 0.55) !important;
  background-color: rgba(255, 255, 255, 0.92) !important;
}

@media (max-width: 1024px) {
  .create-hero {
    flex-direction: column;
  }

  .create-stepper {
    width: 100%;
    min-width: 0;
  }

  .create-builder-grid {
    grid-template-columns: 1fr;
  }

  .create-preview-card {
    position: static;
    top: auto;
  }
}

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

  .btn {
    padding: 0.66rem 1.1rem;
  }

  .table-wrap table {
    min-width: 680px;
  }

  .empty-state {
    text-align: center;
  }

  .empty-actions {
    justify-content: center;
  }

  .nav-shell .nav-actions {
    justify-content: flex-start;
  }

  .quickstart-grid {
    grid-template-columns: 1fr;
  }

  .quickstart-head .onboarding-badge {
    width: 100%;
    text-align: left;
  }

  .quickstart-step-foot {
    flex-wrap: wrap;
  }

  .dashboard-filter-form .btn {
    width: 100%;
    justify-content: center;
  }

  .create-form-card label {
    font-size: 1rem;
  }

  .create-form-card .btn {
    min-height: 46px;
  }

  .create-actions-row .btn {
    flex: 1 1 100%;
  }

  .create-hero {
    padding: 1rem !important;
  }

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

  .create-step-tab {
    min-height: 44px;
    padding: 0.55rem;
  }

  .qr-type-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .create-step-actions {
    position: sticky;
    bottom: 82px;
    z-index: 35;
    margin: 0 -1.5rem -1.5rem;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
  }

  .create-password-field {
    grid-template-columns: 1fr;
  }

  .mobile-sticky-cta {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    padding: 0.72rem 0.9rem calc(0.72rem + env(safe-area-inset-bottom));
    gap: 0.58rem;
    border-top: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
  }

  .mobile-sticky-cta .btn {
    flex: 1 1 0;
    justify-content: center;
    min-height: 46px;
  }

  body {
    padding-bottom: 92px;
  }
}

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

  .nav-shell .page-shell {
    align-items: center;
    gap: 0.5rem;
  }

  .nav-shell .page-shell > .brand {
    flex: 1;
  }

  .nav-shell .nav-actions {
    position: fixed;
    top: 0;
    right: 0;
    width: min(86vw, 320px);
    height: 100dvh;
    background: rgba(255, 255, 255, 0.96);
    border-left: 1px solid var(--border);
    box-shadow: -20px 0 40px rgba(15, 23, 42, 0.18);
    transform: translateX(104%);
    transition: transform 0.25s ease;
    padding: 1rem;
    padding-top: 4.4rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
    z-index: 80;
    overflow-y: auto;
  }

  .admin-subnav-shell {
    top: 66px;
  }

  .admin-subnav-wrap {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    display: flex;
  }

  .admin-subnav-links {
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    padding-right: 0.2rem;
    scroll-snap-type: x proximity;
  }

  .admin-subnav-links .btn {
    scroll-snap-align: start;
  }

  .admin-subnav-search {
    width: 100%;
  }

  .admin-subnav-search input {
    flex: 1;
    width: auto;
  }

  .sticky-action-bar {
    top: 120px;
  }

  .admin-header-actions {
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    padding-bottom: 2px;
  }

  .admin-header-actions::-webkit-scrollbar {
    display: none;
  }

  .admin-header-actions .btn {
    flex: 0 0 auto;
  }

  .admin-status-strip {
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    padding-bottom: 2px;
  }

  .admin-status-strip::-webkit-scrollbar {
    display: none;
  }

  .nav-shell .nav-actions .mr-4,
  .nav-shell .nav-actions .mr-3 {
    margin-right: 0 !important;
  }

  .nav-shell .nav-actions .muted {
    display: block;
    font-size: 0.84rem;
    background: rgba(15, 118, 110, 0.08);
    border: 1px solid rgba(15, 118, 110, 0.2);
    border-radius: 12px;
    padding: 0.55rem 0.65rem;
    margin-bottom: 0.15rem;
  }

  .nav-shell .nav-actions a,
  .nav-shell .nav-actions form,
  .nav-shell .nav-actions .btn {
    width: 100%;
  }

  .nav-shell .nav-actions .btn {
    justify-content: flex-start;
  }

  .nav-shell .nav-actions form {
    display: block;
  }

  .nav-shell .nav-backdrop {
    position: fixed;
    inset: 0;
    border: 0;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 70;
    display: block;
    padding: 0;
    margin: 0;
  }

  .nav-shell.nav-open .nav-actions {
    transform: translateX(0);
  }

  .nav-shell.nav-open .nav-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  body.nav-lock {
    overflow: hidden;
  }

  .widget-grid {
    grid-template-columns: 1fr;
  }
}
