/* XHUB hub page styles. Uses shared theme tokens from style.css. */

.xhub-hero {
  position: relative;
  overflow: hidden;
  padding: var(--space-2xl) var(--space-lg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--accent-border);
  background:
    radial-gradient(circle at 88% 15%, var(--accent-soft), transparent 45%),
    linear-gradient(155deg, var(--bg-hero-start), var(--bg-hero-end));
}

.xhub-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent-text);
}

.xhub-hero h1 {
  margin: 12px 0 var(--space-sm);
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.xhub-hero .lead {
  max-width: 62ch;
  margin: 0;
  opacity: 0.88;
}

.xhub-search-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.xhub-search-input {
  flex: 1 1 240px;
  min-height: 42px;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  border: 1px solid var(--accent-border);
  background: var(--bg-input-translucent);
  color: inherit;
}

.xhub-search-input:focus {
  outline: 2px solid var(--accent-ring);
  outline-offset: 1px;
}

.xhub-events-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.xhub-drop-card,
.xhub-artist-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--accent-border-subtle);
  background: var(--bg-surface-translucent);
  transition: transform var(--dur-fast) var(--ease-smooth), border-color var(--dur-fast) var(--ease-smooth), box-shadow var(--dur-med) var(--ease-smooth);
}

.xhub-drop-card:hover,
.xhub-artist-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-border);
  box-shadow: var(--shadow-card);
}

.xhub-event-row {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: var(--space-lg);
  align-items: center;
}

.xhub-drop-art-link,
.xhub-drop-art,
.xhub-drop-art-fallback {
  width: 200px;
  height: 200px;
  max-width: 100%;
}

.xhub-drop-art-link {
  display: block;
  flex-shrink: 0;
}

.xhub-drop-art {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--accent-border);
  background: var(--bg-input);
  display: block;
}

.xhub-drop-art-fallback {
  border-radius: var(--radius-md);
  border: 1px solid var(--accent-border-subtle);
  background: var(--accent-faint);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  text-align: center;
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--ok-text);
}

.xhub-event-body,
.xhub-artist-name { min-width: 0; }

