/* Vlozy — Dodo-inspired design system */

:root {
  --vlozy-bg: #fafaf8;
  --vlozy-accent: #c8f542;
  --vlozy-accent-hover: #b8e635;
  --vlozy-ink: #0a0a0a;
  --vlozy-muted: #6b7280;
  --vlozy-border: #e8e8e4;
  --vlozy-card: #ffffff;
  --vlozy-surface: #f4f4f0;
  --vlozy-primary: #0a0a0a;
  --vlozy-primary-light: #374151;
  --vlozy-shell-max: 72rem;
}

html {
  margin: 0;
}

/* ── Page background: dot grid + soft glows ── */
.page-dodo-bg {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--vlozy-bg);
  color: var(--vlozy-ink);
  position: relative;
  overflow-x: hidden;
  margin: 0;
  min-width: 100%;
}

.page-frame {
  width: min(100%, var(--vlozy-shell-max));
  margin: 0 auto;
  border-left: 1px solid var(--vlozy-border);
  border-right: 1px solid var(--vlozy-border);
  background: #fff;
}

.page-dodo-bg::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(circle, rgba(0, 0, 0, 0.035) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.35;
}

.page-dodo-bg::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 55% 45% at 8% 35%, rgba(180, 245, 80, 0.22) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 92% 30%, rgba(220, 160, 255, 0.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 50% 90%, rgba(255, 180, 200, 0.12) 0%, transparent 70%);
}

.page-frame,
.site-nav,
.hero,
.dash-main,
.video-modal {
  position: relative;
  z-index: 1;
}

.site-nav {
  z-index: 60;
}

.is-hidden { display: none !important; }
.text-success { color: #059669; }
.text-error { color: #dc2626; }

/* ── Nav ── */
.site-nav {
  border-bottom: 1px solid var(--vlozy-border);
  background: rgba(255, 255, 255, 0.92);
  padding: 0;
  backdrop-filter: blur(10px);
}

.site-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.75rem;
  padding: 0 1.5rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--vlozy-ink);
  flex-shrink: 0;
}

.site-logo-img {
  display: block;
  height: 2.5rem;
  width: auto;
  max-width: 11rem;
  object-fit: contain;
}

.site-nav-links {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

.site-nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.875rem;
  border: none;
  background: transparent;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--vlozy-ink);
  cursor: pointer;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: background 0.15s;
}

.site-nav-link:hover {
  background: rgba(0, 0, 0, 0.04);
}

.workspace-dropdown {
  position: relative;
  flex-shrink: 0;
}

.workspace-dropdown summary {
  list-style: none;
}

.workspace-dropdown summary::-webkit-details-marker {
  display: none;
}

.workspace-trigger {
  gap: 0.375rem;
}

.workspace-chevron {
  transition: transform 0.15s ease;
}

.workspace-dropdown[open] .workspace-chevron {
  transform: rotate(180deg);
}

.workspace-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  z-index: 70;
  min-width: 12rem;
  border: 1px solid var(--vlozy-border);
  border-radius: 0.875rem;
  background: var(--vlozy-card);
  padding: 0.5rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.workspace-menu-label {
  padding: 0.5rem 0.625rem 0.375rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--vlozy-muted);
}

.workspace-menu-item {
  display: flex;
  align-items: center;
  border-radius: 0.625rem;
  padding: 0.625rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--vlozy-ink);
  text-decoration: none;
  transition: background 0.15s;
}

.workspace-menu-item:hover {
  background: var(--vlozy-surface);
}

@media (min-width: 768px) {
  .site-nav-links { display: flex; }
}

/* ── Buttons ── */
.btn-lime {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.625rem;
  background: var(--vlozy-accent);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--vlozy-ink);
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  white-space: nowrap;
}

.btn-lime:hover:not(:disabled) {
  background: var(--vlozy-accent-hover);
}

.btn-lime:active:not(:disabled) {
  transform: scale(0.98);
}

