:root {
  --ink: #0f172a;
  --ink-secondary: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --panel: #f8fafc;
  --panel-hover: #f1f5f9;
  --white: #ffffff;
  --brand: #0d9488;
  --brand-hover: #0f766e;
  --brand-light: #f0fdfa;
  --brand-border: #99f6e4;
  --gold: #f59e0b;
  --gold-light: #fef3c7;
  --danger: #ef4444;
  --danger-light: #fef2f2;
  --danger-border: #fecaca;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.03);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 35px -10px rgba(15, 23, 42, 0.12);
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  min-height: 100vh;
  background: #f8fafc;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

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

button {
  cursor: pointer;
  transition: all 0.15s ease;
  touch-action: manipulation;
}

/* APP SHELL & TOPBAR */
.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  height: 64px;
  padding: 0 20px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--brand), #0f766e);
  color: var(--white);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 16px;
  box-shadow: 0 3px 8px rgba(13, 148, 136, 0.25);
}

.brand-name {
  font-weight: 800;
  font-size: 16px;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.brand-sub {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}

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

/* MAIN & SCREENS */
main {
  width: min(1140px, 100%);
  margin: 20px auto 40px;
  padding: 0 16px;
  flex: 1;
}

.screen {
  display: none;
  animation: fadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.screen.active {
  display: block;
}

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

/* MOBILE DEDICATED CONTAINER */
.mobile-container {
  max-width: 520px;
  margin: 0 auto;
  width: 100%;
}

/* BUTTONS */
.primary-btn {
  background: linear-gradient(180deg, var(--brand), var(--brand-hover));
  color: var(--white);
  border: 1px solid #0f766e;
  border-radius: var(--radius-sm);
  padding: 13px 20px;
  font-weight: 700;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 2px 5px rgba(13, 148, 136, 0.2);
}

.primary-btn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.primary-btn:active {
  transform: translateY(0);
}

.lg-btn {
  padding: 15px 22px;
  font-size: 16px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.01em;
}

.primary-btn-sm {
  background: var(--brand);
  color: var(--white);
  border: 0;
  border-radius: 8px;
  padding: 8px 14px;
  font-weight: 600;
  font-size: 13px;
}
.primary-btn-sm:hover { background: var(--brand-hover); }

.secondary-btn {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.secondary-btn:hover {
  background: var(--panel);
  border-color: #94a3b8;
}

.ghost-btn, .ghost-btn-sm {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 600;
}
.ghost-btn { padding: 8px 14px; font-size: 13px; }
.ghost-btn-sm { padding: 6px 12px; font-size: 12px; }
.ghost-btn:hover, .ghost-btn-sm:hover { background: var(--panel); border-color: var(--line-strong); }

.danger-btn {
  background: var(--danger-light);
  color: var(--danger);
  border: 1px solid var(--danger-border);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-weight: 600;
  font-size: 13px;
}
.danger-btn:hover { background: #fee2e2; }

.link-btn-clean {
  background: none;
  border: 0;
  color: var(--brand);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.link-btn-clean:hover { text-decoration: underline; color: var(--brand-hover); }

.icon-btn {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 15px;
  display: grid;
  place-items: center;
}
.icon-btn:hover { color: var(--ink); background: var(--panel); }

.full { width: 100%; }

/* FORMS & CARDS */
.form-card, .flow-card, .table-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.mobile-form {
  padding: clamp(18px, 4vw, 24px);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.req { color: var(--danger); font-weight: 700; }

input, textarea, select {
  width: 100%;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  background: var(--white);
  outline: none;
  color: var(--ink);
  font-size: 16px; /* 16px prevents mobile safari auto zoom */
  transition: all 0.15s;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3.5px rgba(13, 148, 136, 0.12);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}

.privacy-note {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
  font-weight: 500;
}

.form-actions-mobile {
  margin-top: 20px;
}

/* MINI HERO FOR REGISTER */
.card-hero-mini {
  background: linear-gradient(135deg, #f0fdfa, #f8fafc);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  margin-bottom: 16px;
  text-align: center;
}

.qr-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--brand-border);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
}

.qr-chip-label {
  font-size: 10px;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: 0.08em;
}

.qr-chip strong {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--ink);
}

.card-hero-mini h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.card-hero-mini p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

/* BUSINESS REVIEW SCREEN - MOBILE COMPLIANT */
.business-header-mobile {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--brand);
}

.biz-top-mobile {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.biz-title-mobile {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.25;
}

.biz-meta-mobile {
  font-size: 13px;
  color: var(--ink-secondary);
  margin-top: 4px;
  line-height: 1.4;
}

.biz-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: #ccfbf1;
  color: #0f766e;
  white-space: nowrap;
}

.form-heading-clean {
  text-align: center;
  margin-bottom: 12px;
}

.form-heading-clean h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
}

.rating-block-mobile {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px;
  text-align: center;
  margin-bottom: 18px;
}

.stars-mobile {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 4px 0 6px;
}

.stars-mobile button {
  font-size: 42px;
  color: #cbd5e1;
  border: 0;
  background: none;
  padding: 0 4px;
  line-height: 1;
  transition: transform 0.15s, color 0.15s;
  touch-action: manipulation;
}

.stars-mobile button:active, .stars-mobile button.active {
  color: var(--gold);
  transform: scale(1.18);
}

.rating-text-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
}

.view-reviews-link-wrap {
  text-align: center;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

/* THANK YOU SCREEN */
.thank-you-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  text-align: center;
  box-shadow: var(--shadow-md);
  margin-top: 10px;
}

.thank-you-icon {
  font-size: 48px;
  margin-bottom: 12px;
  animation: bounce 0.6s ease;
}

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

.thank-you-card h2 {
  font-size: 26px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.thank-you-lead {
  font-size: 15px;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.5;
}

.thank-you-details-box {
  margin: 24px 0;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  text-align: left;
}

.thank-you-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

/* MODAL & REVIEWS LIST */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  padding: 16px;
  z-index: 100;
  animation: fadeIn 0.2s ease;
}

.modal-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.modal-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  background: var(--panel);
}

