html, body { margin: 0; padding: 0; width: 100%; box-sizing: border-box; scrollbar-gutter: auto; }
html { overflow-x: hidden; }
/* Single scroll root: only .video-section scrolls. Prevents duplicate window + video-section scrollbars. */
html:has(.login-page) {
  scrollbar-gutter: auto;
  height: 100%;
  overflow: hidden;
}
body:has(.login-page) {
  width: 100% !important;
  min-width: 100% !important;
  background: #212121;
  scrollbar-gutter: auto;
  height: 100%;
  overflow: hidden;
}

/* Canvas editor dotted background (canvas-editor.js: radial-gradient + 24px — dark canvas) */
.login-page {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 100% !important;
  height: 100%;
  min-height: 0;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  box-sizing: border-box;
  background-color: #212121;
  overflow: hidden;
  --login-dot-mouse-x: 0px;
  --login-dot-mouse-y: 0px;
}
.login-page::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 24px 24px;
  transform: translate3d(
    var(--login-dot-mouse-x, 0px),
    calc(var(--login-parallax-dots, 0px) + var(--login-dot-mouse-y, 0px)),
    0
  );
}
body.login-landing-effects-on .login-page::before {
  will-change: transform;
}

/* Scroll-linked depth: blob field moves slower than content (login-landing-effects.js sets --login-parallax-blob). */
body.login-landing-effects-on .bg-decoration {
  transform: translate3d(0, var(--login-parallax-blob, 0px), 0);
  will-change: transform;
}

.login-floating-panel {
  position: fixed;
  top: 24px;
  right: 24px;
  left: auto;
  z-index: 40;
  width: min(360px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}
.login-floating-panel.is-dragging {
  transition: none;
  box-shadow: 0 28px 60px -12px rgba(0, 0, 0, 0.6);
}
.login-floating-panel__drag-handle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 4px 0 16px;
  margin: -12px -12px 8px;
  flex-shrink: 0;
}
.login-floating-panel__drag-grip {
  width: 40px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15) inset;
}
.login-floating-panel__card-title {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
  color: #ffffff;
  letter-spacing: -0.01em;
}
@media (min-width: 1025px) {
  .login-floating-panel__drag-handle {
    cursor: grab;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
  }
  .login-floating-panel.is-dragging .login-floating-panel__drag-handle {
    cursor: grabbing;
  }
}
@media (max-width: 1024px) {
  .login-floating-panel__drag-grip {
    display: none;
  }
  .login-floating-panel__drag-handle {
    gap: 0;
    padding-top: 0;
    padding-bottom: 12px;
    margin-bottom: 4px;
    cursor: default;
    touch-action: auto;
    user-select: auto;
    -webkit-user-select: auto;
  }
}
.login-floating-panel::-webkit-scrollbar { width: 6px; }
.login-floating-panel::-webkit-scrollbar-track { background: transparent; }
.login-floating-panel::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.2); border-radius: 3px; }

.video-section {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  padding: 40px clamp(20px, 5vw, 40px);
  background: rgba(20, 20, 20, 0.5);
  flex: 1 1 auto;
  min-height: 0;
  box-sizing: border-box;
  /* One overflow axis per shorthand avoids clip+auto pairing (some engines show extra scrollbar tracks on hover). */
  overflow: hidden auto;
  overscroll-behavior-y: contain;
  min-width: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
  --login-parallax-content: 0px;
  perspective: 1400px;
  perspective-origin: 50% 20%;
}
.video-section::-webkit-scrollbar { width: 6px; }
.video-section::-webkit-scrollbar-track { background: transparent; }
.video-section::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.2); border-radius: 3px; }
.video-section::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.3); }

.video-section-inner {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  padding-top: 196px;
  display: flex;
  flex-direction: column;
  gap: 76px;
  box-sizing: border-box;
  transform-style: preserve-3d;
}
body.login-landing-effects-on .video-section-inner {
  transform: translate3d(0, calc(var(--login-parallax-content, 0px) * -1), 0);
  will-change: transform;
}