.btn-lime:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-lime--full {
  width: 100%;
  margin-top: 0.75rem;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--vlozy-border);
  border-radius: 0.625rem;
  background: var(--vlozy-card);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--vlozy-ink);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.btn-outline:hover {
  background: var(--vlozy-surface);
  border-color: #d4d4d0;
}

.btn-outline--sm {
  padding: 0.5rem 1.125rem;
  font-size: 0.875rem;
}

/* ── Hero ── */
.hero {
  min-height: 27rem;
  margin: 0;
  padding: 4.25rem 1.5rem 0;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--vlozy-border);
  background: #fbfbfa;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle, rgba(10, 10, 10, 0.18) 1.15px, transparent 1.35px),
    radial-gradient(ellipse 55% 65% at 5% 25%, rgba(159, 245, 205, 0.52) 0%, transparent 62%),
    radial-gradient(ellipse 55% 65% at 93% 22%, rgba(230, 205, 255, 0.58) 0%, transparent 62%),
    radial-gradient(ellipse 58% 45% at 50% 92%, rgba(255, 215, 230, 0.38) 0%, transparent 68%),
    linear-gradient(180deg, #fbfbfa 0%, #f8fbff 58%, #f6fff6 100%);
  background-size:
    16px 16px,
    auto,
    auto,
    auto,
    auto;
  background-position:
    center top,
    center,
    center,
    center,
    center;
}

