/* ==========================================================================
   Mas Upload — website design system

   Palette follows the MAS UPLOAD logo: deep black, white type, and the
   electric blue glow of the upload arrow.
   ========================================================================== */

:root {
  --brand-50: #e8f7ff;
  --brand-100: #c9ecff;
  --brand-200: #96dbff;
  --brand-300: #5ec8ff;
  --brand-400: #3dc4ff;
  --brand-500: #00a8ff;
  --brand-600: #0094f0;
  --brand-700: #0077cc;
  --brand-800: #005fa3;
  --brand-900: #003d6b;

  --tiktok: #010101;
  --instagram: #e4405f;
  --youtube: #ff0000;
  --facebook: #1877f2;

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 999px;

  --shell-max: 940px;
  --sidebar-width: 264px;

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

html[data-theme='dark'] {
  --page: #000000;
  --page-alt: rgba(10, 14, 22, 0.55);
  --card: rgba(18, 26, 40, 0.28);
  --card-hover: rgba(28, 36, 52, 0.58);
  --line: rgba(255, 255, 255, 0.08);
  --text: #ffffff;
  --text-soft: #9ca3af;
  --text-faint: #6b7280;
  --tint: rgba(0, 168, 255, 0.16);
  --tint-line: rgba(0, 168, 255, 0.42);
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  --shadow-soft: 0 8px 24px rgba(0, 168, 255, 0.16);
  --glass: rgba(255, 255, 255, 0.1);
  --glass-strong: rgba(8, 12, 20, 0.32);
  --glass-line: rgba(255, 255, 255, 0.16);
  --warn-bg: rgba(180, 83, 9, 0.22);
  --warn-line: rgba(250, 204, 21, 0.32);
  --danger-bg: rgba(153, 27, 27, 0.28);
  --danger-line: rgba(239, 68, 68, 0.32);
  --ok-bg: rgba(22, 101, 52, 0.32);
  --skeleton: #16161c;
}

html[data-theme='light'] {
  --page: #cfe0f2;
  --page-alt: rgba(255, 255, 255, 0.52);
  --card: rgba(255, 255, 255, 0.46);
  --card-hover: rgba(255, 255, 255, 0.68);
  --line: rgba(15, 23, 42, 0.08);
  --text: #0f172a;
  --text-soft: #475569;
  --text-faint: #64748b;
  --tint: rgba(0, 168, 255, 0.14);
  --tint-line: rgba(0, 168, 255, 0.36);
  --shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
  --shadow-soft: 0 8px 24px rgba(0, 168, 255, 0.12);
  --glass: rgba(255, 255, 255, 0.38);
  --glass-strong: rgba(255, 255, 255, 0.52);
  --glass-line: rgba(255, 255, 255, 0.7);
  --warn-bg: rgba(254, 252, 232, 0.62);
  --warn-line: rgba(250, 204, 21, 0.55);
  --danger-bg: rgba(254, 242, 242, 0.62);
  --danger-line: rgba(252, 165, 165, 0.7);
  --ok-bg: rgba(220, 252, 231, 0.62);
  --skeleton: rgba(226, 232, 240, 0.8);
}

/* --------------------------------------------------------------------------
   base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

body {
  background: var(--page);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

h1,
h2,
h3,
h4,
p,
figure {
  margin: 0;
}

a {
  color: var(--brand-400);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button {
  font: inherit;
  color: inherit;
}

ion-icon {
  display: inline-block;
  flex: none;
  width: 1em;
  height: 1em;
  min-width: 1em;
  max-width: 1em;
  overflow: hidden;
  font-size: 20px;
  vertical-align: middle;
}

:focus-visible {
  outline: 2px solid var(--brand-500);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Component rules set `display`, which would otherwise beat the UA stylesheet's
   `[hidden] { display: none }` and leave hidden panels on screen. */
[hidden] {
  display: none !important;
}

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

/* --------------------------------------------------------------------------
   boot + shell
   -------------------------------------------------------------------------- */

.app-root {
  width: 100%;
  max-width: 100%;
  min-height: 100dvh;
  overflow-x: clip;
}

.boot {
  min-height: 100dvh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 16px;
  color: var(--text-soft);
}

.boot__mark {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-lg);
  background: #000;
  color: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: 0 0 22px rgba(0, 168, 255, 0.45);
  animation: pulse 1.4s ease-in-out infinite;
}

.boot__mark ion-icon {
  font-size: 30px;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.55;
    transform: scale(0.94);
  }
}

.shell {
  display: block;
  min-height: 100dvh;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse at 8% -12%, rgba(0, 168, 255, 0.34), transparent 44%),
    radial-gradient(ellipse at 100% 8%, rgba(0, 168, 255, 0.2), transparent 38%),
    radial-gradient(ellipse at 0% 42%, rgba(0, 140, 220, 0.16), transparent 36%),
    radial-gradient(ellipse at 100% 58%, rgba(0, 90, 180, 0.18), transparent 40%),
    radial-gradient(ellipse at 40% 110%, rgba(0, 80, 180, 0.22), transparent 42%),
    var(--page);
}

html[data-theme='light'] .shell {
  background:
    radial-gradient(ellipse at 8% -12%, rgba(0, 168, 255, 0.42), transparent 46%),
    radial-gradient(ellipse at 100% 12%, rgba(80, 180, 255, 0.32), transparent 40%),
    radial-gradient(ellipse at 0% 48%, rgba(0, 168, 255, 0.22), transparent 38%),
    radial-gradient(ellipse at 90% 62%, rgba(0, 140, 220, 0.2), transparent 42%),
    radial-gradient(ellipse at 50% 100%, rgba(0, 168, 255, 0.18), transparent 44%),
    var(--page);
}

/* sidebar (desktop) */

.sidebar {
  display: none;
  width: var(--sidebar-width);
  flex: none;
  flex-direction: column;
  gap: 8px;
  padding: 24px 18px;
  border-right: 1px solid var(--glass-line);
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
  backdrop-filter: blur(22px) saturate(1.3);
  position: sticky;
  top: 0;
  height: 100vh;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 8px 20px;
}

.brand__mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #000;
  color: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: 0 0 16px rgba(0, 168, 255, 0.35);
}

.brand__mark img,
.brand__logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand__name {
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.2px;
}

.brand__tag {
  font-size: 11px;
  color: var(--text-faint);
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  color: var(--text-soft);
  font-weight: 600;
  font-size: 14.5px;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.25s var(--ease);
}

.nav-link:hover {
  background: var(--card-hover);
  color: var(--text);
  text-decoration: none;
}

.nav-link.is-active {
  background: var(--tint);
  color: var(--brand-400);
  box-shadow: 0 0 18px rgba(0, 168, 255, 0.18);
}

.sidebar__foot {
  margin-top: auto;
  display: grid;
  gap: 10px;
}

.sidebar__user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-md);
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  cursor: pointer;
  text-align: left;
  width: 100%;
}

.sidebar__user:hover {
  background: var(--card-hover);
}

/* main column */

