@import url("reset.css");

@import url("https://fonts.googleapis.com/css?family=Inter:regular,500,600,700&display=swap");

:root {
  color-scheme: dark;
  --bg-page: #0e1117;
  --bg-surface: #151922;
  --bg-muted: #1e2430;
  --bg-elevated: #252d3a;
  --text-primary: #e8eaed;
  --text-secondary: #9aa3b2;
  --accent: #f472b6;
  --accent-glow: rgba(244, 114, 182, 0.15);
  --accent-purple: #a78bfa;
  --accent-pink: #f472b6;
  --btn-solid: #9333ea;
  --btn-hover: #a855f7;
  --border: #343b4a;
  --border-subtle: rgba(255, 255, 255, 0.1);
  --success: #34d399;
  --error: #f5576c;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

/* ************AGE GATE************ */

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  transition: opacity 0.3s ease;
}

.age-gate__card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 3rem 2.5rem;
  max-width: 480px;
  width: 100%;
  text-align: center;
}

.age-gate__icon {
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.age-gate__title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.age-gate__text {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.age-gate__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.age-gate__btn {
  padding: 0.875rem 1.5rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
}

.age-gate__btn--confirm {
  background: linear-gradient(135deg, var(--btn-solid), var(--accent-pink));
  color: #fff;
  box-shadow: 0 4px 20px rgba(147, 51, 234, 0.3);
}

.age-gate__btn--confirm:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(147, 51, 234, 0.4);
}

.age-gate__btn--deny {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.age-gate__btn--deny:hover {
  border-color: var(--text-secondary);
  color: var(--text-primary);
}

.age-gate__disclaimer {
  font-size: 0.75rem;
  color: var(--text-secondary);
  opacity: 0.6;
}

/* ************COMMON************ */

.logo {
  font-weight: 700;
  font-size: 1.75rem;
  letter-spacing: -0.02em;
}

.logo__accent {
  color: var(--accent);
}

body {
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  color: var(--text-primary);
  background-color: var(--bg-page);
}

[class*="__container"] {
  max-width: 72.624rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.button {
  font-weight: 600;
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  transition: all 0.3s;
  color: #fff;
  background-color: var(--btn-solid);
}

.button:hover {
  background-color: var(--btn-hover);
  transform: translateY(-1px);
}

.title {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.wrapper {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ************HEADER************ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(21, 25, 34, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
}

.header--solid {
  background: var(--bg-surface);
}

.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.5rem;
  flex-wrap: wrap;
  max-width: 74.624rem;
}

.header__logo {
  position: relative;
  z-index: 2;
}

.header__navigation {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.menu__body {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.menu__link {
  font-weight: 500;
  position: relative;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.menu__link:hover,
.menu__link--active {
  color: var(--text-primary);
}

.menu__link--active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

.actions-header {
  display: flex;
  align-items: center;
  gap: 0.624rem;
}

.icon-menu {
  display: none;
}

.actions-header__button {
  font-weight: 600;
  font-size: 0.875rem;
  display: inline-block;
  padding: 0.625rem 1.25rem;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  border-radius: 30px;
  transition: all 0.3s;
  position: relative;
  z-index: 2;
}

.actions-header__button:hover {
  background: var(--accent);
  color: var(--bg-page);
}

/* ************HERO (Landing Page)************ */

.btn-icon {
  vertical-align: -2px;
  margin-right: 6px;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 0%, rgba(147, 51, 234, 0.12) 0%, transparent 50%),
              radial-gradient(ellipse at 20% 80%, rgba(244, 114, 182, 0.06) 0%, transparent 50%),
              var(--bg-page);
}

.hero__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 6rem;
  padding-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.hero__badge {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  background: var(--accent-glow);
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  border: 1px solid rgba(244, 114, 182, 0.25);
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero__title {
  font-size: 5.5rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-bottom: 1.75rem;
}

.hero__title-accent {
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink), #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__text {
  max-width: 34rem;
  line-height: 1.7;
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 3rem;
}

.hero__button {
  font-weight: 600;
  padding: 1rem 2.5rem;
  border-radius: 100px;
  transition: all 0.3s;
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
}

.hero__button--primary {
  background: linear-gradient(135deg, var(--btn-solid), var(--accent-pink));
  color: #fff;
  box-shadow: 0 4px 24px rgba(147, 51, 234, 0.35);
}

.hero__button--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(147, 51, 234, 0.5);
}

.hero__button--secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.hero__button--secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero__discover {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: color 0.3s;
  animation: discoverBounce 2s ease-in-out infinite;
}

.hero__discover:hover {
  color: var(--accent);
}

@keyframes discoverBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

.hero__glow {
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(147, 51, 234, 0.1) 0%, transparent 70%);
  top: 5%;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.hero__glow--right {
  background: radial-gradient(circle, rgba(244, 114, 182, 0.06) 0%, transparent 70%);
  top: 30%;
  left: 75%;
  width: 500px;
  height: 500px;
}

/* ************SHOWCASE************ */

.showcase {
  border-top: 1px solid var(--border-subtle);
}

.showcase__container {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.showcase__title {
  text-align: center;
  margin-bottom: 1rem;
}

.showcase__subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 3.5rem;
}

.showcase__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.showcase__card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  transition: transform 0.3s, box-shadow 0.3s;
}

.showcase__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.showcase__card-img {
  height: 180px;
  position: relative;
}

.showcase__card-content {
  padding: 1.5rem;
}

.showcase__card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.showcase__card-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.showcase__card--coming-soon {
  pointer-events: none;
  opacity: 0.4;
}

.showcase__card--available {
  border-color: rgba(244, 114, 182, 0.3);
  box-shadow: 0 0 20px rgba(244, 114, 182, 0.08);
}

.showcase__badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 14px;
  border-radius: 6px;
  backdrop-filter: blur(6px);
  white-space: nowrap;
}

.showcase__badge--live {
  background: linear-gradient(135deg, var(--btn-solid), var(--accent-pink));
  box-shadow: 0 2px 12px rgba(147, 51, 234, 0.4);
}

/* ************GALLERY************ */

.gallery {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-muted);
}

.gallery__container {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.gallery__title {
  text-align: center;
  margin-bottom: 1rem;
}

.gallery__subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 3rem;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gallery__item {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  aspect-ratio: 3 / 4;
  cursor: pointer;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease, filter 0.3s ease;
}

.gallery__item:hover img {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.4) 0%, transparent 40%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.gallery__item:hover::after {
  opacity: 1;
}

.gallery__cta {
  text-align: center;
  margin-top: 2.5rem;
}

.gallery__btn {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  padding: 0.875rem 2rem;
  border-radius: 100px;
  background: linear-gradient(135deg, var(--btn-solid), var(--accent-pink));
  color: #fff;
  font-size: 0.95rem;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(147, 51, 234, 0.3);
}

.gallery__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(147, 51, 234, 0.4);
}

/* ************INFO BOXES************ */

.infoboxes {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-muted);
}

.infoboxes__container {
  padding-top: 6rem;
  padding-bottom: 6rem;
  display: flex;
  flex-direction: column;
  gap: 6rem;
}

.infobox {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.infobox--reverse {
  direction: rtl;
}

.infobox--reverse > * {
  direction: ltr;
}

.infobox__image {
  position: relative;
}

.infobox__placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-xl);
  max-height: 480px;
}

.infobox__img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-xl);
  max-height: 480px;
  display: block;
  border: 1px solid var(--border-subtle);
  transition: transform 0.4s ease;
}

.infobox__img:hover {
  transform: scale(1.02);
}