.hero::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  height: 6rem;
  border-top: 1px solid rgba(20, 184, 166, 0.24);
  background:
    linear-gradient(rgba(20, 184, 166, 0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 184, 166, 0.2) 1px, transparent 1px),
    linear-gradient(180deg, rgba(204, 255, 222, 0.6), rgba(239, 255, 245, 0.1));
  background-size: 26px 26px, 26px 26px, auto;
  mask-image: linear-gradient(to bottom, transparent 0%, black 28%, black 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 28%, black 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 48rem;
  margin: 0 auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero--motion {
  min-height: 20rem;
  padding: 2rem 1.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero--motion .hero-badge {
  position: relative;
  z-index: 2;
  margin: 0 0 1.5rem;
}

.hub-motion {
  position: relative;
  width: min(100%, 26rem);
  height: 14rem;
}

.hub-motion--horizontal {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.hub-motion-top {
  position: relative;
  z-index: 2;
}

.hub-motion-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.hub-path {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 6 10;
  animation: hub-path-flow 2.4s linear infinite;
}

.hub-path--fb {
  stroke: rgba(24, 119, 242, 0.45);
  animation-delay: 0s;
}

.hub-path--ig {
  stroke: rgba(225, 48, 108, 0.45);
  animation-delay: 0.4s;
}

.hub-path--yt {
  stroke: rgba(255, 0, 0, 0.4);
  animation-delay: 0.8s;
}

.hub-path--li {
  stroke: rgba(10, 102, 194, 0.45);
  animation-delay: 1.2s;
}

@keyframes hub-path-flow {
  from { stroke-dashoffset: 32; }
  to { stroke-dashoffset: 0; }
}

.hub-motion-sources {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hub-motion-source {
  animation: hub-source-float 3.2s ease-in-out infinite;
}

.hub-motion-source--fb { animation-delay: 0s; }
.hub-motion-source--ig { animation-delay: 0.5s; }
.hub-motion-source--yt { animation-delay: 1s; }
.hub-motion-source--li { animation-delay: 1.5s; }

@keyframes hub-source-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

.hub-motion-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.hub-motion-badge svg {
  width: 1.125rem;
  height: 1.125rem;
}

.hub-motion-source--fb .hub-motion-badge { background: #1877f2; }
.hub-motion-source--ig .hub-motion-badge { background: linear-gradient(135deg, #f09433, #dc2743, #bc1888); }
.hub-motion-source--yt .hub-motion-badge { background: #ff0000; }
.hub-motion-source--li .hub-motion-badge { background: #0a66c2; }

.hub-motion-ring {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5.5rem;
  height: 5.5rem;
  border: 2px dashed rgba(37, 99, 235, 0.55);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.65);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.12);
  animation: hub-ring-pulse 2.8s ease-in-out infinite;
}

.hub-motion-icon-img {
  display: block;
  width: 3.25rem;
  height: 3.25rem;
  object-fit: contain;
  animation: hub-core-glow 2.8s ease-in-out infinite;
}

@keyframes hub-ring-pulse {
  0%, 100% {
    border-color: rgba(37, 99, 235, 0.45);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.1);
  }
  50% {
    border-color: rgba(37, 99, 235, 0.85);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.22);
  }
}

@keyframes hub-core-glow {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.06); filter: brightness(1.15); }
}

@media (min-width: 640px) {
  .hero--motion {
    min-height: 22rem;
    padding: 2.5rem 1.5rem 3rem;
  }

  .hub-motion {
    width: min(100%, 30rem);
    height: 15rem;
  }

  .hub-motion-sources {
    gap: 1.75rem;
  }

  .hub-motion-badge {
    width: 3.5rem;
    height: 3.5rem;
  }

  .hub-motion-ring {
    width: 6.5rem;
    height: 6.5rem;
  }

  .hub-motion-icon-img {
    width: 3.75rem;
    height: 3.75rem;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  border: 1px solid var(--vlozy-border);
  background: var(--vlozy-card);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--vlozy-muted);
  text-decoration: none;
  transition: border-color 0.15s;
}

.hero-badge:hover {
  border-color: #d4d4d0;
  color: var(--vlozy-ink);
}

.hero-badge-arrow {
  opacity: 0.6;
}

.hero-title {
  margin-top: 1.75rem;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--vlozy-ink);
}

.hero-subtitle {
  margin: 1.25rem auto 0;
  max-width: 36rem;
  font-size: clamp(0.9375rem, 2vw, 1.0625rem);
  line-height: 1.65;
  color: var(--vlozy-muted);
}

.hero-ctas {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

/* ── Dashboard tabs (Dodo-style) ── */
.dash-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  margin-top: 3rem;
  padding: 0.375rem;
  border-radius: 9999px;
  border: 1px solid var(--vlozy-border);
  background: var(--vlozy-card);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.dash-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.125rem;
  border: none;
  border-radius: 9999px;
  background: transparent;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--vlozy-muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}

.dash-tab:hover {
  color: var(--vlozy-ink);
  background: var(--vlozy-surface);
}

.dash-tab--active {
  color: var(--vlozy-ink);
  background: var(--vlozy-card);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.dash-tab-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 0.375rem;
}

.dash-tab-icon--green { background: #dcfce7; color: #16a34a; }
.dash-tab-icon--blue { background: #dbeafe; color: #2563eb; }
.dash-tab-icon--pink { background: #fce7f3; color: #db2777; }
.dash-tab-icon--purple { background: #ede9fe; color: #7c3aed; }

/* ── Dashboard main ── */
.dash-main {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-bottom: 1px solid var(--vlozy-border);
  background: #fff;
}

.dash-panel {
  animation: panel-in 0.25s ease;
  border-bottom: 1px solid var(--vlozy-border);
}

.dash-panel:last-child {
  border-bottom: none;
}

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

.dash-card {
  border-radius: 0;
  border: none;
  background: var(--vlozy-card);
  padding: 1.5rem;
  box-shadow: none;
}

.dash-card--narrow {
  height: 100%;
}

.dash-split {
  display: grid;
  gap: 0;
  border-bottom: 1px solid var(--vlozy-border);
}

.dash-split .dash-panel {
  border-bottom: none;
}

.dash-split .dash-panel + .dash-panel {
  border-left: 1px solid var(--vlozy-border);
}

@media (min-width: 1024px) {
  .dash-split {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr);
    align-items: stretch;
  }
}

@media (max-width: 1023px) {
  .dash-split .dash-panel + .dash-panel {
    border-left: none;
    border-top: 1px solid var(--vlozy-border);
  }
}

.dash-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.dash-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--vlozy-ink);
}

.dash-card-desc {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--vlozy-muted);
}

.dash-section {
  margin-top: 1.75rem;
}

.dash-section-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--vlozy-muted);
}