.xhub-artist-head {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.xhub-artist-avatar,
.xhub-artist-avatar-fallback {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.xhub-artist-avatar {
  object-fit: cover;
  border: 1px solid var(--accent-border);
  background: var(--bg-input);
}

.xhub-artist-avatar-fallback {
  border: 1px solid var(--accent-border);
  background: var(--accent-soft);
  color: var(--accent-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.05rem;
}

.xhub-countdown {
  display: inline-block;
  margin-top: var(--space-sm);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--accent-faint);
  color: var(--ok-text);
}

.xhub-metrics-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: var(--space-md);
}

.xhub-section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.xhub-card-actions-wrap { flex-wrap: wrap; margin-top: var(--space-md); }
.xhub-no-margin { margin: 0; }
.xhub-inherit-link { color: inherit; }
.xhub-inherit-link-plain { color: inherit; text-decoration: none; }
.xhub-event-meta-note { margin-top: 4px; }
.xhub-event-detail { margin: 6px 0 0; }
.xhub-event-actions { margin-top: 14px; }
.xhub-search-empty { margin: 0; }
.xhub-artist-name-heading { margin: 4px 0 0; }
.xhub-artist-tagline { margin: 10px 0 0; }
.xhub-artist-bio { margin: 6px 0 0; }

.xcut-hub-nav { gap: 8px; }
.xcut-hub-nav .xcut-nav-feed { color: var(--xhub-accent) !important; background: var(--xhub-accent-soft); border-color: var(--xhub-border); font-weight: 700; }
.xcut-nav-group { position: relative; }
.xcut-nav-group > summary { list-style: none; cursor: pointer; min-height: 38px; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid transparent; border-radius: 8px; color: var(--xhub-ink); font-size: .9rem; font-weight: 600; }
.xcut-nav-group > summary::before { content: none; display: none; }
.xcut-nav-group > summary::-webkit-details-marker { display: none; }
.xcut-nav-group > summary::marker { content: ""; }
.xcut-nav-group > summary::after { content: ""; width: 7px; height: 7px; flex: 0 0 7px; margin: -4px 1px 0 0; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform 160ms ease; }
.xcut-nav-group[open] > summary::after { margin-top: 4px; transform: rotate(225deg); }
.xcut-nav-group[open] > summary,
.xcut-nav-group > summary:hover,
.xcut-nav-group > summary.is-active { background: var(--xhub-accent-soft); border-color: var(--xhub-border); color: var(--xhub-accent); }
.xcut-nav-submenu { position: absolute; z-index: 650; top: calc(100% + 6px); right: 0; min-width: 190px; display: grid; gap: 3px; padding: 7px; border: 1px solid var(--xhub-border); border-radius: 8px; background: var(--xhub-surface); box-shadow: 0 12px 30px rgba(14, 15, 14, 0.08); }
.xcut-nav-submenu a { display: block; padding: 9px 10px; border-radius: 6px; color: var(--xhub-ink) !important; white-space: nowrap; }
.xcut-nav-submenu a:hover,
.xcut-nav-submenu a.is-active,
.xcut-nav-submenu a[aria-current="page"] { background: var(--xhub-accent-soft); color: var(--xhub-accent) !important; }
.xcut-nav-submenu .xcut-dynamic-logout { color: #b42318 !important; }

@media (max-width: 820px) {
  .xcut-hub-nav .xcut-nav-group { width: 100%; }
  .xcut-hub-nav .xcut-nav-group > summary { width: 100%; justify-content: space-between; min-height: 44px; }
  .xcut-hub-nav .xcut-nav-submenu { position: static; min-width: 0; margin: 2px 0 6px; padding: 4px 4px 4px 12px; border: 0; border-left: 2px solid var(--xhub-border); border-radius: 0; box-shadow: none; background: transparent; }
  .xcut-hub-nav .xcut-nav-submenu a { white-space: normal; }
}

/* Icons8-inspired XHUB workspace */
.xhub-home {
  --xhub-accent: var(--xcut-theme-accent, var(--accent));
  --xhub-accent-soft: color-mix(in srgb, var(--xhub-accent) 12%, var(--xhub-surface));
  --xhub-canvas: var(--xcut-theme-canvas, #f7f9fc);
  --xhub-surface: var(--xcut-theme-surface, #ffffff);
  --xhub-ink: var(--xcut-theme-ink, #1d2638);
  --xhub-muted: var(--xcut-theme-muted, #68758a);
  --xhub-border: var(--xcut-theme-border, #dde7df);
  background: var(--xhub-canvas) !important;
  color: var(--xhub-ink) !important;
}

.xhub-home .topbar {
  background: color-mix(in srgb, var(--xhub-surface) 94%, transparent);
  border-bottom: 1px solid var(--xhub-border);
  backdrop-filter: blur(16px);
}

.xhub-home .brand,
.xhub-home .nav-links a {
  color: var(--xhub-ink) !important;
}

.xhub-home .nav-links a.is-active {
  background: var(--xhub-accent-soft) !important;
  border-color: var(--xhub-border) !important;
  color: var(--xhub-accent) !important;
}

.xhub-home.xhub-page-main,
  .xhub-home .page-main {
    width: 100%;
    max-width: none;
    padding-top: 0 !important;
}

.xhub-home .xhub-hero {
  min-height: 420px;
  display: flex;
  align-items: center;
  gap: 36px;
  padding: 52px;
  border-radius: 18px;
  border: 1px solid var(--xhub-border);
  margin-top: 0 !important;
  background:
    radial-gradient(circle at 88% 18%, color-mix(in srgb, var(--xhub-accent) 12%, transparent), transparent 25%),
    linear-gradient(135deg, var(--xhub-surface) 0%, var(--xhub-canvas) 100%);
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  box-shadow: 0 22px 60px rgba(31, 45, 70, 0.08);
  margin-inline: 0;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
}

.xhub-home .xhub-hero-copy {
  width: calc(100% - (var(--container-gutter) * 2));
  max-width: 1120px;
  margin: 0 auto;
}

.xhub-home .xhub-hero-kicker {
  background: var(--xhub-accent-soft);
  border-color: var(--xhub-border);
  color: var(--xhub-accent);
}

.xhub-home .xhub-hero h1 {
  max-width: 650px;
  margin: 18px 0 14px;
  font-size: clamp(2.35rem, 5vw, 4.25rem);
  line-height: 0.98;
  letter-spacing: 0;
  color: var(--xhub-ink);
}

.xhub-home .xhub-hero .lead {
  max-width: 560px;
  color: var(--xhub-muted);
  font-size: 1.05rem;
  font-weight: 500;
}

.xhub-home .xhub-search-row {
  max-width: 620px;
  align-items: center;
  margin-top: 26px;
}

.xhub-home .xhub-search-field {
  flex: 1 1 280px;
  height: 50px;
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid var(--xhub-border);
  border-radius: 10px;
  background: var(--xhub-surface);
  color: var(--xhub-muted);
  box-shadow: 0 8px 24px rgba(31, 45, 70, 0.06);
}

.xhub-home .xhub-search-field:focus-within {
  border-color: var(--xhub-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--xhub-accent) 18%, transparent);
}

.xhub-home .xhub-search-input {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--xhub-ink);
}

.xhub-home .xhub-search-input:focus {
  outline: 0;
  box-shadow: none;
}

.xhub-home .xhub-hero-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.xhub-home .xhub-hero-actions .btn-primary,
.xhub-home .xhub-search-row .btn-primary {
  background: var(--xhub-accent);
  border-color: var(--xhub-accent);
  color: var(--xcut-theme-button-ink, #ffffff) !important;
}

.xhub-home .xhub-search-row .btn-primary {
  height: 50px;
  min-height: 50px;
  box-sizing: border-box;
}

.xhub-home .xhub-hero-orb {
  position: relative;
  min-height: 300px;
  display: grid;
  place-items: center;
}

.xhub-home .xhub-orb {
  position: absolute;
  border-radius: 50%;
}

.xhub-home .xhub-orb-back {
  width: 260px;
  height: 260px;
  background: var(--xhub-accent-soft);
  box-shadow: 0 28px 70px color-mix(in srgb, var(--xhub-accent) 16%, transparent);
  animation: xhubOrbFloat 6s ease-in-out infinite;
}

.xhub-home .xhub-orb-main {
  width: 190px;
  height: 190px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.95), transparent 22%),
    linear-gradient(145deg, var(--xhub-accent) 0%, color-mix(in srgb, var(--xhub-accent) 72%, var(--xhub-ink)) 58%, var(--xhub-accent) 100%);
  border: 10px solid rgba(255, 255, 255, 0.82);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--xhub-accent) 18%, transparent),
    0 24px 48px color-mix(in srgb, var(--xhub-accent) 24%, transparent);
  color: var(--xcut-theme-button-ink, #ffffff);
  text-align: center;
  animation: xhubOrbFloat 5s 0.4s ease-in-out infinite;
}

.xhub-home .xhub-orb-main span {
  font-size: 1.45rem;
  font-weight: 850;
}

.xhub-home .xhub-orb-main small {
  margin-top: 5px;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
}

.xhub-home .xhub-orb-small {
  width: 58px;
  height: 58px;
  right: 18%;
  top: 12%;
  background: linear-gradient(145deg, var(--xhub-accent), color-mix(in srgb, var(--xhub-accent) 62%, var(--xhub-surface)));
  box-shadow: 0 14px 30px color-mix(in srgb, var(--xhub-accent) 16%, transparent);
  animation: xhubOrbFloat 4.2s 0.8s ease-in-out infinite;
}

.xhub-home .section-block {
  width: calc(100% - (var(--container-gutter) * 2));
  max-width: 1120px;
  margin: 38px auto 0;
  padding-inline: 0;
}

.xhub-home .xhub-page-main { padding-bottom: 88px; }
.xhub-catalog-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(min(100%,230px),1fr)); gap: 16px; }
.xhub-catalog-card { min-width: 0; overflow: hidden; display: flex; flex-direction: column; }
.xhub-catalog-art { display: grid; place-items: center; aspect-ratio: 16/10; overflow: hidden; background: var(--xhub-surface); border-bottom: 1px solid var(--xhub-border); color: var(--xhub-accent); font-size: 2rem; font-weight: 800; }
.xhub-catalog-art-square { aspect-ratio: 1/1; }
.xhub-catalog-art img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .24s ease; }
.xhub-catalog-card:hover .xhub-catalog-art img { transform: scale(1.035); }
.xhub-catalog-copy { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 7px; padding: 14px; }
.xhub-catalog-copy h3 { margin: 0; font-size: 1rem; line-height: 1.3; }
.xhub-catalog-copy h3 a { color: inherit; }
.xhub-catalog-copy p { margin: 0; }
.xhub-catalog-copy .btn-sm { margin-top: auto; }
.xhub-track-card .xhub-catalog-art { aspect-ratio: 16/9; }
.xhub-catalog-empty { padding: 18px; }