.infobox__content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.infobox__title {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.infobox__text {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

.infobox__btn {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  padding: 0.875rem 2rem;
  border-radius: 100px;
  background: linear-gradient(135deg, var(--btn-solid), var(--accent-pink));
  color: #fff;
  font-size: 0.95rem;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(147, 51, 234, 0.3);
  align-self: flex-start;
}

.infobox__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(147, 51, 234, 0.4);
}

/* ************FEATURES************ */

.features {
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.features__container {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.features__title {
  text-align: center;
  margin-bottom: 1rem;
}

.features__subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 3.5rem;
}

.features__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.features__item {
  text-align: center;
  padding: 2.5rem 1.75rem;
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.features__item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  border-color: rgba(244, 114, 182, 0.2);
}

.features__icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  border-radius: var(--radius-md);
  background: var(--accent-glow);
  color: var(--accent);
}

.features__item-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.features__item-text {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.9rem;
}

/* ************FAQ************ */

.faq {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-muted);
}

.faq__container {
  padding-top: 6rem;
  padding-bottom: 6rem;
  max-width: 52rem;
}

.faq__title {
  text-align: center;
  margin-bottom: 3.5rem;
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq__item {
  border-bottom: 1px solid var(--border-subtle);
}

.faq__item:first-child {
  border-top: 1px solid var(--border-subtle);
}

.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.35rem 0;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.05rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  transition: color 0.2s;
  gap: 1rem;
}

.faq__question:hover {
  color: var(--accent);
}

.faq__chevron {
  flex-shrink: 0;
  color: var(--text-secondary);
  transition: transform 0.3s;
}

.faq__item--open .faq__chevron {
  transform: rotate(180deg);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq__item--open .faq__answer {
  max-height: 300px;
}

.faq__answer p {
  padding-bottom: 1.35rem;
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* ************CTA************ */

.cta {
  border-top: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
}

.cta__container {
  padding-top: 7rem;
  padding-bottom: 7rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta__glow {
  position: absolute;
  width: 600px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(147, 51, 234, 0.1) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.cta__title {
  margin-bottom: 1.25rem;
}

.cta__text {
  max-width: 33rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.cta__button {
  padding: 1rem 3rem;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
}

/* ************GENERATOR PAGE************ */

.page--create {
  padding-top: 4.5rem;
  flex: 1;
  display: flex;
}

.generator {
  flex: 1;
  display: flex;
}

.generator__container {
  display: flex;
  gap: 0;
  flex: 1;
  max-width: 100%;
  padding: 0;
  position: relative;
}

.generator__sidebar {
  width: 340px;
  min-width: 340px;
  background: var(--bg-surface);
  border-right: 1px solid var(--border-subtle);
  padding: 0.75rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.generator__sidebar > .generator__btn-row {
  margin-top: 0.5rem;
}
.generator__sidebar > .generator__btn-row .generator__generate-btn {
  justify-content: center;
  padding: 0.875rem;
  font-size: 1rem;
}
.generator__sidebar > .generator__btn-row .generator__cancel-btn {
  padding: 0.875rem;
  font-size: 1rem;
}

/* ====== Tag Builder ====== */
.tag-builder {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-muted);
}

.tag-builder__tabs {
  display: flex;
  gap: 0;
  background: rgba(0,0,0,0.25);
  border-bottom: 1px solid var(--border-subtle);
}

.tag-builder__tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 0.6rem 0.25rem;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.65rem;
  font-weight: 500;
  transition: color 0.15s, background 0.15s;
  border-bottom: 2px solid transparent;
  position: relative;
}

.tag-builder__tab:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.03);
}

.tag-builder__tab--active {
  color: var(--accent-pink);
  border-bottom-color: var(--accent-pink);
  background: rgba(244, 114, 182, 0.06);
}

.tag-builder__tab-icon {
  font-size: 1.15rem;
  line-height: 1;
}

.tag-builder__tab-label {
  white-space: nowrap;
}

.tag-builder__panels {
  max-height: 300px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.tag-builder__panels::-webkit-scrollbar { width: 4px; }
.tag-builder__panels::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.tag-builder__panel {
  display: none;
  padding: 0.5rem;
}

.tag-builder__panel--active {
  display: block;
}

/* Tag categories */
.tag-category {
  margin-bottom: 0.25rem;
}

.tag-category__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.5rem 0.5rem;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.825rem;
  font-weight: 600;
  transition: color 0.15s;
}

.tag-category__header:hover {
  color: var(--accent-pink);
}

.tag-category__chevron {
  transition: transform 0.2s;
}

.tag-category__body--open ~ .tag-category__header .tag-category__chevron,
.tag-category__header[aria-expanded="true"] .tag-category__chevron {
  transform: rotate(180deg);
}

.tag-category__body {
  display: none;
  flex-wrap: wrap;
  gap: 0.375rem;
  padding: 0.25rem 0.5rem 0.5rem;
}

.tag-category__body--open {
  display: flex;
}

/* Tag chips */
.tag-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.tag-chip:hover {
  color: var(--text-primary);
  border-color: var(--text-secondary);
  background: rgba(255,255,255,0.08);
}

.tag-chip--active {
  background: rgba(244, 114, 182, 0.15);
  border-color: var(--accent-pink);
  color: var(--accent-pink);
}

.tag-chip--active:hover {
  background: rgba(244, 114, 182, 0.25);
  border-color: var(--accent-pink);
  color: var(--accent-pink);
}

.tag-chip--add {
  border-style: dashed;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  min-width: 28px;
  justify-content: center;
}

.tag-chip--add:hover {
  border-color: var(--accent-pink);
  color: var(--accent-pink);
}

/* Active tags display above prompt */
.active-tags-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  padding: 0 0 0.5rem;
}

.active-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.5rem;
  background: rgba(244, 114, 182, 0.15);
  border: 1px solid rgba(244, 114, 182, 0.35);
  border-radius: 999px;
  color: var(--accent-pink);
  font-size: 0.7rem;
  font-weight: 500;
}

.active-tag-pill__x {
  background: none;
  border: none;
  color: var(--accent-pink);
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1;
  padding: 0;
  opacity: 0.6;
  transition: opacity 0.15s;
}

.active-tag-pill__x:hover {
  opacity: 1;
}

/* Custom tag input modal */
.tag-input-overlay {
  position: fixed;
  inset: 0;
  z-index: 8000;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.tag-input-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  width: 100%;
  max-width: 340px;
}

.tag-input-card__title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.tag-input-card__input {
  width: 100%;
  padding: 0.55rem 0.75rem;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.85rem;
  outline: none;
}

.tag-input-card__input:focus {
  border-color: var(--accent-pink);
}

.tag-input-card__actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  justify-content: flex-end;
}

.tag-input-card__btn {
  padding: 0.4rem 1rem;
  border-radius: var(--radius-sm);
  border: none;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.tag-input-card__btn--cancel {
  background: var(--bg-elevated);
  color: var(--text-secondary);
}

.tag-input-card__btn--add {
  background: var(--accent-pink);
  color: #fff;
}

/* Collapsible Panel Sections */
.panel-section {
  border-radius: var(--radius-sm);
}

.panel-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.75rem 0.875rem;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.15s;
  border-radius: var(--radius-sm);
}

.panel-section__header:hover {
  background: var(--bg-muted);
}

.panel-section__header--static {
  cursor: default;
}

.panel-section__header--static:hover {
  background: none;
}

.panel-section__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.panel-section__title svg {
  color: var(--text-secondary);
  flex-shrink: 0;
}

.panel-section__chevron {
  color: var(--text-secondary);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.panel-section--open > .panel-section__header .panel-section__chevron {
  transform: rotate(0deg);
}

.panel-section:not(.panel-section--open) > .panel-section__header .panel-section__chevron {
  transform: rotate(-90deg);
}

.panel-section__body {
  display: none;
  padding: 0 0.875rem 0.75rem;
}

.panel-section--open > .panel-section__body {
  display: block;
}

.panel-section__body--spaced {
  display: none;
  flex-direction: column;
  gap: 1rem;
}

.panel-section--open > .panel-section__body--spaced {
  display: flex;
}

/* Model Cards */
.model-cards {
  display: flex;
  gap: 0.625rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-color: rgba(255, 255, 255, 0.28) rgba(255, 255, 255, 0.06);
}

.model-cards::-webkit-scrollbar {
  height: 11px;
}

.model-cards::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 6px;
}

