@import url("https://fonts.googleapis.com/css2?family=Heebo:wght@400;500;600;700;800&display=swap");

:root {
  color-scheme: dark;
  --bg: #080c14;
  --bg-soft: #0d1424;
  --card: rgba(18, 26, 42, 0.92);
  --card-solid: #121a2a;
  --border: rgba(148, 163, 184, 0.14);
  --text: #eef2f9;
  --muted: #94a3b8;
  --accent: #6366f1;
  --accent-2: #22d3ee;
  --link: #a5b4fc;
  --link-hover: #c7d2fe;
  --pick-table-link: #93c5fd;
  --pick-table-link-hover: #bfdbfe;
  --accent-hover: #4f46e5;
  --accent-dim: rgba(99, 102, 241, 0.14);
  --danger: #f87171;
  --success: #4ade80;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  --header-h: 64px;
  --font: "Heebo", "Segoe UI", system-ui, sans-serif;
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #f0f4fc;
    --bg-soft: #e8eef9;
    --card: rgba(255, 255, 255, 0.94);
    --card-solid: #ffffff;
    --border: rgba(15, 23, 42, 0.1);
    --text: #0f172a;
    --muted: #64748b;
    --accent-dim: rgba(99, 102, 241, 0.1);
    --link: #3730a3;
    --link-hover: #312e81;
    --pick-table-link: #1d4ed8;
    --pick-table-link-hover: #1e3a8a;
    --shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(99, 102, 241, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(34, 211, 238, 0.12), transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
}

a {
  color: var(--accent-2);
  text-decoration: none;
  transition: color 0.15s;
}

a:hover {
  color: var(--accent);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--card-solid) 88%, transparent);
  backdrop-filter: blur(14px);
}

.site-header__inner {
  max-width: 1180px;
  margin: 0 auto;
  height: 100%;
  padding: 0 max(1rem, env(safe-area-inset-right)) 0 max(1rem, env(safe-area-inset-left));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-height: 36px;
  padding: 0.45rem 1rem;
  border-radius: 12px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
  direction: ltr;
  unicode-bidi: isolate;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.32);
  transition: transform 0.15s, box-shadow 0.15s;
}

.site-brand:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(99, 102, 241, 0.4);
}

.site-brand:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.site-nav a {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid transparent;
}

.site-nav a:hover {
  color: var(--text);
  background: var(--accent-dim);
}

.site-nav a.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #818cf8);
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.35);
}

.site-nav a.site-nav__vip {
  color: #dc2626;
  font-weight: 800;
  border-color: rgba(220, 38, 38, 0.25);
}

.site-nav a.site-nav__vip:hover {
  color: #b91c1c;
  background: rgba(220, 38, 38, 0.1);
}

.site-nav a.site-nav__vip.is-active {
  color: #fff;
  background: linear-gradient(135deg, #dc2626, #ef4444);
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(220, 38, 38, 0.35);
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.75rem max(1rem, env(safe-area-inset-right)) 3.5rem
    max(1rem, env(safe-area-inset-left));
  padding-bottom: max(3.5rem, env(safe-area-inset-bottom));
}

.wrap--narrow {
  max-width: 760px;
}

.wrap--hub {
  max-width: 960px;
}

.page-home .site-hero--hub {
  text-align: center;
  margin-bottom: 1.75rem;
}

.page-home .site-hero--hub .hub-welcome {
  margin: 0 0 0.5rem;
  font-size: clamp(1rem, 2.8vw, 1.15rem);
  line-height: 1.75;
  color: var(--text);
  max-width: 40rem;
  margin-inline: auto;
  text-align: center;
}

.page-home .hub-partners-link {
  margin: 0 0 0.85rem;
  text-align: center;
  font-size: clamp(0.92rem, 2.5vw, 1rem);
}

.page-home .hub-partners-link a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.page-home .hub-partners-link a:hover {
  text-decoration: underline;
}

.page-home .hub-divider {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 1rem auto 0.75rem;
  max-width: 22rem;
  width: min(100%, 22rem);
  opacity: 0.85;
}

.page-home .site-hero--hub h1 {
  font-size: clamp(1.5rem, 4.5vw, 2rem);
  margin: 0;
  text-align: center;
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

a.hub-tile {
  display: grid;
  grid-template-rows: auto auto;
  justify-items: center;
  align-content: center;
  gap: 0.85rem;
  text-align: center;
  aspect-ratio: 1;
  min-height: 10rem;
  padding: 1.25rem 1rem;
  border-radius: 12px;
  border: 2px solid #c4c4c4;
  background: #ffffff;
  color: #000000;
  font-size: clamp(1.15rem, 3.2vw, 1.5rem);
  font-weight: 800;
  line-height: 1.35;
  text-decoration: none;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.06);
  transition: border-color 0.15s, background-color 0.15s, transform 0.15s;
}

a.hub-tile:hover {
  background: #f5f5f5;
  border-color: #000000;
  color: #000000;
  transform: translateY(-2px);
}

a.hub-tile:focus-visible {
  outline: 3px solid #000000;
  outline-offset: 3px;
}

.hub-tile__icon {
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  color: #000000;
}

.hub-tile__icon svg {
  width: clamp(2.25rem, 6vw, 3rem);
  height: clamp(2.25rem, 6vw, 3rem);
}

.hub-tile__label {
  grid-row: 2;
  display: block;
  width: 100%;
}

.home-models {
  margin-top: 0.5rem;
  margin-bottom: 2rem;
  padding: 1.35rem 1.25rem 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card, #fff);
  text-align: center;
}

.home-models__title {
  margin: 0 0 1.25rem;
  font-size: clamp(1.1rem, 3vw, 1.35rem);
  font-weight: 800;
  color: var(--text);
}

.home-models__groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem 1.5rem;
  text-align: right;
}

