/* ==========================================================================
   QR Wings — App design system (sits on top of Bootstrap 5.3)
   ========================================================================== */

:root {
  --qw-primary: #2563eb;
  --qw-primary-hover: #1d4ed8;
  --qw-primary-soft: #eff6ff;
  --qw-primary-line: #bfdbfe;
  --qw-ink: #0f172a;
  --qw-text: #334155;
  --qw-muted: #64748b;
  --qw-subtle: #94a3b8;
  --qw-line: #e2e8f0;
  --qw-line-soft: #f1f5f9;
  --qw-bg: #f8fafc;
  --qw-surface: #ffffff;
  --qw-success: #059669;
  --qw-success-soft: #ecfdf5;
  --qw-warning: #d97706;
  --qw-warning-soft: #fffbeb;
  --qw-danger: #e11d48;
  --qw-danger-soft: #fff1f2;
  --qw-info: #0b7fab;
  --qw-info-soft: #e6f4fa;
  --qw-star: #f5a524;

  --qw-radius-sm: 6px;
  --qw-radius: 8px;
  --qw-radius-lg: 16px;
  --qw-radius-xl: 20px;
  --qw-shadow-sm: 0 1px 3px rgba(15, 23, 42, .03), 0 4px 12px -2px rgba(15, 23, 42, .03);
  --qw-shadow: 0 10px 25px -5px rgba(15, 23, 42, .08), 0 8px 10px -6px rgba(15, 23, 42, .04);
  --qw-shadow-pop: 0 12px 32px rgba(15, 27, 45, .14);
  --qw-sidebar-w: 262px;
  --qw-topbar-h: 68px;
  --qw-font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --qw-display: 'Outfit', var(--qw-font);

  /* Bootstrap bridges */
  --bs-body-font-family: var(--qw-font);
  --bs-body-color: var(--qw-text);
  --bs-body-bg: var(--qw-bg);
  --bs-border-color: var(--qw-line);
  --bs-primary: var(--qw-primary);
  --bs-primary-rgb: 37, 99, 235;
  --bs-link-color: var(--qw-primary);
  --bs-link-color-rgb: 37, 99, 235;
  --bs-link-hover-color: var(--qw-primary-hover);
  --bs-border-radius: var(--qw-radius);
  --bs-focus-ring-color: rgba(35, 71, 217, .22);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--qw-font);
  font-size: 14px;
  line-height: 1.55;
  background: var(--qw-bg);
  color: var(--qw-text);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6, .qw-display { font-family: var(--qw-display); color: var(--qw-ink); letter-spacing: -.01em; }
a { text-decoration: none; }
[x-cloak] { display: none !important; }
.num, .qw-num { font-variant-numeric: tabular-nums; }
.text-muted, .qw-muted { color: var(--qw-muted) !important; }
.text-subtle { color: var(--qw-subtle) !important; }
.text-ink { color: var(--qw-ink) !important; }
.fw-600 { font-weight: 600 !important; }
.fw-700 { font-weight: 700 !important; }
.fs-xs { font-size: 12px !important; }
.fs-sm { font-size: 13px !important; }
.min-w-0 { min-width: 0; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:focus-visible { outline: 2px solid var(--qw-primary); outline-offset: 2px; }

/* ── Shell (sidebar + topbar) — from the QR Wings handover design ─────── */
.qw-sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--qw-sidebar-w); z-index: 1040;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 35%, #f1f5f9 70%, #edf4fe 100%);
  border-right: 1px solid var(--qw-line); box-shadow: 2px 0 16px -4px rgba(15, 23, 42, .05);
  display: flex; flex-direction: column; transition: transform .25s ease-in-out; overflow: hidden;
}
.qw-sidebar::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 180px; pointer-events: none;
  background: radial-gradient(circle at 50% -10%, rgba(37, 99, 235, .08) 0%, rgba(37, 99, 235, .02) 50%, transparent 80%); }
.qw-brand { height: 64px; display: flex; align-items: center; gap: 11px; padding: 0 16px; border-bottom: 1px solid var(--qw-line);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%); color: var(--qw-ink); position: relative; z-index: 1; flex-shrink: 0; }
.qw-brand:hover { color: var(--qw-ink); }
.qw-brand-mark { width: 34px; height: 34px; flex-shrink: 0; border-radius: 9px; box-shadow: 0 4px 12px rgba(37, 99, 235, .3); }
.qw-brand-name { font-family: var(--qw-display); font-weight: 700; font-size: 17px; letter-spacing: -.02em; line-height: 1.15; display: block; }
.qw-brand-name span { color: var(--qw-ink); }
.qw-brand-tag { display: block; font-size: 8.5px; font-weight: 700; letter-spacing: .12em; color: var(--qw-primary); text-transform: uppercase; margin-top: 2px; }