.main {
  flex: 1;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.main__inner {
  width: 100%;
  max-width: var(--shell-max);
  margin: 0 auto;
  overflow-x: hidden;
  padding: 20px max(20px, env(safe-area-inset-right, 0px)) calc(132px + env(safe-area-inset-bottom, 0px))
    max(20px, env(safe-area-inset-left, 0px));
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
  padding: 12px max(20px, env(safe-area-inset-right, 0px)) 12px max(20px, env(safe-area-inset-left, 0px));
  background: color-mix(in srgb, var(--page) 55%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
  border-bottom: 1px solid var(--glass-line);
}

.topbar .brand {
  flex: 1;
  min-width: 0;
}

@media (min-width: 1024px) {
  .shell {
    display: flex;
    overflow-x: visible;
  }
  .sidebar {
    display: flex;
  }
  .topbar {
    display: none;
  }
  .main__inner {
    padding-bottom: 56px;
  }
}

/* bottom tab bar (mobile) — mirrors the app's floating pill tab bar */

.tabbar {
  position: fixed;
  left: max(16px, env(safe-area-inset-left, 0px));
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: max(12px, env(safe-area-inset-bottom, 0px));
  z-index: 40;
  display: flex;
  width: auto;
  max-width: none;
  height: 64px;
  padding: 6px;
  transform: none;
  border-radius: var(--radius-full);
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  backdrop-filter: blur(22px) saturate(1.4);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px var(--glass-line);
  border: 1px solid var(--glass-line);
}

html[data-theme='light'] .tabbar {
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12), 0 0 0 1px var(--glass-line);
}

.tabbar__item {
  flex: 1;
  min-width: 0;
  display: grid;
  place-items: center;
  gap: 2px;
  border: none;
  background: none;
  border-radius: var(--radius-lg);
  color: var(--text-faint);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  padding: 0 2px;
}

.tabbar__item span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tabbar__item ion-icon {
  font-size: 22px;
}

.tabbar__item.is-active {
  color: #fff;
  background: rgba(0, 0, 0, 0.38);
  box-shadow: inset 0 0 0 1px rgba(0, 168, 255, 0.28), 0 0 18px rgba(0, 168, 255, 0.2);
}

@media (min-width: 1024px) {
  .tabbar {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   page headers
   -------------------------------------------------------------------------- */

.page-head {
  margin-bottom: 22px;
}

.page-head h1 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.4px;
  overflow-wrap: anywhere;
}

.page-head p {
  margin-top: 5px;
  color: var(--text-soft);
  font-size: 15px;
  overflow-wrap: anywhere;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-bottom: 10px;
  padding: 4px 8px 4px 4px;
  border: none;
  background: none;
  border-radius: var(--radius-full);
  color: var(--brand-400);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.back-link:hover {
  background: var(--tint);
}

.section-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 12px;
}

.stack {
  display: grid;
  gap: 20px;
  min-width: 0;
  max-width: 100%;
}

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

.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   cards
   -------------------------------------------------------------------------- */

.card {
  background: var(--card);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-lg);
  padding: 18px;
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  backdrop-filter: blur(24px) saturate(1.4);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

html[data-theme='light'] .card {
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.card--tint {
  background: var(--tint);
  border-color: var(--tint-line);
}

.card--warn {
  background: var(--warn-bg);
  border-color: var(--warn-line);
}

.card--flat {
  padding: 0;
  overflow: hidden;
}

.row-card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 18px;
  border: none;
  background: none;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s var(--ease);
}

.row-card:hover {
  background: var(--card-hover);
  text-decoration: none;
}

.row-card + .row-card {
  border-top: 1px solid var(--line);
}

.row-card__body {
  flex: 1;
  min-width: 0;
}

.row-card__title {
  font-weight: 600;
  font-size: 15px;
}

.row-card__sub {
  margin-top: 2px;
  color: var(--text-soft);
  font-size: 13.5px;
}

.icon-badge {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--tint);
  color: var(--brand-400);
}

.icon-badge--round {
  border-radius: var(--radius-full);
}

.icon-badge--solid {
  background: var(--brand-600);
  color: #fff;
}

.icon-badge--lg {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-lg);
}

.chevron {
  color: var(--text-faint);
  font-size: 17px;
}

/* hero upload card (Home) */

.hero-cta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 20px;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(0, 168, 255, 0.95), rgba(0, 102, 194, 0.92)),
    var(--brand-500);
  color: #fff;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 8px 14px rgba(0, 168, 255, 0.32);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 18px rgba(0, 168, 255, 0.4);
  text-decoration: none;
}

.hero-cta__icon {
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.16);
  display: grid;
  place-items: center;
}

.hero-cta__icon ion-icon {
  font-size: 28px;
}

.hero-cta__copy {
  flex: 1;
  min-width: 0;
}

.hero-cta__title {
  display: block;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.hero-cta p {
  margin-top: 2px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.82);
  overflow-wrap: anywhere;
}

.hero-cta__chevron {
  width: 20px;
  height: 20px;
  min-width: 20px;
  font-size: 20px;
}

.home-hello {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.home-hello__copy {
  flex: 1;
  min-width: 0;
}

.home-hello__name {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.4px;
}

.home-stage {
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}

.home-stage > * {
  min-width: 0;
  max-width: 100%;
}

/* stats */

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

.stat {
  background: var(--glass-strong);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  min-width: 0;
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
  backdrop-filter: blur(22px) saturate(1.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.stat__value {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.stat__label {
  margin-top: 2px;
  color: var(--text-soft);
  font-size: 13px;
}

/* week strip */

.week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  padding: 16px 8px;
}

.week__day {
  display: grid;
  justify-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--text-soft);
}

.week__num {
  width: clamp(28px, 8vw, 38px);
  height: clamp(28px, 8vw, 38px);
  border-radius: var(--radius-full);
  display: grid;
  place-items: center;
  background: var(--page);
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
}

html[data-theme='light'] .week__num {
  background: #f3f4f6;
}

.week__num.is-today {
  background: var(--brand-600);
  color: #fff;
}

.week__dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: transparent;
}

.week__dot.is-on {
  background: var(--brand-400);
}

/* --------------------------------------------------------------------------
   buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  max-width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  background: var(--brand-600);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 0 0 0 transparent;
  transition:
    filter 0.2s var(--ease),
    background 0.2s var(--ease),
    transform 0.15s var(--ease),
    box-shadow 0.25s var(--ease);
}

.btn:hover {
  filter: brightness(1.08);
  text-decoration: none;
  box-shadow: 0 0 22px rgba(0, 168, 255, 0.45);
}

.btn:active {
  transform: translateY(1px);
}

.btn[disabled],
.btn.is-loading {
  opacity: 0.6;
  pointer-events: none;
}

.btn--block {
  width: 100%;
}

.btn--secondary {
  background: var(--tint);
  color: var(--brand-400);
  border-color: var(--tint-line);
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}

.btn--outline:hover {
  background: var(--card-hover);
}

.btn--ghost {
  background: transparent;
  color: var(--text-soft);
}

.btn--ghost:hover {
  background: var(--card-hover);
  color: var(--text);
}

.btn--danger {
  background: var(--danger-bg);
  border-color: var(--danger-line);
  color: #f87171;
}

.btn--sm {
  padding: 8px 14px;
  font-size: 13.5px;
  border-radius: var(--radius-sm);
}

.btn--icon {
  padding: 9px;
  border-radius: var(--radius-full);
}

.link-btn {
  border: none;
  background: none;
  padding: 0;
  color: var(--brand-400);
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
}

.link-btn:hover {
  text-decoration: underline;
}

.spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-top-color: transparent;
  animation: spin 0.7s linear infinite;
}

.spinner--lg {
  width: 30px;
  height: 30px;
  border-width: 3px;
  color: var(--brand-500);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.center-state {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 64px 20px;
  text-align: center;
  color: var(--text-soft);
}

.center-state ion-icon {
  font-size: 30px;
  color: var(--text-faint);
}

/* --------------------------------------------------------------------------
   forms
   -------------------------------------------------------------------------- */

.field {
  display: grid;
  gap: 7px;
}

.field__label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-soft);
}

.field__hint {
  font-size: 12.5px;
  color: var(--text-faint);
}

.field__error {
  font-size: 13px;
  color: #f87171;
}

.input,
.textarea,
.select {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--page-alt);
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

