/* VisionQueue — Raphael-style layout (reference: raphael.app/zh) */
:root {
  --rq-bg: #120d0a;
  --rq-bg2: #1a1410;
  --rq-card: #1c1714;
  --rq-line: rgba(255, 245, 230, 0.12);
  --rq-text: #f7f0e8;
  --rq-muted: rgba(247, 240, 232, 0.62);
  --rq-gold: #d4a373;
  --rq-gold2: #e8b86a;
  --rq-orange: #e07a3a;
  --rq-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  --rq-radius: 18px;
  --rq-font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --rq-serif: "Playfair Display", Georgia, "Times New Roman", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body.theme-rq {
  margin: 0;
  font-family: var(--rq-font);
  color: var(--rq-text);
  background: var(--rq-bg);
  line-height: 1.55;
  color-scheme: dark;
}

a {
  color: #f0d4b8;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.rq-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
  background: #000;
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 1000;
}
.skip-link:focus {
  left: 12px;
}

.rq-container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}
.rq-container--narrow {
  width: min(980px, calc(100% - 40px));
}

/* Top bar */
.rq-top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(18, 13, 10, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rq-line);
}
.rq-top__inner {
  width: min(1320px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  position: relative;
}
.rq-nav--desktop {
  display: none;
  flex: 1;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}
@media (min-width: 980px) {
  .rq-nav--desktop {
    display: flex;
  }
}
.rq-burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--rq-line);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  margin-right: 6px;
}
.rq-burger span {
  display: block;
  height: 2px;
  width: 22px;
  background: var(--rq-text);
  margin: 0 auto;
  border-radius: 2px;
}
@media (min-width: 980px) {
  .rq-burger {
    display: none;
  }
}
.rq-nav-panel {
  border-top: 1px solid var(--rq-line);
  background: rgba(12, 9, 8, 0.98);
}
.rq-nav-panel[hidden] {
  display: none;
}
@media (min-width: 980px) {
  .rq-nav-panel {
    display: none !important;
  }
}
.rq-nav {
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.rq-nav--mobile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 16px calc(16px + max(0px, (100vw - 1320px) / 2));
  max-width: 1320px;
  margin: 0 auto;
}
.rq-nav--mobile .rq-nav__link {
  white-space: normal;
}
.rq-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--rq-text);
  font-weight: 700;
  letter-spacing: 0.2px;
}
.rq-brand__mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #ffe6c7, #c9955c 45%, #6b4a2a 100%);
  border: 1px solid rgba(255, 220, 180, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.rq-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(247, 240, 232, 0.88);
  font-size: 0.95rem;
  white-space: nowrap;
}
.rq-nav__link:hover {
  color: #fff;
  text-decoration: none;
}
.rq-badge {
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(212, 163, 115, 0.45);
  color: #ffe8cf;
  background: rgba(212, 163, 115, 0.12);
}
.rq-badge--gold {
  border-color: rgba(224, 122, 58, 0.55);
  background: rgba(224, 122, 58, 0.14);
  color: #ffd8bc;
}
.rq-caret {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid rgba(247, 240, 232, 0.55);
  margin-left: 2px;
  transform: translateY(-1px);
}
.rq-top__right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.rq-lang {
  border: 1px solid var(--rq-line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--rq-muted);
  border-radius: 999px;
  padding: 8px 12px;
  font: inherit;
  cursor: not-allowed;
}
.rq-btn-login {
  border: none;
  border-radius: 12px;
  padding: 10px 18px;
  font-weight: 700;
  color: #1a120d;
  background: linear-gradient(135deg, var(--rq-gold), var(--rq-orange));
  box-shadow: 0 10px 30px rgba(224, 122, 58, 0.25);
}
.rq-btn-login:hover {
  filter: brightness(1.05);
  text-decoration: none;
}