.model-cards::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.28);
  border-radius: 6px;
}

.model-cards::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.45);
}

.model-card {
  flex: 0 0 auto;
  width: 132px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
}

.model-card__thumb {
  position: relative;
  width: 132px;
  /* 4:5, matching the portrait previews so they show uncropped. */
  height: 165px;
  border-radius: var(--radius-sm);
  border: 2.5px solid var(--border);
  overflow: hidden;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  opacity: 0.55;
}

.model-card:hover .model-card__thumb {
  opacity: 0.85;
  border-color: var(--text-secondary);
}

.model-card--active .model-card__thumb {
  border-color: var(--accent);
  box-shadow: 0 0 16px rgba(244, 114, 182, 0.4), 0 0 4px rgba(244, 114, 182, 0.6);
  opacity: 1;
}

.model-card__label {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-top: 0.375rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0.6;
  transition: all 0.2s;
}

.model-card--active .model-card__label {
  color: var(--accent);
  font-weight: 600;
  opacity: 1;
}

.model-card--coming-soon {
  cursor: default;
  pointer-events: none;
}

.model-card--coming-soon .model-card__thumb {
  opacity: 0.3;
  filter: grayscale(0.6);
}

.model-card--coming-soon .model-card__label {
  opacity: 0.4;
}

.model-card__badge {
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  backdrop-filter: blur(4px);
  white-space: nowrap;
}

.model-cards__loading {
  color: var(--text-secondary);
  font-size: 0.85rem;
  padding: 0.5rem 0;
}

.styles-note {
  margin: 0.1rem 0 0;
  padding: 0 0.05rem;
  font-size: 0.72rem;
  line-height: 1.4;
  font-weight: 400;
  color: var(--text-secondary);
  opacity: 0.58;
  max-width: 22rem;
}

/* Number of Images */
.num-images {
  display: flex;
  gap: 0.5rem;
}

.num-images__btn {
  flex: 1;
  padding: 0.5rem;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.num-images__btn:hover {
  border-color: var(--text-secondary);
  color: var(--text-primary);
}

.num-images__btn--active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}

.generator__field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.generator__label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}

.generator__select,
.generator__input {
  width: 100%;
  padding: 0.625rem 0.75rem;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.875rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.generator__select:focus,
.generator__input:focus {
  border-color: var(--accent);
}

.generator__select option {
  background: var(--bg-muted);
}

.generator__slider-row {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.generator__slider-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.generator__slider-control {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.generator__slider-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  flex-shrink: 0;
}

.generator__slider-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.generator__slider-control .generator__range {
  flex: 1;
  min-width: 0;
}

.generator__slider-value {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.25rem 0.5rem;
  min-width: 56px;
  text-align: center;
  flex-shrink: 0;
}

/* Toggle switch */
.generator__toggle {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
}

.generator__toggle input {
  display: none;
}

.generator__toggle-slider {
  position: relative;
  width: 40px;
  min-width: 40px;
  height: 22px;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: 100px;
  transition: all 0.3s;
}

.generator__toggle-slider::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--text-secondary);
  transition: all 0.3s;
}

.generator__toggle input:checked + .generator__toggle-slider {
  background: var(--accent);
  border-color: var(--accent);
}

.generator__toggle input:checked + .generator__toggle-slider::after {
  left: 20px;
  background: #fff;
}

.generator__toggle-text {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.generator__toggle-text .generator__hint {
  color: var(--text-secondary);
  font-size: 0.72rem;
  opacity: 0.7;
}


/* Range slider */
.generator__range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  outline: none;
  cursor: pointer;
}

.generator__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: 2px solid var(--bg-surface);
  box-shadow: 0 0 6px rgba(244, 114, 182, 0.4);
}

.generator__range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: 2px solid var(--bg-surface);
}

.generator__range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-secondary);
  opacity: 0.6;
}

.generator__hint {
  font-size: 0.75rem;
  color: var(--text-secondary);
  opacity: 0.5;
}

.generator__textarea--small {
  min-height: 56px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Main area */
.generator__main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

/* Toolbar */
.generator__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
  background: var(--bg-surface);
}

/* Fanvue library loading state */
.generator__grid-loading {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: 320px;
  padding: 3rem 1rem;
  color: var(--text-secondary);
  animation: fvFadeIn 0.3s ease;
}
.generator__grid-loading p {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 500;
  animation: fvPulse 1.6s ease-in-out infinite;
}
.fv-spinner {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 3px solid rgba(232, 64, 96, 0.18);
  border-top-color: #e84060;
  animation: fvSpin 0.8s linear infinite;
}
@keyframes fvSpin { to { transform: rotate(360deg); } }
@keyframes fvPulse { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }
@keyframes fvFadeIn { from { opacity: 0; } to { opacity: 1; } }

.generator__toolbar-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.generator__toolbar-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-right: 0.25rem;
}

.generator__toolbar-col-btn {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 1rem;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
  padding: 0;
}

.generator__toolbar-col-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.generator__range--cols {
  width: 100px;
}

.generator__toolbar-colval {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  min-width: 16px;
  text-align: center;
}

/* Unified image grid */
.generator__image-grid {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem;
  display: grid;
  grid-template-columns: repeat(var(--grid-cols, 2), 1fr);
  gap: 0.5rem;
  align-content: start;
}

.generator__grid-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.75rem;
  color: var(--text-secondary);
  padding: 6rem 2rem;
}

.generator__grid-empty svg { opacity: 0.25; }
.generator__grid-empty p { font-size: 1rem; font-weight: 500; }
.generator__grid-empty span { font-size: 0.85rem; opacity: 0.6; }

/* Grid cell */
.grid-cell {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  transition: border-color 0.2s;
}

.grid-cell:hover {
  border-color: var(--border);
}

.grid-cell img {
  width: 100%;
  display: block;
  cursor: pointer;
  transition: filter 0.15s;
}

.grid-cell:hover img {
  filter: brightness(0.85);
}

/* Grid cell hover overlay */
.grid-cell__overlay {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  gap: 4px;
  padding: 6px;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 3;
}

.grid-cell:hover .grid-cell__overlay {
  opacity: 1;
}

.grid-cell__action {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  border: none;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.15s;
  backdrop-filter: blur(4px);
}

.grid-cell__action:hover {
  background: rgba(0, 0, 0, 0.85);
}

.grid-cell__action--delete:hover {
  background: var(--error);
}

/* Grid loading cell */
.grid-cell--loading {
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.grid-cell--loading .generator__cell-loader-text {
  color: var(--text-secondary);
}

.grid-cell--active .generator__cell-loader-text {
  color: var(--accent);
  opacity: 1;
}

/* Grid cell timer */
.grid-cell .generator__cell-timer {
  position: absolute;
  bottom: 0.4rem;
  right: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  background: rgba(14, 17, 23, 0.75);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  backdrop-filter: blur(4px);
  z-index: 2;
}

/* Grid error cell */
.grid-cell--error {
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--error);
}

.generator__textarea {
  width: 100%;
  min-height: 90px;
  padding: 0.75rem;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.875rem;
  line-height: 1.5;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s;
}

.generator__textarea:focus {
  border-color: var(--accent);
}

.generator__textarea::placeholder {
  color: var(--text-secondary);
  opacity: 0.6;
}

.generator__generate-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  background: linear-gradient(135deg, var(--btn-solid), var(--accent-pink));
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
}