.home-models__group-title {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text);
  text-align: center;
}

.home-models__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-models__list li {
  margin: 0.35rem 0;
  font-size: 0.92rem;
  line-height: 1.45;
}

.home-models__list a {
  color: var(--pick-table-link, #0b57d0);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.home-models__list a:hover {
  color: var(--text);
}

.wait-pick {
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}

.hub-back {
  margin: 0 0 0.65rem;
  font-size: 0.9rem;
}

.hub-back a {
  color: var(--pick-table-link);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.hub-soon p {
  margin: 0 0 1rem;
  line-height: 1.55;
}

a.hub-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-decoration: none;
  background: linear-gradient(135deg, var(--accent), #818cf8);
  color: #fff;
  box-shadow: 0 10px 28px rgba(99, 102, 241, 0.35);
}

a.hub-link-btn.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: none;
}

.hub-soon .actions {
  gap: 0.65rem;
}

.site-hero {
  margin-bottom: 1.75rem;
}

.site-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.65rem, 4vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.site-hero .lead,
.lead {
  margin: 0;
  max-width: 65ch;
  color: var(--muted);
  font-size: 0.98rem;
}

.site-hero .lead strong {
  color: var(--text);
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted);
}

.badge--live {
  color: var(--success);
  border-color: rgba(74, 222, 128, 0.35);
  background: rgba(74, 222, 128, 0.08);
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

.stat {
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.stat strong {
  display: block;
  font-size: 1.65rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, var(--text), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat span {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 500;
}

.error {
  background: rgba(127, 29, 29, 0.2);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: #fecaca;
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
}

@media (prefers-color-scheme: light) {
  .error {
    color: #991b1b;
    background: #fef2f2;
    border-color: #fecaca;
  }
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.card--padded {
  padding: 1.35rem;
}

.card h2 {
  margin: 0;
  padding: 1rem 1.25rem;
  font-size: 1.05rem;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(90deg, var(--accent-dim), transparent);
}

.table-scroll {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--card-solid);
}

th,
td {
  padding: 0.7rem 1rem;
  text-align: right;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  font-weight: 700;
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

tbody tr:hover td {
  background: var(--accent-dim);
}

tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.02);
}

@media (prefers-color-scheme: light) {
  tbody tr:nth-child(even) td {
    background: rgba(99, 102, 241, 0.03);
  }
}

tr:last-child td {
  border-bottom: none;
}

.provider {
  font-weight: 700;
  white-space: nowrap;
}

.provider a {
  color: var(--accent-2);
  font-weight: 700;
}

.model {
  max-width: 28rem;
}

.num {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.footnote {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0;
  padding: 0.85rem 1.25rem 1.15rem;
  line-height: 1.55;
}

.card--simple-pricing {
  padding: 0;
}

.table--pick-model {
  font-size: 1rem;
}

.table--pick-model th {
  font-size: 0.8rem;
  text-transform: none;
  letter-spacing: 0;
  padding: 1rem 1.25rem;
}

.table--pick-model td {
  padding: 1.1rem 1.25rem;
}

.model--pick {
  max-width: none;
}

.model--pick {
  line-height: 1.35;
}

.table--pick-model a.model-pick-link {
  display: inline;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--pick-table-link);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22em;
  text-decoration-color: var(--pick-table-link);
}

.table--pick-model a.model-pick-link:hover,
.table--pick-model a.model-pick-link:focus-visible {
  color: var(--pick-table-link-hover);
  text-decoration-color: var(--pick-table-link-hover);
}

.table--pick-model tbody tr:has(.model-pick-link):hover a.model-pick-link {
  color: var(--pick-table-link-hover);
}

.price-pick strong {
  font-size: 1.2rem;
  color: var(--text);
}

.footnote--simple {
  text-align: center;
  padding-bottom: 1.35rem;
}

.site-footer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.25rem 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}

.site-footer a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* Grok form page */
.page-grok .sub {
  color: var(--muted);
  margin: 0;
  font-size: 0.95rem;
}

.page-grok label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.hint {
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 0.3rem;
}

textarea,
input[type="number"],
input[type="file"] {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.85rem;
  font: inherit;
  background: color-mix(in srgb, var(--bg) 65%, transparent);
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

textarea:focus,
input[type="number"]:focus,
input[type="file"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

input[type="number"]#duration {
  font-size: 1.1rem;
  min-height: 48px;
  text-align: center;
  -moz-appearance: textfield;
}

input[type="number"]#duration::-webkit-outer-spin-button,
input[type="number"]#duration::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.duration-control {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.duration-btn {
  flex: 0 0 3rem;
  min-width: 48px;
  min-height: 48px;
  padding: 0;
  font-size: 1.5rem;
  line-height: 1;
  font-weight: 700;
  border-radius: var(--radius-sm);
  touch-action: manipulation;
}

.duration-control input#duration {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.35rem;
}