/* ── Stat tiles ── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 1.5rem;
}

@media (min-width: 640px) {
  .stat-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .stat-grid { grid-template-columns: repeat(5, 1fr); }
}

.stat-tile {
  border-radius: 0.875rem;
  border: 1px solid var(--vlozy-border);
  background: var(--vlozy-surface);
  padding: 1rem 1.125rem;
}

.stat-tile--highlight {
  background: rgba(200, 245, 66, 0.18);
  border-color: rgba(200, 245, 66, 0.45);
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--vlozy-muted);
}

.stat-value {
  margin-top: 0.25rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--vlozy-ink);
}

.platform-grid {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

@media (min-width: 640px) {
  .platform-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .platform-grid { grid-template-columns: repeat(3, 1fr); }
}

.top-videos-grid {
  display: grid;
  gap: 1rem;
  margin-top: 0.75rem;
}

@media (min-width: 640px) {
  .top-videos-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .top-videos-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── Connections ── */
.connect-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.5rem;
  list-style: none;
  padding: 0;
}

.connect-btn {
  display: flex;
  min-height: 8.5rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 1rem 0.75rem;
  border: 1px solid var(--vlozy-border);
  border-radius: 0.875rem;
  background: var(--vlozy-card);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  text-align: center;
}

.connect-btn:hover {
  border-color: #d4d4d0;
  background: var(--vlozy-surface);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.connect-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  overflow: hidden;
  border-radius: 0.75rem;
  flex-shrink: 0;
  color: #fff;
}

.connect-icon svg { width: 1.25rem; height: 1.25rem; }
.connect-icon--fb { background: #1877f2; }
.connect-icon--yt { background: #ff0000; }
.connect-icon--ig { background: linear-gradient(135deg, #f09433, #dc2743, #bc1888); }

.connect-icon-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 10, 0.58);
  color: #fff;
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.connect-icon-overlay svg {
  width: 1.125rem;
  height: 1.125rem;
}

.connect-btn:hover .connect-icon-overlay {
  opacity: 1;
  transform: scale(1);
}

.connect-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--vlozy-ink);
}

/* ── Upload dropzone ── */
.demo-upload-toggle {
  display: flex;
  height: 2.25rem;
  width: 2.25rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  border: 1px solid var(--vlozy-border);
  background: var(--vlozy-card);
  color: var(--vlozy-ink);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.demo-upload-toggle:hover {
  background: var(--vlozy-surface);
}

.demo-upload-toggle[aria-expanded="true"] {
  background: var(--vlozy-accent);
  border-color: var(--vlozy-accent);
}

.upload-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 1.25rem;
  padding: 2.5rem 1.5rem;
  border-radius: 0.875rem;
  border: 2px dashed var(--vlozy-border);
  background: var(--vlozy-surface);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.upload-dropzone:hover,
.upload-dropzone.is-dragover {
  border-color: var(--vlozy-accent);
  background: rgba(200, 245, 66, 0.08);
}

.upload-dropzone-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: var(--vlozy-card);
  color: var(--vlozy-ink);
  border: 1px solid var(--vlozy-border);
}

.upload-dropzone-title {
  margin-top: 0.875rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--vlozy-ink);
}

.upload-dropzone-hint {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: var(--vlozy-muted);
}

.demo-status {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--vlozy-muted);
}

.demo-empty {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--vlozy-muted);
}

#demo-file-list {
  margin-top: 1.25rem;
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* ── Demo file list (JS-generated) ── */
.demo-file-item {
  border-radius: 0.75rem;
  border: 1px solid var(--vlozy-border);
  background: var(--vlozy-surface);
  padding: 0.75rem;
}

.demo-file-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
}

.demo-thumb {
  width: 3.25rem;
  height: 4.5rem;
  overflow: hidden;
  border-radius: 0.5rem;
  background: var(--vlozy-ink);
  position: relative;
}