.generator__generate-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(147, 51, 234, 0.4);
}

.generator__generate-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.generator__generate-cost {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.12rem 0.5rem;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.generator__generate-cost svg {
  color: #f5c451;
  flex-shrink: 0;
}

/* Can't afford the batch: the button stops offering generation and offers the
   fix instead, in the same gold as the balance it is pointing at. */
.generator__generate-btn--buy {
  background: linear-gradient(135deg, #d9a12b, #f5c451);
  color: #1a1405;
}
.generator__generate-btn--buy:hover {
  box-shadow: 0 4px 16px rgba(245, 196, 81, 0.35);
}

.generator__btn-row {
  display: flex;
  gap: 0.5rem;
  width: 100%;
}
.generator__btn-row .generator__generate-btn {
  flex: 1;
}
.generator__cancel-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.625rem 1.25rem;
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
}
.generator__cancel-btn:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.5);
}

/* Output area */
.generator__output {
  flex: 1;
  min-height: 400px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.generator__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  color: var(--text-secondary);
  padding: 2rem;
}

.generator__placeholder svg {
  opacity: 0.3;
}

.generator__placeholder p {
  font-size: 1.1rem;
  font-weight: 500;
}

.generator__placeholder span {
  font-size: 0.875rem;
  opacity: 0.6;
}

/* Loading state */
.generator__loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.75rem;
  color: var(--text-secondary);
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  background: var(--bg-page);
}

.generator__loading p {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-top: 0.25rem;
}

.generator__loading-hint {
  font-size: 0.85rem;
  color: var(--text-secondary);
  opacity: 0.7;
}

/* Particle dots animation */
.generator__particles {
  position: relative;
  width: 48px;
  height: 48px;
}

.generator__particles span {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--text-primary);
  border-radius: 50%;
  opacity: 0;
  animation: particlePulse 2.4s ease-in-out infinite;
}

.generator__particles span:nth-child(1) { top: 0;    left: 20px; animation-delay: 0s; }
.generator__particles span:nth-child(2) { top: 6px;  left: 34px; animation-delay: 0.3s; }
.generator__particles span:nth-child(3) { top: 20px; left: 40px; animation-delay: 0.6s; }
.generator__particles span:nth-child(4) { top: 34px; left: 34px; animation-delay: 0.9s; }
.generator__particles span:nth-child(5) { top: 40px; left: 20px; animation-delay: 1.2s; }
.generator__particles span:nth-child(6) { top: 34px; left: 6px;  animation-delay: 1.5s; }
.generator__particles span:nth-child(7) { top: 20px; left: 0;    animation-delay: 1.8s; }
.generator__particles span:nth-child(8) { top: 6px;  left: 6px;  animation-delay: 2.1s; }

@keyframes particlePulse {
  0%, 100% { opacity: 0.15; transform: scale(0.6); }
  25% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.15; transform: scale(0.6); }
}

/* Live timer (sits on .generator__output which has position:relative) */
.generator__timer {
  position: absolute;
  bottom: 1rem;
  right: 1.25rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  z-index: 20;
  background: rgba(14, 17, 23, 0.75);
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  backdrop-filter: blur(4px);
}

/* Multi-image grid */
.generator__multi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  background: var(--bg-page);
  z-index: 1;
  overflow-y: auto;
}

.generator__multi-cell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  overflow: hidden;
  min-height: 0;
}

.generator__multi-cell img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  cursor: pointer;
  animation: cellFadeIn 0.4s ease;
  transition: filter 0.2s;
}

.generator__multi-cell img:hover {
  filter: brightness(1.1);
}

@keyframes cellFadeIn {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

/* Cell loading dots */
.generator__cell-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.generator__cell-loader-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.generator__cell-loader-dots span {
  width: 7px;
  height: 7px;
  background: var(--text-secondary);
  border-radius: 50%;
  animation: cellDotPulse 1.4s ease-in-out infinite;
}

.generator__cell-loader-dots span:nth-child(1) { animation-delay: 0s; }
.generator__cell-loader-dots span:nth-child(2) { animation-delay: 0.2s; }
.generator__cell-loader-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes cellDotPulse {
  0%, 80%, 100% { transform: scale(0.5); opacity: 0.25; }
  40% { transform: scale(1); opacity: 1; }
}

.generator__cell-loader-text {
  font-size: 0.75rem;
  color: var(--text-secondary);
  opacity: 0.6;
}

/* Active cell highlight */
.generator__multi-cell--active .generator__cell-loader-text {
  color: var(--accent);
  opacity: 1;
}

/* Per-cell timer */
.generator__cell-timer {
  position: absolute;
  bottom: 0.5rem;
  right: 0.625rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  background: rgba(14, 17, 23, 0.75);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  backdrop-filter: blur(4px);
  z-index: 2;
}

/* Cell error */
.generator__multi-cell--error {
  color: var(--error);
}

.generator__cell-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--error);
  opacity: 0.7;
}

/* Image navigation arrows */
.generator__nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-60%);
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.45);
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s, background 0.2s;
  padding: 0;
}

.generator__result:hover .generator__nav-arrow:not(:disabled) {
  opacity: 1;
}

.generator__nav-arrow:hover {
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
}

.generator__nav-arrow:disabled {
  opacity: 0 !important;
  cursor: default;
}

.generator__nav-arrow--left {
  left: 0.75rem;
}

.generator__nav-arrow--right {
  right: 0.75rem;
}

/* Fullscreen modal arrows */
.modal-nav-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2010;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.5);
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s, background 0.2s;
  padding: 0;
}

.modal-nav-arrow:hover {
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
}

.modal-nav-arrow:disabled {
  opacity: 0.2;
  cursor: default;
}

.modal-nav-arrow--left {
  left: 1.5rem;
}

.modal-nav-arrow--right {
  right: 1.5rem;
}

/* Result */
.generator__result {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.generator__image {
  width: 100%;
  flex: 1;
  object-fit: contain;
  background: #000;
}

.generator__image-actions {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem;
  background: var(--bg-muted);
  border-top: 1px solid var(--border-subtle);
}

.generator__action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.generator__action-btn:hover {
  background: var(--border);
  border-color: var(--text-secondary);
}

/* Error state */
.generator__error {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  padding: 2rem;
}

.generator__error p {
  color: var(--error);
  font-weight: 500;
}

/* History */
.generator__history {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.generator__history-title {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.generator__history-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.75rem;
}

.generator__history-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 1.5rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
  opacity: 0.6;
}

.generator__history-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border-subtle);
  transition: all 0.2s;
}

.generator__history-item:hover {
  border-color: var(--accent);
  transform: scale(1.03);
}

.generator__history-item--loading {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-muted);
  pointer-events: none;
}

.generator__history-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.generator__history-loader-dots {
  display: flex;
  gap: 4px;
}

.generator__history-loader-dots span {
  width: 5px;
  height: 5px;
  background: var(--text-secondary);
  border-radius: 50%;
  animation: cellDotPulse 1.4s ease-in-out infinite;
}

.generator__history-loader-dots span:nth-child(1) { animation-delay: 0s; }
.generator__history-loader-dots span:nth-child(2) { animation-delay: 0.2s; }
.generator__history-loader-dots span:nth-child(3) { animation-delay: 0.4s; }

.generator__history-loader-text {
  font-size: 0.6rem;
  color: var(--text-secondary);
  opacity: 0.7;
  text-align: center;
}

.generator__history-delete {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s, background 0.15s;
  z-index: 2;
  padding: 0;
  font-family: inherit;
}

.generator__history-item:hover .generator__history-delete {
  opacity: 1;
}

.generator__history-delete:hover {
  background: var(--error);
}

.generator__history-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Fullscreen modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-overlay img {
  max-width: 95vw;
  max-height: 95vh;
  object-fit: contain;
  cursor: default;
}