.xhub-home .xhub-section-title {
  margin-bottom: 14px;
}

.xhub-home .xhub-section-title h2 {
  margin: 0;
  color: var(--xhub-ink);
  font-size: 1.35rem;
}

.xhub-home .xhub-section-title a {
  color: var(--xhub-accent);
}

.xhub-home .xhub-drop-card,
.xhub-home .xhub-artist-card {
  border: 1px solid var(--xhub-border);
  border-radius: 12px;
  background: var(--xhub-surface);
  box-shadow: 0 10px 34px rgba(31, 45, 70, 0.05);
}

.xhub-home .xhub-drop-card:hover,
.xhub-home .xhub-artist-card:hover {
  border-color: var(--xhub-border);
  box-shadow: 0 16px 38px rgba(31, 45, 70, 0.09);
}

.xhub-home .xhub-artist-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.xhub-home .xhub-artist-card {
  min-height: 300px;
  padding: 18px;
}

.xhub-home .xhub-artist-avatar,
.xhub-home .xhub-artist-avatar-fallback {
  width: 64px;
  height: 64px;
  border-radius: 50%;
}

.xhub-home .xhub-artist-avatar-fallback,
.xhub-home .xhub-artist-avatar {
  border: 3px solid #ffffff;
  box-shadow: 0 0 0 1px var(--xhub-border);
}