.qw-nav { flex: 1; overflow-y: auto; padding: 12px 10px; position: relative; z-index: 1; scrollbar-width: thin; scrollbar-color: rgba(148, 163, 184, .3) transparent; }
.qw-nav-group { margin-bottom: 12px; }
.qw-nav-label { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: #64748b; padding: 0 8px; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.qw-nav-label::after { content: ''; flex: 1; height: 1px; background: var(--qw-line); }
.qw-nav-link {
  display: flex; align-items: center; gap: 9px; padding: 7px 10px; margin-bottom: 2px; border-radius: 8px;
  color: #475569; font-weight: 500; font-size: 13px; border: 1px solid transparent; transition: all .15s ease; white-space: nowrap;
}
.qw-nav-link i { font-size: 15px; color: #64748b; width: 17px; text-align: center; transition: color .15s ease; }
.qw-nav-link:hover { background: linear-gradient(90deg, #f1f5f9 0%, #f8fafc 100%); color: var(--qw-ink); border-color: var(--qw-line); transform: translateX(1px); }
.qw-nav-link:hover i { color: var(--qw-primary); }
.qw-nav-link.active { background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 70%, #1e40af 100%); color: #fff; font-weight: 600; border-color: #2563eb; box-shadow: 0 4px 14px rgba(37, 99, 235, .28); }
.qw-nav-link.active i { color: #fff; }
.qw-nav-count { margin-left: auto; font-size: 9.5px; font-weight: 700; padding: 1.5px 7px; border-radius: 99px; background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%); color: #fff; box-shadow: 0 1px 4px rgba(225, 29, 72, .3); line-height: 1.4; }
.qw-nav-link.active .qw-nav-count { background: #fff; color: #e11d48; box-shadow: none; }
.qw-nav-pill { margin-left: auto; font-size: 9.5px; font-weight: 700; padding: 1.5px 7px; border-radius: 99px; background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; line-height: 1.4; }
.qw-nav-pill.amber { background: #fffbeb; color: #b45309; border-color: #fde68a; }
.qw-nav-link.active .qw-nav-pill { background: rgba(255,255,255,.2); color: #fff; border-color: rgba(255,255,255,.35); }

.qw-sidebar-foot { padding: 12px; border-top: 1px solid var(--qw-line); position: relative; z-index: 1; background: rgba(255,255,255,.6); }
.qw-plan-card { border: 1px solid var(--qw-line); border-radius: 10px; padding: 9px 11px; font-size: 12px; margin-bottom: 10px; background: #fff; }
.qw-user-card { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--qw-line); background: #fff; box-shadow: var(--qw-shadow-sm); }
.qw-user { display: flex; align-items: center; gap: 10px; padding: 0; width: 100%; background: none; border: 0; text-align: left; color: inherit; min-width: 0; }
.qw-user-av { position: relative; flex-shrink: 0; }
.qw-user-av::after { content: ''; position: absolute; right: -1px; bottom: -1px; width: 9px; height: 9px; border-radius: 50%; background: #10b981; border: 2px solid #fff; }
.qw-signout { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--qw-line); background: #f8fafc; color: var(--qw-muted); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.qw-signout:hover { color: var(--qw-danger); border-color: #fecdd3; background: #fff1f2; }

.qw-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--qw-primary-soft); }
.qw-avatar-lg { width: 56px; height: 56px; }
.qw-initials { display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; color: #fff; border-radius: 50%; flex-shrink: 0; background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.qw-initials.c1 { background: linear-gradient(135deg, #10b981, #047857); }
.qw-initials.c2 { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.qw-initials.c3 { background: linear-gradient(135deg, #f59e0b, #b45309); }
.qw-initials.c4 { background: linear-gradient(135deg, #f43f5e, #be123c); }
.qw-logo { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; border: 1px solid var(--qw-line); background: #fff; flex-shrink: 0; }
.qw-logo-lg { width: 56px; height: 56px; border-radius: 14px; }

.qw-main { margin-left: var(--qw-sidebar-w); min-height: 100vh; display: flex; flex-direction: column; }
.qw-topbar {
  height: var(--qw-topbar-h); position: sticky; top: 0; z-index: 1030;
  display: flex; align-items: center; gap: 14px; padding: 0 32px;
  background: #fff; border-bottom: 1px solid var(--qw-line);
}
.qw-topbar .crumbs { font-size: 13px; color: var(--qw-muted); min-width: 0; }
.qw-topbar .crumbs a { color: var(--qw-muted); }
.qw-topbar .crumbs a:hover { color: var(--qw-primary); }
.qw-topbar .crumbs .current { color: var(--qw-ink); font-family: var(--qw-display); font-size: 21px; font-weight: 700; letter-spacing: -.02em; }
.qw-topbar .crumbs .trail { display: block; font-size: 12px; line-height: 1.2; }
.qw-role-switch { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--qw-line); background: #fff; color: #334155; font-size: 12.5px; font-weight: 600; }
.qw-role-switch:hover { border-color: var(--qw-primary-line); color: var(--qw-primary); background: var(--qw-primary-soft); }
.qw-plan-badge { display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px; border-radius: 99px; font-size: 11.5px; font-weight: 700; background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.qw-plan-badge.upgrade { background: linear-gradient(135deg, #fef3c7, #fde68a); color: #92400e; border-color: #fcd34d; }
.qw-icon-btn { width: 38px; height: 38px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--qw-line); background: #fff; color: var(--qw-muted); position: relative; font-size: 17px; }
.qw-icon-btn:hover { background: var(--qw-bg); color: var(--qw-ink); }
.qw-dot { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 99px; background: linear-gradient(135deg, #f43f5e, #e11d48); color: #fff; font-size: 10px; font-weight: 700; line-height: 18px; text-align: center; border: 2px solid #fff; box-sizing: content-box; }

.qw-content { padding: 28px 32px 48px; width: 100%; max-width: 1400px; margin: 0 auto; flex: 1; }
.qw-backdrop { display: none; }

@media (max-width: 991.98px) {
  .qw-sidebar { transform: translateX(-100%); box-shadow: var(--qw-shadow-pop); }
  .qw-sidebar.open { transform: none; }
  .qw-backdrop.open { display: block; position: fixed; inset: 0; background: rgba(15, 23, 42, .35); z-index: 1035; }
  .qw-main { margin-left: 0; }
  .qw-topbar { padding: 0 16px; height: 60px; }
  .qw-topbar .crumbs .current { font-size: 18px; }
  .qw-content { padding: 20px 16px 40px; }
}

/* ── Page header ───────────────────────────────────────────────────────── */
.qw-page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.qw-page-title { font-family: var(--qw-display); font-size: 20px; font-weight: 700; margin: 0; line-height: 1.25; color: var(--qw-ink); letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; }
.qw-page-sub { color: var(--qw-muted); margin: 4px 0 0; font-size: 13.5px; max-width: 75ch; }
.qw-page-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.qw-back { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--qw-muted); margin-bottom: 6px; font-weight: 500; }
.qw-back:hover { color: var(--qw-primary); }

/* ── Cards / panels (chart-card) ───────────────────────────────────────── */
.qw-card { background: #fff; border: 1px solid rgba(226, 232, 240, .9); border-radius: var(--qw-radius-lg); box-shadow: var(--qw-shadow-sm); }
.qw-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 22px 12px; margin: 0 0 4px; border-bottom: 1px solid var(--qw-line-soft); }
.qw-card-title { font-family: var(--qw-display); font-size: 15px; font-weight: 700; color: var(--qw-ink); margin: 0; display: flex; align-items: center; gap: 7px; }
.qw-card-title > i { color: var(--qw-primary); font-size: 15px; }
.qw-card-sub { font-size: 11.5px; color: var(--qw-muted); margin: 2px 0 0; font-weight: 500; }
.qw-card-body { padding: 16px 22px 20px; }
.qw-card-foot { padding: 12px 22px; border-top: 1px solid var(--qw-line-soft); font-size: 13px; }
.qw-card-link { font-size: 12.5px; font-weight: 600; }
.qw-tag-private { font-size: 10.5px; font-weight: 700; color: #047857; background: #ecfdf5; border: 1px solid #a7f3d0; padding: 3px 8px; border-radius: 99px; white-space: nowrap; }
a.qw-card.hoverable:hover, .qw-card.hoverable:hover { border-color: #bfdbfe; box-shadow: var(--qw-shadow); transform: translateY(-2px); }
.qw-card.hoverable { transition: all .2s ease; }

/* ── Welcome banner ────────────────────────────────────────────────────── */
.qw-hero { background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 45%, #2563eb 80%, #3b82f6 100%); color: #fff; padding: 24px 28px; border-radius: var(--qw-radius-xl);
  margin-bottom: 24px; box-shadow: 0 10px 28px -6px rgba(37, 99, 235, .35); position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,.2); }
.qw-hero::after { content: ''; position: absolute; top: -40%; right: -5%; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.18) 0%, rgba(255,255,255,0) 70%); pointer-events: none; }
.qw-hero-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.25); font-size: 9.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px; }
.qw-live { width: 6px; height: 6px; border-radius: 50%; background: #34d399; box-shadow: 0 0 8px #34d399; animation: qw-pulse 2s cubic-bezier(.4,0,.6,1) infinite; }
@keyframes qw-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
.qw-hero-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; position: relative; z-index: 1; }
.qw-hero h2 { font-family: var(--qw-display); font-size: 22px; font-weight: 700; color: #fff; margin: 0 0 3px; letter-spacing: -.01em; }
.qw-hero p { font-size: 13.5px; color: rgba(255,255,255,.92); margin: 0; }
.qw-hero-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.qw-hero .form-select { background-color: rgba(255,255,255,.14); border-color: rgba(255,255,255,.3); color: #fff; box-shadow: none; background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e"); }
.qw-hero .form-select option { color: var(--qw-ink); }
.btn-banner { background: #fff; color: #1d4ed8; font-weight: 700; font-size: 13px; padding: 9px 18px; border-radius: 12px; border: 0; display: inline-flex; align-items: center; gap: 7px; box-shadow: 0 3px 10px rgba(0,0,0,.15); transition: all .15s ease; white-space: nowrap; }
.btn-banner:hover { background: #f8fafc; color: #1d4ed8; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,.2); }

/* ── Stat cards (sober micro-gradients) ────────────────────────────────── */
.qw-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.qw-kpi { border-radius: 16px; padding: 18px 20px 16px; border: 1px solid rgba(226, 232, 240, .9); background: #fff; position: relative; overflow: hidden; min-width: 0;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .03), 0 4px 12px -2px rgba(15, 23, 42, .03); transition: all .2s cubic-bezier(.16, 1, .3, 1); display: flex; flex-direction: column; }
.qw-kpi:hover { box-shadow: 0 10px 24px -4px rgba(15, 23, 42, .08); transform: translateY(-2px); border-color: #cbd5e1; }
.qw-kpi-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.qw-kpi-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #64748b; min-width: 0; }
.qw-kpi-icon { width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 16px; transition: transform .2s ease; }
.qw-kpi:hover .qw-kpi-icon { transform: scale(1.05); }
.qw-kpi-value { font-family: var(--qw-display); font-size: 30px; font-weight: 800; color: #0f172a; letter-spacing: -.03em; line-height: 1.1; margin-bottom: 7px; font-variant-numeric: tabular-nums; display: flex; align-items: baseline; gap: 4px; }
.qw-kpi-value small { font-size: 13px; color: #64748b; font-weight: 600; letter-spacing: 0; }
.qw-kpi-meta { font-size: 11.5px; color: #94a3b8; font-weight: 500; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: auto; }
.qw-delta { display: inline-flex; align-items: center; gap: 3px; padding: 2px 7.5px; border-radius: 99px; font-size: 11px; font-weight: 700; line-height: 1.3; background: #f1f5f9; color: #64748b; border: 1px solid #e2e8f0; }
.qw-delta.up { background: #ecfdf5; color: #059669; border-color: #a7f3d0; }
.qw-delta.down { background: #fff1f2; color: #e11d48; border-color: #fecdd3; }
.qw-kpi::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; opacity: .9; }
.qw-kpi.blue    { background: linear-gradient(180deg, #ffffff 0%, #fbfdff 55%, #f0f7ff 100%); border-color: #dbeafe; }
.qw-kpi.emerald { background: linear-gradient(180deg, #ffffff 0%, #fbfefd 55%, #f0fdf4 100%); border-color: #d1fae5; }
.qw-kpi.amber   { background: linear-gradient(180deg, #ffffff 0%, #fffdf8 55%, #fefce8 100%); border-color: #fef3c7; }
.qw-kpi.rose    { background: linear-gradient(180deg, #ffffff 0%, #fffbfb 55%, #fff1f2 100%); border-color: #ffe4e6; }
.qw-kpi.purple  { background: linear-gradient(180deg, #ffffff 0%, #fcfaff 55%, #f5f3ff 100%); border-color: #ede9fe; }
.qw-kpi.teal    { background: linear-gradient(180deg, #ffffff 0%, #fbfffe 55%, #f0fdfa 100%); border-color: #ccfbf1; }
.qw-kpi.blue::after    { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.qw-kpi.emerald::after { background: linear-gradient(90deg, #10b981, #34d399); }
.qw-kpi.amber::after   { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.qw-kpi.rose::after    { background: linear-gradient(90deg, #f43f5e, #fb7185); }
.qw-kpi.purple::after  { background: linear-gradient(90deg, #8b5cf6, #a78bfa); }
.qw-kpi.teal::after    { background: linear-gradient(90deg, #14b8a6, #2dd4bf); }
.qw-kpi.flat::after { display: none; }
.ic-blue    { background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%); color: #1d4ed8; box-shadow: 0 2px 6px rgba(37, 99, 235, .12); }
.ic-emerald { background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%); color: #047857; box-shadow: 0 2px 6px rgba(16, 185, 129, .12); }
.ic-amber   { background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%); color: #b45309; box-shadow: 0 2px 6px rgba(245, 158, 11, .12); }
.ic-rose    { background: linear-gradient(135deg, #ffe4e6 0%, #fecdd3 100%); color: #be123c; box-shadow: 0 2px 6px rgba(225, 29, 72, .12); }
.ic-purple  { background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%); color: #6d28d9; }
.ic-teal    { background: linear-gradient(135deg, #ccfbf1 0%, #99f6e4 100%); color: #0f766e; }
/* Admin-style stat card: icon on top, number, label */
.qw-kpi.stacked .qw-kpi-icon { margin-bottom: 10px; }
.qw-kpi.stacked .qw-kpi-value { font-size: 30px; margin-bottom: 2px; }
.qw-kpi.stacked .qw-kpi-name { font-size: 15px; color: #334155; font-weight: 500; }
@media (max-width: 1199.98px) { .qw-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }
@media (max-width: 420px) { .qw-kpi { padding: 14px 14px 12px; } .qw-kpi-value { font-size: 24px; } .qw-kpi-label { font-size: 10px; } }

.qw-stat-row { display: flex; gap: 20px; flex-wrap: wrap; }
.qw-stat { min-width: 90px; }
.qw-stat .v { font-family: var(--qw-display); font-size: 20px; font-weight: 700; color: var(--qw-ink); font-variant-numeric: tabular-nums; line-height: 1.2; }
.qw-stat .l { font-size: 12px; color: var(--qw-muted); }

/* ── Business cards ────────────────────────────────────────────────────── */
.qw-biz-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1199.98px) { .qw-biz-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767.98px) { .qw-biz-grid { grid-template-columns: 1fr; } }
.qw-biz { background: #fff; border: 1px solid var(--qw-line); border-radius: var(--qw-radius-xl); padding: 22px; box-shadow: var(--qw-shadow-sm); display: flex; flex-direction: column; transition: all .2s ease; }
.qw-biz:hover { border-color: #bfdbfe; box-shadow: var(--qw-shadow); transform: translateY(-2px); }
.qw-biz-top { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.qw-biz-av { width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0; object-fit: cover; background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(37, 99, 235, .25); }
.qw-biz-name { font-family: var(--qw-display); font-size: 16px; font-weight: 700; color: var(--qw-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.qw-biz-name:hover { color: var(--qw-primary); }
.qw-biz-cat { font-size: 12px; color: var(--qw-muted); margin-top: 1px; }
.qw-biz-sub { font-size: 12px; color: var(--qw-subtle); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qw-biz-stats { display: grid; grid-template-columns: repeat(3, 1fr); background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%); border: 1px solid var(--qw-line); border-radius: 12px; padding: 10px 8px; margin-bottom: 18px; text-align: center; }
.qw-biz-stats .n { font-family: var(--qw-display); font-size: 17px; font-weight: 800; color: var(--qw-ink); line-height: 1.1; display: block; }
.qw-biz-stats .n.green { color: #059669; } .qw-biz-stats .n.rose { color: #e11d48; }
.qw-biz-stats .l { font-size: 11px; color: var(--qw-muted); font-weight: 500; }
.qw-biz-actions { display: flex; align-items: center; gap: 8px; margin-top: auto; }
.btn-manage { flex: 1; background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%); color: #fff; border: 0; padding: 9px 14px; border-radius: 12px; font-size: 13.5px; font-weight: 600; text-align: center; }
.btn-manage:hover { background: #1d4ed8; color: #fff; }
.btn-icon-action { width: 38px; height: 38px; border-radius: 12px; background: #fff; border: 1px solid var(--qw-line); color: var(--qw-muted); display: inline-flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.btn-icon-action:hover { background: #f1f5f9; color: var(--qw-primary); border-color: var(--qw-primary-line); }
.qw-dashed { border: 1.5px dashed #cbd5e1; border-radius: var(--qw-radius-xl); background: #fff; }

/* ── Feedback triage cards ─────────────────────────────────────────────── */
.qw-fb-list { display: flex; flex-direction: column; gap: 16px; }
.qw-fb { background: #fff; border-radius: var(--qw-radius-xl); padding: 20px 24px; border: 1px solid var(--qw-line); box-shadow: var(--qw-shadow-sm); display: flex; flex-direction: column; gap: 12px; transition: box-shadow .2s ease; border-left: 4px solid #cbd5e1; }
.qw-fb:hover { box-shadow: var(--qw-shadow); }
.qw-fb.r1, .qw-fb.r2 { border-left-color: #e11d48; background: linear-gradient(90deg, #fffafb 0%, #fff 30%); }
.qw-fb.r3 { border-left-color: #f59e0b; background: linear-gradient(90deg, #fffdf6 0%, #fff 30%); }
.qw-fb.r4, .qw-fb.r5 { border-left-color: #10b981; }
.qw-fb.resolved { border-left-color: #10b981; opacity: .92; }
.qw-fb-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.qw-fb-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.qw-fb-av { width: 38px; height: 38px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex-shrink: 0; background: #ffe4e6; color: #be123c; }
.qw-fb.r3 .qw-fb-av { background: #fef3c7; color: #b45309; }
.qw-fb.r4 .qw-fb-av, .qw-fb.r5 .qw-fb-av { background: #d1fae5; color: #047857; }
.qw-fb-name { font-weight: 700; color: var(--qw-ink); font-size: 14.5px; }
.qw-fb-meta { font-size: 12.5px; color: var(--qw-muted); }
.qw-fb-star { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 99px; font-size: 12.5px; font-weight: 700; border: 1px solid; white-space: nowrap; }
.qw-fb-star.r1, .qw-fb-star.r2 { background: #fff1f2; color: #e11d48; border-color: #fecdd3; }
.qw-fb-star.r3 { background: #fffbeb; color: #b45309; border-color: #fde68a; }
.qw-fb-star.r4, .qw-fb-star.r5 { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.qw-fb-quote { background: #fff; padding: 14px 18px; border-radius: 12px; border: 1px solid var(--qw-line); font-size: 14px; color: var(--qw-ink); line-height: 1.6; }
.qw-fb-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-top: 4px; }
.btn-call { background: linear-gradient(135deg, #f43f5e, #e11d48); color: #fff; border: 0; font-weight: 600; }
.btn-call:hover { background: #be123c; color: #fff; }
.btn-wa { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; font-weight: 600; }
.btn-wa:hover { background: #d1fae5; color: #065f46; }
.btn-voucher { background: linear-gradient(135deg, #2563eb, #1d4ed8); color: #fff; border: 0; font-weight: 600; }
.btn-voucher:hover { color: #fff; background: #1d4ed8; }
.qw-urgent-pill { display: inline-flex; align-items: center; gap: 5px; background: #fff1f2; color: #e11d48; border: 1px solid #fecdd3; padding: 6px 12px; border-radius: 99px; font-size: 12.5px; font-weight: 700; }

/* ── Mini feedback stream (dashboard) ──────────────────────────────────── */
.qw-mini-fb { background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%); border: 1px solid var(--qw-line); border-radius: 12px; padding: 12px 14px; display: block; color: inherit; transition: border-color .15s ease; }
.qw-mini-fb:hover { border-color: #bfdbfe; color: inherit; }
.qw-mini-stream { display: flex; flex-direction: column; gap: 10px; }

/* ── Quick actions ─────────────────────────────────────────────────────── */
.btn-quick { display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: 12px; border: 1.5px solid; background: #fff; font-weight: 600; font-size: 14px; transition: all .15s ease; }
.btn-quick.blue { border-color: #2563eb; color: #2563eb; } .btn-quick.blue:hover { background: #eff6ff; }
.btn-quick.green { border-color: #059669; color: #059669; } .btn-quick.green:hover { background: #ecfdf5; }
.btn-quick.amber { border-color: #d97706; color: #d97706; } .btn-quick.amber:hover { background: #fffbeb; }
.btn-quick.purple { border-color: #7c3aed; color: #7c3aed; } .btn-quick.purple:hover { background: #f5f3ff; }

/* ── Funnel (rating gate protocol) ─────────────────────────────────────── */
.qw-protocol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.qw-protocol > div { border-radius: 14px; padding: 18px 20px; border: 1px solid; }
.qw-protocol .s1 { background: #eff6ff; border-color: #bfdbfe; } .qw-protocol .s1 .t, .qw-protocol .s1 .p { color: #1d4ed8; }
.qw-protocol .s2 { background: #ecfdf5; border-color: #a7f3d0; } .qw-protocol .s2 .t, .qw-protocol .s2 .p { color: #047857; }
.qw-protocol .s3 { background: #f5f3ff; border-color: #ddd6fe; } .qw-protocol .s3 .t, .qw-protocol .s3 .p { color: #6d28d9; }
.qw-protocol .t { font-size: 13px; font-weight: 700; }
.qw-protocol .v { font-family: var(--qw-display); font-size: 28px; font-weight: 800; color: var(--qw-ink); margin: 6px 0 4px; font-variant-numeric: tabular-nums; }
.qw-protocol .p { font-size: 12.5px; font-weight: 500; }
@media (max-width: 767.98px) { .qw-protocol { grid-template-columns: 1fr; } }

/* ── Pricing ───────────────────────────────────────────────────────────── */
.qw-pricing-head { text-align: center; margin-bottom: 24px; }
.qw-pricing-head h1 { font-family: var(--qw-display); font-size: 32px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 6px; }
.qw-pricing-head p { color: var(--qw-muted); font-size: 15px; }
.qw-current-plan { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; border-radius: 12px; padding: 12px 18px; font-size: 14px; margin-bottom: 28px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.qw-pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; align-items: stretch; }
.qw-price-card { background: #fff; border: 1px solid var(--qw-line); border-radius: var(--qw-radius-xl); padding: 28px; box-shadow: var(--qw-shadow-sm); display: flex; flex-direction: column; position: relative; transition: all .2s ease; }
.qw-price-card:hover { box-shadow: var(--qw-shadow); }
.qw-price-card.featured { border-color: #2563eb; box-shadow: 0 10px 30px -10px rgba(37, 99, 235, .35); }
.qw-price-card.current { border-color: #10b981; }
.qw-price-ribbon { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, #2563eb, #1d4ed8); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 12px; border-radius: 99px; white-space: nowrap; box-shadow: 0 4px 10px rgba(37, 99, 235, .3); }
.qw-price-card.current .qw-price-ribbon { background: linear-gradient(135deg, #10b981, #047857); }
.qw-price-card .tier { font-family: var(--qw-display); font-size: 19px; font-weight: 700; color: var(--qw-ink); }
.qw-price-card .price { font-family: var(--qw-display); font-size: 38px; font-weight: 800; color: var(--qw-ink); letter-spacing: -.03em; margin: 6px 0 2px; line-height: 1.1; }
.qw-price-card .price small { font-size: 13px; font-weight: 600; color: var(--qw-muted); letter-spacing: 0; }
.qw-price-card .desc { font-size: 13px; color: var(--qw-muted); min-height: 20px; }
.qw-price-card ul { list-style: none; padding: 0; margin: 20px 0 24px; flex: 1; display: grid; gap: 11px; align-content: start; }
.qw-price-card li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: #334155; }
.qw-check { width: 20px; height: 20px; border-radius: 50%; background: #d1fae5; color: #047857; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0; }
.qw-price-card li.off { color: var(--qw-subtle); } .qw-price-card li.off .qw-check { background: #f1f5f9; color: #94a3b8; }
.btn-plan { width: 100%; padding: 12px; border-radius: 12px; font-weight: 700; font-size: 14px; }
.btn-plan.solid { background: linear-gradient(135deg, #2563eb, #1d4ed8); color: #fff; border: 0; box-shadow: 0 4px 12px rgba(37, 99, 235, .25); }
.btn-plan.solid:hover { color: #fff; background: #1d4ed8; }
.btn-plan.outline { background: #fff; color: #2563eb; border: 1.5px solid #2563eb; }
.btn-plan.outline:hover { background: #eff6ff; }
.btn-plan.current { background: #f1f5f9; color: #64748b; border: 1px solid var(--qw-line); }

/* ── QR & NFC studio ───────────────────────────────────────────────────── */
.qw-studio { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 991.98px) { .qw-studio { grid-template-columns: 1fr; } }
.qw-stage { background: linear-gradient(145deg, #1e293b, #0f172a); border-radius: var(--qw-radius-xl); padding: 40px 24px 32px; display: flex; flex-direction: column; align-items: center; box-shadow: 0 20px 40px rgba(15, 23, 42, .25); position: sticky; top: 92px; }
.qw-standee { background: #fff; width: 270px; max-width: 100%; border-radius: 20px; box-shadow: 0 25px 50px -12px rgba(0,0,0,.5); border: 2px solid rgba(255,255,255,.9); padding: 22px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; transform: perspective(900px) rotateX(4deg); transition: all .3s ease; }
.qw-standee.tent { border-radius: 8px; background: linear-gradient(180deg, #fffaf2, #fff); border-color: #e7d8bf; }
.qw-standee.sticker { border-radius: 50%; width: 250px; height: 250px; padding: 26px; justify-content: center; gap: 6px; }
.qw-standee.card { width: 290px; border-radius: 14px; flex-direction: row; text-align: left; padding: 16px; gap: 14px; transform: perspective(900px) rotateX(8deg) rotateZ(-3deg); }
.qw-standee .biz { font-family: var(--qw-display); font-weight: 800; font-size: 15px; letter-spacing: .02em; color: var(--qw-ink); text-transform: uppercase; }
.qw-standee .stars { color: #f5a524; letter-spacing: 2px; font-size: 14px; }
.qw-standee .cta { font-size: 11.5px; font-weight: 800; color: #2563eb; letter-spacing: .06em; text-transform: uppercase; }
.qw-standee .qr { width: 150px; padding: 8px; border-radius: 12px; border: 1px solid var(--qw-line); background: #fff; }
.qw-standee.sticker .qr { width: 120px; }
.qw-standee.card .qr { width: 110px; flex-shrink: 0; }
.qw-standee .qr svg { width: 100%; height: auto; display: block; }
.qw-standee .small { font-size: 10.5px; color: var(--qw-subtle); }
.qw-nfc { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, #2563eb, #1d4ed8); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; box-shadow: 0 4px 10px rgba(37, 99, 235, .3); }
.qw-standee-base { width: 300px; max-width: 100%; height: 14px; background: linear-gradient(180deg, #94a3b8 0%, #64748b 100%); border-radius: 6px; margin-top: -4px; box-shadow: 0 10px 15px -3px rgba(0,0,0,.3); }
.qw-stage-cap { color: #94a3b8; font-size: 13px; margin-top: 18px; }

/* ── Template gallery ──────────────────────────────────────────────────── */
.qw-tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.qw-tpl { border: 1.5px solid var(--qw-line); border-radius: 14px; overflow: hidden; background: #fff; cursor: pointer; position: relative; transition: all .15s ease; display: block; margin: 0; }
.qw-tpl:hover { border-color: #93c5fd; }
.qw-tpl:has(input:checked), .qw-tpl.selected { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, .18); }
.qw-tpl input { position: absolute; opacity: 0; }
.qw-tpl-shot { height: 210px; overflow: hidden; position: relative; background: #f1f5f9; }
.qw-tpl-shot iframe { width: calc(100% / .42); height: calc(210px / .42); border: 0; transform: scale(.42); transform-origin: 0 0; pointer-events: none; }
.qw-tpl-meta { padding: 9px 11px; border-top: 1px solid var(--qw-line-soft); }
.qw-tpl-meta .n { font-weight: 700; font-size: 13px; color: var(--qw-ink); display: flex; align-items: center; justify-content: space-between; }
.qw-tpl-meta .b { font-size: 11px; color: var(--qw-muted); }
.qw-tpl-check { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #cbd5e1; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; color: transparent; }
.qw-tpl:has(input:checked) .qw-tpl-check, .qw-tpl.selected .qw-tpl-check { background: #2563eb; border-color: #2563eb; color: #fff; }
.qw-tpl-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.qw-tpl-filter { border: 1px solid var(--qw-line); background: #fff; color: #475569; border-radius: 99px; padding: 5px 12px; font-size: 12.5px; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.qw-tpl-filter span { font-size: 11px; color: var(--qw-subtle); }
.qw-tpl-filter:hover { border-color: #93c5fd; color: var(--qw-primary); }
.qw-tpl-filter.active { background: linear-gradient(135deg, #2563eb, #1d4ed8); border-color: #1d4ed8; color: #fff; }
.qw-tpl-filter.active span { color: rgba(255,255,255,.8); }

/* ── Toggle switch (design) ───────────────────────────────────────────── */
.qw-switch { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; }
.qw-switch input { opacity: 0; width: 0; height: 0; }
.qw-switch span { position: absolute; inset: 0; cursor: pointer; background: #cbd5e1; border-radius: 24px; transition: .3s; }
.qw-switch span::before { content: ''; position: absolute; height: 18px; width: 18px; left: 3px; bottom: 3px; background: #fff; border-radius: 50%; transition: .3s; box-shadow: 0 1px 2px rgba(0,0,0,.15); }
.qw-switch input:checked + span { background: #2563eb; }
.qw-switch input:checked + span::before { transform: translateX(20px); }
.qw-switch input:focus-visible + span { outline: 2px solid #2563eb; outline-offset: 2px; }

/* ── Steps (help) ─────────────────────────────────────────────────────── */
.qw-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 767.98px) { .qw-steps { grid-template-columns: 1fr; } }
.qw-step-n { width: 30px; height: 30px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-family: var(--qw-display); margin-bottom: 12px; }
.qw-code { background: #0f172a; color: #e2e8f0; border-radius: 12px; padding: 14px 16px; font-size: 12.5px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; word-break: break-all; margin: 0; }

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn { --bs-btn-font-weight: 600; --bs-btn-font-size: 13.5px; --bs-btn-padding-y: 8px; --bs-btn-padding-x: 16px; --bs-btn-border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; }
.btn-sm { --bs-btn-font-size: 12.5px; --bs-btn-padding-y: 4px; --bs-btn-padding-x: 10px; }
.btn-lg { --bs-btn-font-size: 15px; --bs-btn-padding-y: 11px; --bs-btn-padding-x: 20px; }
.btn-primary, .btn-primary-rt {
  --bs-btn-bg: var(--qw-primary); --bs-btn-border-color: var(--qw-primary); --bs-btn-color: #fff;
  --bs-btn-hover-bg: var(--qw-primary-hover); --bs-btn-hover-border-color: var(--qw-primary-hover); --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--qw-primary-hover); --bs-btn-active-border-color: var(--qw-primary-hover);
  --bs-btn-disabled-bg: var(--qw-primary); --bs-btn-disabled-border-color: var(--qw-primary);
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%); border: 1px solid #1d4ed8; color: #fff; box-shadow: 0 2px 6px rgba(37, 99, 235, .25);
}
.btn-primary:hover, .btn-primary-rt:hover { background: #1d4ed8; box-shadow: 0 4px 12px rgba(37, 99, 235, .35); }
.btn-primary-rt:hover { background: var(--qw-primary-hover); color: #fff; }
.btn-light, .btn-outline-secondary {
  --bs-btn-bg: #fff; --bs-btn-color: var(--qw-ink); --bs-btn-border-color: var(--qw-line);
  --bs-btn-hover-bg: var(--qw-bg); --bs-btn-hover-color: var(--qw-ink); --bs-btn-hover-border-color: #d3d9e3;
  --bs-btn-active-bg: var(--qw-line-soft); --bs-btn-active-color: var(--qw-ink); --bs-btn-active-border-color: #d3d9e3;
  box-shadow: var(--qw-shadow-sm);
}
.btn-ghost { --bs-btn-color: var(--qw-muted); --bs-btn-hover-bg: var(--qw-line-soft); --bs-btn-hover-color: var(--qw-ink); --bs-btn-border-color: transparent; --bs-btn-hover-border-color: transparent; --bs-btn-active-bg: var(--qw-line); }
.btn-soft { --bs-btn-bg: var(--qw-primary-soft); --bs-btn-color: var(--qw-primary); --bs-btn-border-color: transparent; --bs-btn-hover-bg: #e0e6fc; --bs-btn-hover-color: var(--qw-primary-hover); --bs-btn-hover-border-color: transparent; }
.btn-danger { --bs-btn-bg: var(--qw-danger); --bs-btn-border-color: var(--qw-danger); --bs-btn-hover-bg: #b9233e; --bs-btn-hover-border-color: #b9233e; }
.btn-outline-danger { --bs-btn-color: var(--qw-danger); --bs-btn-border-color: #f3c3cc; --bs-btn-hover-bg: var(--qw-danger); --bs-btn-hover-border-color: var(--qw-danger); }
.btn-success { --bs-btn-bg: var(--qw-success); --bs-btn-border-color: var(--qw-success); --bs-btn-hover-bg: #0b8a5f; --bs-btn-hover-border-color: #0b8a5f; }
.btn-icon { width: 32px; height: 32px; padding: 0 !important; }
.btn-icon.btn-sm { width: 28px; height: 28px; }
.btn .spinner-border { width: 14px; height: 14px; border-width: 2px; }
.btn.is-loading { pointer-events: none; opacity: .75; }

/* ── Forms ─────────────────────────────────────────────────────────────── */
.form-label { font-size: 13px; font-weight: 600; color: var(--qw-ink); margin-bottom: 6px; }
.form-label .opt { font-weight: 400; color: var(--qw-subtle); }
.form-text { font-size: 12.5px; color: var(--qw-muted); margin-top: 5px; }
.form-control, .form-select {
  font-size: 14px; background-color: #fff; border-color: #d7dde7; border-radius: var(--qw-radius); padding: 8px 12px; color: var(--qw-ink); box-shadow: var(--qw-shadow-sm);
}
.form-select { padding-right: 34px; }
.form-control-sm, .form-select-sm { font-size: 13px; padding-top: 5px; padding-bottom: 5px; }
.form-select-sm { padding-right: 30px; }
.form-control:focus, .form-select:focus { border-color: var(--qw-primary); box-shadow: 0 0 0 3px rgba(35, 71, 217, .15); }
.form-control::placeholder { color: #a9b1c0; }
.form-control.is-invalid, .form-select.is-invalid { border-color: var(--qw-danger); }
.invalid-feedback { font-size: 12.5px; color: var(--qw-danger); }
.form-check-input { background-color: #fff; }
.form-check-input:checked { background-color: var(--qw-primary); border-color: var(--qw-primary); }
.form-check-input:focus { box-shadow: 0 0 0 3px rgba(35, 71, 217, .15); border-color: var(--qw-primary); }
.form-switch .form-check-input { width: 2.2em; height: 1.2em; cursor: pointer; }
.input-group-text { background: var(--qw-bg); border-color: #d7dde7; font-size: 13px; color: var(--qw-muted); }
.form-control-color { width: 44px; padding: 4px; height: 38px; }

.qw-form-section { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; padding: 22px 0; border-top: 1px solid var(--qw-line); }
.qw-form-section:first-child { border-top: 0; padding-top: 0; }
.qw-form-section h3 { font-size: 15px; font-weight: 600; margin: 0 0 4px; }
.qw-form-section p { font-size: 13px; color: var(--qw-muted); margin: 0; }
@media (max-width: 991.98px) { .qw-form-section { grid-template-columns: 1fr; gap: 14px; } }

.qw-choice { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--qw-line); border-radius: var(--qw-radius); padding: 12px; cursor: pointer; background: #fff; height: 100%; }
.qw-choice:hover { border-color: #cbd3e1; }
.qw-choice input { margin-top: 3px; flex-shrink: 0; }
.qw-choice:has(input:checked) { border-color: var(--qw-primary); background: var(--qw-primary-soft); box-shadow: 0 0 0 1px var(--qw-primary) inset; }
.qw-choice .t { font-weight: 600; color: var(--qw-ink); font-size: 13.5px; }
.qw-choice .d { font-size: 12.5px; color: var(--qw-muted); }

.qw-toggle-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--qw-line-soft); }
.qw-toggle-row:last-child { border-bottom: 0; }
.qw-toggle-row .t { font-weight: 600; color: var(--qw-ink); font-size: 13.5px; }
.qw-toggle-row .d { font-size: 12.5px; color: var(--qw-muted); }

.qw-sticky-actions { position: sticky; bottom: 0; background: rgba(246, 247, 249, .92); backdrop-filter: blur(6px); border-top: 1px solid var(--qw-line); padding: 12px 0; margin-top: 16px; display: flex; justify-content: flex-end; gap: 8px; z-index: 5; }

/* ── Filters / toolbar ─────────────────────────────────────────────────── */
.qw-toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--qw-line-soft); }
.qw-search { position: relative; flex: 1 1 220px; max-width: 320px; }
.qw-search i { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--qw-subtle); font-size: 13px; }
.qw-search .form-control { padding-left: 32px; }
.qw-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--qw-line); margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; }
.qw-tabs a { padding: 9px 12px; color: var(--qw-muted); font-weight: 600; font-size: 13.5px; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }
.qw-tabs a:hover { color: var(--qw-ink); }
.qw-tabs a.active { color: var(--qw-primary); border-color: var(--qw-primary); }
.qw-tabs .c { font-size: 11.5px; background: var(--qw-line-soft); color: var(--qw-muted); padding: 0 7px; border-radius: 99px; font-weight: 600; }
.qw-tabs a.active .c { background: var(--qw-primary-soft); color: var(--qw-primary); }

.qw-segment { display: inline-flex; background: var(--qw-line-soft); border-radius: var(--qw-radius); padding: 3px; gap: 2px; flex-wrap: wrap; }
.qw-segment a, .qw-segment button { border: 0; background: transparent; padding: 4px 11px; font-size: 12.5px; font-weight: 600; border-radius: 6px; color: var(--qw-muted); white-space: nowrap; }
.qw-segment a:hover, .qw-segment button:hover { color: var(--qw-ink); }
.qw-segment .active { background: #fff; color: var(--qw-ink); box-shadow: var(--qw-shadow-sm); }

/* ── Tables ────────────────────────────────────────────────────────────── */
.qw-table { width: 100%; margin: 0; font-size: 13.5px; border-collapse: separate; border-spacing: 0; }
.qw-table th { font-size: 11px; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: .08em; padding: 12px 16px; border-bottom: 1px solid var(--qw-line); background: #f8fafc; white-space: nowrap; text-align: left; }
.qw-table td { padding: 13px 16px; border-bottom: 1px solid var(--qw-line-soft); vertical-align: middle; color: var(--qw-text); }
.qw-table tbody tr:last-child td { border-bottom: 0; }
.qw-table tbody tr:hover td { background: #fafbfd; }
.qw-table .t-main { font-weight: 600; color: var(--qw-ink); }
.qw-table .t-sub { font-size: 12px; color: var(--qw-muted); }
.qw-table td.num, .qw-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.qw-table a.row-link { color: inherit; }
.qw-table a.row-link:hover .t-main { color: var(--qw-primary); }
.qw-table-wrap { overflow: visible; }

@media (max-width: 767.98px) {
  .qw-table.stack thead { display: none; }
  .qw-table.stack, .qw-table.stack tbody, .qw-table.stack tr, .qw-table.stack td { display: block; width: 100%; }
  .qw-table.stack tr { border-bottom: 1px solid var(--qw-line); padding: 10px 4px; }
  .qw-table.stack td { border: 0; padding: 4px 12px; text-align: left !important; }
  .qw-table.stack td[data-label]::before { content: attr(data-label); display: inline-block; min-width: 110px; color: var(--qw-muted); font-size: 12px; }
  .qw-table.stack td.actions { padding-top: 8px; }
}

/* ── Badges ────────────────────────────────────────────────────────────── */
.qw-badge { flex-shrink: 0; display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 99px; background: var(--qw-line-soft); color: var(--qw-muted); white-space: nowrap; line-height: 1.6; }
.qw-badge::before { content: none; }
.qw-badge.dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.qw-badge.success { background: #ecfdf5; color: #047857; box-shadow: inset 0 0 0 1px #a7f3d0; }
.qw-badge.warning { background: #fffbeb; color: #b45309; box-shadow: inset 0 0 0 1px #fde68a; }
.qw-badge.danger  { background: #fff1f2; color: #e11d48; box-shadow: inset 0 0 0 1px #fecdd3; }
.qw-badge.info    { background: #f0f9ff; color: #0369a1; box-shadow: inset 0 0 0 1px #bae6fd; }
.qw-badge.primary { background: #eff6ff; color: #1d4ed8; box-shadow: inset 0 0 0 1px #bfdbfe; }
.qw-badge.outline { background: #fff; border: 1px solid var(--qw-line); color: var(--qw-text); }

.qw-stars { color: var(--qw-star); letter-spacing: 1px; font-size: 13px; white-space: nowrap; }
.qw-stars .off { color: #dfe3ea; }
.qw-rating-pill { align-self: flex-start; flex-shrink: 0; display: inline-flex; align-items: center; gap: 3px; font-weight: 700; font-size: 12.5px; padding: 2px 8px; border-radius: 6px; }
.qw-rating-pill.r1, .qw-rating-pill.r2 { background: var(--qw-danger-soft); color: var(--qw-danger); }
.qw-rating-pill.r3 { background: var(--qw-warning-soft); color: var(--qw-warning); }
.qw-rating-pill.r4, .qw-rating-pill.r5 { background: var(--qw-success-soft); color: var(--qw-success); }

/* ── Alerts / flash ────────────────────────────────────────────────────── */
.qw-alert { display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; border-radius: var(--qw-radius); font-size: 13.5px; border: 1px solid; margin-bottom: 16px; }
.qw-alert i { font-size: 16px; line-height: 1.3; }
.qw-alert.success { background: var(--qw-success-soft); border-color: #bfe8d6; color: #075e42; }
.qw-alert.error, .qw-alert.danger { background: var(--qw-danger-soft); border-color: #f6c6cf; color: #8f1730; }
.qw-alert.warning { background: var(--qw-warning-soft); border-color: #f4d9ab; color: #7a4204; }
.qw-alert.info { background: var(--qw-info-soft); border-color: #bfe0ee; color: #08587a; }
.qw-alert .close { margin-left: auto; background: none; border: 0; color: inherit; opacity: .6; padding: 0 2px; }
.qw-alert ul { margin: 4px 0 0; padding-left: 18px; }

.qw-toast-wrap { position: fixed; right: 20px; bottom: 20px; z-index: 1090; display: grid; gap: 8px; }
.qw-toast { background: var(--qw-ink); color: #fff; padding: 10px 14px; border-radius: var(--qw-radius); font-size: 13px; box-shadow: var(--qw-shadow-pop); display: flex; gap: 8px; align-items: center; animation: qw-in .18s ease-out; }
@keyframes qw-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ── Empty / states ────────────────────────────────────────────────────── */
.qw-empty { text-align: center; padding: 44px 20px; }
.qw-empty-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--qw-primary-soft); color: var(--qw-primary); display: inline-flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 14px; }
.qw-empty h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.qw-empty p { color: var(--qw-muted); max-width: 46ch; margin: 0 auto 16px; font-size: 13.5px; }
.qw-empty.compact { padding: 26px 16px; }
.qw-empty.compact .qw-empty-icon { width: 40px; height: 40px; font-size: 17px; margin-bottom: 10px; }

/* ── Lists ─────────────────────────────────────────────────────────────── */
.qw-list { list-style: none; margin: 0; padding: 0; }
.qw-list > li { padding: 12px 18px; border-bottom: 1px solid var(--qw-line-soft); }
.qw-list > li:last-child { border-bottom: 0; }
.qw-list a.item { display: flex; align-items: flex-start; gap: 12px; color: inherit; margin: -12px -18px; padding: 12px 18px; }
.qw-list a.item:hover { background: #fafbfd; }

.qw-timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.qw-timeline li { display: flex; gap: 12px; padding: 0 0 16px; position: relative; }
.qw-timeline li::before { content: ''; position: absolute; left: 13px; top: 28px; bottom: 0; width: 1px; background: var(--qw-line); }
.qw-timeline li:last-child::before { display: none; }
.qw-timeline .ic { width: 27px; height: 27px; border-radius: 50%; background: var(--qw-bg); border: 1px solid var(--qw-line); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; color: var(--qw-muted); flex-shrink: 0; }

/* ── Bars (inline chart-free breakdowns) ───────────────────────────────── */
.qw-bar-row { display: grid; grid-template-columns: minmax(80px, 130px) 1fr 52px; gap: 10px; align-items: center; font-size: 13px; padding: 5px 0; }
.qw-bar { height: 8px; border-radius: 99px; background: var(--qw-line-soft); overflow: hidden; }
.qw-bar > span { display: block; height: 100%; border-radius: 99px; background: var(--qw-primary); }
.qw-bar.success > span { background: var(--qw-success); }
.qw-bar.danger > span { background: var(--qw-danger); }
.qw-bar.star > span { background: var(--qw-star); }

/* Funnel */
.qw-funnel { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.qw-funnel-step { padding: 14px; border-radius: var(--qw-radius); background: var(--qw-bg); position: relative; }
.qw-funnel-step .v { font-family: var(--qw-display); font-size: 22px; font-weight: 600; color: var(--qw-ink); font-variant-numeric: tabular-nums; }
.qw-funnel-step .l { font-size: 12.5px; color: var(--qw-muted); }
.qw-funnel-step .p { font-size: 12px; font-weight: 600; color: var(--qw-primary); margin-top: 4px; }
.qw-funnel-step .fill { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--qw-primary); border-radius: 0 0 0 var(--qw-radius); }
@media (max-width: 767.98px) { .qw-funnel { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ── Chart containers ──────────────────────────────────────────────────── */
.qw-chart { position: relative; height: 260px; }
.qw-chart.sm { height: 180px; }
.qw-legend { display: flex; gap: 14px; font-size: 12.5px; color: var(--qw-muted); flex-wrap: wrap; }
.qw-legend span { display: inline-flex; align-items: center; gap: 6px; }
.qw-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

/* ── Dropdowns / modals ────────────────────────────────────────────────── */
.dropdown-menu { --bs-dropdown-font-size: 13.5px; --bs-dropdown-border-color: var(--qw-line); --bs-dropdown-border-radius: var(--qw-radius-lg); --bs-dropdown-box-shadow: var(--qw-shadow-pop); --bs-dropdown-link-active-bg: var(--qw-primary-soft); --bs-dropdown-link-active-color: var(--qw-primary); --bs-dropdown-item-padding-y: 7px; padding: 6px; box-shadow: var(--bs-dropdown-box-shadow); }
.dropdown-item { border-radius: 6px; display: flex; align-items: center; gap: 8px; }
.dropdown-item i { color: var(--qw-subtle); width: 16px; }
.dropdown-item.text-danger i { color: inherit; }
.dropdown-header { font-size: 12px; color: var(--qw-subtle); }
.qw-notif-menu { width: 360px; max-width: calc(100vw - 24px); padding: 0; }
.qw-notif-menu .head { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--qw-line-soft); }
.qw-notif { display: flex; gap: 10px; padding: 11px 14px; color: inherit; border-bottom: 1px solid var(--qw-line-soft); }
.qw-notif:hover { background: var(--qw-bg); }
.qw-notif.unread { background: #f7f9ff; }
.qw-notif .ic { width: 30px; height: 30px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 14px; }
.tone-info { background: var(--qw-info-soft); color: var(--qw-info); }
.tone-success { background: var(--qw-success-soft); color: var(--qw-success); }
.tone-warning { background: var(--qw-warning-soft); color: var(--qw-warning); }
.tone-danger { background: var(--qw-danger-soft); color: var(--qw-danger); }
.modal-content { border: 0; border-radius: 14px; box-shadow: var(--qw-shadow-pop); }
.modal-header { border-bottom: 1px solid var(--qw-line-soft); padding: 16px 20px; }
.modal-title { font-size: 16px; font-weight: 600; }
.modal-body { padding: 20px; }
.modal-footer { border-top: 1px solid var(--qw-line-soft); padding: 12px 20px; }
.modal-backdrop.show { opacity: .4; }

/* ── Pagination ────────────────────────────────────────────────────────── */
.pagination { --bs-pagination-font-size: 13px; --bs-pagination-color: var(--qw-text); --bs-pagination-border-color: var(--qw-line); --bs-pagination-active-bg: var(--qw-primary); --bs-pagination-active-border-color: var(--qw-primary); --bs-pagination-hover-bg: var(--qw-bg); --bs-pagination-focus-box-shadow: 0 0 0 3px rgba(35, 71, 217, .15); margin: 0; flex-wrap: wrap; }
.qw-pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--qw-line-soft); flex-wrap: wrap; font-size: 13px; color: var(--qw-muted); }
.qw-pager nav > div:first-child { display: none !important; }
.qw-pager nav p { display: none; }

/* ── QR specific ───────────────────────────────────────────────────────── */
.qw-qr-thumb { width: 44px; height: 44px; border-radius: 8px; border: 1px solid var(--qw-line); background: #fff; padding: 3px; flex-shrink: 0; object-fit: contain; }
.qw-qr-stage { background: var(--qw-bg); border-radius: var(--qw-radius-lg); padding: 24px; display: flex; align-items: center; justify-content: center; }
.qw-qr-stage .frame { background: #fff; padding: 14px; border-radius: 12px; box-shadow: var(--qw-shadow); width: 100%; max-width: 240px; }
.qw-qr-stage svg { width: 100%; height: auto; display: block; }
.qw-copy { display: flex; align-items: center; gap: 6px; background: var(--qw-bg); border: 1px solid var(--qw-line); border-radius: var(--qw-radius); padding: 4px 4px 4px 10px; font-size: 12.5px; min-width: 0; }
.qw-copy code { color: var(--qw-ink); background: none; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }

.qw-setup { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.qw-setup a, .qw-setup div.step { display: flex; gap: 10px; padding: 14px 16px; border-right: 1px solid var(--qw-line-soft); color: inherit; align-items: flex-start; }
.qw-setup > :last-child { border-right: 0; }
.qw-setup .chk { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid #cdd4df; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; color: transparent; margin-top: 1px; }
.qw-setup .done .chk { background: var(--qw-success); border-color: var(--qw-success); color: #fff; }
.qw-setup .done .t { color: var(--qw-muted); text-decoration: line-through; text-decoration-color: #c4cad5; }
.qw-setup .t { font-weight: 600; font-size: 13.5px; color: var(--qw-ink); }
.qw-setup .d { font-size: 12.5px; color: var(--qw-muted); }
@media (max-width: 991.98px) { .qw-setup { grid-template-columns: 1fr 1fr; } .qw-setup > * { border-bottom: 1px solid var(--qw-line-soft); } }
@media (max-width: 575.98px) { .qw-setup { grid-template-columns: 1fr; } .qw-setup > * { border-right: 0 !important; } }

.qw-phone { width: 300px; max-width: 100%; height: 600px; border-radius: 36px; border: 10px solid var(--qw-ink); overflow: hidden; background: #fff; margin: 0 auto; box-shadow: var(--qw-shadow-pop); }
.qw-phone iframe { width: 100%; height: 100%; border: 0; }

/* ── Plans ─────────────────────────────────────────────────────────────── */
.qw-plan { display: flex; flex-direction: column; height: 100%; padding: 22px; }
.qw-plan.current { border-color: var(--qw-primary); box-shadow: 0 0 0 1px var(--qw-primary); }
.qw-plan .price { font-family: var(--qw-display); font-size: 32px; font-weight: 600; color: var(--qw-ink); line-height: 1.1; }
.qw-plan .price small { font-size: 14px; color: var(--qw-muted); font-weight: 500; }
.qw-plan ul { list-style: none; padding: 0; margin: 16px 0 20px; font-size: 13.5px; flex: 1; }
.qw-plan li { display: flex; gap: 8px; padding: 4px 0; }
.qw-plan li i { color: var(--qw-success); }

/* ── Auth ──────────────────────────────────────────────────────────────── */
.qw-auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: #fff; }
.qw-auth-panel { display: flex; flex-direction: column; padding: 32px 48px; }
.qw-auth-form { width: 100%; max-width: 380px; margin: auto; padding: 32px 0; }
.qw-auth-form h1 { font-size: 26px; font-weight: 600; margin-bottom: 6px; }
.qw-auth-form .lead { color: var(--qw-muted); font-size: 14px; margin-bottom: 26px; }
.qw-auth-aside { background: var(--qw-ink); color: #c9d1e0; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 48px; }
.qw-auth-aside h2 { color: #fff; font-size: 30px; font-weight: 600; line-height: 1.2; max-width: 16ch; margin-bottom: 14px; }
.qw-auth-aside p { max-width: 42ch; font-size: 15px; }
.qw-auth-flow { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; font-size: 13px; }
.qw-auth-flow span { border: 1px solid rgba(255, 255, 255, .16); padding: 6px 12px; border-radius: 99px; color: #e6ebf4; }
.qw-auth-grid { position: absolute; inset: 0; opacity: .5; pointer-events: none; }
@media (max-width: 991.98px) {
  .qw-auth { grid-template-columns: 1fr; }
  .qw-auth-aside { display: none; }
  .qw-auth-panel { padding: 24px 20px; }
}

/* ── Misc ──────────────────────────────────────────────────────────────── */
.qw-divider { height: 1px; background: var(--qw-line-soft); margin: 16px 0; }
.qw-kbd { font-size: 11px; border: 1px solid var(--qw-line); border-bottom-width: 2px; border-radius: 4px; padding: 0 5px; color: var(--qw-muted); background: #fff; }
.qw-switcher { max-width: 240px; }
.qw-help { font-size: 12.5px; color: var(--qw-muted); display: block; }
.qw-help > i:first-child { margin-right: 5px; }
.qw-swatch { width: 14px; height: 14px; border-radius: 4px; display: inline-block; border: 1px solid rgba(0,0,0,.1); vertical-align: -2px; }
.progress { --bs-progress-bar-bg: var(--qw-primary); border-radius: 99px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media print {
  .qw-sidebar, .qw-topbar, .qw-page-actions, .qw-toast-wrap { display: none !important; }
  .qw-main { margin: 0; }
}
@media (max-width: 575.98px) { .qw-search { max-width: none; flex-basis: 100%; } .qw-page-actions { width: 100%; } }

/* Review page designer — phone preview at real 375px width, sections, gallery, AI */
.qw-phone { width: 300px; height: 620px; position: relative; }
.qw-phone-screen { position: absolute; inset: 0; overflow: hidden; border-radius: 26px; }
.qw-phone-screen iframe { width: 375px; height: 804px; border: 0; transform: scale(.7467); transform-origin: 0 0; }
.qw-tpl-selected { position: absolute; left: 8px; bottom: 8px; background: #2563eb; color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; }
.qw-tpl-meta .n > span:first-child { min-width: 0; }
.qw-sec { border: 1px solid var(--qw-line); border-radius: 12px; padding: 12px; margin-bottom: 10px; background: #fff; }
.qw-sec.is-off { background: #f8fafc; opacity: .75; }
.qw-sec-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.qw-sec-thumb { width: 72px; height: 44px; object-fit: cover; border-radius: 8px; border: 1px solid var(--qw-line); }
.qw-drop { display: block; border: 2px dashed #cbd5e1; border-radius: 14px; padding: 18px; text-align: center; cursor: pointer; color: #475569; margin: 0; transition: all .15s ease; }
.qw-drop:hover, .qw-drop.over { border-color: #2563eb; background: #eff6ff; }
.qw-drop.busy { cursor: progress; opacity: .8; }
.qw-gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.qw-gal-item { border: 1px solid var(--qw-line); border-radius: 12px; overflow: hidden; background: #fff; cursor: grab; }
.qw-gal-item.dragging { opacity: .5; }
.qw-gal-item img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.qw-gal-tools { display: flex; justify-content: center; gap: 4px; padding: 6px 4px 0; }
.qw-gal-item .form-control { border: 0; border-top: 1px solid var(--qw-line-soft); border-radius: 0; margin-top: 6px; font-size: 12px; }
.qw-ai-ctx { background: #f8fafc; border: 1px solid var(--qw-line-soft); border-radius: 12px; padding: 12px 14px; }
.qw-tpl-rec { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: linear-gradient(135deg, #eef4ff, #f5f0ff); border: 1px solid #dbe4ff; border-radius: 12px; padding: 9px 12px; font-size: 13px; color: #1e293b; }
.qw-tpl-rec .bi-stars { color: #6d28d9; }
.qw-tpl-tag { position: absolute; left: 8px; top: 8px; background: #f59e0b; color: #1f1300; font-size: 10.5px; font-weight: 800; padding: 2px 8px; border-radius: 99px; }
.qw-tpl-pro { position: absolute; right: 8px; top: 8px; background: linear-gradient(135deg, #111827, #4338ca); color: #fff; font-size: 10px; letter-spacing: .08em; font-weight: 800; padding: 2px 7px; border-radius: 6px; }