/* Hero */
.rq-hero {
  padding: 36px 16px 8px;
  text-align: center;
}
.rq-hero__inner {
  width: min(920px, 100%);
  margin: 0 auto;
}
.rq-hero__logo {
  width: 72px;
  height: 72px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #ffe6c7, #c9955c 45%, #5a3b24 100%);
  border: 1px solid rgba(255, 220, 180, 0.35);
  box-shadow: var(--rq-shadow);
}
.rq-hero__title {
  margin: 0;
  font-family: var(--rq-serif);
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: 0.02em;
}
.rq-hero__tagline {
  margin: 10px 0 0;
  font-family: var(--rq-serif);
  font-weight: 700;
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  line-height: 1.25;
  color: var(--rq-text);
}
.rq-hero__sub {
  margin: 12px 0 0;
  color: var(--rq-muted);
  font-size: 1.02rem;
}
.rq-hero__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 18px;
}
.rq-pill {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.rq-pill--orange {
  background: rgba(224, 122, 58, 0.16);
  color: #ffd8bc;
}
.rq-pill--teal {
  background: rgba(64, 196, 180, 0.14);
  color: #c9fff6;
}
.rq-pill--blue {
  background: rgba(96, 165, 250, 0.14);
  color: #dbeafe;
}
.rq-pill--purple {
  background: rgba(167, 139, 250, 0.16);
  color: #ede9fe;
}
.rq-hero__note {
  margin: 16px auto 0;
  max-width: 62ch;
  color: var(--rq-muted);
  font-size: 0.95rem;
}
.rq-hero__note--member {
  color: #ffe8cf;
}

/* Generator shell */
.rq-gen-wrap {
  padding: 18px 16px 8px;
}
.rq-gen-shell {
  width: min(1040px, 100%);
  margin: 0 auto;
}
.rq-gen-heading {
  margin: 0 0 14px;
  font-family: var(--rq-serif);
  font-weight: 700;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  text-align: center;
}

.rq-editor {
  background: linear-gradient(180deg, rgba(255, 245, 230, 0.05), rgba(0, 0, 0, 0.12));
  border: 1px solid var(--rq-line);
  border-radius: var(--rq-radius);
  box-shadow: var(--rq-shadow);
  overflow: hidden;
}
.rq-editor__body {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  padding: 14px;
}
@media (max-width: 640px) {
  .rq-editor__body {
    grid-template-columns: 1fr;
  }
  .rq-ref {
    width: 72px;
    min-height: 72px;
  }
}
.rq-ref {
  width: 72px;
  min-height: 72px;
  border-radius: 14px;
  border: 1px dashed rgba(212, 163, 115, 0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.18);
  align-self: start;
  padding: 8px 4px;
  gap: 2px;
}
.rq-ref__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.rq-ref__caption {
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  color: var(--rq-muted);
  line-height: 1.1;
}
.rq-ref:hover {
  border-color: rgba(212, 163, 115, 0.75);
}
.rq-ref__plus {
  font-size: 2rem;
  color: rgba(212, 163, 115, 0.95);
  line-height: 1;
}
.rq-editor__main {
  position: relative;
  min-width: 0;
}
.rq-textarea {
  width: 100%;
  min-height: 150px;
  resize: vertical;
  border-radius: 14px;
  border: 1px solid rgba(255, 245, 230, 0.1);
  background: rgba(0, 0, 0, 0.28);
  color: var(--rq-text);
  padding: 14px 14px 52px 14px;
  font: inherit;
  outline: none;
}
.rq-textarea:focus {
  border-color: rgba(212, 163, 115, 0.55);
  box-shadow: 0 0 0 3px rgba(212, 163, 115, 0.12);
}
.rq-prompt-hint {
  position: absolute;
  right: 12px;
  top: 10px;
  margin: 0;
  font-size: 0.82rem;
  color: var(--rq-muted);
  max-width: 52%;
  text-align: right;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}
.rq-prompt-hint__flag {
  flex: 0 0 auto;
  font-size: 1rem;
  line-height: 1;
}
@media (max-width: 560px) {
  .rq-prompt-hint {
    position: static;
    max-width: none;
    text-align: left;
    margin: 0 0 8px;
  }
  .rq-textarea {
    padding-top: 14px;
  }
}
.rq-mini-row {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.rq-chip-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: 1px solid rgba(255, 245, 230, 0.14);
  background-color: rgba(0, 0, 0, 0.45);
  color: rgba(247, 240, 232, 0.95);
  border-radius: 999px;
  padding: 7px 34px 7px 12px;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  line-height: 1.25;
  min-height: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23d4a373' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 14px 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.rq-chip-select:hover {
  border-color: rgba(212, 163, 115, 0.35);
}
.rq-chip-select:focus {
  outline: none;
  border-color: rgba(212, 163, 115, 0.55);
  box-shadow: 0 0 0 3px rgba(212, 163, 115, 0.12);
}
.rq-chip-select::-ms-expand {
  display: none;
}

.theme-rq .rq-chip-select option,
.theme-rq .rq-model-select option {
  background: #1a1410;
  color: #f7f0e8;
}
.rq-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px 14px;
  border-top: 1px solid rgba(255, 245, 230, 0.08);
  background: rgba(0, 0, 0, 0.18);
}
.rq-toolbar__left,
.rq-toolbar__right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.rq-toolbar__right--actions {
  gap: 2px;
}
.rq-toolbar__sep {
  width: 10px;
  flex: 0 0 auto;
  text-align: center;
  color: rgba(247, 240, 232, 0.35);
  font-size: 0.75rem;
  user-select: none;
}
.rq-toolbar__sep::before {
  content: "·";
}
.rq-model {
  position: relative;
}
.rq-model-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border-radius: 12px;
  border: 1px solid rgba(255, 245, 230, 0.14);
  background-color: rgba(0, 0, 0, 0.45);
  color: var(--rq-text);
  padding: 10px 40px 10px 14px;
  font-weight: 600;
  min-width: 200px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23d4a373' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.rq-model-select:hover {
  border-color: rgba(212, 163, 115, 0.35);
}
.rq-model-select:focus {
  outline: none;
  border-color: rgba(212, 163, 115, 0.55);
  box-shadow: 0 0 0 3px rgba(212, 163, 115, 0.12);
}
.rq-model-select::-ms-expand {
  display: none;
}
.rq-model-tip {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  width: min(360px, 70vw);
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 245, 230, 0.12);
  background: rgba(10, 8, 6, 0.95);
  color: var(--rq-muted);
  font-size: 0.82rem;
  box-shadow: var(--rq-shadow);
  z-index: 5;
}
.rq-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(247, 240, 232, 0.88);
  font-size: 0.92rem;
  cursor: pointer;
  user-select: none;
}
.rq-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.rq-switch__ui {
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 245, 230, 0.12);
  position: relative;
  flex: 0 0 auto;
}
.rq-switch__ui::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(247, 240, 232, 0.85);
  transition: transform 0.18s ease;
}
.rq-switch input:checked + .rq-switch__ui {
  background: rgba(212, 163, 115, 0.25);
  border-color: rgba(212, 163, 115, 0.45);
}
.rq-switch input:checked + .rq-switch__ui::after {
  transform: translateX(20px);
}
.rq-text-btn {
  border: none;
  background: transparent;
  color: rgba(247, 240, 232, 0.78);
  font: inherit;
  cursor: pointer;
  padding: 8px 6px;
}
.rq-text-btn:hover {
  color: #fff;
}
.rq-gen-btn {
  position: relative;
  border: none;
  border-radius: 14px;
  padding: 12px 26px;
  font-weight: 800;
  color: #1a120d;
  cursor: pointer;
  background: linear-gradient(135deg, var(--rq-gold), var(--rq-orange));
  box-shadow: 0 14px 34px rgba(224, 122, 58, 0.28);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.rq-gen-btn__free {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: rgba(26, 18, 13, 0.45);
  text-transform: uppercase;
}
.rq-gen-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.rq-gen-btn__badge {
  position: absolute;
  top: -8px;
  right: -6px;
  font-size: 0.68rem;
  padding: 3px 7px;
  border-radius: 999px;
  background: #fff;
  color: #1a120d;
  border: 1px solid rgba(0, 0, 0, 0.08);
  font-weight: 800;
}
.rq-negative {
  padding: 0 14px 14px;
  border-top: 1px solid rgba(255, 245, 230, 0.06);
  background: rgba(0, 0, 0, 0.12);
}
.rq-negative__label {
  display: block;
  margin: 10px 0 6px;
  color: var(--rq-muted);
  font-size: 0.88rem;
}
.rq-negative__input {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255, 245, 230, 0.1);
  background: rgba(0, 0, 0, 0.28);
  color: var(--rq-text);
  padding: 10px 12px;
  font: inherit;
}