html[data-theme='dark'] .input,
html[data-theme='dark'] .textarea,
html[data-theme='dark'] .select,
html[data-theme='light'] .input,
html[data-theme='light'] .textarea,
html[data-theme='light'] .select {
  background: var(--glass);
  border-color: var(--glass-line);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
}

.password-field {
  position: relative;
}

.password-field .input {
  padding-right: 46px;
}

.password-field__toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text-soft);
  cursor: pointer;
  transform: translateY(-50%);
}

.password-field__toggle:hover {
  color: var(--text);
}

.auth-scene .password-field__toggle {
  color: rgba(255, 255, 255, 0.7);
}

.auth-scene .password-field__toggle:hover {
  color: #fff;
}

.input::placeholder,
.textarea::placeholder {
  color: var(--text-faint);
}

.input:focus,
.textarea:focus,
.select:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px var(--tint);
}

.input[disabled],
.select[disabled] {
  opacity: 0.6;
}

.textarea {
  min-height: 118px;
  resize: vertical;
}

.field-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
}

.field-row > * {
  flex: 1;
  min-width: 0;
}

/* country code picker */

.combo {
  position: relative;
  flex: 0 0 auto;
}

.combo__button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-line);
  background: var(--glass);
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
}

.combo__button:hover {
  border-color: var(--brand-500);
}

.combo__panel {
  position: absolute;
  z-index: 60;
  top: calc(100% + 6px);
  left: 0;
  width: min(340px, calc(100vw - 56px));
  max-height: 320px;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-line);
  background: var(--glass-strong);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  backdrop-filter: blur(20px) saturate(1.3);
  overflow: hidden;
}

.combo__search {
  padding: 10px;
  border-bottom: 1px solid var(--line);
}

.combo__list {
  overflow-y: auto;
  overscroll-behavior: contain;
}

.combo__option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  border: none;
  background: none;
  color: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

.combo__option:hover {
  background: var(--card-hover);
}

.combo__option.is-selected {
  background: var(--tint);
  color: var(--brand-400);
  font-weight: 600;
}

.code-input {
  width: 100%;
  padding: 16px;
  text-align: center;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 12px;
  text-indent: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--page-alt);
  color: var(--text);
  font-family: inherit;
}

.code-input:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px var(--tint);
}

/* pills / chips */

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border-radius: var(--radius-full);
  border: 1px solid var(--glass-line);
  background: var(--glass-strong);
  color: var(--text-soft);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  -webkit-backdrop-filter: blur(16px) saturate(1.25);
  backdrop-filter: blur(16px) saturate(1.25);
  transition: all 0.15s var(--ease);
}

.pill ion-icon {
  font-size: 16px;
}

.pill:hover {
  border-color: var(--brand-500);
}

.pill.is-selected {
  border-color: var(--brand-500);
  background: var(--tint);
  color: var(--text);
}

.pill.is-locked {
  opacity: 0.5;
}

.pill--static {
  cursor: default;
}

.pill--static:hover {
  border-color: var(--line);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: capitalize;
  background: var(--tint);
  color: var(--brand-400);
}

.badge--draft {
  background: var(--warn-bg);
  color: #eab308;
}

.badge--ok {
  background: var(--ok-bg);
  color: #22c55e;
}

.badge--pending {
  background: var(--tint);
  color: var(--brand-400);
}

.badge--failed {
  background: var(--danger-bg);
  color: #f87171;
}

/* segmented control */

.segmented {
  display: inline-flex;
  padding: 4px;
  gap: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--card);
}

.segmented__item {
  padding: 8px 18px;
  border: none;
  border-radius: var(--radius-sm);
  background: none;
  color: var(--text-soft);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}

.segmented__item.is-active {
  background: var(--brand-600);
  color: #fff;
}

/* switch */

.switch {
  position: relative;
  width: 48px;
  height: 28px;
  flex: none;
}

.switch input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.switch__track {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-full);
  background: var(--text-faint);
  transition: background 0.2s var(--ease);
  pointer-events: none;
}

.switch__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  background: #fff;
  transition: transform 0.2s var(--ease);
  pointer-events: none;
}

.switch input:checked ~ .switch__track {
  background: var(--brand-500);
}

.switch input:checked ~ .switch__thumb {
  transform: translateX(20px);
}

/* radio row */

.choice {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-line);
  background: var(--glass-strong);
  color: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
}

.choice:hover {
  background: var(--card-hover);
}

.choice.is-selected {
  border-color: var(--brand-500);
  background: var(--tint);
}

.choice__radio {
  font-size: 21px;
  color: var(--text-faint);
}

.choice.is-selected .choice__radio {
  color: var(--brand-500);
}

/* --------------------------------------------------------------------------
   drop zone + media grid
   -------------------------------------------------------------------------- */

.dropzone {
  display: grid;
  place-items: center;
  gap: 6px;
  width: 100%;
  padding: 48px 20px;
  border-radius: var(--radius-xl);
  border: 2px dashed var(--tint-line);
  background: var(--glass-strong);
  color: var(--text);
  cursor: pointer;
  text-align: center;
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  backdrop-filter: blur(20px) saturate(1.3);
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease);
}

.dropzone:hover,
.dropzone.is-over {
  border-color: var(--brand-500);
  background: color-mix(in srgb, var(--brand-500) 14%, transparent);
}

.dropzone ion-icon {
  font-size: 40px;
  color: var(--brand-400);
}

.dropzone strong {
  font-size: 16px;
}

.dropzone span {
  color: var(--text-soft);
  font-size: 13.5px;
}

.progress {
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--line);
  overflow: hidden;
}

.progress__bar {
  height: 100%;
  width: 0;
  background: var(--brand-500);
  transition: width 0.2s linear;
}

.upload-toast {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 22px;
  background: var(--glass-strong);
  color: var(--text);
  border: 1px solid var(--glass-line);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.22),
    0 0 40px rgba(0, 168, 255, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  backdrop-filter: blur(24px) saturate(1.4);
  animation: mu-rise 0.4s var(--ease);
}

.upload-toast__row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.upload-toast__icon {
  position: relative;
  width: 46px;
  height: 52px;
  flex: none;
  border-radius: 10px;
  background: linear-gradient(180deg, #2a3140, #12151c);
  display: grid;
  place-items: center;
  color: var(--brand-300);
  box-shadow: 0 0 16px rgba(0, 168, 255, 0.28);
}

.upload-toast__icon ion-icon {
  font-size: 22px;
}

.upload-toast__icon span {
  position: absolute;
  left: 6px;
  bottom: 6px;
  padding: 1px 5px;
  border-radius: 4px;
  background: #000;
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.4px;
}

.upload-toast__meta {
  min-width: 0;
  flex: 1;
}

.upload-toast__name {
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.upload-toast__size {
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--text-faint);
}

.upload-toast__status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  color: var(--text-soft);
}

.upload-toast__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.upload-spin {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-top-color: var(--brand-400);
  animation: spin 0.7s linear infinite;
}

.upload-toast__pct {
  font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.upload-toast__track {
  height: 6px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.upload-toast__bar {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: #fff;
  box-shadow: 0 0 12px #fff, 0 0 22px var(--brand-500);
  transition: width 0.2s linear;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 148px), 1fr));
  gap: 14px;
}

.media-card {
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-lg);
  background: var(--glass-strong);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
}

.media-card__thumb {
  position: relative;
  aspect-ratio: 9 / 16;
  background: var(--tint);
  display: grid;
  place-items: center;
  color: var(--brand-400);
}

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

.media-card__thumb ion-icon {
  font-size: 38px;
}

.media-card__body {
  padding: 12px;
  display: grid;
  gap: 6px;
}

.media-card__title {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.media-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-soft);
}