.demo-thumb video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.demo-duration {
  position: absolute;
  bottom: 0.25rem;
  right: 0.25rem;
  border-radius: 0.25rem;
  background: rgba(0, 0, 0, 0.72);
  padding: 0 0.25rem;
  font-size: 10px;
  font-weight: 500;
  color: #fff;
}

.demo-file-meta { min-width: 0; }

.demo-file-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--vlozy-ink);
}

.demo-file-size {
  margin-top: 0.125rem;
  font-size: 0.75rem;
  color: var(--vlozy-muted);
}

.demo-progress {
  margin-top: 0.5rem;
  height: 0.375rem;
  overflow: hidden;
  border-radius: 9999px;
  background: var(--vlozy-border);
}

.demo-progress-bar {
  height: 100%;
  width: 0;
  border-radius: 9999px;
  background: var(--vlozy-accent);
  transition: width 0.2s ease;
}

.demo-remove {
  display: flex;
  height: 2rem;
  width: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  border: none;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}

.demo-remove:hover {
  background: #fee2e2;
  color: #dc2626;
}

/* ── Analytics platforms (JS-generated) ── */
.analytics-platform-card {
  border-radius: 0.875rem;
  border: 1px solid var(--vlozy-border);
  background: var(--vlozy-card);
  padding: 0.875rem 1rem;
}

.analytics-platform-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.analytics-platform-badge {
  display: inline-flex;
  height: 1.75rem;
  width: 1.75rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  color: #fff;
}

.analytics-platform-icon {
  display: block;
  height: 0.875rem;
  width: 0.875rem;
}

.analytics-platform-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--vlozy-ink);
}

.analytics-platform-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.25rem;
  margin-top: 0.625rem;
}

.analytics-platform-stats div { text-align: center; }

.analytics-platform-stats dt {
  font-size: 0.625rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--vlozy-muted);
}

.analytics-platform-stats dd {
  margin-top: 0.125rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--vlozy-ink);
}

.analytics-platform-bar {
  margin-top: 0.625rem;
  height: 0.375rem;
  overflow: hidden;
  border-radius: 9999px;
  background: var(--vlozy-surface);
}

.analytics-platform-bar-fill {
  height: 100%;
  border-radius: 9999px;
  min-width: 2%;
  transition: width 0.3s ease;
}

.analytics-platform-share {
  margin-top: 0.375rem;
  font-size: 0.6875rem;
  color: var(--vlozy-muted);
}

/* ── Analytics top videos (JS-generated) ── */
.analytics-top-platform {
  border-radius: 0.875rem;
  border: 1px solid var(--vlozy-border);
  background: var(--vlozy-surface);
  padding: 0.875rem;
}

.analytics-top-platform-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.625rem;
}

.analytics-top-platform-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--vlozy-ink);
}

.analytics-top-platform-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.analytics-video-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 0.75rem;
  border: 1px solid var(--vlozy-border);
  background: var(--vlozy-card);
  padding: 0.5rem 0.625rem;
}

.analytics-video-thumb-btn {
  flex-shrink: 0;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 0.5rem;
  transition: transform 0.15s ease;
}

.analytics-video-thumb-btn:hover { transform: scale(1.04); }

.analytics-video-thumb-btn:focus-visible {
  outline: 2px solid var(--vlozy-accent);
  outline-offset: 2px;
}

.analytics-video-thumb {
  position: relative;
  display: block;
  width: 2.5rem;
  height: 3.5rem;
  overflow: hidden;
  border-radius: 0.5rem;
  background: var(--vlozy-ink);
}

.analytics-video-thumb video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.analytics-video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 10, 0.35);
  color: #fff;
  transition: background 0.15s ease;
}

.analytics-video-thumb-btn:hover .analytics-video-play {
  background: rgba(10, 10, 10, 0.5);
}

.analytics-video-rank {
  display: flex;
  height: 1.75rem;
  width: 1.75rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: var(--vlozy-surface);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--vlozy-muted);
}

.analytics-video-body { min-width: 0; flex: 1; }

.analytics-video-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--vlozy-ink);
}

.analytics-video-meta {
  margin-top: 0.125rem;
  font-size: 0.6875rem;
}