/* Queue + result */
.rq-queue {
  margin-top: 16px;
  border: 1px solid rgba(212, 163, 115, 0.22);
  border-radius: var(--rq-radius);
  padding: 16px;
  background: rgba(0, 0, 0, 0.2);
}
.rq-queue__title {
  margin: 0 0 8px;
  font-family: var(--rq-serif);
}
.rq-queue__line {
  margin: 0;
  font-size: 1.02rem;
}
.rq-queue__metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 245, 230, 0.08);
  background: rgba(0, 0, 0, 0.22);
}
.rq-queue__ref {
  margin: 10px 0 0;
  font-size: 0.88rem;
}
.rq-result__fig {
  margin: 12px 0 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 245, 230, 0.1);
  background: rgba(0, 0, 0, 0.25);
}
.rq-result__fig img {
  display: block;
  width: 100%;
  height: auto;
}
.rq-result__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.rq-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 245, 230, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--rq-text);
  cursor: pointer;
  font: inherit;
}
.rq-btn--ghost:hover {
  border-color: rgba(212, 163, 115, 0.35);
}
.rq-btn--primary {
  border: none;
  color: #1a120d;
  background: linear-gradient(135deg, var(--rq-gold), var(--rq-orange));
  font-weight: 800;
}
.rq-alert--err {
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 92, 122, 0.35);
  background: rgba(255, 92, 122, 0.08);
  color: #ffc7d1;
}
.rq-muted {
  color: var(--rq-muted);
}