.media-card__actions {
  display: flex;
  gap: 6px;
  padding: 0 12px 12px;
}

.media-card__actions .btn {
  flex: 1;
}

.media-new {
  display: grid;
  place-items: center;
  gap: 8px;
  aspect-ratio: 9 / 16;
  border: 2px dashed var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  color: var(--text-soft);
  cursor: pointer;
  font-size: 13.5px;
}

.media-new:hover {
  border-color: var(--brand-500);
  color: var(--text);
}

.media-new ion-icon {
  font-size: 30px;
}

/* --------------------------------------------------------------------------
   auth / landing — dark glass sheets over fluid orbs
   -------------------------------------------------------------------------- */

.auth-scene {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  color: #fff;
  background: #000;
}

.auth-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 12%, rgba(0, 168, 255, 0.38), transparent 42%),
    radial-gradient(circle at 88% 8%, rgba(0, 90, 180, 0.3), transparent 38%),
    radial-gradient(circle at 70% 92%, rgba(0, 168, 255, 0.24), transparent 40%),
    linear-gradient(165deg, #000 0%, #00111c 46%, #000 100%);
}

.auth-stage {
  position: absolute;
  inset: 0;
}

.auth-wave {
  position: absolute;
  border-radius: 50%;
  filter: blur(28px);
  opacity: 0.5;
  animation: wave-drift 18s ease-in-out infinite;
}

.auth-wave--1 {
  width: 420px;
  height: 420px;
  left: -80px;
  top: 4%;
  background: radial-gradient(circle, rgba(0, 168, 255, 0.55), transparent 68%);
}

.auth-wave--2 {
  width: 360px;
  height: 360px;
  right: -70px;
  top: 18%;
  background: radial-gradient(circle, rgba(0, 80, 160, 0.5), transparent 68%);
  animation-delay: -6s;
  animation-duration: 22s;
}

.auth-wave--3 {
  width: 480px;
  height: 480px;
  left: 18%;
  bottom: -140px;
  background: radial-gradient(circle, rgba(0, 168, 255, 0.32), transparent 68%);
  animation-delay: -11s;
}

.auth-orb {
  position: absolute;
  border-radius: 50%;
  aspect-ratio: 1;
  overflow: hidden;
  background: radial-gradient(circle at 32% 28%, #e8fbff 0%, #7ad4ff 18%, #00a8ff 42%, #004a86 70%, #000810 100%);
  box-shadow:
    inset -16px -22px 36px rgba(0, 0, 0, 0.55),
    inset 10px 12px 22px rgba(255, 255, 255, 0.28),
    0 24px 48px rgba(0, 0, 0, 0.5),
    0 0 36px rgba(0, 168, 255, 0.42);
  animation: orb-float-a 14s ease-in-out infinite;
  will-change: transform;
}

.auth-orb::after {
  content: '';
  position: absolute;
  left: 18%;
  top: 16%;
  width: 34%;
  height: 34%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.78), transparent 70%);
}

.auth-orb--1 {
  width: 88px;
  height: 88px;
  left: 12%;
  top: 18%;
}

.auth-orb--2 {
  width: 54px;
  height: 54px;
  right: 16%;
  top: 12%;
  animation-name: orb-float-b;
  animation-delay: -3s;
  animation-duration: 11s;
}

.auth-orb--3 {
  width: 120px;
  height: 120px;
  right: 8%;
  top: 38%;
  animation-name: orb-float-c;
  animation-delay: -7s;
  opacity: 0.9;
}

.auth-orb--4 {
  width: 42px;
  height: 42px;
  left: 28%;
  top: 42%;
  animation-name: orb-float-b;
  animation-delay: -5s;
  animation-duration: 16s;
}

.auth-orb--5 {
  width: 74px;
  height: 74px;
  left: 8%;
  bottom: 16%;
  animation-name: orb-float-c;
  animation-delay: -2s;
  animation-duration: 13s;
}

.auth-orb--6 {
  width: 34px;
  height: 34px;
  right: 30%;
  bottom: 26%;
  animation-name: orb-float-a;
  animation-delay: -9s;
  animation-duration: 9s;
}

.auth-orb--7 {
  width: 102px;
  height: 102px;
  left: 40%;
  top: 6%;
  animation-name: orb-float-b;
  animation-delay: -4s;
  opacity: 0.72;
}

.auth-orb--8 {
  width: 26px;
  height: 26px;
  right: 46%;
  top: 54%;
  animation-name: orb-float-c;
  animation-delay: -1s;
  animation-duration: 8s;
}

.auth-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
  animation: glow-breathe 10s ease-in-out infinite;
}

.auth-glow--a {
  width: 280px;
  height: 280px;
  right: -40px;
  bottom: 18%;
  background: rgba(0, 168, 255, 0.35);
}

.auth-glow--b {
  width: 220px;
  height: 220px;
  left: -60px;
  top: 30%;
  background: rgba(0, 90, 180, 0.28);
  animation-delay: -4s;
}

.auth-hero,
.auth-sheet,
.auth-splash-bar {
  position: relative;
  z-index: 1;
}