.xhub-home .xhub-artist-avatar-fallback {
  background: var(--xhub-accent-soft);
  color: var(--xhub-accent);
}

.xhub-home .pill {
  background: var(--xhub-accent-soft);
  border-color: var(--xhub-border);
  color: var(--xhub-accent);
}

.xhub-home .xhub-countdown {
  background: var(--xhub-accent-soft);
  color: var(--xhub-accent);
}

.xhub-home .btn-outline,
.xhub-home .btn-ghost {
  background: var(--xhub-surface);
  border-color: var(--xhub-border);
  color: var(--xhub-ink) !important;
}

@keyframes xhubOrbFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (max-width: 900px) {
  .xhub-home .xhub-hero {
    width: 100vw;
    margin-inline: calc(50% - 50vw);
    grid-template-columns: 1fr;
    padding: 38px 28px;
  }

  .xhub-home .xhub-hero-orb {
    min-height: 250px;
  }

  .xhub-home .xhub-artist-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .xhub-catalog-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .xhub-catalog-copy { padding: 11px; }
}

@media (max-width: 660px) {
  .xhub-home.page-main,
  .xhub-home.xhub-page-main,
  .xhub-home .page-main,
  .xhub-home .xhub-page-main {
    padding-top: 0 !important;
  }

  .xhub-home .xhub-hero {
    width: 100vw;
    margin-inline: calc(50% - 50vw);
    min-height: 0;
    padding: 30px 16px;
    margin-inline: 0;
  }

  .xhub-home .xhub-hero-copy {
    width: 100%;
  }

  .xhub-home .xhub-hero h1 {
    font-size: 2.25rem;
  }

  .xhub-home .xhub-hero-orb {
    min-height: 210px;
  }

  .xhub-home .xhub-orb-back {
    width: 210px;
    height: 210px;
  }

  .xhub-home .xhub-orb-main {
    width: 150px;
    height: 150px;
  }

  .xhub-home .xhub-search-row {
    align-items: stretch;
  }

  .xhub-home .xhub-search-field {
    flex-basis: 100%;
  }

  .xhub-home .section-block {
    width: calc(100% - (var(--container-gutter-mobile) * 2));
    max-width: none;
  }

  .xhub-home .xhub-artist-grid,
  .xhub-home .xhub-event-row {
    grid-template-columns: 1fr;
  }
  .xhub-catalog-grid { grid-template-columns: 1fr; }
}