.analytics-video-platform { font-weight: 600; }

.analytics-video-views {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--vlozy-ink);
}

/* ── Video modal ── */
body.video-modal-open { overflow: hidden; }

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.65);
  backdrop-filter: blur(6px);
}

.video-modal-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 22rem;
  border-radius: 1.25rem;
  border: 1px solid var(--vlozy-border);
  background: var(--vlozy-card);
  padding: 1.25rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.video-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: flex;
  height: 2rem;
  width: 2rem;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 0.5rem;
  background: var(--vlozy-surface);
  color: var(--vlozy-muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.video-modal-close:hover {
  background: var(--vlozy-border);
  color: var(--vlozy-ink);
}

.video-modal-header { padding-right: 2.25rem; }

.video-modal-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--vlozy-ink);
  line-height: 1.35;
}

.video-modal-meta {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: var(--vlozy-muted);
}

.video-modal-player {
  margin-top: 0.875rem;
  overflow: hidden;
  border-radius: 0.75rem;
  background: var(--vlozy-ink);
  aspect-ratio: 9 / 16;
}

.video-modal-player video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ── Calendar ── */
.cal-toolbar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

@media (min-width: 640px) {
  .cal-toolbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.cal-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cal-nav-btn {
  display: flex;
  height: 2rem;
  width: 2rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--vlozy-border);
  border-radius: 0.5rem;
  background: var(--vlozy-card);
  color: var(--vlozy-muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.cal-nav-btn:hover {
  background: var(--vlozy-surface);
  color: var(--vlozy-ink);
}

.cal-month-label {
  min-width: 7rem;
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  color: var(--vlozy-ink);
}

.cal-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--vlozy-muted);
}

.cal-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.cal-stat-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
}

.cal-stat-dot--posted { background: #22c55e; }
.cal-stat-dot--draft { background: #eab308; }
.cal-stat-dot--scheduled { background: #2563eb; }

.cal-wrap {
  margin-top: 1rem;
  overflow-x: auto;
}

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  border-radius: 0.75rem 0.75rem 0 0;
  overflow: hidden;
  background: var(--vlozy-border);
}

.cal-weekdays span {
  background: var(--vlozy-surface);
  padding: 0.5rem 0;
  text-align: center;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--vlozy-muted);
}

@media (min-width: 640px) {
  .cal-weekdays span { font-size: 0.75rem; }
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  border-radius: 0 0 0.75rem 0.75rem;
  overflow: hidden;
  background: var(--vlozy-border);
  border: 1px solid var(--vlozy-border);
  border-top: none;
}

.cal-day-detail {
  margin-top: 1rem;
  border-radius: 0.875rem;
  border: 1px solid var(--vlozy-border);
  background: var(--vlozy-surface);
  padding: 1rem;
}

.cal-day-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--vlozy-ink);
}

.cal-day-list {
  margin-top: 0.75rem;
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* ── Calendar grid cells (JS-generated) ── */
.calendar-cell {
  display: flex;
  min-height: 3.5rem;
  flex-direction: column;
  align-items: stretch;
  border: none;
  background: var(--vlozy-card);
  padding: 0.25rem 0.125rem 0.375rem;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s;
}

.calendar-cell:hover:not(.calendar-cell--pad) {
  background: var(--vlozy-surface);
}

.calendar-cell--pad {
  background: var(--vlozy-surface);
  cursor: default;
  pointer-events: none;
}

.calendar-cell.is-today {
  background: rgba(200, 245, 66, 0.12);
}

.calendar-cell.is-today .calendar-day-num {
  color: var(--vlozy-ink);
  font-weight: 700;
}

.calendar-cell.is-selected {
  box-shadow: inset 0 0 0 2px var(--vlozy-accent);
  background: rgba(200, 245, 66, 0.08);
}

.calendar-day-num {
  display: block;
  padding: 0 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--vlozy-ink);
  line-height: 1.25rem;
}

.calendar-events {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-top: 0.125rem;
  padding: 0 0.125rem;
  min-height: 0;
  flex: 1;
}