/* ****************PAGES (kept from original)**************** */
.page__main {
  padding-bottom: 160px;
}

.main {
  background: url("../img/home/background_placeholder.png") center / cover no-repeat;
  min-height: 100vh;
}

.main__container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 19.188rem;
}

.main__caption {
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-weight: 500;
}

.main__title {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}

.main__text {
  margin-bottom: 3.5rem;
  max-width: 33.375rem;
  line-height: 150%;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
}

.main__button {
  font-weight: 600;
  display: inline-block;
  padding: 1.25rem 3rem;
  border-radius: 30px;
  transition: all 0.3s;
  color: #fff;
  background-color: var(--btn-solid);
  letter-spacing: 0.02em;
  font-size: 1.375rem;
  line-height: 110%;
}

.outro_home {
  background: url("../img/home/hero_placeholder.jpg") center / cover no-repeat;
}

/* ************ABOUT**************** */

.main_about {
  background: url("../img/about/background_placeholder.png") center / cover no-repeat;
}

.about__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 8.75rem;
  padding-bottom: 8.75rem;
}

.about__image {
  position: relative;
  max-width: 552px;
  height: 614px;
}

.about__image img {
  border-radius: 16px;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__title {
  margin-bottom: 1.5rem;
}

.about__text {
  max-width: 30rem;
  letter-spacing: 0.02em;
  line-height: 150%;
  margin-bottom: 3.5rem;
  color: var(--text-secondary);
}

.about__text p:not(:last-child) {
  margin-bottom: 2.5rem;
}

.outro_about {
  background: url("../img/about/hero_placeholder.jpg") center / cover no-repeat;
}

/* **************SERVICES**************** */

.main_services {
  background: url("../img/services/background_placeholder.png") center / cover no-repeat;
}

.services {
  background-color: var(--bg-muted);
}

.services__container {
  padding-top: 8.75rem;
  padding-bottom: 8.75rem;
}

.services__title {
  text-align: center;
  margin-bottom: 5rem;
}

.services__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.item-services {
  display: flex;
  flex-direction: column;
  align-items: start;
  min-height: 100%;
}

.item-services__image {
  margin-bottom: 2rem;
  max-width: 360px;
  height: 421px;
}

.item-services__image img {
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.item-services__title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.item-services__text {
  max-width: 21.5rem;
  line-height: 150%;
  margin-bottom: 2rem;
  flex-grow: 1;
  letter-spacing: 0.02em;
}

.item-services__button {
  background-color: inherit;
  border: 2px solid var(--accent);
  color: var(--accent);
}

.outro_services {
  background: url("../img/services/hero_placeholder.jpg") center / cover no-repeat;
}

/* ************TESTIMONIAL**************** */

.testimonial__container {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex-direction: column;
  padding-top: 8.75rem;
  padding-bottom: 8.75rem;
}

.testiomonial__caption {
  margin-bottom: 4rem;
  font-weight: 600;
  text-transform: uppercase;
}

.testimonial__title {
  margin-bottom: 4rem;
  font-size: 2rem;
  max-width: 40.75rem;
  line-height: 136%;
  font-weight: 500;
}

.item-testimonial__image {
  max-width: 64px;
  margin: 0 auto;
  margin-bottom: 1.063rem;
  height: 64px;
}

.item-testimonial__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.item-testimonial__title {
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.item-testimonial__caption {
  font-size: 0.938rem;
}

/* ****************OUTRO**************** */

.outro__container {
  padding-top: 8.75rem;
  padding-bottom: 8.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.outro__title {
  margin-bottom: 1.25rem;
}

.outro__text {
  max-width: 33.625rem;
  line-height: 150%;
  margin-bottom: 2.5rem;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
}

.outro__button {
  padding: 1.25rem 3rem;
}

/* ****************FOOTER**************** */

.footer {
  line-height: 150%;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

.footer__container {
  max-width: 74.624rem;
}

.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-top: 3.5rem;
  padding-bottom: 3rem;
  gap: 4rem;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__tagline {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer__links {
  display: flex;
  gap: 5rem;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer__col-title {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.footer__link {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 400;
  transition: color 0.2s;
}

.footer__link:hover {
  color: var(--text-primary);
}

.footer__bottom {
  border-top: 1px solid var(--border-subtle);
  padding: 1.5rem 0;
}

.footer__copyright {
  font-weight: 500;
  letter-spacing: 0.02em;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.footer__policy {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  align-items: center;
}
.footer__policy a {
  color: var(--text-secondary);
  font-size: 0.8rem;
  transition: color 0.2s;
}
.footer__policy a:hover {
  color: var(--text-primary);
}

/* ****************LEGAL PAGES**************** */
.legal {
  padding: 140px 0 80px;
}
.legal__container {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.legal__title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}
.legal__updated {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 1.75rem;
}
.legal__notice {
  background: rgba(232, 64, 96, 0.08);
  border: 1px solid rgba(232, 64, 96, 0.25);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}
.legal h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 1.9rem 0 0.6rem;
}
.legal p,
.legal li {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}
.legal ul {
  margin: 0.5rem 0 0.5rem 1.25rem;
}
.legal li {
  margin-bottom: 0.35rem;
}
.legal a {
  color: #e84060;
}
.legal strong {
  color: var(--text-primary);
}

/* ****************ABOUT PAGE**************** */
.main__text_pages {
  max-width: 37.5rem;
}

.main__container_pages {
  padding-top: 300px;
}

.main_pages {
  min-height: 676px !important;
}

/* ****************SERVICES PAGE**************** */
.services-page__container {
  padding-top: 160px;
}

.services-page__item {
  margin-bottom: 132px;
}

.services-page__item:not(:last-child) {
  padding-bottom: 132px;
  margin-bottom: 132px;
  border-bottom: 1px solid var(--border-subtle);
}

.services-page__column {
  display: flex;
  align-items: center;
  gap: 97px;
}

.services-page__title {
  margin-bottom: 24px;
}

.services-page__text {
  margin-bottom: 56px;
  max-width: 480px;
  font-size: 18px;
  line-height: 150%;
  letter-spacing: 0.02em;
}

.services-page__text p:not(:last-child) {
  margin-bottom: 20px;
}

.services-page__img {
  max-width: 552px;
  height: 614px;
}

.services-page__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

/* ****************PRICING****************/

.pricing {
  padding: 90px 0;
}

.pricing__container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.pricing__subtitle {
  max-width: 620px;
  margin: 14px auto 48px;
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 150%;
}

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  align-items: stretch;
}

.pricing__card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 36px 30px;
  text-align: left;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 18px;
}

.pricing__card--featured {
  border-color: var(--accent);
  background: linear-gradient(160deg, rgba(244, 114, 182, 0.08), rgba(167, 139, 250, 0.06));
  box-shadow: 0 12px 40px rgba(244, 114, 182, 0.12);
}

.pricing__badge {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple));
  border-radius: 999px;
}

.pricing__plan {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.pricing__price {
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  color: var(--text-primary);
  margin-bottom: 28px;
}

.pricing__price span {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.pricing__price--accent {
  font-size: 38px;
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pricing__features {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.pricing__features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  line-height: 140%;
  color: var(--text-primary);
}

.pricing__features svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--accent);
}

.pricing__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.pricing__btn--ghost {
  color: var(--text-primary);
  background: transparent;
  border: 1px solid var(--border);
}

.pricing__btn--ghost:hover {
  border-color: var(--text-secondary);
  background: var(--bg-muted);
}

.pricing__btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple));
}

.pricing__btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(244, 114, 182, 0.3);
}

.pricing__aside {
  color: var(--text-secondary);
}

/* Top-up packs. Intentionally lighter than .pricing__card so they read as an
   add-on to the plans above rather than a third tier competing with them. */
.topup {
  margin-top: 40px;
  padding: 28px 30px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 18px;
}

.topup__head {
  margin-bottom: 22px;
  text-align: left;
}

.topup__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 6px;
}