/* One shared content edge. The hero's background runs edge to edge (negative margins out to the viewport),
   and the same amount is added back as padding, so its content lines up with the container used by
   the app banner and every section below (.container: max 1120px with the standard side gutter). */
.xhub-home .xhub-page-main { padding-top: 0; }
.xhub-home .xhub-hero {
  position: relative !important;
  left: auto !important;
  transform: none !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 calc(50% - 50vw) !important;
  padding: clamp(40px, 6vw, 76px) calc(50vw - 50%) !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  min-height: 0;
}
.xhub-home .xhub-hero-copy { width: auto; max-width: 720px; margin: 0; }
.xhub-home .section-block { width: auto; max-width: none; margin-inline: 0; }
@media (max-width: 660px) {
  .xhub-home .xhub-hero { padding-block: 32px !important; }
  .xhub-home .section-block { width: auto; }
}

/* Shared fan authentication layout */
.xcut-auth-page {
  min-height: 100vh;
  background: #f7f9f8;
  color: #1d2638;
}

.xcut-auth-page .topbar {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid #dde7df;
}

.xcut-auth-page .brand,
.xcut-auth-page .nav-links a {
  color: #334155 !important;
}

.xcut-auth-shell {
  min-height: calc(100vh - 61px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 460px);
  align-items: center;
  gap: 56px;
  padding-top: 36px;
  padding-bottom: 36px;
}