.calendar-event {
  display: flex;
  align-items: center;
  gap: 0.1875rem;
  overflow: hidden;
  border-radius: 0.1875rem;
  padding: 0 0.125rem;
  font-size: 0.5625rem;
  line-height: 1.125rem;
  color: var(--vlozy-muted);
}

.calendar-event-dot {
  flex-shrink: 0;
  height: 0.3125rem;
  width: 0.3125rem;
  border-radius: 9999px;
}

.calendar-event-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-event--posted .calendar-event-dot { background: #22c55e; }
.calendar-event--scheduled .calendar-event-dot { background: #2563eb; }
.calendar-event--draft .calendar-event-dot { background: #eab308; }

.calendar-more {
  font-size: 0.5625rem;
  font-weight: 600;
  color: var(--vlozy-muted);
  padding: 0 0.125rem;
}

/* ── Calendar day detail items (JS-generated) ── */
.calendar-day-empty {
  font-size: 0.875rem;
  color: var(--vlozy-muted);
}

.calendar-day-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 0.625rem;
  border: 1px solid var(--vlozy-border);
  background: var(--vlozy-card);
  padding: 0.625rem 0.75rem;
}

.calendar-day-item-status {
  flex-shrink: 0;
  height: 0.5rem;
  width: 0.5rem;
  border-radius: 9999px;
}

.calendar-day-item--posted .calendar-day-item-status { background: #22c55e; }
.calendar-day-item--scheduled .calendar-day-item-status { background: #2563eb; }
.calendar-day-item--draft .calendar-day-item-status { background: #eab308; }

.calendar-day-item-body { min-width: 0; flex: 1; }

.calendar-day-item-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--vlozy-ink);
}

.calendar-day-item-meta {
  margin-top: 0.125rem;
  font-size: 0.75rem;
  color: var(--vlozy-muted);
}

.calendar-day-item-badge {
  flex-shrink: 0;
  border-radius: 9999px;
  background: var(--vlozy-surface);
  padding: 0.125rem 0.5rem;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: capitalize;
  color: var(--vlozy-muted);
}

/* ── Responsive ── */
@media (min-width: 480px) {
  .demo-thumb { width: 3.75rem; height: 5.25rem; }
  .calendar-cell { min-height: 4.25rem; }
  .calendar-day-num { font-size: 0.8125rem; }
  .calendar-event { font-size: 0.625rem; }
}

@media (min-width: 640px) {
  .dash-card { padding: 2rem; }
  .hero {
    min-height: 31rem;
    padding-top: 5rem;
  }
  .demo-thumb { width: 4rem; height: 5.5rem; }
  .calendar-cell { min-height: 5rem; padding: 0.375rem 0.25rem 0.5rem; }
  .calendar-day-num { font-size: 0.875rem; }
  .calendar-event { font-size: 0.6875rem; line-height: 1.25rem; }
  .analytics-video-title { font-size: 0.875rem; }
  .analytics-video-thumb { width: 2.75rem; height: 3.875rem; }
  .analytics-video-item { gap: 0.625rem; padding: 0.625rem 0.75rem; }
  .video-modal-panel { max-width: 24rem; padding: 1.5rem; }
}

@media (min-width: 1024px) {
  .calendar-cell { min-height: 5.5rem; }
}

@media (max-width: 420px) {
  .demo-file-row {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
  }
  .demo-thumb {
    grid-column: 1 / -1;
    justify-self: center;
    width: 4.5rem;
    height: 6.5rem;
  }
  .demo-file-meta { grid-column: 1; }
  .demo-remove { grid-column: 2; grid-row: 2; align-self: center; }
  .demo-file-name {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-word;
  }
  .analytics-platform-stats dd { font-size: 0.75rem; }
  .dash-tabs { border-radius: 1rem; }
  .dash-tab { padding: 0.5rem 0.875rem; font-size: 0.8125rem; }
}

@media (max-width: 380px) {
  .calendar-event-label { display: none; }
  .analytics-platform-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.375rem;
  }
}