.chip {
  border: 1px solid var(--border);
  background: transparent;
  color: inherit;
  border-radius: 999px;
  padding: 0.4rem 0.95rem;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.chip:hover {
  border-color: var(--accent);
}

.chip.active {
  background: linear-gradient(135deg, var(--accent), #818cf8);
  border-color: transparent;
  color: #fff;
}

.row {
  margin-bottom: 1.1rem;
}

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-top: 1px dashed var(--border);
  margin-top: 0.5rem;
}

input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--accent);
}

.actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

button {
  font: inherit;
  border-radius: var(--radius-sm);
  padding: 0.7rem 1.35rem;
  cursor: pointer;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 50%, transparent);
  color: inherit;
  font-weight: 600;
  transition: filter 0.15s, transform 0.1s;
}

button:hover:not(:disabled) {
  filter: brightness(1.06);
}

button:active:not(:disabled) {
  transform: scale(0.98);
}

button.primary {
  background: linear-gradient(135deg, var(--accent), #818cf8);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 28px rgba(99, 102, 241, 0.4);
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.status {
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
  margin-top: 1rem;
  font-size: 0.9rem;
  display: none;
}

.status.show {
  display: block;
}

.status.error {
  border: 1px solid rgba(248, 113, 113, 0.45);
  background: rgba(127, 29, 29, 0.15);
  color: var(--danger);
}

.status.limit-subscribe {
  display: none;
}

.subscribe-modal[hidden] {
  display: none !important;
}

.subscribe-modal:not([hidden]) {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  box-sizing: border-box;
}

.subscribe-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
}

.subscribe-modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 26rem);
  padding: 1.5rem 1.35rem 1.35rem;
  border-radius: var(--radius);
  border: 2px solid #000;
  background: #fff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.subscribe-modal__close {
  position: absolute;
  top: 0.45rem;
  left: 0.55rem;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #000;
  font-size: 1.65rem;
  line-height: 1;
  font-weight: 400;
  cursor: pointer;
  padding: 0;
}

.subscribe-modal__close:hover {
  background: #f0f0f0;
}

.subscribe-modal__text {
  margin: 0.5rem 0 0;
  padding-top: 0.25rem;
  color: #000;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.6;
  text-align: center;
}

.status.info {
  border: 1px solid var(--border);
  color: var(--muted);
}

.status.ok {
  border: 1px solid rgba(74, 222, 128, 0.45);
  background: rgba(74, 222, 128, 0.08);
}

video {
  width: 100%;
  border-radius: var(--radius-sm);
  margin-top: 0.75rem;
  background: #000;
  box-shadow: var(--shadow);
}

audio {
  width: 100%;
  margin-top: 0.5rem;
}

.audio-block {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed var(--border);
}

.audio-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.page-music__main {
  padding-bottom: 2.5rem;
}

.image-result-grid {
  display: grid;
  gap: 1rem;
  margin-top: 0.75rem;
}

.page-image-studio .card--image-result {
  overflow: visible;
}

.image-result-block {
  max-width: 500px;
  margin-inline: auto;
  width: 100%;
}

.image-result-preview {
  width: 100%;
  max-width: 500px;
  margin-inline: auto;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #111;
  line-height: 0;
}

