:root {
  color-scheme: dark;
  --bg-1: #0c1117;
  --bg-2: #18212d;
  --panel: rgba(15, 22, 31, 0.88);
  --panel-strong: rgba(11, 16, 24, 0.96);
  --panel-soft: rgba(255, 255, 255, 0.04);
  --line: rgba(148, 163, 184, 0.16);
  --line-strong: rgba(148, 163, 184, 0.26);
  --text: #e8edf3;
  --muted: #95a3b8;
  --accent: #8fa9c7;
  --accent-2: #5f7ea3;
  --accent-3: #b08b5b;
  --surface: #151d29;
  --surface-2: #101722;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --nav-height: 82px;
  --font-display: "Segoe UI Variable Display", "Trebuchet MS", "Segoe UI", sans-serif;
  --font-body: "Segoe UI Variable Text", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(95, 126, 163, 0.18), transparent 28%),
    radial-gradient(circle at bottom right, rgba(176, 139, 91, 0.1), transparent 22%),
    linear-gradient(180deg, #0b1016 0%, #111824 42%, #080c12 100%);
  color: var(--text);
  font-family: var(--font-body);
}

body {
  overflow-x: hidden;
}

button {
  font: inherit;
}

.app-shell {
  position: relative;
  min-height: 100vh;
  padding: 20px 14px 28px;
  isolation: isolate;
}

.app-shell::before,
.app-shell::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.app-shell::before {
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
  background-size: 140px 140px;
  mask-image: radial-gradient(circle at center, black 38%, transparent 82%);
}

.app-shell::after {
  inset: 8% 6%;
  opacity: 0.28;
  background:
    radial-gradient(circle at 20% 20%, rgba(95, 126, 163, 0.14), transparent 30%),
    radial-gradient(circle at 76% 28%, rgba(143, 169, 199, 0.1), transparent 26%),
    radial-gradient(circle at 54% 78%, rgba(176, 139, 91, 0.1), transparent 24%);
}

.ambient {
  position: fixed;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  filter: blur(32px);
  opacity: 0.48;
  pointer-events: none;
}

.ambient-left {
  top: -110px;
  left: -120px;
  background: radial-gradient(circle, rgba(95, 126, 163, 0.34), transparent 60%);
}

.ambient-right {
  right: -120px;
  bottom: 12%;
  background: radial-gradient(circle, rgba(176, 139, 91, 0.22), transparent 58%);
}

.dashboard-frame {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 18px 24px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: rgba(11, 16, 24, 0.82);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
  z-index: 1;
}

.topbar,
.topbar-actions,
.hero-actions,
.panel-heading,
.channel-panel,
.channel-actions,
.bottom-nav,
.example-header-row,
.post-head,
.post-footer,
.post-meta,
.post-stats,
.media-switcher {
  display: flex;
  align-items: center;
}

.topbar,
.panel-heading,
.channel-panel,
.channel-actions,
.example-header-row,
.post-head,
.post-footer,
.post-meta {
  justify-content: space-between;
  gap: 14px;
}

.topbar-actions,
.hero-actions,
.bottom-nav,
.post-stats,
.media-switcher {
  gap: 12px;
}

.eyebrow,
.section-kicker,
.stat-label,
.post-meta small,
.muted {
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow,
.section-kicker,
.stat-label,
.post-meta small {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--accent);
}

.topbar h1,
.hero-copy h2,
.panel-heading h2,
.panel-heading h3,
.example-header-row h3,
.post-body h4,
.stat-card strong,
.compose-preview-card strong {
  margin: 0;
  font-family: var(--font-display);
}

.topbar h1 {
  margin-top: 6px;
  font-size: 2rem;
}

.chip-button,
.icon-button,
.primary-button,
.ghost-button,
.topic-card,
.model-card,
.preset-card,
.nav-item,
.media-toggle {
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    background 220ms ease,
    color 220ms ease,
    box-shadow 220ms ease,
    opacity 220ms ease;
}

.chip-button,
.icon-button,
.media-toggle {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.chip-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--text);
}

.chip-button.is-live {
  color: var(--accent);
}

.chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 6px rgba(143, 169, 199, 0.12);
}

.icon-button {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  gap: 4px;
  border-radius: 16px;
  cursor: pointer;
}