/* Sections */
.rq-section {
  padding: 44px 16px;
}
.rq-section--alt {
  background: rgba(255, 245, 230, 0.02);
  border-top: 1px solid rgba(255, 245, 230, 0.06);
  border-bottom: 1px solid rgba(255, 245, 230, 0.06);
}
.rq-section--ad {
  padding: 28px 16px 36px;
}
.rq-sec-title {
  margin: 0 0 8px;
  font-family: var(--rq-serif);
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  text-align: center;
}
.rq-sec-sub {
  margin: 0 auto 18px;
  text-align: center;
  color: var(--rq-muted);
  max-width: 70ch;
}
.rq-masonry {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.rq-masonry__tile {
  height: var(--h);
  border-radius: 14px;
  border: 1px solid rgba(255, 245, 230, 0.1);
  background: linear-gradient(145deg, rgba(212, 163, 115, 0.12), rgba(0, 0, 0, 0.35));
  display: grid;
  place-items: center;
}
.rq-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 4px 14px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 163, 115, 0.45) rgba(0, 0, 0, 0.25);
}
.rq-scroll::-webkit-scrollbar {
  height: 8px;
}
.rq-scroll::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.28);
  border-radius: 999px;
}
.rq-scroll::-webkit-scrollbar-thumb {
  background: rgba(212, 163, 115, 0.4);
  border-radius: 999px;
}
.rq-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(212, 163, 115, 0.55);
}
.rq-examples {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 4px 14px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 163, 115, 0.45) rgba(0, 0, 0, 0.25);
}
.rq-examples::-webkit-scrollbar {
  height: 8px;
}
.rq-examples::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.28);
  border-radius: 999px;
}
.rq-examples::-webkit-scrollbar-thumb {
  background: rgba(212, 163, 115, 0.4);
  border-radius: 999px;
}
.rq-style-card {
  position: relative;
  overflow: hidden;
  scroll-snap-align: start;
  flex: 0 0 168px;
  height: 140px;
  border-radius: 16px;
  border: 1px solid rgba(255, 245, 230, 0.12);
  background: rgba(0, 0, 0, 0.35);
  color: var(--rq-text);
  cursor: pointer;
  font: inherit;
  text-align: left;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.rq-style-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    165deg,
    hsla(var(--card-hue, 35), 42%, 48%, 0.42),
    rgba(0, 0, 0, 0.05) 40%,
    rgba(0, 0, 0, 0.82) 100%
  );
  pointer-events: none;
}
.rq-style-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.35;
  background: radial-gradient(80% 60% at 20% 10%, rgba(255, 255, 255, 0.22), transparent 55%);
  pointer-events: none;
}
.rq-style-card__title {
  position: relative;
  z-index: 1;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.25;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.75);
}
.rq-style-card__sub {
  position: relative;
  z-index: 1;
  font-size: 0.78rem;
  color: rgba(247, 240, 232, 0.72);
  font-weight: 500;
  line-height: 1.2;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.75);
}
.rq-style-card:hover {
  border-color: rgba(212, 163, 115, 0.55);
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
}
.rq-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.rq-tag {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 2px;
  line-height: 1.25;
  border-radius: 999px;
  border: 1px solid rgba(255, 245, 230, 0.12);
  background: rgba(0, 0, 0, 0.22);
  color: rgba(247, 240, 232, 0.92);
  padding: 10px 18px;
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  max-width: min(100%, 36ch);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.rq-tag:hover {
  border-color: rgba(212, 163, 115, 0.45);
  background: rgba(212, 163, 115, 0.08);
}
.rq-tag__line {
  display: block;
  max-width: 28ch;
}
.rq-inspire-card__label,
.rq-example-card__label {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rq-muted);
}
.rq-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 10px;
}
.rq-feature {
  border-radius: 16px;
  border: 1px solid rgba(255, 245, 230, 0.1);
  padding: 16px;
  background: rgba(0, 0, 0, 0.18);
}
.rq-faq details {
  border: 1px solid rgba(255, 245, 230, 0.1);
  border-radius: 12px;
  padding: 12px 12px;
  background: rgba(0, 0, 0, 0.18);
  margin: 10px 0;
}
.rq-faq summary {
  cursor: pointer;
  font-weight: 700;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  list-style: none;
}
.rq-faq summary::-webkit-details-marker {
  display: none;
}
.rq-faq__num {
  flex: 0 0 auto;
  min-width: 1.5rem;
  font-variant-numeric: tabular-nums;
  color: var(--rq-muted);
  font-weight: 800;
}

