/* ============================================================
   MakeQRFree - theme v2 (responsive + modern landing)
   Palette: ink #14172B | scan-green #00C896 | paper #F7F8FB
   Type: Sora (display) + Inter (body)
   ============================================================ */

:root {
  --ink: #14172B;
  --module: #1E2340;
  --scan: #00C896;
  --scan-dark: #00A87E;
  --paper: #F7F8FB;
  --signal: #FFD166;
  --line: #E7E9F2;
}

html, body { height: 100%; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, .navbar-brand { font-family: 'Sora', sans-serif; }
img, canvas { max-width: 100%; }

/* ---------- Promo banner ---------- */
.promo-bar {
  background: linear-gradient(90deg, var(--scan-dark), var(--scan));
  color: var(--ink);
}
.promo-bar .promo-link { color: var(--ink); font-weight: 700; text-decoration: underline; }
.promo-bar .promo-close {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  filter: invert(1); opacity: .6; font-size: .7rem;
}

/* ---------- Use cases ---------- */
.usecase-card {
  border-radius: 16px; padding: 1.5rem; height: 100%;
  background: #fff; border: 1px solid var(--line);
  transition: border-color .2s ease;
}
.usecase-card:hover { border-color: var(--scan); }
.usecase-card .emoji { font-size: 1.8rem; }

/* ---------- Why us checklist ---------- */
.why-list { list-style: none; padding: 0; margin: 0; }
.why-list li {
  display: flex; gap: .75rem; align-items: start;
  padding: .7rem 0; border-bottom: 1px dashed var(--line);
}
.why-list li:last-child { border-bottom: none; }
.why-list .bi { color: var(--scan-dark); font-size: 1.15rem; flex-shrink: 0; margin-top: .1rem; }

/* ---------- Nav ---------- */
.site-nav { background: var(--ink); }
.site-nav .nav-link { color: rgba(255,255,255,.78); font-weight: 500; }
.site-nav .nav-link:hover, .site-nav .nav-link.active { color: #fff; }
.brand-mark {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--scan); color: var(--ink); margin-right: 6px;
}
.brand-accent { color: var(--scan); }

.btn-cta {
  background: var(--scan); color: var(--ink); font-weight: 600;
  border: none; border-radius: 10px;
}
.btn-cta:hover { background: var(--scan-dark); color: #fff; }
.btn-ink { background: var(--ink); color: #fff; font-weight: 600; border-radius: 10px; }
.btn-ink:hover { background: var(--module); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  background: var(--ink);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 14px, transparent 14px 28px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 14px, transparent 14px 28px);
  mask-image: linear-gradient(105deg, transparent 45%, #000 85%);
  -webkit-mask-image: linear-gradient(105deg, transparent 45%, #000 85%);
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { font-weight: 800; letter-spacing: -.02em; }
.hero .lead { color: rgba(255,255,255,.8); max-width: 560px; }
.hero-eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--scan); margin-bottom: .75rem;
}

/* Live try-it demo card in hero */
.demo-card {
  background: #fff; color: var(--ink);
  border-radius: 20px; padding: 1.5rem;
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
  max-width: 420px; width: 100%;
}
.demo-qr {
  display: grid; place-items: center;
  background: var(--paper); border-radius: 14px;
  padding: 1rem; min-height: 200px;
  position: relative;
}
.demo-qr img, .demo-qr canvas {
  width: 176px !important; height: 176px !important;
  border-radius: 8px;
}
.demo-lock {
  position: absolute; inset: 0; border-radius: 14px;
  display: grid; place-items: center;
  background: rgba(247,248,251,.55);
  backdrop-filter: blur(2px);
  opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.demo-qr.locked .demo-lock { opacity: 1; pointer-events: auto; }
.demo-lock .lock-pill {
  background: var(--ink); color: #fff;
  border-radius: 999px; padding: .5rem 1rem;
  font-size: .85rem; font-weight: 600;
  display: inline-flex; align-items: center; gap: .4rem;
}

/* ---------- Stats strip ---------- */
.stats-strip { background: #fff; border-bottom: 1px solid var(--line); }
.stat-num {
  font-family: 'Sora'; font-weight: 800; font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  color: var(--ink);
}
.stat-label { color: #6B7194; font-size: .85rem; font-weight: 500; }

/* ---------- Sections ---------- */
.section-eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--scan-dark);
}
.section-title { font-weight: 700; letter-spacing: -.01em; }

/* How it works */
.step-card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 1.5rem; height: 100%; position: relative;
}
.step-num {
  position: absolute; top: 1.1rem; right: 1.25rem;
  font-family: 'Sora'; font-weight: 800; font-size: 2rem;
  color: rgba(0,200,150,.22);
}
.step-card .icon {
  display: inline-grid; place-items: center;
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--ink); color: var(--scan);
  font-size: 1.3rem; margin-bottom: .85rem;
}

/* Feature cards */
.feature-card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 1.5rem; height: 100%;
  transition: transform .2s ease, box-shadow .2s ease;
}
@media (prefers-reduced-motion: no-preference) {
  .feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 34px rgba(20,23,43,.1);
  }
}
.feature-card .icon {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(0,200,150,.12); color: var(--scan-dark);
  font-size: 1.25rem; margin-bottom: .75rem;
}