.icon-button span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
}

.hero-panel,
.card-block,
.stat-card,
.compose-preview-card,
.bottom-nav,
.example-panel,
.telegram-post {
  border: 1px solid var(--line);
}

.hero-panel {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 20px;
  margin-top: 24px;
  padding: 22px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(18, 25, 35, 0.96), rgba(11, 16, 24, 0.96));
}

.hero-copy h2 {
  margin-top: 14px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 0.98;
  max-width: 13ch;
}

.hero-copy p,
.stat-card p,
.timeline-item p,
.model-card p,
.schedule-item span,
.compose-preview-card p,
.channel-panel p,
.topic-card small,
.muted,
.post-head p,
.post-body p,
.media-overlay p {
  color: var(--muted);
}

.hero-copy p {
  max-width: 58ch;
  margin: 16px 0 0;
  line-height: 1.72;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(143, 169, 199, 0.12);
  color: var(--accent);
  font-weight: 700;
}

.status-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 6px rgba(143, 169, 199, 0.12);
}

.hero-actions {
  margin-top: 24px;
  flex-wrap: wrap;
}

.example-panel {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.025);
}

.example-header-row h3 {
  margin-top: 4px;
  font-size: 1.1rem;
}

.media-switcher {
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
}

.media-toggle {
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
}

.media-toggle.is-active {
  background: rgba(143, 169, 199, 0.14);
  border-color: rgba(143, 169, 199, 0.3);
  color: var(--text);
}

.telegram-post {
  margin-top: 16px;
  border-radius: 12px;
  background: #121821;
  overflow: hidden;
}

.post-head,
.post-body,
.post-footer {
  padding: 16px 18px;
}

.post-head {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.post-channel-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #6a7f98, #8fa9c7);
  color: #05141d;
  font-weight: 900;
}

.post-head strong,
.post-body h4,
.media-overlay strong {
  display: block;
}

.post-head p,
.post-body p,
.media-overlay p {
  margin: 4px 0 0;
  line-height: 1.55;
}

.post-media {
  position: relative;
  min-height: 260px;
  display: flex;
  align-items: end;
  padding: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background-size: cover;
  background-position: center;
}