.topup__sub {
  margin: 0;
  max-width: 620px;
  font-size: 14px;
  line-height: 150%;
  color: var(--text-secondary);
}

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

.topup__pack {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.topup__pack--best {
  border-color: var(--accent);
}

.topup__badge {
  position: absolute;
  top: -9px;
  right: 14px;
  padding: 3px 9px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple));
  border-radius: 999px;
}

.topup__tokens {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-primary);
}

.topup__tokens em {
  font-size: 14px;
  font-weight: 500;
  font-style: normal;
  color: var(--text-secondary);
}

.topup__price {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
}

@media (max-width: 1024px) {
  .topup__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .pricing__grid {
    grid-template-columns: 1fr;
  }
  .topup {
    padding: 22px 18px;
  }
  .topup__grid {
    grid-template-columns: 1fr;
  }
}

/* ****************CONTACT PAGE****************/

.main_contact {
  background: url("../img/contact/background_placeholder.png") center / cover no-repeat;
}

.contact__container {
  display: flex;
  justify-content: space-between;
  gap: 109px;
  padding-top: 140px;
  padding-bottom: 140px;
}

.contact__title {
  margin-bottom: 48px;
  font-weight: 600;
  line-height: 110%;
  font-size: 40px;
}

.fanvue-card {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: 480px;
  padding: 24px 26px;
  margin-bottom: 32px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(244, 114, 182, 0.12), rgba(167, 139, 250, 0.12));
  border: 1px solid rgba(244, 114, 182, 0.35);
  box-shadow: 0 8px 30px rgba(244, 114, 182, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.fanvue-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 14px 40px rgba(244, 114, 182, 0.22);
}

.fanvue-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple));
}

.fanvue-card__content {
  flex: 1;
  min-width: 0;
}

.fanvue-card__badge {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-glow);
  border-radius: 999px;
}

.fanvue-card__type {
  margin-bottom: 4px;
  font-size: 20px;
  font-weight: 600;
  line-height: 120%;
  color: var(--text-primary, #fff);
}

.fanvue-card__label {
  font-size: 15px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fanvue-card__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
  transition: transform 0.2s ease;
}

.fanvue-card:hover .fanvue-card__arrow {
  transform: translateX(4px);
}

.connect-contact {
  display: flex;
  flex-direction: column;
  align-items: start;
  row-gap: 32px;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.connect-contact__item {
  display: inline-flex;
  align-items: center;
  gap: 24px;
}

.connect-contant__type {
  margin-bottom: 4px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 110%;
  text-transform: uppercase;
}

.connect-contact__label {
  font-size: 22px;
  line-height: 150%;
  letter-spacing: 0.02em;
}

.contact__links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact__text {
  max-width: 545px;
  font-size: 18px;
  line-height: 150%;
  color: var(--text-secondary);
}

.contact__text p:not(:last-child) {
  margin-bottom: 15px;
}

iframe {
  width: 100vw;
  height: 482px;
  filter: grayscale(100%);
}

/* ****************ADAPTIVE**************** */

@media (max-width: 992px) {
  .services__row {
    grid-template-columns: 1fr;
    gap: 6rem;
    justify-items: center;
  }

  .item-services {
    text-align: center;
    align-items: center;
  }

  .page__main {
    padding-bottom: 80px;
  }

  .hero__title {
    font-size: 3rem;
  }

  .features__row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 480px;
    margin: 0 auto;
  }

  .showcase__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .generator__container {
    flex-direction: column;
  }

  .generator__sidebar {
    width: 100%;
    min-width: unset;
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
    max-height: none;
    padding: 0.75rem;
  }

  .generator__output {
    min-height: 350px;
  }
}

@media (min-width: 47.999rem) {
  .menu__list {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
  }
}

@media (max-width: 62.6875rem) {
  .services-page__column {
    gap: 30px;
    font-size: 15px;
  }

  .services-page__title {
    font-size: 29px;
  }

  .features__row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 47.999rem) {
  .icon-menu {
    display: block;
    position: relative;
    flex: 0 0 1.875rem;
    width: 1.875rem;
    height: 1.125rem;
    cursor: pointer;
    z-index: 5;
  }

  .icon-menu span,
  .icon-menu::before,
  .icon-menu::after {
    content: "";
    transition: all 0.3s ease 0s;
    right: 0;
    position: absolute;
    width: 100%;
    height: 0.125rem;
    background-color: var(--text-primary);
  }

  .icon-menu::before {
    top: 0;
  }

  .icon-menu::after {
    bottom: 0;
  }

  .contact__container {
    flex-direction: column;
    padding-top: 80px;
    gap: 50px;
    padding-bottom: 80px;
  }

  .icon-menu span {
    top: calc(50% - 0.0625rem);
  }

  .menu-open .icon-menu span {
    width: 0;
  }

  .menu-open .icon-menu::before {
    top: calc(50% - 0.0625rem);
    transform: rotate(-45deg);
  }

  .menu-open .icon-menu::after {
    bottom: calc(50% - 0.0625rem);
    transform: rotate(45deg);
  }

  .menu__body {
    background-color: var(--bg-surface);
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    padding: 7rem 0.938rem 1.875rem 0.938rem;
    overflow: auto;
    flex-direction: column;
    row-gap: 3rem;
  }

  .menu__body::before {
    content: "";
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    min-height: 4.5rem;
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    z-index: 2;
  }

  .menu-open .menu__body {
    left: 0;
  }

  .menu-open .menu__body::before {
    left: 0;
  }

  .menu__item {
    text-align: center;
  }

  .menu__item:not(:last-child) {
    margin-bottom: 1.563rem;
  }

  .menu__link {
    font-size: 1.5rem;
  }

  .actions-header__button {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }

  .main__container {
    padding-top: 12.5rem;
  }

  .main__container_pages {
    padding-top: 290px;
  }

  .main__title {
    font-size: 2.5rem;
  }

  .title {
    font-size: 2rem;
  }

  .about__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .about__container {
    flex-direction: column;
    padding-top: 4.375rem;
    padding-bottom: 4.375rem;
    gap: 4rem;
  }

  .services__container {
    padding-top: 4.375rem;
    padding-bottom: 4.375rem;
  }

  .testimonial__title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
  }

  .testiomonial__caption {
    margin-bottom: 2rem;
  }

  .outro__container {
    padding-top: 4.375rem;
    padding-bottom: 4.375rem;
  }

  .logo {
    font-size: 1.25rem;
  }

  .services-page__column {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 20px;
    gap: 4rem;
  }

  .hero__title {
    font-size: 2.5rem;
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
  }

  .hero__button {
    text-align: center;
    width: 100%;
  }

  .features__container,
  .showcase__container,
  .cta__container,
  .faq__container,
  .infoboxes__container,
  .gallery__container {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .showcase__grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 100%;
  }

  .features__row {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .infobox,
  .infobox--reverse {
    grid-template-columns: 1fr;
    gap: 2rem;
    direction: ltr;
  }

  .infobox__placeholder {
    max-height: 320px;
  }

  .infobox__title {
    font-size: 1.75rem;
  }

  .infoboxes__container {
    gap: 4rem;
  }

  .footer__top {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
  }

  .footer__links {
    gap: 3rem;
  }

  .footer__bottom {
    text-align: center;
  }
}

@media (max-width: 61.936rem) {
  .logo {
    font-size: 1.5rem;
  }
}

/* (duplicate toggle styles removed) */

.generator__processed-preview {
  margin-top: 0.4rem;
  padding: 0.5rem 0.6rem;
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 6px;
  max-height: 80px;
  overflow-y: auto;
}

.generator__processed-label {
  display: block;
  font-size: 0.65rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
  font-weight: 600;
}

.generator__processed-text {
  font-size: 0.72rem;
  color: var(--text-secondary);
  line-height: 1.4;
  word-break: break-word;
}

@media (max-width: 530px) {
  .generator__history-grid {
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  }
}

/* ================================================================
   AUTH NAV (header)
   ================================================================ */
.auth-nav {
  display: flex;
  align-items: center;
  margin-left: 1rem;
}

.auth-nav__signin {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.auth-nav__signin:hover {
  background: rgba(255, 255, 255, 0.15);
}

.auth-nav__user {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.auth-nav__avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.auth-nav__avatar--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
}

.auth-nav__name {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.82rem;
  font-weight: 500;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-nav__logout {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.auth-nav__logout:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}
.auth-nav__badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  text-transform: uppercase;
}
.auth-nav__badge--active {
  background: linear-gradient(135deg, var(--btn-solid), var(--accent-pink));
  color: #fff;
}
.auth-nav__manage {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.auth-nav__manage:hover {
  background: rgba(147, 51, 234, 0.2);
  color: var(--accent);
}

/* ================================================================
   LOGIN PAGE
   ================================================================ */
.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 80px);
  padding: 2rem;
}

.login {
  width: 100%;
  max-width: 420px;
}

.login__card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
}