/* Ads */
.ad-slot {
  border-radius: 16px;
  border: 1px dashed rgba(212, 163, 115, 0.25);
  background: rgba(0, 0, 0, 0.18);
  padding: 16px;
}
.ad-slot__label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rq-muted);
  margin-bottom: 10px;
}
.ad-slot__placeholder {
  min-height: 90px;
  display: grid;
  place-items: center;
  color: var(--rq-muted);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 245, 230, 0.08);
}
.ad-slot--rectangle .ad-slot__placeholder {
  min-height: 240px;
}

/* Footer */
.rq-footer {
  border-top: 1px solid var(--rq-line);
  padding: 36px 16px 24px;
  background: rgba(0, 0, 0, 0.22);
}
.rq-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}
.rq-footer__brand {
  font-weight: 800;
  letter-spacing: 0.02em;
}
.rq-footer__h {
  font-weight: 700;
  margin-bottom: 8px;
}
.rq-footer a {
  display: block;
  margin: 6px 0;
  color: rgba(247, 240, 232, 0.78);
}
.rq-footer__bar {
  width: min(1180px, calc(100% - 40px));
  margin: 22px auto 0;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 245, 230, 0.08);
  text-align: center;
}

/* Subpages (login / register / account / result) */
.theme-rq .section {
  padding: 36px 16px 60px;
}
.theme-rq .container,
.theme-rq .container--narrow {
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
}
.theme-rq .card--glass {
  border-radius: var(--rq-radius);
  border: 1px solid rgba(255, 245, 230, 0.12);
  padding: 22px;
  background: rgba(0, 0, 0, 0.28);
  box-shadow: var(--rq-shadow);
}
.theme-rq .stack {
  display: grid;
  gap: 12px;
}
.theme-rq .field {
  display: grid;
  gap: 8px;
}
.theme-rq .field input,
.theme-rq .field textarea,
.theme-rq .field select {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255, 245, 230, 0.12);
  background: rgba(0, 0, 0, 0.35);
  color: var(--rq-text);
  padding: 12px;
  font: inherit;
}
.theme-rq .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 245, 230, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: var(--rq-text);
  cursor: pointer;
  font: inherit;
  text-decoration: none;
}
.theme-rq .btn--primary {
  border: none;
  color: #1a120d;
  background: linear-gradient(135deg, var(--rq-gold), var(--rq-orange));
  font-weight: 800;
}
.theme-rq .btn--secondary {
  background: rgba(212, 163, 115, 0.12);
  border-color: rgba(212, 163, 115, 0.25);
}
.theme-rq .btn--ghost {
  background: transparent;
}
.theme-rq .btn--small {
  padding: 8px 12px;
  font-size: 0.92rem;
}
.theme-rq .alert--error {
  border-radius: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 92, 122, 0.35);
  background: rgba(255, 92, 122, 0.08);
  color: #ffc7d1;
}
.theme-rq .alert--success {
  border-radius: 12px;
  padding: 12px;
  border: 1px solid rgba(62, 224, 143, 0.35);
  background: rgba(62, 224, 143, 0.08);
  color: #c9ffe8;
}
.theme-rq .muted {
  color: var(--rq-muted);
}
.theme-rq .table-wrap {
  overflow: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 245, 230, 0.1);
}
.theme-rq .table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.theme-rq .table th,
.theme-rq .table td {
  padding: 10px;
  border-bottom: 1px solid rgba(255, 245, 230, 0.08);
}
.theme-rq .badge {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 245, 230, 0.12);
  font-size: 0.82rem;
}
.theme-rq .badge--member {
  border-color: rgba(212, 163, 115, 0.45);
  background: rgba(212, 163, 115, 0.12);
}