.post-media.media-image {
  background:
    linear-gradient(180deg, rgba(10, 14, 20, 0.22), rgba(10, 14, 20, 0.78)),
    radial-gradient(circle at 20% 20%, rgba(95, 126, 163, 0.34), transparent 22%),
    radial-gradient(circle at 80% 30%, rgba(143, 169, 199, 0.2), transparent 24%),
    linear-gradient(135deg, #27384b, #151d28 55%, #1c2836);
}

.post-media.media-video {
  background:
    linear-gradient(180deg, rgba(10, 14, 20, 0.34), rgba(10, 14, 20, 0.84)),
    radial-gradient(circle at 24% 22%, rgba(176, 139, 91, 0.34), transparent 22%),
    radial-gradient(circle at 76% 26%, rgba(95, 126, 163, 0.28), transparent 24%),
    linear-gradient(135deg, #3a3024, #171b22 55%, #202833);
}

.media-overlay {
  position: relative;
  z-index: 1;
  max-width: 72%;
}

.media-type {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(7, 14, 24, 0.76);
  color: var(--text);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.media-overlay strong {
  margin-top: 12px;
  font-size: 1.35rem;
}

.play-button {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: rgba(7, 14, 24, 0.7);
  color: var(--text);
  font-size: 1rem;
  opacity: 0;
  transform: scale(0.9);
}

.play-button.is-visible {
  opacity: 1;
  transform: scale(1);
}

.post-body h4 {
  font-size: 1.35rem;
}

.post-body p {
  margin-top: 10px;
}

.preview-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.preview-tags span {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
}

.post-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  flex-wrap: wrap;
}

.post-meta {
  gap: 24px;
}

.post-meta strong {
  display: block;
  margin-top: 6px;
}

.post-stats {
  color: var(--muted);
  font-size: 0.92rem;
}

.page-stack {
  position: relative;
  margin-top: 24px;
  min-height: 620px;
  transition: height 280ms ease;
}

.page-panel {
  position: absolute;
  inset: 0;
  display: grid;
  gap: 18px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px) scale(0.985);
  transition: opacity 260ms ease, transform 260ms ease;
}

.page-panel.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.panel-heading {
  align-items: end;
}

.panel-heading.compact {
  margin-bottom: 16px;
}

.panel-heading h2 {
  margin-top: 4px;
  font-size: 1.6rem;
}

.panel-heading h3 {
  margin-top: 4px;
  font-size: 1.14rem;
}

.muted {
  font-size: 0.78rem;
  text-align: right;
  max-width: 32ch;
}

.stats-grid,
.dashboard-grid,
.compose-grid,
.channels-grid {
  display: grid;
  gap: 18px;
}

.stats-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat-card,
.card-block,
.compose-preview-card {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.stat-card strong {
  display: block;
  margin-top: 10px;
  font-size: 1.45rem;
}

.stat-card p {
  margin: 10px 0 0;
  line-height: 1.6;
}

.accent-mint {
  box-shadow: inset 0 0 0 1px rgba(143, 169, 199, 0.12);
}

.accent-blue {
  box-shadow: inset 0 0 0 1px rgba(95, 126, 163, 0.12);
}

.accent-orange {
  box-shadow: inset 0 0 0 1px rgba(176, 139, 91, 0.12);
}

.dashboard-grid,
.compose-grid,
.channels-grid {
  grid-template-columns: 1.08fr 0.92fr;
}

.topics-grid,
.preset-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.topic-card,
.model-card,
.preset-card {
  width: 100%;
  border: 1px solid var(--line);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.topic-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-height: 146px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
}

.topic-icon {
  min-width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  padding: 0 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 1.1rem;
  font-weight: 900;
}

.topic-card strong,
.model-card strong,
.timeline-item strong,
.schedule-item strong,
.channel-panel strong {
  font-size: 1.04rem;
}

.topic-card small,
.model-card p,
.timeline-item p,
.channel-panel p,
.compose-preview-card p {
  line-height: 1.55;
}

.topic-card:hover,
.topic-card:focus-visible,
.model-card:hover,
.model-card:focus-visible,
.preset-card:hover,
.preset-card:focus-visible,
.nav-item:hover,
.nav-item:focus-visible,
.primary-button:hover,
.primary-button:focus-visible,
.ghost-button:hover,
.ghost-button:focus-visible,
.media-toggle:hover,
.media-toggle:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.topic-card.is-active,
.model-card.is-active,
.preset-card.is-active {
  border-color: rgba(143, 169, 199, 0.32);
  background: rgba(143, 169, 199, 0.08);
  box-shadow: inset 0 0 0 1px rgba(143, 169, 199, 0.08);
}

.timeline-list,
.models-list,
.schedule-list {
  display: grid;
  gap: 12px;
}

.timeline-item,
.model-card,
.schedule-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
}

.timeline-item span,
.model-card span {
  flex-shrink: 0;
  min-width: 64px;
  padding: 8px 10px;
  border-radius: 999px;
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent);
  font-weight: 800;
}

.model-card {
  justify-content: space-between;
}

.preset-card {
  min-height: 84px;
  padding: 16px;
  border-radius: 16px;
  display: grid;
  place-items: end start;
  background: rgba(255, 255, 255, 0.025);
  font-weight: 700;
}

.compose-preview-card {
  margin-top: 16px;
  min-height: 168px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  border-color: rgba(95, 126, 163, 0.16);
}

.compose-preview-card strong {
  display: block;
  margin-top: 12px;
  font-size: 1.4rem;
}

.channel-main-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.channel-panel {
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
}

.channel-panel.large {
  align-items: center;
  min-height: 180px;
}

.channel-avatar {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #6a7f98, #8fa9c7);
  color: #03121c;
  font-weight: 900;
}

.channel-actions {
  margin-top: 16px;
}

.schedule-item {
  justify-content: space-between;
  align-items: center;
}

.schedule-item span {
  color: var(--accent);
  font-weight: 700;
}

.primary-button,
.ghost-button {
  min-height: 54px;
  padding: 0 20px;
  border-radius: 14px;
  cursor: pointer;
}