.image-result-preview img,
.image-result-block img {
  display: block;
  width: 100%;
  max-width: 500px;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.image-result-block .result-actions {
  margin-top: 0.65rem;
  text-align: center;
}

.image-result-block .download-btn {
  display: inline-block;
  text-decoration: none;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-weight: 600;
}

.site-hero--compact {
  margin-bottom: 1rem;
}

.site-hero--compact .lead {
  margin: 0;
  font-size: 0.95rem;
}

.page-music .music-form {
  overflow: visible;
}

.music-form textarea#description {
  min-height: 140px;
  font-size: 16px;
}

.music-form textarea#style,
.music-form textarea#negative_tags {
  min-height: 100px;
}

.music-form textarea#lyrics {
  min-height: 120px;
}

.music-mode-panel[hidden] {
  display: none !important;
}

.music-switch-row {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}

.music-form .req {
  color: var(--danger);
}

.music-form select,
.music-form input[type="text"]:not(.chip) {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  color: inherit;
  font: inherit;
}

.music-advanced {
  margin-top: 0.5rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
}

.music-advanced summary {
  cursor: pointer;
  font-weight: 700;
  padding: 0.35rem 0;
  list-style-position: inside;
}

.music-advanced__body {
  padding-top: 0.75rem;
}

.slider-control {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.35rem;
}

.slider-control input[type="range"] {
  flex: 1 1 auto;
  min-width: 0;
  accent-color: var(--accent);
}

.slider-control input[type="number"] {
  width: 4.5rem;
  flex: 0 0 auto;
  margin-top: 0;
  padding: 0.4rem 0.35rem;
  text-align: center;
}

.slider-row label {
  font-size: 0.9rem;
}

.chips--music {
  margin-top: 0.35rem;
}

.actions--music {
  flex-direction: column-reverse;
  margin-top: 1rem;
}

.actions--music .primary {
  width: 100%;
  min-height: 52px;
  font-size: 1.05rem;
}

.actions--music button {
  width: 100%;
  min-height: 48px;
}

@media (max-width: 640px) {
  .page-music .site-hero--compact h1 {
    font-size: 1.45rem;
  }

  .page-music .music-form {
    margin-bottom: 1rem;
  }

  .page-music .price-banner {
    margin-top: 0.75rem;
  }
}

.counter {
  text-align: left;
  direction: ltr;
  font-size: 0.8rem;
  color: var(--muted);
}

.price-banner {
  margin-top: 1.1rem;
  margin-bottom: 0.25rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(99, 102, 241, 0.35);
  background: linear-gradient(135deg, var(--accent-dim), transparent);
  text-align: center;
}

.price-banner .ils {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--accent-2);
}

.price-banner .detail {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.3rem;
}

/* יצירה חינם בממשק הציבורי — מסתיר הערכות ₪ שנשארות לצורכי JS פנימי */
.price-banner > div:first-child,
.price-banner .ils,
.price-banner .detail {
  display: none !important;
}

.price-banner::before {
  content: "חינם";
  display: block;
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--accent-2);
}

.price-banner::after {
  content: "ללא תשלום מצד המשתמש";
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.35rem;
}

.loading-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(8, 12, 20, 0.82);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
}

.loading-overlay.show {
  display: flex;
}

.loading-overlay img {
  width: 88px;
  height: 88px;
  display: block;
}

.loading-overlay p {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
  padding: 0 1rem;
}

.loading-timer {
  font-size: 2.75rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #fff;
  line-height: 1;
}

.loading-timer-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

button.download-btn {
  background: var(--success);
  border-color: var(--success);
  color: #052e16;
  font-weight: 700;
}

.video-block {
  margin-bottom: 1.25rem;
}

#resultBox {
  scroll-margin-top: calc(var(--header-h, 64px) + 0.85rem);
}

/* —— Responsive —— */
@media (max-width: 900px) {
  .site-header {
    height: auto;
    min-height: var(--header-h);
  }

  .site-header__inner {
    flex-wrap: wrap;
    height: auto;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
    row-gap: 0.65rem;
  }

  .site-brand {
    flex: 0 0 auto;
    margin-inline-end: auto;
  }

  .site-nav {
    order: 3;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem 0.4rem;
    overflow: visible;
    padding-bottom: 0.35rem;
  }

  .site-nav a {
    flex: 0 1 auto;
    max-width: 100%;
  }
}