.auth-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  min-width: 0;
  padding: calc(28px + env(safe-area-inset-top, 0px)) 20px 18px;
  animation: mu-rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.auth-copy {
  display: grid;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
  padding: 18px 16px;
  border-radius: 24px;
  background: rgba(8, 12, 20, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 16px 40px rgba(0, 0, 0, 0.22);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  backdrop-filter: blur(22px) saturate(1.4);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-brand .brand__name {
  color: #fff;
}

.auth-brand .brand__tag {
  color: rgba(255, 255, 255, 0.55);
}

.auth-hero__title {
  font-size: clamp(26px, 7vw, 48px);
  font-weight: 800;
  letter-spacing: -1.2px;
  line-height: 1.1;
  max-width: 100%;
  overflow-wrap: anywhere;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.auth-hero__lede {
  max-width: none;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14.5px;
  line-height: 1.55;
}

.auth-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.auth-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 12px;
  font-weight: 600;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.auth-sheet {
  margin-top: auto;
  padding: 22px 20px calc(22px + env(safe-area-inset-bottom, 0px));
  border-radius: 36px 36px 0 0;
  background: rgba(8, 12, 20, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 0;
  box-shadow:
    0 -20px 60px rgba(0, 168, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(28px) saturate(1.4);
  backdrop-filter: blur(28px) saturate(1.4);
  max-height: 74svh;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
  animation: sheet-up 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.auth-form {
  display: grid;
  gap: 12px;
  max-width: 440px;
  margin: 0 auto;
  width: 100%;
  min-width: 0;
}

.auth-sheet__title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.8px;
  color: var(--brand-400);
}

.auth-sheet__copy {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14.5px;
  line-height: 1.5;
}

.auth-forgot {
  margin: -2px 0 2px;
  text-align: right;
}

.auth-forgot a {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-400);
}

.auth-sheet__foot {
  text-align: center;
  margin: 4px 0 0;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.7);
}

.auth-sheet__foot a {
  font-weight: 700;
}

.auth-scene .field__label {
  color: rgba(255, 255, 255, 0.72);
}

html[data-theme='dark'] .auth-scene .input,
html[data-theme='dark'] .auth-scene .combo__button,
html[data-theme='dark'] .auth-scene .select,
html[data-theme='dark'] .auth-scene .code-input,
.auth-scene .input,
.auth-scene .combo__button,
.auth-scene .select,
.auth-scene .code-input {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
}

.auth-scene .input::placeholder,
.auth-scene .code-input::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

.auth-scene .back-link {
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 2px;
}

.auth-remember,
.auth-agree {
  color: rgba(255, 255, 255, 0.78);
}

.auth-splash-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: auto;
  max-width: calc(100% - 32px);
  margin: 0 16px calc(18px + env(safe-area-inset-bottom, 0px));
  padding: 8px 8px 8px 18px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  backdrop-filter: blur(22px) saturate(1.4);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  animation: sheet-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

.auth-splash-bar__ghost {
  color: #fff;
  font-weight: 650;
  text-decoration: none;
}

.auth-splash-bar__ghost:hover {
  text-decoration: none;
  color: var(--brand-200);
}

.auth-splash-bar__cta {
  border-radius: var(--radius-full);
  padding: 12px 22px;
  min-width: 0;
  flex: none;
}

@media (min-width: 1024px) {
  .auth-scene {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px;
  }

  .auth-scene:not(.auth-scene--compact) > .auth-hero {
    display: none;
  }

  .auth-hero__title {
    font-size: 44px;
  }

  .auth-copy {
    padding: 22px 20px;
    max-width: 34rem;
  }

  .auth-sheet {
    align-self: center;
    margin: 0;
    width: min(460px, 100%);
    max-height: min(90vh, 820px);
    border-radius: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    padding: 32px 28px;
    animation: mu-rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
  }

  .auth-scene--splash .auth-splash-bar {
    align-self: center;
    flex-direction: column;
    width: min(420px, 100%);
    margin: 0;
    padding: 36px 28px;
    border-radius: 32px;
    min-height: 280px;
    justify-content: center;
  }

  .auth-splash-bar__cta {
    width: 100%;
  }
}

@media (max-width: 1023px) {
  .auth-hero {
    justify-content: flex-end;
    padding-bottom: 16px;
  }

  .auth-copy {
    padding: 14px 14px 16px;
    border-radius: 20px;
  }

  .auth-hero__lede {
    font-size: 13.5px;
  }

  .auth-chip {
    padding: 5px 9px;
    font-size: 11px;
  }

  .auth-scene--splash .auth-hero {
    justify-content: center;
    text-align: left;
  }
}

.auth-scene--compact {
  overflow: hidden;
}

.auth-scene--compact .auth-hero {
  display: none;
}

.auth-scene--compact .auth-sheet {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin: 0;
  max-height: none;
  min-height: 100svh;
  height: 100svh;
  border-radius: 0;
  border: 0;
  padding: calc(14px + env(safe-area-inset-top, 0px)) 22px calc(16px + env(safe-area-inset-bottom, 0px));
  overflow-x: hidden;
  overflow-y: auto;
  animation: mu-rise 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.auth-scene--compact .auth-form {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  max-width: 440px;
  width: 100%;
  margin-inline: auto;
}

.auth-scene--compact .auth-sheet__title {
  font-size: clamp(28px, 8vw, 36px);
  margin: 0 0 2px;
}

.auth-scene--compact .field {
  gap: 5px;
}

.auth-scene--compact .field-row {
  flex-wrap: nowrap;
}

@media (min-width: 1024px) {
  .auth-scene.auth-scene--compact {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
  }

  .auth-scene--compact .auth-sheet {
    flex: none;
    width: min(460px, 100%);
    min-height: 0;
    height: auto;
    max-height: min(92vh, 820px);
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    padding: 32px 28px;
  }
}

@media (max-height: 740px) {
  .auth-scene--compact .auth-form {
    gap: 8px;
    justify-content: flex-start;
  }

  .auth-scene--compact .auth-sheet__title {
    font-size: 26px;
  }

  .auth-scene--compact .input,
  .auth-scene--compact .combo__button {
    padding: 10px 12px;
  }
}

@keyframes orb-float-a {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(8px, -10px) scale(1.03);
  }
  66% {
    transform: translate(-6px, 6px) scale(0.98);
  }
}

@keyframes orb-float-b {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  40% {
    transform: translate(-8px, 7px) scale(1.02);
  }
  75% {
    transform: translate(5px, -6px) scale(0.98);
  }
}

@keyframes orb-float-c {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(6px, 8px) scale(1.03);
  }
}

@keyframes wave-drift {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(8px, 6px) scale(1.02);
  }
}

@keyframes sheet-up {
  from {
    opacity: 0;
    transform: translateY(42px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.demo-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 15px;
  border-radius: var(--radius-md);
  background: var(--warn-bg);
  border: 1px solid var(--warn-line);
  font-size: 13px;
  color: var(--text);
}

.demo-note strong {
  letter-spacing: 3px;
  font-size: 16px;
}

/* --------------------------------------------------------------------------
   about page
   -------------------------------------------------------------------------- */

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}

.feature {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-lg);
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
  min-width: 0;
}

.feature h3 {
  font-size: 15px;
  font-weight: 700;
}

.feature p {
  margin-top: 4px;
  color: var(--text-soft);
  font-size: 13.5px;
}

.about-hero {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 36px 24px;
  text-align: center;
}

.about-hero h2 {
  font-size: 21px;
  font-weight: 800;
}

.about-hero p {
  color: var(--text-soft);
  max-width: 46ch;
}

.version-chip {
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--page);
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--text-soft);
}

.foot-note {
  text-align: center;
  color: var(--text-faint);
  font-size: 12.5px;
}

/* --------------------------------------------------------------------------
   avatar
   -------------------------------------------------------------------------- */

.avatar {
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: var(--radius-full);
  object-fit: cover;
  background: var(--brand-600);
  color: #fff;
  display: grid;
  place-items: center;
}

.avatar--lg {
  width: 68px;
  height: 68px;
}

.avatar--xl {
  width: 104px;
  height: 104px;
}

.avatar--xl ion-icon {
  font-size: 44px;
}

.avatar-edit {
  position: relative;
  display: inline-grid;
  cursor: pointer;
}

.avatar-edit__badge {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--brand-600);
  color: #fff;
  border: 3px solid var(--page);
  display: grid;
  place-items: center;
}

/* --------------------------------------------------------------------------
   toasts + modal
   -------------------------------------------------------------------------- */

.toasts {
  position: fixed;
  z-index: 90;
  left: 50%;
  transform: translateX(-50%);
  top: 18px;
  display: grid;
  gap: 10px;
  width: min(420px, calc(100vw - 32px));
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 15px;
  border-radius: var(--radius-md);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-size: 14px;
  animation: toast-in 0.2s var(--ease);
}

.toast--success ion-icon {
  color: #22c55e;
}

.toast--error ion-icon {
  color: #f87171;
}

.toast--info ion-icon {
  color: var(--brand-400);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(3px);
  animation: fade-in 0.15s var(--ease);
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}

.modal {
  width: min(420px, 100%);
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid var(--line);
  padding: 22px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
}

.modal h2 {
  font-size: 17px;
  font-weight: 700;
}

.modal p {
  color: var(--text-soft);
  font-size: 14px;
}

.modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 6px;
}

/* --------------------------------------------------------------------------
   lock screen
   -------------------------------------------------------------------------- */

.lock {
  min-height: 100dvh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 20px;
  padding: 24px;
  text-align: center;
  width: 100%;
  overflow-x: clip;
}

.keypad {
  display: grid;
  grid-template-columns: repeat(3, 76px);
  gap: 14px;
}

.keypad button {
  height: 68px;
  border-radius: var(--radius-full);
  border: 1px solid var(--line);
  background: var(--card);
  font-size: 22px;
  font-weight: 600;
  cursor: pointer;
}

.keypad button:hover {
  background: var(--card-hover);
}

.keypad button.is-blank {
  border-color: transparent;
  background: none;
  cursor: default;
}

.dots {
  display: flex;
  gap: 14px;
}

.dots span {
  width: 15px;
  height: 15px;
  border-radius: var(--radius-full);
  border: 2px solid var(--text-faint);
}