.primary-button {
  border: none;
  background: linear-gradient(135deg, #8fa9c7, #c7d2dd);
  color: #02150f;
  font-weight: 800;
}

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

.bottom-nav {
  position: relative;
  z-index: 1;
  justify-content: space-between;
  margin-top: 24px;
  padding: 10px;
  min-height: var(--nav-height);
  border-radius: 20px;
  background: rgba(12, 17, 24, 0.92);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.nav-indicator {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 0;
  height: calc(100% - 20px);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(143, 169, 199, 0.18), rgba(95, 126, 163, 0.16));
  border: 1px solid rgba(143, 169, 199, 0.18);
  transition: transform 280ms cubic-bezier(0.2, 0.8, 0.2, 1), width 280ms ease;
}

.nav-item {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 62px;
  display: grid;
  place-items: center;
  gap: 4px;
  border: none;
  border-radius: 14px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.nav-item.is-active {
  color: var(--text);
}

.nav-icon {
  font-size: 1.05rem;
  font-weight: 900;
}

.nav-label {
  font-size: 0.8rem;
  font-weight: 700;
}

@media (max-width: 980px) {
  .hero-panel,
  .dashboard-grid,
  .compose-grid,
  .channels-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h2 {
    max-width: none;
  }
}

@media (max-width: 640px) {
  :root {
    --topbar-height: 62px;
    --nav-height: 70px;
  }

  /* === LAYOUT: повноекранний app-shell === */
  html, body {
    height: 100%;
    overflow: hidden;
  }

  .app-shell {
    padding: 0;
    height: 100%;
    overflow: hidden;
  }

  .dashboard-frame {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
    overflow: hidden;
  }

  /* === TOPBAR: фіксована висота зверху === */
  .topbar {
    flex-shrink: 0;
    height: var(--topbar-height);
    padding: 0 16px;
    background: rgba(11, 16, 24, 0.96);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    overflow: hidden;
  }

  .topbar h1 {
    font-size: 1.4rem;
    margin-top: 0;
  }

  .topbar-actions {
    gap: 8px;
  }

  /* === HERO: скрита в мобільному (перша вкладка показує dashboard) === */
  .hero-panel {
    display: none;
  }

  /* === PAGE STACK: займає весь простір між topbar і nav === */
  .page-stack {
    flex: 1;
    position: relative;
    margin: 0;
    min-height: 0;
    overflow: hidden;
  }

  /* === КОЖНА СТОРІНКА: скролиться всередині свого контейнера === */
  .page-panel {
    position: absolute;
    inset: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 16px 14px 20px;
  }

  /* === BOTTOM NAV: фіксована висота знизу === */
  .bottom-nav {
    flex-shrink: 0;
    position: static;
    height: var(--nav-height);
    margin: 0;
    border-radius: 0;
    border-bottom: none;
    border-left: none;
    border-right: none;
    border-top: 1px solid var(--line);
    padding: 6px 12px env(safe-area-inset-bottom, 6px);
    z-index: 100;
    min-height: unset;
  }

  .nav-item {
    min-height: 48px;
  }

  .nav-label {
    font-size: 0.72rem;
  }

  /* === КОНТЕНТ ВКЛАДОК === */
  .panel-heading {
    align-items: start;
    flex-wrap: wrap;
    margin-bottom: 14px;
  }

  .panel-heading h2 {
    font-size: 1.3rem;
  }

  .muted {
    display: none;
  }

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

  .stats-grid .stat-card:last-child {
    grid-column: 1 / -1;
  }

  .stat-card {
    padding: 14px;
    border-radius: 14px;
  }

  .stat-card strong {
    font-size: 1.1rem;
    margin-top: 8px;
  }

  .stat-card p {
    font-size: 0.84rem;
  }

  .sales-grid {
    grid-template-columns: 1fr;
  }

  .card-block {
    padding: 14px;
    border-radius: 16px;
  }

  .topics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .topic-card {
    min-height: 110px;
    padding: 14px;
    gap: 8px;
  }

  .topic-icon {
    min-width: 42px;
    height: 42px;
  }

  .topic-card strong {
    font-size: 0.94rem;
  }

  .topic-card small {
    font-size: 0.76rem;
  }

  .preset-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .preset-card {
    min-height: 68px;
    padding: 12px 14px;
    font-size: 0.86rem;
  }

  .primary-button,
  .ghost-button {
    width: 100%;
    min-height: 50px;
  }

  .hero-actions,
  .channel-actions {
    display: grid;
    width: 100%;
    gap: 10px;
  }

  .panel-heading,
  .example-header-row,
  .post-footer,
  .post-meta {
    flex-wrap: wrap;
    gap: 10px;
  }

  .media-overlay {
    max-width: 100%;
  }

  .compose-preview-card {
    min-height: 130px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .app-shell::before {
    animation: grid-drift 28s linear infinite;
  }

  .app-shell::after {
    animation: glow-shift 20s ease-in-out infinite alternate;
  }

  .ambient-left {
    animation: float-left 18s ease-in-out infinite;
  }

  .ambient-right {
    animation: float-right 22s ease-in-out infinite;
  }

  .dashboard-frame,
  .hero-panel,
  .card-block,
  .stat-card,
  .example-panel,
  .bottom-nav {
    animation: rise-in 520ms ease both;
  }

  .hero-panel {
    animation-delay: 70ms;
  }

  .page-panel.is-active .card-block,
  .page-panel.is-active .stat-card {
    animation: rise-in 340ms ease both;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-shell::before,
  .app-shell::after,
  .ambient-left,
  .ambient-right {
    animation: none;
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes grid-drift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-28px, 22px, 0);
  }
}

@keyframes glow-shift {
  from {
    transform: translate3d(-1.5%, -1%, 0) scale(1);
    opacity: 0.12;
  }
  to {
    transform: translate3d(1.5%, 1.5%, 0) scale(1.04);
    opacity: 0.2;
  }
}

@keyframes float-left {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(18px, 24px, 0) scale(1.04);
  }
}

@keyframes float-right {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(-22px, -18px, 0) scale(1.05);
  }
}
.block-copy {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.7;
}

.sales-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
}