@media (max-width: 720px) {
  .hub-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 22rem;
    margin-inline: auto;
  }

  .home-models__groups {
    grid-template-columns: 1fr;
    max-width: 20rem;
    margin-inline: auto;
  }

  a.hub-tile {
    aspect-ratio: auto;
    min-height: 5.5rem;
    width: 100%;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 58px;
  }

  .site-header {
    height: auto;
  }

  .site-header__inner {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  .site-brand {
    min-height: 32px;
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
    width: 100%;
    justify-content: center;
    margin-inline: 0;
  }

  .site-nav {
    justify-content: center;
    gap: 0.3rem 0.35rem;
  }

  .site-nav a {
    padding: 0.4rem 0.65rem;
    font-size: 0.78rem;
    min-height: 2.35rem;
    display: inline-flex;
    align-items: center;
  }

  .site-nav a.site-nav__vip {
    font-size: 0.82rem;
  }

  .wrap {
    padding-top: 1.1rem;
  }

  .site-hero {
    margin-bottom: 1.25rem;
  }

  .site-hero .lead,
  .lead {
    font-size: 0.92rem;
  }

  .card--padded {
    padding: 1rem 0.9rem;
  }

  .card h2 {
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
  }

  th,
  td {
    padding: 0.55rem 0.65rem;
    font-size: 0.85rem;
  }

  .table-scroll {
    margin: 0 -0.15rem;
  }

  .page-video .site-hero h1 {
    font-size: clamp(1.3rem, 5.5vw, 1.75rem);
    line-height: 1.25;
  }

  .page-video .site-hero .lead {
    font-size: 0.88rem;
    max-width: none;
  }

  .page-video .hub-back {
    font-size: 0.85rem;
  }

  .page-video .card--simple-pricing {
    background: transparent;
    border: none;
    box-shadow: none;
    margin-bottom: 1rem;
  }

  .page-video .card--simple-pricing .table-scroll {
    overflow: visible;
    margin: 0;
  }

  .page-video .table--pick-model {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 0.85rem;
    font-size: 0.95rem;
  }

  .page-video .table--pick-model thead {
    display: none;
  }

  .page-video .table--pick-model tbody tr.pick-model-row {
    display: block;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card-solid);
    box-shadow: var(--shadow);
    overflow: hidden;
  }

  .page-video .table--pick-model tbody tr.pick-model-row td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--border);
    width: 100%;
    text-align: right;
  }

  .page-video .table--pick-model tbody tr.pick-model-row td:last-child {
    border-bottom: none;
  }

  .page-video .table--pick-model tbody td.model--pick {
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    text-align: center;
    padding: 1.15rem 1rem;
    background: var(--accent-dim);
    border-bottom: 1px solid var(--border);
  }

  .page-video .table--pick-model tbody td.model--pick::before {
    display: none;
  }

  .page-video .table--pick-model tbody td[data-label]:not(.model--pick)::before {
    content: attr(data-label);
    flex: 1 1 auto;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--muted);
    line-height: 1.35;
    max-width: 58%;
  }

  .page-video .table--pick-model tbody td.wait-pick {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
  }

  .page-video .table--pick-model tbody td.price-pick strong {
    font-size: 1.28rem;
    font-weight: 800;
    color: var(--text);
    white-space: nowrap;
  }

  .page-video .table--pick-model a.model-pick-link {
    display: block;
    width: 100%;
    font-size: clamp(1.15rem, 4.8vw, 1.35rem);
    line-height: 1.35;
    text-align: center;
    padding: 0.15rem 0;
  }

  .page-video .footnote--simple {
    text-align: right;
    line-height: 1.5;
    padding: 0.5rem 0.15rem 0;
  }

  .price-pick strong {
    font-size: 1.35rem;
  }

  .switch-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }

  .switch-row input[type="checkbox"] {
    align-self: flex-start;
    width: 1.35rem;
    height: 1.35rem;
  }

  .actions {
    flex-direction: column;
  }

  .actions button {
    width: 100%;
    min-height: 48px;
    justify-content: center;
  }

  .chip {
    min-height: 44px;
    padding: 0.5rem 1rem;
  }

  textarea {
    min-height: 120px;
    font-size: 16px;
  }

  input[type="file"] {
    font-size: 16px;
    max-width: 100%;
  }

  .price-banner .ils {
    font-size: 1.35rem;
  }

  .loading-overlay p {
    font-size: clamp(0.95rem, 4vw, 1.1rem);
    max-width: 20rem;
  }

  .loading-timer {
    font-size: clamp(2rem, 12vw, 2.75rem);
  }

  .footnote {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
    font-size: 0.78rem;
  }

  .site-footer {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
    padding-bottom: max(2rem, env(safe-area-inset-bottom));
  }
}

@media (max-width: 380px) {
  .site-brand {
    font-size: 0.72rem;
    padding: 0.35rem 0.6rem;
  }
}