.dots span.is-on {
  background: var(--brand-500);
  border-color: var(--brand-500);
}

.shake {
  animation: shake 0.35s var(--ease);
}

@keyframes shake {
  25% {
    transform: translateX(-8px);
  }
  50% {
    transform: translateX(8px);
  }
  75% {
    transform: translateX(-4px);
  }
}

/* --------------------------------------------------------------------------
   utilities
   -------------------------------------------------------------------------- */

.muted {
  color: var(--text-soft);
}

.faint {
  color: var(--text-faint);
}

.text-sm {
  font-size: 13.5px;
}

.text-xs {
  font-size: 12.5px;
}

.truncate {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.danger-text {
  color: #f87171;
}

.skeleton {
  border-radius: var(--radius-md);
  background: var(--skeleton);
  animation: pulse 1.4s ease-in-out infinite;
}

/* --------------------------------------------------------------------------
   connect cards + small-phone layout
   -------------------------------------------------------------------------- */

.connect-banner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.portal-card .row-card__sub {
  margin: 6px 0 12px;
}

.portal-urls {
  display: grid;
  gap: 10px;
  margin: 0;
}

.portal-urls div {
  display: grid;
  gap: 4px;
}

.portal-urls dt {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.75;
}

.portal-urls dd {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.portal-urls code {
  flex: 1;
  min-width: 0;
  word-break: break-all;
  user-select: all;
  font-size: 12px;
}

.connect-card__row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.connect-card__copy {
  flex: 1;
  min-width: 0;
}

.connect-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  flex: none;
}

.hero-cta__copy,
.hero-cta p,
.row-card__sub {
  overflow-wrap: anywhere;
}

img,
video,
iframe {
  max-width: 100%;
}

@media (max-width: 720px) {
  .page-head h1,
  .auth-sheet__title {
    font-size: 28px;
    letter-spacing: -0.6px;
  }

  .auth-scene--compact .auth-sheet__title {
    font-size: clamp(26px, 8vw, 32px);
  }

  .hero-cta {
    padding: 14px;
    gap: 10px;
  }

  .hero-cta__icon {
    width: 44px;
    height: 44px;
  }

  .hero-cta__title {
    font-size: 16px;
  }

  .hero-cta p {
    font-size: 12.5px;
  }

  .connect-card__row,
  .connect-banner,
  .card.card--tint {
    flex-wrap: wrap;
  }

  .connect-card__actions {
    width: 100%;
  }

  .connect-card__actions .btn {
    flex: 1;
  }

  .topbar {
    padding-left: max(20px, env(safe-area-inset-left, 0px));
    padding-right: max(20px, env(safe-area-inset-right, 0px));
  }

  .week {
    gap: 2px;
    padding: 12px 6px;
  }

  .week__day {
    font-size: 11px;
  }

  .field-row {
    flex-wrap: wrap;
  }

  .combo {
    max-width: 100%;
  }
}

@media (min-width: 900px) {
  .stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Public legal pages (privacy / terms / data deletion). Served as real HTML
   so Meta, Google, TikTok, and Play Store crawlers can read them. */
.legal-page {
  margin: 0;
  min-height: 100dvh;
  background: var(--page);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
}

.legal-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--page) 92%, transparent);
  backdrop-filter: blur(12px);
}

.legal-back {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  background: var(--card);
  box-shadow: 0 0 0 0 transparent;
  transition: box-shadow 0.25s var(--ease), transform 0.15s var(--ease);
}

.legal-back:hover {
  text-decoration: none;
  box-shadow: 0 0 18px rgba(0, 168, 255, 0.35);
}

.legal-brand {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.legal-brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
}

.legal-nav {
  justify-self: end;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.legal-nav a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.legal-nav a[aria-current='page'],
.legal-nav a:hover {
  color: var(--brand-500);
}

@media (max-width: 720px) {
  .legal-bar {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .legal-back,
  .legal-brand,
  .legal-nav {
    justify-self: start;
  }
}

.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 20px 64px;
  line-height: 1.65;
}

.legal h1 {
  margin: 0 0 8px;
  font-size: 32px;
  letter-spacing: -0.6px;
}

.legal h2 {
  margin: 28px 0 8px;
  font-size: 18px;
}

.legal p,
.legal li {
  color: var(--text-soft);
}

.legal ul,
.legal ol {
  padding-left: 1.2em;
}

.legal a {
  color: var(--brand-400);
}

.legal__meta {
  color: var(--text-faint);
  font-size: 13px;
  margin-bottom: 20px;
}

.legal-foot {
  border-top: 1px solid var(--line);
  padding: 20px;
  text-align: center;
  color: var(--text-faint);
  font-size: 13px;
}

.legal-foot a {
  color: var(--text-soft);
  text-decoration: none;
}

/* Public product homepage (TikTok / Google website URL) */
.site-page {
  position: relative;
  isolation: isolate;
  margin: 0;
  min-height: 100dvh;
  overflow-x: hidden;
  color: #fff;
  font-family: Inter, system-ui, sans-serif;
  background: #000;
}

.site-page--app {
  min-height: 100svh;
}

.site-page > .auth-art {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.site-bar,
.site-main,
.site-foot {
  position: relative;
  z-index: 1;
}

.site-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  padding: 14px 18px;
  padding-top: calc(14px + env(safe-area-inset-top, 0px));
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(8, 12, 20, 0.42);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  backdrop-filter: blur(22px) saturate(1.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.site-brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
}

.site-legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  margin-right: auto;
}

.site-legal-nav a,
.auth-legal a,
.site-foot a,
.site-bar__text {
  color: #d7ecff;
  font-size: 14px;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-legal-nav a:hover,
.auth-legal a:hover,
.site-foot a:hover,
.site-bar__text:hover {
  color: #fff;
}

.site-bar__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

.site-main {
  max-width: 960px;
  margin: 0 auto;
  padding: 28px 20px 72px;
}

.site-hero h1,
.site-section h2 {
  letter-spacing: -0.8px;
  line-height: 1.15;
}

.site-hero {
  padding: 18px 16px 20px;
  border-radius: 24px;
  background: rgba(8, 12, 20, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 16px 40px rgba(0, 0, 0, 0.22);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  backdrop-filter: blur(22px) saturate(1.4);
}

.site-hero h1 {
  font-size: clamp(28px, 6vw, 46px);
  margin: 8px 0 12px;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.site-kicker {
  margin: 0;
  color: #5ec8ff;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.site-lede,
.site-section__lede,
.site-card p,
.site-features p,
.site-steps {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
}

.site-hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
}

.site-section {
  margin-top: 48px;
}

.site-section h2 {
  font-size: 22px;
  margin: 0 0 8px;
}

.site-platforms,
.site-features {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.site-card,
.site-features article {
  padding: 16px;
  border-radius: 18px;
  background: rgba(8, 12, 20, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  backdrop-filter: blur(22px) saturate(1.4);
}

.site-card ion-icon {
  font-size: 28px;
  width: 1em;
  height: 1em;
}

.site-card h3,
.site-features h3 {
  margin: 8px 0 6px;
  font-size: 16px;
}

.site-steps {
  margin: 12px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
}

.site-foot {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding: 20px 18px calc(24px + env(safe-area-inset-bottom, 0px));
  text-align: center;
  background: rgba(8, 12, 20, 0.42);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  backdrop-filter: blur(22px) saturate(1.4);
}

.site-foot nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 22px;
  margin-bottom: 10px;
}

.site-foot p {
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
}

.auth-legal {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 22px;
  padding: 12px 16px calc(16px + env(safe-area-inset-bottom, 0px));
}

.auth-scene--compact .auth-legal,
.auth-sheet .auth-legal {
  padding: 16px 0 4px;
}

@media (min-width: 720px) {
  .site-platforms,
  .site-features {
    grid-template-columns: 1fr 1fr;
  }
}

/* Socialync-style composer + branded connect tiles */
.dropzone--lg {
  min-height: 220px;
  padding: 56px 20px;
}

.textarea--lg {
  min-height: 140px;
}

.composer-preview {
  overflow: hidden;
  padding: 0;
}

.composer-preview__video {
  display: block;
  width: 100%;
  max-height: 320px;
  background: #000;
  object-fit: contain;
}

.composer-preview__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px 16px;
}

.target-list {
  display: grid;
  gap: 10px;
}

.target-card {
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-lg);
  background: var(--card);
  overflow: hidden;
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
}

.target-card.is-on {
  border-color: var(--tint-line);
}

.target-card.is-locked {
  opacity: 0.72;
}

.target-card__main {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px;
  background: transparent;
  border: 0;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.target-card__logo {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: #fff;
  flex: none;
}

.target-card__logo ion-icon {
  font-size: 22px;
}

.target-card__copy {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 2px;
}

.switch {
  width: 46px;
  height: 28px;
  border-radius: 999px;
  background: var(--line);
  padding: 3px;
  flex: none;
}

.switch span {
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  transform: translateX(0);
  transition: transform 0.15s var(--ease);
}

.switch.is-on {
  background: var(--brand-500);
}

.switch.is-on span {
  transform: translateX(18px);
}

.target-card__customize {
  display: block;
  width: 100%;
  padding: 0 14px 12px;
  background: none;
  border: 0;
  color: var(--brand-400);
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.target-card textarea {
  margin: 0 14px 14px;
  width: calc(100% - 28px);
}

.platform-drop__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 4px 14px 12px;
  background: none;
  border: 0;
  color: var(--text-soft);
  font-size: 13.5px;
  font-weight: 650;
  cursor: pointer;
}

.platform-drop__toggle ion-icon {
  font-size: 16px;
  color: var(--brand-400);
}

.platform-drop__body {
  display: grid;
  gap: 12px;
  padding: 0 14px 14px;
  animation: mu-rise 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.platform-drop__body .target-card__customize {
  padding: 0;
}

.platform-drop__body textarea {
  margin: 0;
  width: 100%;
}

.platform-drop__hint {
  margin: 0 14px 12px;
}

.tiktok-panel--nested {
  padding: 0;
  display: grid;
  gap: 14px;
}

.connect-grid {
  display: grid;
  gap: 12px;
}

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

.connect-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  transition: box-shadow 0.25s var(--ease), transform 0.15s var(--ease);
}

.connect-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 28px rgba(0, 168, 255, 0.18);
}

.connect-card__brand {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  color: #fff;
}

.connect-card__brand ion-icon {
  font-size: 26px;
}

.channel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
  max-width: 100%;
}

.channel-tile {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-lg);
  background: var(--card);
  color: inherit;
  text-decoration: none;
  min-width: 0;
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  backdrop-filter: blur(20px) saturate(1.3);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}

.channel-tile:hover {
  transform: translateY(-3px);
  text-decoration: none;
  border-color: var(--tint-line);
}

.channel-tile__logo {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  color: #fff;
}

.channel-tile__name {
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
  line-height: 1.25;
}

.channel-tile__state {
  font-size: 12px;
  color: var(--text-soft);
}

.composer-actions {
  position: static;
  margin-top: 4px;
  padding: 14px;
  border-radius: 20px;
  background: var(--glass-strong);
  border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
  backdrop-filter: blur(22px) saturate(1.35);
}

.tiktok-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.tiktok-panel--nested {
  padding: 0;
}

.tiktok-panel__who {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tiktok-panel__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: #111;
  flex: none;
}

.tiktok-panel__avatar--fallback {
  display: grid;
  place-items: center;
  color: #fff;
}

.tiktok-panel__avatar--fallback ion-icon {
  font-size: 20px;
}

.tiktok-panel__note {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--text-faint);
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--text-soft);
}