/* QR Code Popup Modal Styles */
.qr-modal-card {
  max-width: 520px;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.qr-preview-center {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.qr-preview-frame {
  background: #ffffff;
  padding: 20px;
  border-radius: 16px;
  border: 2px solid var(--line);
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08);
  text-align: center;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

.qr-modal-canvas-host {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 200px;
  min-height: 200px;
  background: #ffffff;
}

.qr-modal-canvas-host img,
.qr-modal-canvas-host canvas {
  border-radius: 4px;
}

.qr-preview-sub {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  margin-top: 12px;
}

.url-copy-row {
  display: flex;
  gap: 8px;
}

.code-input {
  font-family: var(--font-mono);
  font-size: 13px !important;
  background: var(--panel);
  color: var(--ink);
  cursor: text;
}

.biz-info-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px;
  font-size: 13.5px;
  line-height: 1.6;
}

.biz-info-card .info-title {
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
  font-size: 14px;
}

.biz-info-card .google-pill {
  margin-top: 8px;
  padding: 8px 10px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 6px;
  font-size: 12px;
  color: #166534;
}

.qr-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.key-click-btn {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  padding: 4px 10px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.key-click-btn:hover {
  background: var(--brand);
  color: #ffffff;
  border-color: var(--brand);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(13, 148, 136, 0.25);
}

.action-btn-group {
  display: flex;
  gap: 6px;
  align-items: center;
}

.reviews-summary {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.summary-score-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.summary-score {
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
  color: var(--ink);
}

.summary-stars {
  color: var(--gold);
  font-size: 16px;
  letter-spacing: 1px;
}

.review-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 12px;
}

.review-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.reviewer-title {
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
}

.review-timestamp {
  font-size: 11px;
  color: var(--muted);
  font-family: var(--font-mono);
}

.review-stars-row {
  color: var(--gold);
  font-size: 15px;
  margin: 3px 0 6px;
  letter-spacing: 1px;
}

.review-card p {
  color: var(--ink-secondary);
  font-size: 13.5px;
  line-height: 1.55;
  margin-bottom: 10px;
}

.masked-contact-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
}

.masked-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--ink-secondary);
}