.video-container {
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Match .promo-section glass card (no hover lift — scroll-reveal uses transform on .video-container) */
.video-section .video-container--triple {
  padding: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  box-sizing: border-box;
  transform: translateZ(0);
}

.video-header {
  margin-bottom: 20px;
  text-align: center;
  /* Full width of .video-container so nested .video-wrapper scales like sibling videos (parent uses align-items: center). */
  align-self: stretch;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.video-title { font-size: 30px; font-weight: 600; color: #ffffff; margin-bottom: 8px; line-height: 60px; }
.video-subtitle { font-size: 14px; color: #9ca3af; line-height: 28px; }

/* Three embeds in one row (see .video-container--triple in login.html) */
.video-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(12px, 2vw, 24px);
  width: 100%;
  min-width: 0;
  align-self: stretch;
  box-sizing: border-box;
}
.video-tile {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.video-caption {
  font-size: 13px;
  color: #9ca3af;
  line-height: 1.45;
  text-align: center;
  margin: 12px 0 0;
  padding: 0 2px;
  box-sizing: border-box;
}

.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transform: translateZ(0);
  transition: transform 0.45s cubic-bezier(0.2, 0.85, 0.2, 1), box-shadow 0.45s ease;
}
.video-section .video-wrapper:hover {
  transform: translateY(-6px) translateZ(24px) scale(1.008);
  box-shadow: 0 36px 70px -16px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; display: block; }

@media (max-width: 1024px) {
  .login-page {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    max-height: 100%;
    overflow: hidden;
  }
  /* Keep sign-in as a fixed overlay on narrow viewports (was position: relative + stacked). */
  .login-floating-panel {
    position: fixed;
    top: 12px;
    right: 12px;
    left: auto;
    width: min(360px, calc(100vw - 24px));
    max-width: min(360px, calc(100vw - 24px));
    max-height: calc(100vh - 24px);
    padding: 0;
    z-index: 40;
  }
  .video-section {
    padding: 20px;
    padding-right: 20px;
    min-height: 0;
    flex: 1 1 auto;
  }
  /* Clear the top-right card so the hero is not hidden behind the overlay. */
  .video-section-inner {
    padding-top: clamp(72px, 22vh, 200px);
    gap: 40px;
  }
  .video-container { max-width: 100%; }
  .video-row { flex-direction: column; align-items: stretch; gap: 28px; }
  .login-card { padding: 20px; }
}

.login-container { width: 100%; max-width: 360px; margin: 0 auto; }

.login-card {
  background: rgba(30, 30, 30, 0.55);
  border-radius: 16px;
  padding: 20px;
  width: 100%;
  max-width: 360px;
  height: 350px;
  box-sizing: border-box;
  margin: 0;
  overflow-x: hidden;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
}

.login-header { text-align: center; margin-bottom: 32px; }
.video-section-intro-block > .login-header--intro {
  margin-bottom: 0;
}
.video-section-intro-block > .login-header--intro .login-icon {
  margin-bottom: 16px;
}
.login-icon { width: 64px; height: 64px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); border-radius: 16px; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.login-icon svg { width: 32px; height: 32px; color: white; }
.login-title { font-size: 28px; font-weight: 700; color: #ffffff; margin-bottom: 0; }
.login-subtitle { font-size: 15px; color: #d1d5db; line-height: 1.5; }

.google-btn { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; padding: 14px 24px; background: #ffffff; border: none; border-radius: 8px; font-size: 16px; font-weight: 500; color: #1f2937; cursor: pointer; transition: all 0.2s ease; text-decoration: none; }
.google-btn:hover { background: #f3f4f6; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); color: #1f2937; }
.google-btn svg { width: 20px; height: 20px; }

.github-btn { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; padding: 14px 24px; margin-top: 16px; background: #24292f; border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 8px; font-size: 16px; font-weight: 500; color: #ffffff; cursor: pointer; transition: all 0.2s ease; text-decoration: none; }
.github-btn:hover { background: #32383f; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); color: #ffffff; }
.github-btn svg { width: 20px; height: 20px; }

.free-notice { text-align: center; font-size: 13px; color: #10b981; margin-top: 12px; margin-bottom: 0; font-weight: 500; }

.tos-notice { text-align: center; font-size: 12px; color: #9ca3af; margin-top: 12px; margin-bottom: 0; line-height: 1.8; }
.tos-notice a { color: #667eea; text-decoration: none; transition: color 0.2s ease; }
.tos-notice a:hover { color: #764ba2; text-decoration: underline; }
.tos-notice .pricing-link { color: #a5b4fc; font-weight: 500; }

.toast-notification { position: fixed; bottom: 20px; right: 20px; background: rgba(239, 68, 68, 0.95); color: white; padding: 16px 24px; border-radius: 8px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); font-size: 14px; z-index: 1000; animation: slideIn 0.3s ease, fadeOut 0.3s ease 1.7s forwards; }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }

.video-section-intro-block {
  max-width: none;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-sizing: border-box;
}
.video-section-hero { text-align: center; }
.video-section-hero-line {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 12px 0;
  line-height: 1.3;
}
.video-section-hero-tagline {
  font-size: 16px;
  color: #9ca3af;
  margin: 0;
  line-height: 1.6;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.features-list { margin-bottom: 0; padding: 0; max-width: none; margin-left: auto; margin-right: auto; width: 100%; text-align: center; box-sizing: border-box; }
.features-title { margin-top: 42px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; color: #6b7280; margin-bottom: 12px; text-align: center; }
.feature-item { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 6px 0; font-size: 14px; color: #d1d5db; text-align: center; }
.feature-item svg { width: 16px; height: 16px; color: #10b981; flex-shrink: 0; }

.video-section .promo-section {
  margin-top: 32px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
  transform: translateZ(0);
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.2, 0.85, 0.2, 1), box-shadow 0.5s ease, border-color 0.35s ease;
}
/* No translateY / translateZ / rotateX here — they move the hit box away from the cursor (hover flicker).
   Keep outer shadow footprint ≤ default so hover does not grow scrollable overflow (double scrollbars). */
.video-section .promo-section:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
}
.video-section .promo-section h3 { font-size: 30px; font-weight: 600; color: #ffffff; margin-bottom: 8px; text-align: center; justify-content: center; display: flex; align-items: center; gap: 10px; line-height: 60px; }
.video-section .promo-section p { font-size: 14px; color: #9ca3af; margin: 0; line-height: 28px; text-align: center; }
.video-section-inner > .promo-section:nth-of-type(3) > p { font-size: 16px; color: #94a3b8; line-height: 1.5; max-width: 480px; margin-left: auto; margin-right: auto; }

.promo-dashboard-cards { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-top: 28px; width: 100%; max-width: none; margin-left: auto; margin-right: auto; box-sizing: border-box; }
.promo-dashboard-card {
  flex: 1 1 0;
  min-width: 0;
  max-width: 200px;
  border-radius: 16px;
  overflow: hidden;
  background: #1a1a1a;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  transform: translateZ(0);
  transition: transform 0.4s cubic-bezier(0.2, 0.85, 0.2, 1), box-shadow 0.4s ease;
}
.promo-dashboard-card:hover {
  transform: translateY(-6px) translateZ(16px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}
.promo-dashboard-card-top { height: 100px; min-height: 80px; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; }
.promo-dashboard-card--teal { background: #0d3d47; }
.promo-dashboard-card--purple { background: #2d1b4e; }
.promo-dashboard-card--green { background: #0c3317; }
.promo-dashboard-card--amber { background: #422006; }
.promo-dashboard-card--rose { background: #4a0e2a; }
.promo-dashboard-card-icon { height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.promo-dashboard-card-bottom { padding: 12px 10px; background: #1a1a1a; min-width: 0; text-align: center; display: flex; flex-direction: column; }
.promo-dashboard-card-bottom h4 { font-size: clamp(13px, 2.5vw, 16px); font-weight: 700; color: #ffffff; margin: 0 0 6px 0; line-height: 1.25; text-align: center; min-height: 2.5em; display: flex; align-items: center; justify-content: center; }
.promo-dashboard-card-bottom p { font-size: clamp(11px, 1.8vw, 13px); color: #9ca3af; margin: 0; line-height: 1.45; overflow-wrap: break-word; text-align: center; }

.video-section .promo-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; height: 150px; text-align: center; justify-content: center; align-items: center; }
.video-section .promo-tag { font-size: 12px; padding: 8px 14px; background: rgba(102, 126, 234, 0.15); color: #a5b4fc; border-radius: 8px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(102, 126, 234, 0.2); transition: background 0.2s ease, border-color 0.2s ease; }
.video-section .promo-tag:hover { background: rgba(102, 126, 234, 0.25); border-color: rgba(102, 126, 234, 0.4); }
.video-section .promo-tag .promo-tag-logo { width: 18px; height: 18px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.video-section .promo-tag .promo-tag-logo svg { width: 18px; height: 18px; }

/* Inset buffer for card shadows; horizontal clipping is handled by .video-section (avoid nested clip + scroll). */
.promo-visual {
  margin-top: 20px;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 12px clamp(20px, 4vw, 56px) 40px;
}
/* Masonry-style layout: multi-column flow (no extra JS). Cards keep aspect from data-aspect-ratio.
   Column tracks grow to fill the row — without a card max-width, width:100% becomes huge on wide screens. */
.promo-visual .promo-collection-cards {
  column-width: 220px;
  column-gap: 10px;
  column-fill: balance;
  width: 100%;
  max-width: min(1320px, 100%);
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}
.promo-visual .promo-collection-cards .promo-collection-cards-status {
  column-span: all;
  width: 100%;
  text-align: center;
  margin-bottom: 0;
}

.promo-collection-share {
  width: 100%;
  max-width: min(1320px, 100%);
  margin: 20px auto 0;
  padding: 0 8px 8px;
  box-sizing: border-box;
  text-align: center;
}
.promo-collection-share-line {
  margin: 0 0 6px;
  font-size: 15px;
  color: #e5e7eb;
  line-height: 1.5;
}
.promo-collection-share-hint {
  margin: 0;
  font-size: 13px;
  color: #9ca3af;
  line-height: 1.45;
}
.promo-collection-share-feedback {
  margin: 8px 0 0;
  min-height: 1.25em;
  font-size: 13px;
  color: #86efac;
}
.promo-collection-share-btn {
  margin-left: 8px;
  vertical-align: middle;
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  background: rgba(102, 126, 234, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  cursor: pointer;
}
.promo-collection-share-btn:hover {
  background: rgba(102, 126, 234, 0.5);
}
.promo-collection-share-btn:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
}
.promo-visual .collection-card.collection-page-card {
  /* Match collection CARD_WIDTH (280); cap size so wide column tracks do not stretch cards */
  width: 100% !important;
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
  height: auto !important;
  aspect-ratio: 4 / 3;
  break-inside: avoid;
  page-break-inside: avoid;
  -webkit-column-break-inside: avoid;
  margin-bottom: 10px;
  cursor: pointer;
  pointer-events: auto;
  display: block;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #2a2a2a;
  transform: translateZ(0);
  transition: box-shadow 0.35s cubic-bezier(0.2, 0.85, 0.2, 1);
}
.promo-visual .collection-card.collection-page-card[data-aspect-ratio="16:9"] { aspect-ratio: 16 / 9; }
.promo-visual .collection-card.collection-page-card[data-aspect-ratio="4:3"] { aspect-ratio: 4 / 3; }
.promo-visual .collection-card.collection-page-card[data-aspect-ratio="1:1"] { aspect-ratio: 1 / 1; }
.promo-visual .collection-card.collection-page-card[data-aspect-ratio="3:4"] { aspect-ratio: 3 / 4; }
.promo-visual .collection-card.collection-page-card[data-aspect-ratio="9:16"] { aspect-ratio: 9 / 16; }
.promo-visual .collection-card.collection-page-card[data-aspect-ratio="2:1"] { aspect-ratio: 2 / 1; }
/* Shadow-only hover: avoids moving the hit target (flicker) and growing overflow under .video-section perspective. */
.promo-visual .collection-card.collection-page-card:hover {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
}
.promo-visual .collection-card.collection-page-card .card-background { position: relative; width: 100%; height: 100%; border-radius: 16px; overflow: hidden; background: #2a2a2a; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); }
.promo-visual .collection-card.collection-page-card .card-background::before { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 100%; background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0) 100%); z-index: 5; pointer-events: none; }
.promo-visual .collection-card.collection-page-card .card-inner { display: flex; align-items: center; justify-content: center; position: absolute; top: 0; left: 0; right: 0; bottom: 0; border-radius: 16px; }
.promo-visual .collection-card.collection-page-card .card-inner .card-type-icon { width: 64px; height: 64px; color: rgba(255, 255, 255, 0.6); }
.promo-visual .collection-card.collection-page-card .card-inner .card-type-icon svg { width: 64px; height: 64px; }
.promo-visual .collection-card.collection-page-card .card-inner img,
.promo-visual .collection-card.collection-page-card .card-inner video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; background-color: #000; }
/* Do not force video opacity here: card-factory uses inline opacity for hover previews; direct-file
   cards use a plain <video> with no .playing class (old static promo used class "playing"). */
.promo-visual .collection-card.collection-page-card .card-inner .video-poster { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; transition: opacity 0.3s ease; }
.promo-visual .collection-card.collection-page-card .card-inner .video-play-overlay { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; background: rgba(0, 0, 0, 0.7); border-radius: 50%; display: flex; align-items: center; justify-content: center; z-index: 3; transition: opacity 0.3s ease; }
.promo-visual .collection-card.collection-page-card .card-inner .video-play-overlay svg { width: 28px; height: 28px; color: #fff; margin-left: 3px; }
.promo-visual .collection-card.collection-page-card .card-bottom-bar { position: absolute; left: 18px; right: 18px; bottom: 18px; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 12px; pointer-events: none; opacity: 0.6; transition: opacity 0.2s ease; }
.promo-visual .collection-card.collection-page-card:hover .card-bottom-bar { opacity: 1; }
.promo-visual .collection-card.collection-page-card .card-label-title { color: #ffffff; font-size: 13px; font-weight: 500; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.promo-visual .collection-card.collection-page-card .card-icon { width: 16px; height: 16px; color: #ffffff; }
.promo-visual .collection-card.collection-page-card .card-icon svg { width: 16px; height: 16px; }

.promo-visual .collection-card.collection-page-card::before { content: ''; position: absolute; inset: 0; border-radius: 16px; padding: 2px; background: linear-gradient(var(--gradient-angle, 135deg), #ff6b6b, #feca57, #48dbfb, #ff9ff3, #ff6b6b); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity 0.3s ease; z-index: 20; pointer-events: none; }
.promo-visual .collection-card.collection-page-card:hover::before { opacity: 1; }

.video-section .promo-section { text-align: center; }

/* Scroll-linked reveal: fade, scale, 3D tilt; ongoing parallax via --login-reveal-y (login-landing-effects.js) */
body.login-landing-effects-on .video-section .video-section-intro-block,
body.login-landing-effects-on .video-section .video-container {
  opacity: 0;
  transform: translate3d(0, 44px, -36px) scale(0.92) rotateX(5deg);
  transform-origin: 50% 0%;
  transition: opacity 0.88s cubic-bezier(0.2, 0.85, 0.2, 1), transform 0.88s cubic-bezier(0.22, 1, 0.36, 1);
}
body.login-landing-effects-on .video-section .video-container .video-tile {
  opacity: 0;
  transform: translate3d(0, 22px, -18px) scale(0.9);
  transform-origin: 50% 90%;
  transition: opacity 0.72s cubic-bezier(0.2, 0.85, 0.2, 1), transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
}
body.login-landing-effects-on .video-section .video-container .video-tile:nth-child(1) { transition-delay: 0.06s; }
body.login-landing-effects-on .video-section .video-container .video-tile:nth-child(2) { transition-delay: 0.15s; }
body.login-landing-effects-on .video-section .video-container .video-tile:nth-child(3) { transition-delay: 0.24s; }
body.login-landing-effects-on .video-section .video-container.login-depth-revealed .video-tile {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}
body.login-landing-effects-on .video-section .promo-section {
  opacity: 0;
  transform: translate3d(0, 40px, -28px) scale(0.94) rotateX(4deg);
  transform-origin: 50% 0%;
  transition: opacity 0.88s cubic-bezier(0.2, 0.85, 0.2, 1), transform 0.88s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s ease, border-color 0.35s ease;
}
body.login-landing-effects-on .video-section .video-section-intro-block.login-depth-revealed,
body.login-landing-effects-on .video-section .video-container.login-depth-revealed {
  opacity: 1;
  transform: translate3d(0, var(--login-reveal-y, 0px), 0) scale(1) rotateX(0deg);
}
body.login-landing-effects-on .video-section .promo-section.login-depth-revealed {
  opacity: 1;
  transform: translate3d(0, var(--login-reveal-y, 0px), 0) translateZ(0) scale(1) rotateX(0deg);
}
/* Same as default hover: shadow/border only; shadow extent matches non-hover block to avoid scroll overflow. */
body.login-landing-effects-on .video-section .promo-section.login-depth-revealed:hover {
  transform: translate3d(0, var(--login-reveal-y, 0px), 0) translateZ(0) scale(1) rotateX(0deg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
}

@media (prefers-reduced-motion: reduce) {
  .login-page::before,
  body .bg-decoration,
  .video-section-inner {
    transform: none !important;
    will-change: auto !important;
  }
  body.login-landing-effects-on .video-section .video-section-intro-block,
  body.login-landing-effects-on .video-section .video-container,
  body.login-landing-effects-on .video-section .video-container .video-tile,
  body.login-landing-effects-on .video-section .promo-section {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