.check-row input {
  margin-top: 3px;
  accent-color: var(--brand-500);
  flex: none;
}

.check-row.is-off {
  opacity: 0.45;
}

.check-row a {
  color: var(--brand-400);
}

.check-row--consent {
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--page-alt);
}

@keyframes page-enter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.page-enter {
  animation: page-enter 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.auth-hero,
.auth-sheet,
.auth-splash-bar {
  animation: mu-rise 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.auth-sheet {
  animation-name: sheet-up;
}

@keyframes mu-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.home-stage > *,
.about-stage > *,
.profile-stage > *,
.composer > * {
  animation: mu-rise 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@media (max-width: 1023px) {
  .home-stage > * {
    animation-name: mu-fade;
  }
}

.home-stage > *:nth-child(1),
.about-stage > *:nth-child(1),
.profile-stage > *:nth-child(1),
.composer > *:nth-child(1) {
  animation-delay: 0.04s;
}

.home-stage > *:nth-child(2),
.about-stage > *:nth-child(2),
.profile-stage > *:nth-child(2),
.composer > *:nth-child(2) {
  animation-delay: 0.1s;
}

.home-stage > *:nth-child(3),
.about-stage > *:nth-child(3),
.profile-stage > *:nth-child(3),
.composer > *:nth-child(3) {
  animation-delay: 0.16s;
}

.home-stage > *:nth-child(4),
.about-stage > *:nth-child(4),
.profile-stage > *:nth-child(4),
.composer > *:nth-child(4) {
  animation-delay: 0.22s;
}

.home-stage > *:nth-child(5),
.about-stage > *:nth-child(5),
.profile-stage > *:nth-child(5),
.composer > *:nth-child(5) {
  animation-delay: 0.28s;
}

.home-stage > *:nth-child(6),
.about-stage > *:nth-child(6),
.profile-stage > *:nth-child(6),
.composer > *:nth-child(6) {
  animation-delay: 0.34s;
}

.home-stage > *:nth-child(7),
.about-stage > *:nth-child(7),
.profile-stage > *:nth-child(7),
.composer > *:nth-child(7) {
  animation-delay: 0.4s;
}

@keyframes glow-breathe {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.85;
  }
  50% {
    transform: scale(1.22);
    opacity: 1;
  }
}

html.mu-boot-lock,
html.mu-boot-lock body {
  overflow: hidden;
}

.mu-boot {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: #000;
  overflow: hidden;
}

.mu-boot[hidden] {
  display: none !important;
}

.mu-boot .auth-art {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.mu-boot__hud {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  min-width: min(92vw, 420px);
  padding: 56px 32px 36px;
  border-radius: 28px;
  background: rgba(8, 12, 20, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 24px 60px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(28px) saturate(1.4);
}

.mu-boot__ring {
  position: absolute;
  left: 50%;
  top: 38px;
  width: 168px;
  height: 168px;
  margin: 0 0 0 -84px;
  border-radius: 50%;
  border: 1px solid rgba(0, 168, 255, 0.32);
  animation: mu-spin 4.2s linear infinite;
  pointer-events: none;
}

.mu-boot__ring::after {
  content: '';
  position: absolute;
  top: -5px;
  left: calc(50% - 5px);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #7ad4ff;
  box-shadow: 0 0 16px #00a8ff;
}

.mu-boot__ring--slow {
  width: 112px;
  height: 112px;
  margin: 28px 0 0 -56px;
  animation-duration: 2.8s;
  animation-direction: reverse;
  border-color: rgba(122, 212, 255, 0.4);
}

.mu-boot__copy {
  position: relative;
  z-index: 1;
  margin: 148px 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55em;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: #fff;
}

.mu-boot__word {
  animation: mu-word 1.6s ease-in-out infinite;
}

.mu-boot__word:nth-child(2) {
  color: #7ad4ff;
  animation-delay: 0.15s;
  letter-spacing: 0.32em;
  text-transform: lowercase;
}

.mu-boot__word--pulse {
  display: block;
  width: 100%;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.48em;
  text-transform: lowercase;
  color: rgba(255, 255, 255, 0.78);
  animation: mu-load 1.2s ease-in-out infinite;
  text-align: center;
}

@keyframes mu-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes mu-word {
  0%,
  100% {
    opacity: 0.55;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

@keyframes mu-load {
  0%,
  100% {
    opacity: 0.3;
    letter-spacing: 0.4em;
  }
  50% {
    opacity: 1;
    letter-spacing: 0.55em;
  }
}

.mu-player {
  position: relative;
  overflow: hidden;
  width: 100%;
  border-radius: 20px;
  background: #05070c;
  aspect-ratio: 16 / 9;
  max-height: min(70vh, 640px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.08);
  outline: none;
  user-select: none;
  cursor: pointer;
}

.mu-player--compact {
  max-height: 340px;
}

.mu-player:fullscreen {
  aspect-ratio: auto;
  max-height: none;
  width: 100%;
  height: 100%;
  border-radius: 0;
  box-shadow: none;
}

.mu-player__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.mu-player__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px 16px 12px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.58) 0%, rgba(0, 0, 0, 0.08) 28%, rgba(0, 0, 0, 0.08) 58%, rgba(0, 0, 0, 0.78) 100%);
  opacity: 1;
  transition: opacity 0.22s ease;
}

.mu-player__overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.mu-player__top {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.mu-player__icon,
.mu-player__play,
.mu-player__skip {
  border: 0;
  color: #fff;
  cursor: pointer;
}

.mu-player__icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(8, 12, 20, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  transition: transform 0.15s var(--ease), background 0.15s ease;
}

.mu-player__icon:hover {
  background: rgba(0, 168, 255, 0.28);
  transform: translateY(-1px);
}

.mu-player__icon ion-icon {
  font-size: 18px;
}

.mu-player__center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
}

.mu-player__play {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #00a8ff;
  color: #041018;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 32px rgba(0, 168, 255, 0.42);
  transition: transform 0.15s var(--ease), box-shadow 0.15s ease;
}

.mu-player__play:hover {
  transform: scale(1.05);
  box-shadow: 0 16px 40px rgba(0, 168, 255, 0.55);
}

.mu-player__play ion-icon {
  font-size: 32px;
}

.mu-player__play ion-icon[name='play'] {
  margin-left: 2px;
}

.mu-player__skip {
  min-width: 52px;
  height: 52px;
  padding: 0 8px;
  border-radius: 16px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  background: rgba(8, 12, 20, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.mu-player__skip:hover {
  background: rgba(255, 255, 255, 0.12);
}

.mu-player__skip ion-icon {
  font-size: 20px;
}

.mu-player__dock {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(6, 10, 18, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
}

.mu-player__time {
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  min-width: 40px;
}

.mu-player__track {
  position: relative;
  flex: 1;
  height: 22px;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.mu-player__track::before,
.mu-player__buf,
.mu-player__played {
  position: absolute;
  left: 0;
  height: 5px;
  border-radius: 99px;
}

.mu-player__track::before {
  content: '';
  width: 100%;
  background: rgba(255, 255, 255, 0.22);
}

.mu-player__buf {
  width: 0;
  background: rgba(255, 255, 255, 0.38);
}

.mu-player__played {
  width: 0;
  background: linear-gradient(90deg, #3dc4ff, #00a8ff);
  box-shadow: 0 0 12px rgba(0, 168, 255, 0.55);
}

.mu-player__knob {
  position: absolute;
  top: 50%;
  left: 0;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0, 168, 255, 0.28);
  transform: translateY(-50%) scale(0.85);
  transition: transform 0.15s ease;
  pointer-events: none;
}

.mu-player.is-controls .mu-player__knob,
.mu-player.is-seeking .mu-player__knob,
.mu-player__track:hover .mu-player__knob {
  transform: translateY(-50%) scale(1);
}

.composer-preview .mu-player {
  border-radius: 0;
  max-height: 360px;
  box-shadow: none;
}

.modal-backdrop--cinema {
  padding: 24px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
}

.player-lite {
  width: min(960px, 100%);
  overflow: hidden;
  border-radius: 22px;
  background: #05070c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

.player-lite__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 10px;
}

.player-lite__bar h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 650;
  color: #fff;
}

.player-lite .mu-player {
  border-radius: 0;
  max-height: min(72vh, 680px);
  box-shadow: none;
}

.upload-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  overflow: auto;
  background: #000;
}

.upload-stage {
  min-height: 100svh;
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 24px 20px 48px;
  max-width: 760px;
  margin: 0 auto;
  color: #fff;
  background: radial-gradient(circle at 50% -10%, rgba(0, 168, 255, 0.16), transparent 42%), #000;
}

.upload-stage h1 {
  font-size: 28px;
  letter-spacing: -0.03em;
}

.upload-stage .mu-player {
  max-height: 420px;
}

.upload-still {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  border-radius: 20px;
  background: #05070c;
  aspect-ratio: 16 / 9;
  max-height: 240px;
  pointer-events: none;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.upload-still video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.upload-ring {
  --p: 0;
  position: relative;
  width: 220px;
  height: 220px;
  margin: 8px auto 0;
}

.upload-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.upload-ring__track,
.upload-ring__value {
  fill: none;
  stroke-width: 8;
}

.upload-ring__track {
  stroke: rgba(255, 255, 255, 0.12);
}

.upload-ring__value {
  stroke: #00a8ff;
  stroke-linecap: round;
  stroke-dasharray: 326.726;
  stroke-dashoffset: 326.726;
  filter: drop-shadow(0 0 10px rgba(0, 168, 255, 0.45));
  transition: stroke-dashoffset 0.28s ease, stroke 0.2s ease;
}

.upload-ring.is-done .upload-ring__value {
  stroke: #22c55e;
  filter: drop-shadow(0 0 10px rgba(34, 197, 94, 0.45));
}

.upload-ring.is-error .upload-ring__value {
  stroke: #f87171;
  filter: drop-shadow(0 0 10px rgba(248, 113, 113, 0.4));
}

.upload-ring__hud {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 4px;
  text-align: center;
  pointer-events: none;
}

.upload-ring__hud strong {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.upload-ring__hud span {
  max-width: 140px;
  color: var(--text-soft, #9ca3af);
  font-size: 12px;
  font-weight: 600;
}

.upload-stage #upload-file {
  text-align: center;
}

.upload-panel {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 18px;
  background: rgba(8, 12, 20, 0.55);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.upload-panel__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
}

.upload-panel__track {
  margin-top: 12px;
  height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.upload-panel__bar {
  height: 100%;
  width: 0;
  background: #00a8ff;
  transition: width 0.2s ease;
}

.upload-stage__actions {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.modal--player {
  width: min(420px, 100%);
  padding: 16px;
}

@media (prefers-reduced-motion: reduce) {
  .page-enter,
  .auth-hero,
  .auth-sheet,
  .auth-splash-bar,
  .auth-orb,
  .auth-wave,
  .auth-glow,
  .mu-boot__orb,
  .mu-boot__ring,
  .mu-boot__word,
  .home-stage > *,
  .about-stage > *,
  .profile-stage > *,
  .composer > *,
  .platform-drop__body,
  .upload-toast {
    animation: none !important;
  }

  .btn,
  .connect-card,
  .hero-cta,
  .legal-back,
  .nav-link,
  .channel-tile {
    transition: none;
  }
}