.theme-rq .section--result {
  padding: 28px 16px 48px;
}
.theme-rq .result-figure {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 245, 230, 0.1);
  background: rgba(0, 0, 0, 0.22);
}
.theme-rq .result-figure--page img {
  display: block;
  width: 100%;
  max-height: min(72vh, 920px);
  object-fit: contain;
}
.theme-rq .result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.theme-rq .result-actions--spaced {
  margin-bottom: 18px;
}
.theme-rq .prose--tight h2 {
  font-family: var(--rq-serif);
}

.rq-gen-label {
  margin: 0 0 10px;
  font-size: 0.95rem;
  color: var(--rq-muted);
  text-align: center;
}
.rq-hero__note--ops {
  font-size: 0.82rem;
  color: rgba(247, 240, 232, 0.55);
  max-width: 56ch;
  margin-left: auto;
  margin-right: auto;
}
.rq-hero__note--ops code {
  font-size: 0.78em;
  color: rgba(247, 240, 232, 0.75);
}
.rq-inspire-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 8px;
}
.rq-inspire-card {
  border-radius: 14px;
  border: 1px solid rgba(255, 245, 230, 0.1);
  background: rgba(0, 0, 0, 0.22);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rq-inspire-card__txt {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(247, 240, 232, 0.85);
  flex: 1;
}
.rq-inspire-use {
  align-self: flex-start;
  border: 1px solid rgba(212, 163, 115, 0.45);
  background: rgba(212, 163, 115, 0.12);
  color: #ffe8cf;
  border-radius: 10px;
  padding: 8px 12px;
  font: inherit;
  cursor: pointer;
}
.rq-inspire-use:hover {
  background: rgba(212, 163, 115, 0.2);
}
.rq-features--6 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.rq-sec-sub--left {
  text-align: left;
  max-width: 80ch;
  margin-left: auto;
  margin-right: auto;
}
.rq-kicker {
  text-align: center;
  margin: 0 0 8px;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rq-muted);
}
.rq-kicker--center {
  text-align: center;
  margin: 28px 0 4px;
}
.rq-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 16px 0 24px;
}
.rq-pill-row--tight {
  gap: 6px;
  margin: 12px 0 22px;
}
@media (max-width: 900px) {
  .rq-pill-row--tight {
    flex-wrap: wrap;
    row-gap: 8px;
  }
}
.rq-pill--ghost {
  border-color: rgba(255, 245, 230, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(247, 240, 232, 0.88);
}
.rq-adv-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: start;
}
@media (max-width: 720px) {
  .rq-adv-grid {
    grid-template-columns: 1fr;
  }
}
.rq-adv-title {
  margin: 6px 0 8px;
  font-family: var(--rq-serif);
  font-size: 1.25rem;
}
.rq-adv-cta-wrap {
  display: flex;
  align-items: center;
}
.rq-gen-btn--inline {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.rq-gallery-title {
  font-family: var(--rq-serif);
  font-size: 1.2rem;
  margin: 28px 0 12px;
  text-align: center;
}
.rq-masonry--sm .rq-masonry__tile {
  min-height: 120px;
}
.rq-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0 10px;
}
@media (max-width: 640px) {
  .rq-stats {
    grid-template-columns: 1fr;
  }
}
.rq-stat {
  text-align: center;
  padding: 16px 10px;
  border-radius: 16px;
  border: 1px solid rgba(255, 245, 230, 0.1);
  background: rgba(0, 0, 0, 0.22);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.rq-stat__dense {
  margin: 0;
  line-height: 1.45;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 4px 6px;
  max-width: 22ch;
}
.rq-stat__dense span {
  font-size: 0.78rem;
  color: rgba(247, 240, 232, 0.68);
}
.rq-stat__dense strong {
  font-family: var(--rq-serif);
  font-size: 1.55rem;
  font-weight: 700;
  color: #ffe8cf;
  margin: 0 1px;
}
.rq-reviews-title {
  font-family: var(--rq-serif);
  text-align: center;
  margin: 8px 0 10px;
}
.rq-reviews-lead {
  margin-top: 0;
  margin-bottom: 8px;
}
.rq-reviews-note {
  text-align: center;
  margin: 0 0 16px;
}
.rq-reviews {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.rq-review {
  margin: 0;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 245, 230, 0.1);
  background: rgba(0, 0, 0, 0.2);
}
.rq-review p {
  margin: 0 0 10px;
}
.rq-review__name {
  font-size: 1rem;
}
.rq-review__name--repeat {
  font-size: 1rem;
  font-weight: 700;
  color: var(--rq-text);
}
.rq-faq-contact {
  text-align: center;
  margin-bottom: 16px;
}
.rq-example-card {
  flex: 0 0 min(280px, 85vw);
  scroll-snap-align: start;
  border-radius: 14px;
  border: 1px solid rgba(255, 245, 230, 0.1);
  background: rgba(0, 0, 0, 0.22);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rq-example-card__p {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(247, 240, 232, 0.82);
}

.rq-footer__legal {
  width: min(1180px, calc(100% - 40px));
  margin: 18px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.92rem;
}