.marquee-block,
.plans-block {
  min-height: 100%;
}

.marquee-shell {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
}

.marquee-track {
  display: flex;
  gap: 14px;
  width: max-content;
  padding: 12px;
}

.channel-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 280px;
  max-width: 280px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.02));
  color: var(--text);
  text-decoration: none;
}

.channel-card:hover,
.channel-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(143, 169, 199, 0.3);
  outline: none;
}

.channel-card__meta,
.channel-card__link {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.channel-card__meta {
  color: var(--accent);
}

.channel-card strong {
  font-size: 1.02rem;
  line-height: 1.45;
}

.channel-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.channel-card__link {
  color: var(--text);
}

.plans-stack {
  display: grid;
  gap: 12px;
}

.plan-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
}

.plan-card.is-featured {
  border-color: rgba(143, 169, 199, 0.32);
  background: linear-gradient(180deg, rgba(143, 169, 199, 0.1), rgba(255, 255, 255, 0.03));
  box-shadow: inset 0 0 0 1px rgba(143, 169, 199, 0.08);
}

.plan-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.plan-card strong {
  display: block;
  margin-top: 12px;
  font-size: 1.18rem;
}

.plan-card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.plan-features {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.plan-features li {
  position: relative;
  padding-left: 18px;
  color: var(--text);
  line-height: 1.5;
}

.plan-features li::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.8;
}

@media (max-width: 980px) {
  .sales-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .channel-card {
    min-width: 240px;
    max-width: 240px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .marquee-track {
    animation: marquee-scroll 32s linear infinite;
    will-change: transform;
  }

  .marquee-shell:hover .marquee-track {
    animation-play-state: paused;
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
  }
}

@keyframes marquee-scroll {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

.page-panel,
.stats-grid,
.sales-grid,
.dashboard-grid,
.compose-grid,
.channels-grid,
.card-block,
.stat-card,
.marquee-block,
.plans-block {
  min-width: 0;
}

.stats-grid > *,
.sales-grid > *,
.dashboard-grid > *,
.compose-grid > *,
.channels-grid > * {
  min-width: 0;
}

.marquee-shell {
  width: 100%;
}

.marquee-track {
  min-width: max-content;
}

.channel-card {
  flex: 0 0 280px;
}

.channel-card strong,
.channel-card p {
  word-break: break-word;
}

@media (max-width: 640px) {
  .channel-card {
    flex-basis: 240px;
  }
}