/* Pricing / upsell */
.price-card {
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  padding: 2rem; height: 100%; position: relative;
}
.price-card.featured {
  background: var(--ink); color: #fff;
  border-color: var(--ink);
  box-shadow: 0 20px 50px rgba(20,23,43,.28);
}
.price-card.featured .text-muted { color: rgba(255,255,255,.65) !important; }
.price-value { font-family: 'Sora'; font-weight: 800; font-size: 2.6rem; }
.price-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--signal); color: var(--ink);
  font-size: .75rem; font-weight: 700; letter-spacing: .05em;
  border-radius: 999px; padding: .35rem .9rem; white-space: nowrap;
}
.price-list { list-style: none; padding: 0; margin: 0; }
.price-list li { padding: .45rem 0; display: flex; gap: .6rem; align-items: start; }
.price-list .bi-check-circle-fill { color: var(--scan); flex-shrink: 0; margin-top: .15rem; }
.price-list .bi-x-circle { color: #A9AFC6; flex-shrink: 0; margin-top: .15rem; }

/* Testimonials */
.quote-card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 1.5rem; height: 100%;
}
.quote-card .stars { color: var(--signal); letter-spacing: 2px; }
.avatar-dot {
  width: 42px; height: 42px; border-radius: 50%;
  display: inline-grid; place-items: center;
  font-weight: 700; font-family: 'Sora'; color: #fff;
}

/* FAQ */
.faq .accordion-item {
  border: 1px solid var(--line); border-radius: 14px !important;
  overflow: hidden; margin-bottom: .75rem; background: #fff;
}
.faq .accordion-button { font-weight: 600; background: #fff; box-shadow: none; }
.faq .accordion-button:not(.collapsed) { color: var(--scan-dark); background: rgba(0,200,150,.06); }

/* Bottom CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--ink) 0%, var(--module) 100%);
  color: #fff; border-radius: 24px;
  position: relative; overflow: hidden;
}
.cta-band::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(0,200,150,.08) 0 12px, transparent 12px 24px),
    repeating-linear-gradient(90deg, rgba(0,200,150,.08) 0 12px, transparent 12px 24px);
  mask-image: linear-gradient(75deg, transparent 55%, #000 95%);
  -webkit-mask-image: linear-gradient(75deg, transparent 55%, #000 95%);
}
.cta-band > * { position: relative; z-index: 1; }

/* ---------- Auth & generator cards ---------- */
.panel-card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 10px 30px rgba(20,23,43,.06);
}
.form-control:focus, .form-select:focus {
  border-color: var(--scan);
  box-shadow: 0 0 0 .2rem rgba(0,200,150,.15);
}

/* ---------- Generator: responsive tabs + preview ---------- */
.qr-type-tabs {
  flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; padding-bottom: .25rem;
}
.qr-type-tabs::-webkit-scrollbar { display: none; }
.qr-type-tabs .nav-link {
  color: var(--ink); font-weight: 500; border-radius: 10px; white-space: nowrap;
}
.qr-type-tabs .nav-link.active { background: var(--ink); color: #fff; }

#qrPreview {
  min-height: 200px;
  display: grid; place-items: center;
  background: var(--paper); border-radius: 14px; padding: 1rem;
}
/* Always display scaled-to-fit; full resolution is kept for download */
#qrPreview img, #qrPreview canvas {
  width: 100% !important; height: auto !important;
  max-width: 280px; border-radius: 8px;
}
.qr-empty { color: #9AA0B5; }

@media (max-width: 991px) {
  .preview-sticky { position: static !important; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #fff; }
.footer-link { color: rgba(255,255,255,.75); text-decoration: none; }
.footer-link:hover { color: var(--scan); }

/* ---------- Tables ---------- */
.table thead th {
  font-size: .78rem; text-transform: uppercase; letter-spacing: .06em;
  color: #6B7194;
}

/* ---------- Admin ---------- */
.admin-body { background: #EEF0F6; }
.admin-sidebar {
  background: var(--ink); min-height: 100vh; color: #fff;
  width: 240px; position: fixed; top: 0; left: 0; padding: 1.25rem 1rem;
}
.admin-sidebar .nav-link {
  color: rgba(255,255,255,.72); border-radius: 10px; padding: .55rem .8rem;
  font-weight: 500;
}
.admin-sidebar .nav-link:hover { color: #fff; background: rgba(255,255,255,.06); }
.admin-sidebar .nav-link.active { color: var(--ink); background: var(--scan); }
.admin-main { margin-left: 240px; padding: 1.75rem; width: calc(100% - 240px); }
@media (max-width: 991px) {
  .admin-sidebar { position: static; width: 100%; min-height: auto; }
  .admin-main { margin-left: 0; width: 100%; padding: 1rem; }
}
.stat-card {
  background: #fff; border-radius: 16px; padding: 1.25rem;
  border: 1px solid #E3E6F0;
}
.stat-card .value { font-family: 'Sora'; font-size: 1.9rem; font-weight: 700; }
.stat-card .label { color: #6B7194; font-size: .85rem; font-weight: 500; }
.badge-active { background: rgba(0,200,150,.15); color: var(--scan-dark); }
.badge-blocked { background: rgba(220,53,69,.12); color: #C0303E; }
