/* ============================================================
   QR Free online — unique skin (NOT Global / generate / store)
   Ember coral + electric mint on deep ink. Soft drift only.
   ============================================================ */

:root {
  --bg: #06050a !important;
  --panel: #12101a !important;
  --panel2: #1a1724 !important;
  --line: #3a3548 !important;
  --text: #f7f4ff !important;
  --muted: #cfc6e0 !important;
  --accent: #ff6b4a !important;
  --accent2: #3dffe8 !important;
  --blue: #ff6b4a !important;
  --yellow: #ffb347 !important;
  --focus: #3dffe8 !important;
  --font-display: "Syne", sans-serif !important;
  --font-brand: "Syne", sans-serif !important;
  --font-body: "DM Sans", sans-serif !important;
}

html {
  background: #06050a !important;
  color: var(--text) !important;
  font-family: var(--font-body) !important;
}

body {
  background: transparent !important;
  color: var(--text) !important;
  font-family: var(--font-body) !important;
}

/* —— Atmosphere (must sit ABOVE html bg; body is transparent) —— */
.bg-deco {
  position: fixed !important;
  inset: 0 !important;
  z-index: 0 !important;
  pointer-events: none !important;
  overflow: hidden !important;
  background:
    radial-gradient(ellipse 55% 40% at 12% 8%, rgba(255, 107, 74, 0.28), transparent 55%),
    radial-gradient(ellipse 45% 35% at 88% 92%, rgba(61, 255, 232, 0.2), transparent 50%),
    radial-gradient(ellipse 30% 25% at 70% 20%, rgba(255, 179, 71, 0.14), transparent 45%),
    linear-gradient(165deg, #05040a 0%, #0c0a12 48%, #06050a 100%) !important;
}

.bg-deco::before {
  content: "" !important;
  display: block !important;
  position: absolute;
  inset: -25%;
  background:
    radial-gradient(ellipse 42% 36% at 18% 30%, rgba(255, 107, 74, 0.4), transparent 62%),
    radial-gradient(ellipse 38% 42% at 78% 22%, rgba(61, 255, 232, 0.3), transparent 60%),
    radial-gradient(ellipse 48% 34% at 62% 78%, rgba(255, 179, 71, 0.24), transparent 58%),
    radial-gradient(ellipse 28% 28% at 40% 55%, rgba(255, 107, 74, 0.18), transparent 70%);
  filter: blur(36px);
  opacity: 1;
  animation: qfo-blobs 42s ease-in-out infinite alternate;
  pointer-events: none;
  will-change: transform;
  z-index: 0;
}

.bg-deco::after {
  content: "" !important;
  display: block !important;
  position: absolute;
  inset: -8%;
  background-image:
    linear-gradient(135deg, transparent 46%, rgba(61, 255, 232, 0.14) 49%, transparent 52%),
    linear-gradient(35deg, transparent 44%, rgba(255, 107, 74, 0.12) 50%, transparent 56%),
    repeating-linear-gradient(
      -18deg,
      transparent 0 38px,
      rgba(255, 255, 255, 0.035) 38px 39px
    );
  background-size: 140% 140%, 160% 160%, 100% 100%;
  opacity: 0.95;
  animation: qfo-abstract 48s ease-in-out infinite;
  pointer-events: none;
  mix-blend-mode: screen;
  will-change: transform, opacity;
  z-index: 1;
}

.bg-deco-orbit {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image:
    linear-gradient(#ff6b4a, #ff6b4a),
    linear-gradient(#3dffe8, #3dffe8),
    linear-gradient(#ffb347, #ffb347),
    linear-gradient(#ff6b4a, #ff6b4a),
    linear-gradient(#3dffe8, #3dffe8),
    linear-gradient(#ffb347, #ffb347),
    linear-gradient(rgba(255,107,74,0.5), rgba(255,107,74,0.5)),
    linear-gradient(rgba(61,255,232,0.45), rgba(61,255,232,0.45));
  background-size:
    12px 12px, 10px 10px, 14px 14px, 8px 8px,
    16px 16px, 9px 9px, 20px 20px, 11px 11px;
  background-repeat: no-repeat;
  background-position:
    12% 22%, 78% 18%, 64% 68%, 28% 72%,
    88% 58%, 42% 38%, 18% 58%, 52% 14%;
  opacity: 0.5;
  animation: qfo-orbit 55s ease-in-out infinite;
  will-change: transform, opacity;
}

body > *:not(.bg-deco):not(.qrg-color-pop):not(.qrg-color-backdrop):not(.lang-menu) {
  position: relative;
  z-index: 1;
}

@keyframes qfo-blobs {
  0%   { transform: translate3d(0, 0, 0) scale(1) rotate(0deg); }
  33%  { transform: translate3d(5%, -4%, 0) scale(1.08) rotate(2.5deg); }
  66%  { transform: translate3d(-4%, 5%, 0) scale(0.94) rotate(-2deg); }
  100% { transform: translate3d(3%, 2%, 0) scale(1.05) rotate(1.5deg); }
}

@keyframes qfo-abstract {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 0.55; background-position: 0% 0%, 100% 0%, 0 0; }
  50%  { transform: translate3d(-3%, 4%, 0) rotate(4deg); opacity: 1; background-position: 40% 20%, 40% 60%, 0 0; }
  100% { transform: translate3d(4%, -3%, 0) rotate(-3deg); opacity: 0.65; background-position: 80% 40%, 0% 80%, 0 0; }
}

@keyframes qfo-orbit {
  0%   { transform: translate3d(0, 0, 0); opacity: 0.35; }
  40%  { transform: translate3d(-22px, 28px, 0); opacity: 0.6; }
  70%  { transform: translate3d(28px, -18px, 0); opacity: 0.45; }
  100% { transform: translate3d(0, 0, 0); opacity: 0.38; }
}

@media (prefers-reduced-motion: reduce) {
  .bg-deco::before,
  .bg-deco::after,
  .bg-deco-orbit { animation: none !important; }
}

/* —— Brand mark —— */
.brand {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  text-decoration: none !important;
}

.brand-logo,
.brand img.brand-logo {
  display: none !important;
}

.brand-mark {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: block;
}

.brand-word.word-1 { color: #ff6b4a !important; }
.brand-word.word-2 { color: #ffffff !important; }
.brand-word.word-3 { color: #3dffe8 !important; }

.brand-sub,
#t-sub {
  color: #cfc6e0 !important;
  letter-spacing: 0.08em !important;
}

.brand-stairs,
.brand-line {
  font-family: var(--font-brand) !important;
}

/* —— Intro / home structure —— */
.qfo-intro {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 56px) clamp(16px, 4vw, 40px) 8px;
  text-align: left;
}

.qfo-intro .page-h1 {
  margin: 0 0 10px;
  font-family: var(--font-display) !important;
  font-size: clamp(1.65rem, 4.2vw, 2.55rem) !important;
  line-height: 1.12 !important;
  font-weight: 800 !important;
  color: #fff !important;
  max-width: 18ch;
}

.qfo-intro .page-h1-sub {
  margin: 0 0 18px;
  max-width: 48ch;
  color: #cfc6e0 !important;
  font-size: 1.02rem !important;
}

.qfo-intro-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}

.qfo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  font: 700 14px/1 var(--font-body);
  text-decoration: none;
  border: none;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.qfo-btn--main {
  background: linear-gradient(135deg, #ff6b4a, #ffb347);
  color: #140a08 !important;
}

.qfo-btn--ghost {
  background: transparent;
  color: #3dffe8 !important;
  box-shadow: inset 0 0 0 1.5px rgba(61, 255, 232, 0.55);
}

.qfo-btn--ghost:hover {
  background: rgba(61, 255, 232, 0.1);
}

/* Old SEO intro blocks sit below generator — hide from layout (hero is .qfo-intro) */
.page-intro { display: none !important; }

/* —— Tabs / buttons overhaul —— */
.tabs {
  border-color: rgba(58, 53, 72, 0.9) !important;
  background: rgba(10, 8, 16, 0.72) !important;
  backdrop-filter: blur(8px);
}

.tab {
  border-radius: 0 !important;
  font-family: var(--font-body) !important;
  font-weight: 600 !important;
}

.tab.active {
  background: #ff6b4a !important;
  color: #140a08 !important;
  border-color: #ff6b4a !important;
}

.tab-business,
.tab-business:hover {
  background: #3dffe8 !important;
  color: #061210 !important;
  border-color: #3dffe8 !important;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

#btn-make-dynamic,
#btn-make-dynamic:hover,
#btn-make-dynamic:focus-visible {
  background: linear-gradient(135deg, #ff6b4a 0%, #ffb347 55%, #3dffe8 140%) !important;
  color: #140a08 !important;
  border: none !important;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  border-radius: 0 !important;
  font-family: var(--font-display) !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em;
}

.lang-toggle {
  border-color: #3a3548 !important;
  background: #12101a !important;
  color: #fff !important;
}

.lang-toggle:hover,
.lang-toggle[aria-expanded="true"] {
  border-color: #3dffe8 !important;
}

/* Stage accents */
.stage {
  border-color: rgba(255, 107, 74, 0.45) !important;
  box-shadow: inset 0 0 40px rgba(61, 255, 232, 0.06) !important;
}

.panel,
.panel-data,
.preview-col {
  border-color: #3a3548 !important;
}

.seo-section h2,
.materials-group-title {
  font-family: var(--font-display) !important;
  color: #ff6b4a !important;
}

.materials-card:hover {
  border-color: #3dffe8 !important;
}

.site-footer {
  border-top: 1px solid #3a3548 !important;
}

.footer-flagship {
  background: transparent !important;
  color: #3dffe8 !important;
  border: 1px solid rgba(61, 255, 232, 0.5) !important;
}

/* —— Tabs / More dropdown: sit above generator (was buried under next siblings) —— */
.tabs {
  position: relative !important;
  z-index: 80 !important;
  overflow: visible !important;
}

.tab-more {
  position: relative !important;
  z-index: 1;
}

.tab-more.open {
  z-index: 90 !important;
}

.more-menu,
.tab-more.open > .more-menu,
#tab-more .more-menu,
#vcard-menu {
  z-index: 100 !important;
  background: #1a1724 !important;
  border: 1px solid rgba(255, 107, 74, 0.35) !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55) !important;
}

.more-option:hover,
.more-menu button:hover {
  background: rgba(255, 107, 74, 0.18) !important;
  color: #fff !important;
}

.lang-dropdown {
  position: relative !important;
  z-index: 85 !important;
}

.lang-menu {
  z-index: 110 !important;
  background: #1a1724 !important;
  border-color: rgba(61, 255, 232, 0.35) !important;
}

/* —— Event calendar (qfo theme: coral / mint / amber) —— */
.qrg-cal {
  position: relative;
  width: 100%;
}

.qrg-cal-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.qrg-cal-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  background: #12101a !important;
  color: #f7f4ff !important;
  border: 1px solid #3a3548 !important;
  padding: 10px 12px;
  font: inherit;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.qrg-cal-trigger:hover,
.qrg-cal-trigger:focus,
.qrg-cal-trigger:focus-visible,
.qrg-cal--qfo .qrg-cal-trigger:hover,
.qrg-cal--qfo.is-open .qrg-cal-trigger {
  background: #12101a !important;
  color: #f7f4ff !important;
  border-color: #3dffe8 !important;
}

.qrg-cal-ico {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border: 1.5px solid #ff6b4a;
  border-radius: 2px;
  background:
    linear-gradient(#3dffe8, #3dffe8) 3px 0 / 3px 3px no-repeat,
    linear-gradient(#ffb347, #ffb347) 11px 0 / 3px 3px no-repeat,
    linear-gradient(#ff6b4a, #ff6b4a) 2px 8px / 14px 2px no-repeat;
}

.qrg-cal-ph { color: rgba(207, 198, 224, 0.5); }
.qrg-cal-txt { font-size: 14px; font-variant-numeric: tabular-nums; }

.qrg-cal-pop {
  position: absolute;
  z-index: 200;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  padding: 12px;
  background: #0c0a12;
  border: 1px solid rgba(255, 107, 74, 0.4);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

.qrg-cal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.qrg-cal-month {
  font-family: var(--font-display), Syne, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #ff6b4a;
}

.qrg-cal-nav {
  width: 32px;
  height: 32px;
  background: #12101a;
  color: #fff;
  border: 1px solid #3a3548;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.qrg-cal-nav:hover {
  border-color: #3dffe8;
  color: #3dffe8;
}

.qrg-cal-dow {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 4px;
  text-align: center;
  font-size: 11px;
  color: rgba(207, 198, 224, 0.45);
  text-transform: uppercase;
}

.qrg-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.qrg-cal-empty { min-height: 34px; }

.qrg-cal-day {
  min-height: 34px;
  background: transparent;
  color: #fff;
  border: 1px solid transparent;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.qrg-cal-day:hover { border-color: rgba(61, 255, 232, 0.45); }
.qrg-cal-day.is-today { color: #3dffe8; }
.qrg-cal-day.is-on {
  background: linear-gradient(135deg, #ff6b4a, #ffb347);
  color: #140a08;
  font-weight: 700;
  border-color: transparent;
}

.qrg-cal-day.is-past,
.qrg-cal-day:disabled {
  opacity: 0.28;
  color: rgba(255, 255, 255, 0.35);
  cursor: not-allowed;
  border-color: transparent;
  pointer-events: none;
}

.qrg-cal-day.is-past:hover {
  border-color: transparent;
}

.qrg-cal-time {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
  align-items: end;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(58, 53, 72, 0.9);
}

.qrg-cal-time label {
  display: grid;
  gap: 4px;
  margin: 0;
  text-transform: none;
  letter-spacing: 0;
  font-size: 11px;
  color: rgba(207, 198, 224, 0.55) !important;
}

.qrg-cal-time input {
  width: 100%;
  background: #12101a;
  color: #fff;
  border: 1px solid #3a3548;
  padding: 8px 10px;
  font: inherit;
}

.qrg-cal-done {
  background: linear-gradient(135deg, #ff6b4a, #3dffe8);
  color: #140a08;
  border: none;
  padding: 10px 14px;
  font: inherit;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  height: 40px;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.qrg-cal-done:hover { filter: brightness(1.06); }

/* Calendar pop above neighbouring panels */
.panel-data,
.fields {
  overflow: visible !important;
}
.qrg-cal.is-open {
  z-index: 120;
}

/* Invalid link: same mint as For Business tab */
.content-policy-error {
  margin: 8px 0 0;
  color: #3dffe8;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}
.content-policy-error.is-link-hint,
.dynamic-panel #dynamic-status.warn {
  color: #3dffe8 !important;
}
input.qr-link-bad,
input.qr-link-bad:focus {
  border-color: #3dffe8 !important;
  outline-color: #3dffe8 !important;
  box-shadow: 0 0 0 2px rgba(61, 255, 232, 0.35);
}
.qr-link-hint {
  margin: 6px 0 0;
  color: #3dffe8 !important;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 600;
}
.qr-link-hint[hidden],
.qr-link-hint.hidden { display: none !important; }

/* Keep-stats modal — same flow as Global, above atmosphere */
.keep-stats-modal.modal-overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 200000 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.82) !important;
  backdrop-filter: blur(8px);
}
.keep-stats-modal.modal-overlay.hidden,
.keep-stats-modal.hidden {
  display: none !important;
}
.keep-stats-card {
  position: relative;
  width: 100%;
  max-width: min(460px, 100%);
  max-height: 90vh;
  overflow: auto;
  box-sizing: border-box;
  background: #12101a !important;
  border: 1px solid #3dffe8 !important;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.65);
  padding: 28px 24px 22px;
  color: #f7f4ff;
}
.keep-stats-card h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 22px;
  color: #fff;
}
.keep-stats-warn {
  margin: 0;
  color: #cfc6e0;
  font-size: 15px;
  line-height: 1.45;
}
.keep-stats-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}
.keep-stats-open,
.keep-stats-saved {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  box-sizing: border-box;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}
.keep-stats-open {
  background: #3dffe8 !important;
  color: #061210 !important;
  border: 1px solid #3dffe8 !important;
}
.keep-stats-open,
.keep-stats-open:hover,
.keep-stats-open:focus,
.keep-stats-open:focus-visible,
.keep-stats-open [data-i] {
  color: #061210 !important;
}
.keep-stats-open:hover {
  background: #ff6b4a !important;
  border-color: #ff6b4a !important;
  color: #140a08 !important;
}
.keep-stats-open:hover [data-i] {
  color: #140a08 !important;
}
.keep-stats-open.is-disabled {
  pointer-events: none;
  opacity: 0.45;
}
.keep-stats-saved {
  background: #1a1724 !important;
  color: #f7f4ff !important;
  border: 1px solid #3a3548 !important;
}
.keep-stats-saved:hover {
  border-color: #3dffe8 !important;
  color: #3dffe8 !important;
}
#btn-make-dynamic.hidden,
.gen-another-wrap.hidden {
  display: none !important;
}