/* HOME & ADMIN DESKTOP */
.hero-card {
  background: linear-gradient(135deg, #f0fdfa, #f8fafc);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 44px);
  box-shadow: var(--shadow-md);
}

.hero-badge {
  display: inline-flex;
  padding: 4px 12px;
  border-radius: 999px;
  background: #ccfbf1;
  color: #0f766e;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
}

h1 {
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.15;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.hero-lead {
  font-size: 15px;
  color: var(--ink-secondary);
  margin-top: 12px;
}

.hero-lead code {
  background: rgba(13, 148, 136, 0.12);
  color: #0f766e;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
}

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

.pill-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-secondary);
}
.feature-pill svg { color: var(--brand); }

.flow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 20px;
}

.step-num {
  font-size: 12px;
  font-weight: 800;
  color: var(--brand);
  background: var(--brand-light);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  font-family: var(--font-mono);
}

.section-title-center {
  text-align: center;
  margin: 36px 0 18px;
}
.section-title-center h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--ink);
  margin-top: 4px;
}

.benefits-section {
  margin-top: 24px;
}

.how-to-section {
  margin-top: 36px;
}

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

.step-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
}

.step-badge {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), #0f766e);
  color: var(--white);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 16px;
  flex-shrink: 0;
  box-shadow: 0 3px 8px rgba(13, 148, 136, 0.25);
}

.step-box h4 {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 4px;
}

.step-box p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