.login__logo {
  margin-bottom: 1.5rem;
}

.logo--large {
  font-size: 2rem;
}

.login__title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.5rem;
}

.login__subtitle {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 1.8rem;
  line-height: 1.5;
}

.login__error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  margin-bottom: 1.2rem;
  color: #ef4444;
  font-size: 0.85rem;
}

.login__buttons {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  width: 100%;
  margin-bottom: 0.5rem;
}

.login__google-btn,
.login__oauth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  width: 100%;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-md);
  background: #fff;
  color: #1f1f1f;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
}

.login__google-btn:hover,
.login__oauth-btn--google:hover {
  background: #f1f1f1;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.login__oauth-btn--fanvue {
  background: linear-gradient(135deg, #e94583, #f06292);
  color: #fff;
}

.login__oauth-btn--fanvue:hover {
  background: linear-gradient(135deg, #d63c75, #e94583);
  box-shadow: 0 2px 12px rgba(233, 69, 131, 0.4);
}

.login__google-icon {
  flex-shrink: 0;
}

.login__terms {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 1.5rem;
  line-height: 1.5;
}

.login__back {
  display: inline-block;
  margin-top: 1.2rem;
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: none;
}

.login__back:hover {
  text-decoration: underline;
}

.login__form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.login__input {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.login__input:focus {
  border-color: var(--accent);
}

.login__input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 480px) {
  .login__card {
    padding: 2rem 1.5rem;
  }

  .auth-nav__name {
    display: none;
  }
}

/* ================================================================
   SUBSCRIPTION PAYWALL
   ================================================================ */
.paywall {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 5000;
  display: flex;
  align-items: safe center;
  justify-content: center;
  background: #06040e;
  overflow-y: auto;
  padding: 2rem 1rem;
}
.paywall__inner {
  text-align: center;
  max-width: 520px;
  width: 100%;
}

/* Hero */
.paywall__hero {
  margin-bottom: 1rem;
}
.paywall__badge-top {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 100px;
  background: rgba(232, 64, 96, 0.12);
  border: 1px solid rgba(232, 64, 96, 0.25);
  color: #e84060;
  margin-bottom: 0.75rem;
}
.paywall__heading {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  color: #fff;
}
.paywall__heading-accent {
  background: linear-gradient(135deg, #e84060, #f472b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.paywall__subheading {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.8rem;
  line-height: 1.4;
  max-width: 380px;
  margin: 0 auto;
}

/* Card */
.paywall__card {
  text-align: center;
  padding: 1.75rem 2rem 1.5rem;
  background: rgba(14, 10, 24, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}
.paywall__card-glow {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #e84060, transparent);
}

/* Price */
.paywall__price {
  margin-bottom: 1rem;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.15rem;
}
.paywall__amount {
  font-size: 2.5rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
}
.paywall__period {
  color: rgba(255, 255, 255, 0.35);
  font-size: 1rem;
  font-weight: 500;
}

/* CTA Button */
.paywall__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, #c83250, #e84060);
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
  position: relative;
  overflow: hidden;
}
.paywall__btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
}
.paywall__btn:hover::before {
  opacity: 1;
}
.paywall__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(232, 64, 96, 0.35);
}
.paywall__btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.paywall__btn svg {
  transition: transform 0.3s;
}
.paywall__btn:hover svg {
  transform: translateX(3px);
}

/* Login hint */
.paywall__login-hint {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.3);
}
.paywall__login-hint a {
  color: #e84060;
  text-decoration: none;
  font-weight: 600;
}
.paywall__login-hint a:hover {
  text-decoration: underline;
}

/* Divider */
.paywall__divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.05);
  margin: 1rem 0;
}

/* Features grid */
.paywall__features-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1rem;
  text-align: left;
}
.paywall__feat {
  display: flex !important;
  flex-direction: row !important;
  gap: 0.65rem;
  align-items: flex-start;
}
.paywall__feat-icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: rgba(232, 64, 96, 0.08);
  border: 1px solid rgba(232, 64, 96, 0.15);
  border-radius: 10px;
  color: #e84060;
  box-sizing: border-box;
  flex-shrink: 0;
}
.paywall__feat-icon svg {
  display: block;
  width: 16px;
  height: 16px;
}
.paywall__feat-text {
  display: flex !important;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.paywall__feat-text strong {
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  display: block;
}
.paywall__feat-text span {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.35;
  display: block;
}

/* Trust bar */
.paywall__trust {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
}
.paywall__trust-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.3);
}
.paywall__trust-item svg {
  color: rgba(255, 255, 255, 0.25);
}

@media (max-width: 480px) {
  .paywall__features-grid {
    grid-template-columns: 1fr;
  }
  .paywall__heading {
    font-size: 1.5rem;
  }
  .paywall__amount {
    font-size: 2.5rem;
  }
  .paywall__trust {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
}

/* ================================================================
   GENERATION TOAST NOTIFICATION
   ================================================================ */
.gen-toast {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(-120%);
  z-index: 10000;
  background: rgba(16, 185, 129, 0.95);
  color: #fff;
  border-radius: 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  pointer-events: none;
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
  overflow: hidden;
}

.gen-toast--visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.gen-toast__content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
}

.gen-toast__btn {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 0.35rem 0.85rem;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.gen-toast__btn:hover {
  background: rgba(255, 255, 255, 0.35);
}

.gen-toast__close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0 0 0.25rem;
  transition: color 0.2s;
}

.gen-toast__close:hover {
  color: #fff;
}

.gen-toast__bar {
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
  width: 100%;
}

.gen-toast__bar-fill {
  height: 100%;
  width: 100%;
  background: rgba(255, 255, 255, 0.7);
  transition: width 10s linear;
}

/* ================================================================
   FREE-TIER BANNER
   ================================================================ */