.xcut-auth-visual {
  min-height: 520px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 48px;
  border: 1px solid #dde7df;
  border-radius: 18px;
  background:
    radial-gradient(circle at 72% 22%, rgba(29, 107, 69, 0.096), transparent 24%),
    linear-gradient(145deg, #ffffff 0%, #f3f8f5 100%);
  box-shadow: 0 22px 60px rgba(31, 45, 70, 0.08);
}

.xcut-auth-visual h1 {
  max-width: 560px;
  margin: 18px 0 10px;
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

.xcut-auth-visual p {
  max-width: 520px;
  color: #68758a;
}

.xcut-auth-orb {
  position: absolute;
  top: 54px;
  right: 54px;
  width: 210px;
  height: 210px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 10px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  background: linear-gradient(145deg, var(--accent-bright) 0%, var(--accent) 58%, #88d498 100%);
  box-shadow: 0 0 0 1px rgba(29, 107, 69, 0.18), 0 24px 48px rgba(29, 107, 69, 0.2);
  color: #ffffff;
  text-align: center;
}

.xcut-auth-orb span {
  font-size: 1.5rem;
  font-weight: 850;
}

.xcut-auth-orb small {
  margin-top: 5px;
  letter-spacing: 0.08em;
}

.xcut-auth-card {
  width: 100%;
  border: 1px solid #dde7df;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(31, 45, 70, 0.08);
}

.xcut-auth-card h1 {
  margin: 12px 0 18px;
}

.xcut-auth-card .full-width {
  width: 100%;
}

@media (max-width: 900px) {
  .xcut-auth-shell {
    grid-template-columns: 1fr;
  }

  .xcut-auth-visual {
    min-height: 330px;
  }

  .xcut-auth-orb {
    width: 150px;
    height: 150px;
  }
}

@media (max-width: 640px) {
  .xcut-auth-shell {
    min-height: auto;
    gap: 16px;
    padding-top: 16px;
  }

  .xcut-auth-visual {
    min-height: 220px;
    padding: 24px;
  }

  .xcut-auth-visual h1 {
    max-width: 240px;
    font-size: 2rem;
  }

  .xcut-auth-visual p {
    display: none;
  }

  .xcut-auth-orb {
    top: 24px;
    right: 24px;
    width: 110px;
    height: 110px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .xhub-home .xhub-orb {
    animation: none;
  }
}

@media (max-width: 660px) {
  .xhub-event-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* App download banner: every colour comes from the active theme (falls back to XHUB base tokens). */
.xhub-app {
  --app-accent: var(--xcut-theme-accent, var(--accent-bright));
  --app-ink: var(--xcut-theme-ink, var(--text-primary));
  --app-muted: var(--xcut-theme-muted, var(--text-muted));
  --app-surface: var(--xcut-theme-surface, var(--bg-surface));
  --app-border: var(--xcut-theme-border-strong, var(--border-sage));
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  align-items: center;
  gap: 28px;
  margin-block: var(--space-xl);
  padding: clamp(22px, 4vw, 40px);
  border-radius: var(--radius-lg);
  border: 1px solid color-mix(in srgb, var(--app-accent) 30%, var(--app-border));
  background:
    radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--app-accent) 22%, transparent) 0%, transparent 55%),
    linear-gradient(150deg, color-mix(in srgb, var(--app-accent) 7%, var(--app-surface)), var(--app-surface));
  overflow: hidden;
  isolation: isolate;
}
.xhub-app-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px; border-radius: var(--radius-pill);
  font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--app-accent);
  background: color-mix(in srgb, var(--app-accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--app-accent) 35%, transparent);
}
.xhub-app-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--app-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--app-accent) 25%, transparent); }
.xhub-app h2 { margin: 14px 0 8px; font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; color: var(--app-ink); }
.xhub-app-lead { margin: 0; max-width: 46ch; font-size: 1.02rem; font-weight: 500; line-height: 1.6; color: color-mix(in srgb, var(--app-ink) 80%, var(--app-muted)); }
.xhub-app-stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.xhub-store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  min-width: 180px; padding: 10px 18px 10px 14px;
  border-radius: 14px;
  background: var(--app-ink);
  color: var(--app-surface) !important;
  border: 1px solid var(--app-ink);
  text-decoration: none;
  transition: transform var(--dur-fast) var(--ease-smooth), box-shadow var(--dur-fast) var(--ease-smooth);
}
.xhub-store-badge svg { width: 28px; height: 28px; flex: 0 0 28px; }
.xhub-store-badge span { display: flex; flex-direction: column; line-height: 1.15; text-align: left; white-space: nowrap; }
.xhub-store-badge small { font-size: .68rem; font-weight: 600; letter-spacing: .04em; opacity: .85; }
.xhub-store-badge strong { font-size: 1.16rem; font-weight: 800; letter-spacing: -.01em; }
a.xhub-store-badge:hover,
a.xhub-store-badge:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--app-accent) 35%, transparent), 0 0 0 2px var(--app-accent);
}
.xhub-store-badge.is-soon {
  background: color-mix(in srgb, var(--app-ink) 6%, transparent);
  color: var(--app-ink) !important;
  border: 1px dashed color-mix(in srgb, var(--app-ink) 35%, transparent);
  cursor: default;
}
.xhub-store-badge.is-soon small { color: var(--app-accent); opacity: 1; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.xhub-app-note { margin: 14px 0 0; font-size: .9rem; font-weight: 500; color: var(--app-muted); }

.xhub-app-visual { position: relative; display: flex; justify-content: center; min-height: 260px; }
.xhub-app-glow { position: absolute; inset: 15% 10%; z-index: -1; border-radius: 50%; background: var(--app-accent); filter: blur(60px); opacity: .28; }
.xhub-phone {
  position: relative; width: 168px; aspect-ratio: 9 / 18.5;
  padding: 10px; border-radius: 30px;
  background: color-mix(in srgb, var(--app-ink) 12%, #050505);
  box-shadow: 0 24px 50px rgba(14, 15, 14, 0.08), inset 0 0 0 2px color-mix(in srgb, var(--app-ink) 25%, transparent);
  transform: rotate(-6deg);
  animation: xhub-phone-float 6s ease-in-out infinite;
}
.xhub-phone-notch { position: absolute; top: 14px; left: 50%; width: 46px; height: 10px; margin-left: -23px; border-radius: 6px; background: #000; z-index: 1; }
.xhub-phone-screen {
  display: flex; flex-direction: column; gap: 9px; height: 100%; box-sizing: border-box;
  padding: 30px 12px 12px; border-radius: 22px; overflow: hidden;
  background: linear-gradient(170deg, color-mix(in srgb, var(--app-accent) 18%, var(--xcut-theme-canvas, var(--bg-page))), var(--xcut-theme-canvas, var(--bg-page)));
}
.xhub-phone-brand { font-size: .72rem; font-weight: 900; letter-spacing: .2em; color: var(--app-accent); }
.xhub-phone-art { aspect-ratio: 1; border-radius: 12px; background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--app-accent) 70%, #fff), var(--app-accent) 45%, color-mix(in srgb, var(--app-accent) 45%, #000)); }
.xhub-phone-line { height: 7px; width: 55%; border-radius: 4px; background: color-mix(in srgb, var(--app-ink) 35%, transparent); }
.xhub-phone-line.is-wide { width: 80%; background: color-mix(in srgb, var(--app-ink) 70%, transparent); }
.xhub-phone-player { display: flex; align-items: center; gap: 8px; }
.xhub-phone-play { width: 22px; height: 22px; flex: 0 0 22px; border-radius: 50%; background: var(--app-accent); }
.xhub-phone-bar { flex: 1; height: 4px; border-radius: 2px; background: color-mix(in srgb, var(--app-ink) 20%, transparent); overflow: hidden; }
.xhub-phone-bar span { display: block; height: 100%; width: 40%; background: var(--app-accent); animation: xhub-phone-progress 5s linear infinite; }
.xhub-phone-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: auto; }
.xhub-phone-tiles span { aspect-ratio: 1; border-radius: 8px; background: color-mix(in srgb, var(--app-accent) 25%, transparent); }
@keyframes xhub-phone-float { 0%, 100% { transform: rotate(-6deg) translateY(0); } 50% { transform: rotate(-6deg) translateY(-8px); } }
@keyframes xhub-phone-progress { from { width: 8%; } to { width: 96%; } }
@media (prefers-reduced-motion: reduce) { .xhub-phone, .xhub-phone-bar span { animation: none; } }
@media (max-width: 720px) {
  .xhub-app { grid-template-columns: minmax(0, 1fr); }
  .xhub-app-visual { display: none; }
  .xhub-store-badge { flex: 1 1 165px; min-width: 0; padding-inline: 14px; }
  .xhub-store-badge strong { font-size: 1.02rem; }
}