@media (max-width: 800px) {
  .steps-container {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.flow-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.flow-card p { font-size: 12.5px; color: var(--muted); line-height: 1.5; }

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.section-head h2 { font-size: 24px; font-weight: 800; }
.eyebrow { font-size: 11px; text-transform: uppercase; font-weight: 800; color: var(--brand); letter-spacing: 0.1em; }

.admin-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 18px;
  align-items: start;
}

.admin-actions-col { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0 18px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; text-align: center; }
.stat span { font-size: 10px; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.stat strong { display: block; font-size: 22px; font-weight: 800; color: var(--ink); margin-top: 2px; }

.template-preview {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel);
  display: flex;
  gap: 16px;
  align-items: center;
}

.sample-card-preview {
  background: var(--white);
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  padding: 10px;
  text-align: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
  box-sizing: border-box;
}
.sample-card-preview.card-landscape { width: 160px; }
.sample-card-preview.card-portrait { width: 115px; padding: 10px 8px; }
.sample-brand-top { font-size: 7.5px; font-weight: 800; color: var(--brand); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
.sample-qr-box { width: 56px; height: 56px; margin: 0 auto 4px; border: 1px solid #cbd5e1; display: grid; place-items: center; }
.fake-qr-code { width: 48px; height: 48px; background: repeating-linear-gradient(0deg, var(--ink) 0 3px, #fff 3px 6px), repeating-linear-gradient(90deg, transparent 0 3px, #fff 3px 6px); background-blend-mode: multiply; }
.sample-title { font-size: 9px; font-weight: 800; color: var(--ink); }
.sample-brand { font-size: 7.5px; color: var(--muted); margin-top: 2px; }
.sample-url { font-size: 6.5px; font-family: var(--font-mono); color: var(--brand); margin-top: 3px; word-break: break-all; }
.sample-key { font-size: 7px; font-family: var(--font-mono); font-weight: 700; margin-top: 2px; }

.table-card { margin-top: 20px; }
.search-box input { padding: 7px 10px; font-size: 13px; width: 220px; }
.table-wrap { overflow-x: auto; margin-top: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
th { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); background: var(--panel); }
.status-pill { padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; }
.status-pill.ready { background: #ecfdf5; color: #059669; }
.status-pill.registered { background: #eff6ff; color: #2563eb; }
.key-mono { font-family: var(--font-mono); font-weight: 700; }

.type-pill { padding: 3px 7px; border-radius: 6px; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; }
.type-pill.online { background: #fdf2f8; color: #db2777; border: 1px solid #fbcfe8; }
.type-pill.batch { background: #f8fafc; color: #475569; border: 1px solid #cbd5e1; }

/* ONLINE QR BANNER & HIGHLIGHTS */
.online-qr-cta-banner {
  background: linear-gradient(135deg, #0f766e 0%, #115e59 45%, #042f2e 100%);
  border-radius: var(--radius-lg);
  padding: 30px;
  color: #ffffff;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  box-shadow: 0 15px 35px -10px rgba(15, 118, 110, 0.4);
  position: relative;
  overflow: hidden;
}

.online-qr-cta-banner::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.15), transparent 70%);
  pointer-events: none;
}

.cta-banner-content h2 {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  margin: 8px 0 10px;
  line-height: 1.3;
}

.cta-banner-content p {
  color: #ccfbf1;
  font-size: 14.5px;
  line-height: 1.6;
  max-width: 620px;
}

.cta-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  color: #a7f3d0;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.cta-actions {
  margin-top: 18px;
}

.glow-btn {
  background: #ffffff !important;
  color: #0f766e !important;
  font-weight: 800 !important;
  font-size: 15px !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2) !important;
  transition: all 0.2s ease !important;
}

.glow-btn:hover {
  transform: translateY(-2px);
  background: #f0fdfa !important;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25) !important;
}

.mini-standee-card {
  width: 140px;
  background: #ffffff;
  border-radius: 12px;
  padding: 14px 10px;
  text-align: center;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
  transform: rotate(3deg);
  border: 2px solid rgba(255,255,255,0.8);
}

.mini-stars { color: #f59e0b; font-size: 12px; letter-spacing: 1px; }
.mini-qr-icon { font-size: 38px; margin: 4px 0; }
.mini-biz-name { font-size: 11px; font-weight: 800; color: #0f172a; line-height: 1.2; }
.mini-sub { font-size: 9px; color: #64748b; margin-top: 2px; }

.highlight-step {
  border: 2px solid var(--brand) !important;
  background: #f0fdfa !important;
}

.online-hero-mini {
  background: linear-gradient(135deg, #f0fdfa, #eff6ff);
  border-left: 4px solid var(--brand);
}

/* FEATURE SPOTLIGHT GRID */
.feature-spotlight-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 20px;
}

.spotlight-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.spotlight-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  border-color: #cbd5e1;
}

.spotlight-card.featured-card {
  border-color: #99f6e4;
  background: linear-gradient(180deg, #f0fdfa 0%, #ffffff 40%);
}

.spotlight-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.spotlight-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #f1f5f9;
  display: grid;
  place-items: center;
  font-size: 22px;
}

.spotlight-card.featured-card .spotlight-icon-box {
  background: #ccfbf1;
}

.spotlight-badge {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
}

.spotlight-badge.badge-green {
  background: #dcfce7;
  color: #15803d;
}

.spotlight-badge.badge-teal {
  background: #ccfbf1;
  color: #0f766e;
}

.spotlight-badge.badge-blue {
  background: #dbeafe;
  color: #1d4ed8;
}

.spotlight-badge.badge-amber {
  background: #fef3c7;
  color: #b45309;
}

.spotlight-card h3 {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px;
}

.spotlight-card p {
  font-size: 13.5px;
  color: #475569;
  line-height: 1.55;
  margin: 0 0 14px;
  flex: 1;
}

.spotlight-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px dashed #e2e8f0;
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.spotlight-list li {
  font-size: 12.5px;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 8px;
}

.spotlight-list li span.bullet {
  color: #0d9488;
  font-weight: 800;
}

/* QUICK LOOKUP BOX */
.quick-lookup-box {
  background: linear-gradient(135deg, #0f766e 0%, #115e59 100%);
  color: #ffffff;
  border-radius: 16px;
  padding: 26px 28px;
  margin-top: 28px;
  box-shadow: 0 10px 25px rgba(15, 118, 110, 0.25);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.quick-lookup-head h3 {
  color: #ffffff;
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 4px;
}

.quick-lookup-head p {
  color: #ccfbf1;
  font-size: 13.5px;
  margin: 0;
}

.quick-lookup-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.quick-lookup-input {
  flex: 1;
  min-width: 220px;
  background: #ffffff !important;
  color: #0f172a !important;
  font-family: var(--font-mono);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 16px;
  border: 2px solid #99f6e4 !important;
}

.quick-lookup-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 800px) {
  .feature-spotlight-grid {
    grid-template-columns: 1fr;
  }
  .quick-lookup-box {
    padding: 20px 16px;
  }
}

/* LAYOUT TOGGLE BUTTONS */
.layout-toggle-group {
  display: inline-flex;
  background: #e2e8f0;
  padding: 4px;
  border-radius: 8px;
  gap: 4px;
}

.layout-btn {
  background: transparent;
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}

.layout-btn.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.toolbar-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ONLINE STANDEE PRINT SHEETS (Single & Dual A4) */
.online-print-sheet {
  background: #cbd5e1;
  padding: 24px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.online-print-sheet.layout-single {
  display: flex;
  justify-content: center;
}

.online-print-sheet.layout-dual {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* STANDEE CARD CONTAINER */
.standee-card {
  background: #ffffff;
  border: 3px solid #0f172a;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  box-sizing: border-box;
}

/* Single A4 Standee Dimensions */
.standee-card.size-single {
  width: 175mm;
  min-height: 250mm;
  padding: 12mm 10mm;
  justify-content: space-between;
}

/* Dual A4 Standee Dimensions (2 per A4 sheet) */
.standee-card.size-dual {
  width: 180mm;
  min-height: 125mm;
  padding: 6mm 8mm;
  justify-content: space-between;
}

.standee-badge {
  background: #0f172a;
  color: #ffffff;
  font-size: 11pt;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 18px;
  border-radius: 999px;
  display: inline-block;
}

.size-dual .standee-badge {
  font-size: 8.5pt;
  padding: 3px 12px;
}

.standee-stars {
  color: #eab308;
  font-size: 26pt;
  letter-spacing: 4px;
  margin: 6mm 0 2mm;
  line-height: 1;
}

.size-dual .standee-stars {
  font-size: 16pt;
  letter-spacing: 2px;
  margin: 2mm 0 1mm;
}

.standee-action-title {
  font-size: 18pt;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6mm;
}

.size-dual .standee-action-title {
  font-size: 12pt;
  margin-bottom: 2mm;
}

.standee-qr-frame {
  background: #ffffff;
  padding: 4mm;
  border: 2px solid #0f172a;
  border-radius: 8px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.standee-qr-frame .qr-render-box {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Business Name Boldly Printed Below QR Code */
.standee-biz-block {
  margin-top: 6mm;
  width: 100%;
}

.size-dual .standee-biz-block {
  margin-top: 2.5mm;
}

.standee-biz-name {
  font-size: 24pt;
  font-weight: 900;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.2;
  margin: 0;
  word-break: break-word;
}

.size-dual .standee-biz-name {
  font-size: 14pt;
}

.standee-biz-location {
  font-size: 11pt;
  font-weight: 600;
  color: #475569;
  margin-top: 2mm;
}

.size-dual .standee-biz-location {
  font-size: 8pt;
  margin-top: 1mm;
}

.standee-footer {
  width: 100%;
  border-top: 1.5px dashed #cbd5e1;
  padding-top: 4mm;
  margin-top: 6mm;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9pt;
  color: #64748b;
}

.size-dual .standee-footer {
  padding-top: 2mm;
  margin-top: 2mm;
  font-size: 7pt;
}

.standee-footer .powered-tag strong {
  color: #0f766e;
}

.standee-footer .key-tag {
  font-family: var(--font-mono);
  font-weight: 700;
  color: #0f172a;
}

.cut-guideline {
  width: 100%;
  border-top: 2px dashed #94a3b8;
  position: relative;
  margin: 4mm 0;
  text-align: center;
}

.cut-guideline span {
  position: relative;
  top: -9px;
  background: #ffffff;
  padding: 0 10px;
  font-size: 8pt;
  color: #64748b;
  font-weight: 600;
}

/* PRINT SHEET & CARDS (Landscape 85×55mm & Portrait 55×85mm) */
.print-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 18px; }
.print-sheet { display: flex; flex-direction: column; align-items: center; gap: 24px; background: #cbd5e1; padding: 24px; border-radius: var(--radius-md); overflow-x: auto; }

.batch-print-page {
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.14);
  box-sizing: border-box;
  display: grid;
  justify-content: center;
  align-content: center;
  position: relative;
  page-break-inside: avoid;
  break-inside: avoid;
  page-break-after: always;
  break-after: page;
}
.batch-print-page:last-child {
  page-break-after: auto;
  break-after: auto;
}

/* A4 Portrait Paper: 210mm × 297mm */
.batch-print-page.a4-page {
  width: 210mm;
  height: 297mm;
  min-height: 297mm;
  max-height: 297mm;
}
.batch-print-page.a4-page.cards-landscape {
  padding: 6mm 16mm;
  grid-template-columns: repeat(2, 85mm);
  grid-template-rows: repeat(5, 55mm);
  gap: 2.5mm 8mm;
}
.batch-print-page.a4-page.cards-portrait {
  padding: 16mm 14.5mm;
  grid-template-columns: repeat(3, 55mm);
  grid-template-rows: repeat(3, 85mm);
  gap: 5mm 8mm;
}

/* A3 Landscape Paper: 420mm × 297mm */
.batch-print-page.a3-page {
  width: 420mm;
  height: 297mm;
  min-height: 297mm;
  max-height: 297mm;
}
.batch-print-page.a3-page.cards-landscape {
  padding: 6mm 28mm;
  grid-template-columns: repeat(4, 85mm);
  grid-template-rows: repeat(5, 55mm);
  gap: 2.5mm 8mm;
}
.batch-print-page.a3-page.cards-portrait {
  padding: 15mm 25mm;
  grid-template-columns: repeat(6, 55mm);
  grid-template-rows: repeat(3, 85mm);
  gap: 6mm 8mm;
}

/* Base Card */
.print-card {
  box-sizing: border-box;
  background: #ffffff;
  border: 1px solid #0f172a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 2mm;
  overflow: hidden;
  break-inside: avoid;
  page-break-inside: avoid;
}

/* Landscape Card: 8.5 cm × 5.5 cm */
.print-card.card-landscape, .print-card {
  width: 85mm;
  height: 55mm;
  padding: 2.5mm 3.5mm;
}
.print-card.card-landscape .qr-host { width: 27mm; height: 27mm; display: grid; place-items: center; }
.print-card.card-landscape .qr-host img, .print-card.card-landscape .qr-host canvas { width: 27mm !important; height: 27mm !important; }
.print-card.card-landscape .card-title { font-size: 8pt; font-weight: 800; color: #0f172a; margin-top: 1mm; line-height: 1.15; }
.print-card.card-landscape .card-brand { font-size: 6.5pt; color: #475569; margin-top: 0.5mm; }
.print-card.card-landscape .card-url { font-size: 5.5pt; font-family: var(--font-mono); color: #0f766e; margin-top: 0.6mm; line-height: 1.1; word-break: break-all; }
.print-card.card-landscape .card-key { font-size: 6.5pt; font-family: var(--font-mono); font-weight: 800; color: #0f172a; margin-top: 0.5mm; }
.print-card .card-batch-meta { font-size: 5pt; font-family: var(--font-mono); color: #64748b; margin-top: 0.5mm; letter-spacing: 0.02em; white-space: nowrap; }

/* Portrait Card: 5.5 cm × 8.5 cm */
.print-card.card-portrait {
  width: 55mm;
  height: 85mm;
  padding: 3.5mm 3mm;
}
.print-card.card-portrait .card-brand-top { font-size: 6.5pt; font-weight: 700; color: #0f766e; text-transform: uppercase; letter-spacing: 0.05em; line-height: 1.1; }
.print-card.card-portrait .card-title { font-size: 7.8pt; font-weight: 800; color: #0f172a; margin-top: 1mm; line-height: 1.2; }
.print-card.card-portrait .qr-host { width: 32mm; height: 32mm; display: grid; place-items: center; margin: 1.5mm 0; }
.print-card.card-portrait .qr-host img, .print-card.card-portrait .qr-host canvas { width: 32mm !important; height: 32mm !important; }
.print-card.card-portrait .card-key { font-size: 7pt; font-family: var(--font-mono); font-weight: 800; color: #0f172a; margin-top: 1.2mm; }
.print-card.card-portrait .card-url { font-size: 5.2pt; font-family: var(--font-mono); color: #0f766e; margin-top: 0.8mm; line-height: 1.15; word-break: break-all; }
.print-card.card-portrait .card-batch-meta { margin-top: 0.8mm; }

.app-footer { text-align: center; color: var(--muted); font-size: 12px; padding: 20px; border-top: 1px solid var(--line); background: var(--white); margin-top: auto; }
.footer-links { display: flex; justify-content: center; gap: 14px; margin-top: 6px; }

.toast { position: fixed; right: 16px; bottom: 16px; background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 8px; font-size: 13px; font-weight: 500; opacity: 0; transform: translateY(10px); pointer-events: none; transition: all 0.2s; z-index: 200; box-shadow: var(--shadow-lg); }
.toast.show { opacity: 1; transform: translateY(0); }

/* RESPONSIVE */
@media (max-width: 900px) {
  .online-qr-cta-banner { grid-template-columns: 1fr; }
  .no-mobile { display: none !important; }
  .flow-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-grid { grid-template-columns: 1fr; }
  .template-preview { flex-direction: column; align-items: flex-start; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .flow-grid { grid-template-columns: 1fr; }
  .grid-2.mobile-grid { grid-template-columns: 1fr; gap: 0; }
  .grid-3 { grid-template-columns: 1fr; gap: 10px; }
  .brand-sub, .topbar-actions .ghost-btn { display: none; }
  main { padding: 0 10px; margin: 12px auto 30px; }
  .topbar { padding: 0 14px; height: 58px; }
  .stats { grid-template-columns: 1fr; }
  .toolbar-controls { flex-direction: column; align-items: stretch; }
  .toolbar-actions { display: flex; flex-direction: column; }
}

/* PRINT MEDIA */
@media print {
  body { background: #fff !important; }
  .app-shell { display: block !important; }
  .topbar, .app-footer, .no-print, .toast, #reviews-modal, #qr-modal { display: none !important; }
  main { width: 100% !important; margin: 0 !important; padding: 0 !important; }
  .screen { display: none !important; }
  .print-screen { display: block !important; margin: 0 !important; padding: 0 !important; }
  
  /* Batch Print */
  .print-sheet { background: transparent !important; padding: 0 !important; margin: 0 !important; gap: 0 !important; display: block !important; }
  .batch-print-page {
    box-shadow: none !important;
    margin: 0 auto !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    page-break-after: always !important;
    break-after: page !important;
  }
  .batch-print-page:last-child {
    page-break-after: auto !important;
    break-after: auto !important;
  }
  .batch-print-page.a4-page {
    width: 210mm !important;
    height: 297mm !important;
    min-height: 297mm !important;
    max-height: 297mm !important;
  }
  .batch-print-page.a4-page.cards-landscape {
    padding: 6mm 16mm !important;
    grid-template-columns: repeat(2, 85mm) !important;
    grid-template-rows: repeat(5, 55mm) !important;
    gap: 2.5mm 8mm !important;
  }
  .batch-print-page.a4-page.cards-portrait {
    padding: 16mm 14.5mm !important;
    grid-template-columns: repeat(3, 55mm) !important;
    grid-template-rows: repeat(3, 85mm) !important;
    gap: 5mm 8mm !important;
  }

  .batch-print-page.a3-page {
    width: 420mm !important;
    height: 297mm !important;
    min-height: 297mm !important;
    max-height: 297mm !important;
  }
  .batch-print-page.a3-page.cards-landscape {
    padding: 6mm 28mm !important;
    grid-template-columns: repeat(4, 85mm) !important;
    grid-template-rows: repeat(5, 55mm) !important;
    gap: 2.5mm 8mm !important;
  }
  .batch-print-page.a3-page.cards-portrait {
    padding: 15mm 25mm !important;
    grid-template-columns: repeat(6, 55mm) !important;
    grid-template-rows: repeat(3, 85mm) !important;
    gap: 6mm 8mm !important;
  }

  .print-card {
    box-sizing: border-box !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
    box-shadow: none !important;
    border: 1px solid #000000 !important;
  }
  .print-card.card-landscape {
    width: 85mm !important;
    height: 55mm !important;
  }
  .print-card.card-portrait {
    width: 55mm !important;
    height: 85mm !important;
  }

  /* Online Standee Print */
  .online-print-sheet { background: #ffffff !important; padding: 0 !important; gap: 0 !important; }
  .standee-card { box-shadow: none !important; border: 2.5px solid #000000 !important; break-inside: avoid !important; page-break-inside: avoid !important; }
  .standee-card.size-single { margin: 0 auto !important; }
  .standee-card.size-dual { margin: 0 auto 4mm !important; }
  .cut-guideline { border-top: 1.5px dashed #000000 !important; }
}