/* Token balance panel */
.token-panel {
  padding: 0.7rem 0.85rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, rgba(245, 196, 81, 0.09), rgba(245, 196, 81, 0.025));
  border: 1px solid rgba(245, 196, 81, 0.45);
  border-radius: 12px;
  box-shadow: 0 2px 14px rgba(245, 196, 81, 0.09);
}
/* Out of tokens overrides the gold so the panel reads as a warning, not a balance. */
.token-panel--empty {
  background: linear-gradient(135deg, rgba(232, 64, 96, 0.12), rgba(139, 92, 246, 0.12));
  border-color: rgba(232, 64, 96, 0.3);
  box-shadow: none;
}
.token-panel__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.token-panel__label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
}
.token-panel__value {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.token-panel__icon {
  color: #f5c451;
  flex-shrink: 0;
}
.token-panel--empty .token-panel__icon {
  color: #e84060;
}
.token-panel__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.5);
}
.token-panel__linked {
  color: #34d399;
  font-weight: 600;
}
.token-panel__howto {
  font-family: inherit;
  font-size: inherit;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  background: none;
  border: none;
  padding: 0;
  margin-left: auto;
  cursor: pointer;
  white-space: nowrap;
}
.token-panel__howto:hover {
  color: #fff;
  text-decoration: underline;
}
.token-panel__buy {
  font-family: inherit;
  font-size: inherit;
  font-weight: 700;
  color: #e84060;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  white-space: nowrap;
}
.token-panel__buy:hover:not(:disabled) {
  color: #ff5c7c;
  text-decoration: underline;
}
.token-panel__buy:disabled {
  opacity: 0.6;
  cursor: default;
}
.token-panel--flash {
  animation: tokenPanelFlash 1.1s ease;
}
@keyframes tokenPanelFlash {
  0%, 100% { box-shadow: 0 2px 14px rgba(245, 196, 81, 0.09); }
  35% { box-shadow: 0 0 0 2px rgba(245, 196, 81, 0.7), 0 4px 22px rgba(245, 196, 81, 0.35); }
}

/* On-site pack picker: choose here, pay in Telegram. */
.token-packs {
  margin-top: 0.7rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(245, 196, 81, 0.18);
}
.token-packs__head {
  margin-bottom: 0.45rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
}
.token-packs__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
}
.token-pack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  padding: 0.55rem 0.6rem;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: #fff;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}
.token-pack:hover:not(:disabled) {
  border-color: rgba(245, 196, 81, 0.45);
  background: rgba(245, 196, 81, 0.08);
  transform: translateY(-1px);
}
.token-pack:disabled {
  opacity: 0.6;
  cursor: default;
}
.token-pack__tokens {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.92rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.token-pack__tokens svg {
  color: #f5c451;
}
.token-pack__stars {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.55);
}
.token-pack__bonus {
  font-size: 0.65rem;
  font-weight: 700;
  color: #34d399;
}

/* First-time Telegram how-to */
.tg-howto {
  position: fixed;
  inset: 0;
  z-index: 9500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}
.tg-howto[hidden] {
  display: none;
}
.tg-howto__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.tg-howto__card {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: min(90vh, 640px);
  overflow: auto;
  padding: 1.75rem 1.5rem 1.4rem;
  background: var(--bg-surface);
  border: 1px solid rgba(245, 196, 81, 0.28);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}
.tg-howto__close {
  position: absolute;
  top: 0.7rem;
  right: 0.85rem;
  width: 2rem;
  height: 2rem;
  border: none;
  background: none;
  color: rgba(255, 255, 255, 0.45);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.tg-howto__close:hover {
  color: #fff;
}
.tg-howto__title {
  margin: 0 1.5rem 0.45rem 0;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}
.tg-howto__sub {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-secondary);
}
.tg-howto__steps {
  margin: 0 0 1.35rem;
  padding: 0;
  list-style: none;
  counter-reset: tgstep;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.tg-howto__steps li {
  position: relative;
  padding-left: 2.4rem;
  counter-increment: tgstep;
}
.tg-howto__steps li::before {
  content: counter(tgstep);
  position: absolute;
  left: 0;
  top: 0.05rem;
  width: 1.7rem;
  height: 1.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(245, 196, 81, 0.14);
  border: 1px solid rgba(245, 196, 81, 0.4);
  color: #f5c451;
  font-size: 0.78rem;
  font-weight: 800;
}
.tg-howto__steps strong {
  display: block;
  margin-bottom: 0.15rem;
  font-size: 0.92rem;
  color: #fff;
}
.tg-howto__steps span {
  display: block;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-secondary);
}
.tg-howto__link {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #f5c451;
  text-decoration: none;
}
.tg-howto__link:hover {
  text-decoration: underline;
}
.tg-howto__actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.tg-howto__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.2rem;
  border-radius: 100px;
  border: none;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, color 0.2s;
}
.tg-howto__btn--primary {
  background: linear-gradient(135deg, #d9a12b, #f5c451);
  color: #1a1405;
}
.tg-howto__btn--primary:hover {
  transform: translateY(-1px);
}
.tg-howto__btn--primary[hidden] {
  display: none;
}
.tg-howto__btn--ghost {
  background: transparent;
  color: var(--text-secondary);
}
.tg-howto__btn--ghost:hover {
  color: #fff;
}

.free-tier-banner {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 0.85rem 0.9rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, rgba(232, 64, 96, 0.1), rgba(139, 92, 246, 0.1));
  border: 1px solid rgba(232, 64, 96, 0.2);
  border-radius: 12px;
}
.free-tier-banner__info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.85);
}
.free-tier-banner__info svg {
  color: #e84060;
  flex-shrink: 0;
}
.free-tier-banner__actions {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.free-tier-banner__upgrade {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 0.7rem;
  border-radius: 8px;
  background: linear-gradient(135deg, #e84060, #b5179e);
  border: none;
  box-shadow: 0 2px 10px rgba(232, 64, 96, 0.25);
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
}
.free-tier-banner__upgrade:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(232, 64, 96, 0.35);
}
.free-tier-banner__link {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.74rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.free-tier-banner__link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.28);
}

/* Fanvue auto-delivery toggle */
.fanvue-delivery {
  margin-bottom: 0.5rem;
  padding: 0.6rem 0.8rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}
.fanvue-delivery__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  cursor: pointer;
}
.fanvue-delivery__text {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}
.fanvue-delivery__title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}
.fanvue-delivery__title svg {
  color: #e84060;
  flex-shrink: 0;
}
.fanvue-delivery__hint {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.45);
}
.switch {
  position: relative;
  flex-shrink: 0;
  width: 38px;
  height: 22px;
}
.switch input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.switch__track {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  transition: background 0.18s ease;
  pointer-events: none;
}
.switch__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.18s ease;
}
.switch input:checked + .switch__track {
  background: linear-gradient(135deg, #e84060, #b5179e);
}
.switch input:checked + .switch__track .switch__thumb {
  transform: translateX(16px);
}

/* "Send to Fanvue" action highlight on image cells */
.grid-cell__action--fanvue:hover {
  background: rgba(232, 64, 96, 0.85) !important;
  color: #fff !important;
}

/* Locked sections for free users */
.panel-section--locked {
  position: relative;
}
.panel-section--locked .panel-section__body {
  opacity: 0.3;
  pointer-events: none;
  user-select: none;
  filter: grayscale(0.5);
}
.panel-section--locked .panel-section__header {
  pointer-events: none;
}
.panel-section--locked::after {
  content: "PRO";
  position: absolute;
  top: 0.55rem;
  right: 0.75rem;
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #e84060;
  background: rgba(232, 64, 96, 0.1);
  border: 1px solid rgba(232, 64, 96, 0.25);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  z-index: 2;
}

/* ====== Error page ====== */
.errorpage {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: var(--bg-page);
}
.errorpage__inner {
  width: 100%;
  max-width: 560px;
  text-align: center;
}
.errorpage__title {
  margin: 0 0 1rem;
  font-size: clamp(1.6rem, 5vw, 2.25rem);
  font-weight: 800;
  color: var(--error);
}
.errorpage__text {
  margin: 0 auto 2rem;
  max-width: 26rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
}
.errorpage__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.errorpage__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.errorpage__btn--ghost {
  background: none;
  color: var(--text-primary);
}
.errorpage__btn--ghost:hover {
  color: var(--accent-pink);
}
.errorpage__btn--solid {
  background: var(--bg-elevated);
  color: var(--text-primary);
}
.errorpage__btn--solid:hover {
  background: #2f3947;
}
