:root {
  --bg: #050608;
  --bg-2: #080b0f;
  --panel: #0d1117;
  --panel-2: #111720;
  --panel-3: #151c26;
  --text: #f2f4f7;
  --muted: #939baa;
  --muted-2: #657081;
  --line: #25303d;
  --line-soft: rgba(151, 165, 183, .18);
  --storm: #aeb8c7;
  --storm-bright: #d8dee7;
  --storm-dark: #667386;
  --steel: #8d98a9;
  --success: #b8c3d2;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 10%, rgba(145, 160, 180, .08), transparent 28%),
    linear-gradient(180deg, #050608 0%, #07090d 45%, #050608 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

button, input, a { font: inherit; }
button { color: inherit; }

.page-shell {
  min-height: 100vh;
  position: relative;
}

.topbar {
  width: min(1320px, calc(100% - 72px));
  min-height: 66px;
  margin: 10px auto 0;
  padding: 0 10px 0 18px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border: 1px solid rgba(159, 171, 188, .16);
  border-radius: 21px;
  background:
    linear-gradient(180deg, rgba(18, 23, 30, .83), rgba(10, 13, 18, .86));
  box-shadow:
    0 12px 40px rgba(0, 0, 0, .28),
    inset 0 1px 0 rgba(255,255,255,.025);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 10px;
  z-index: 50;
}

.brand {
  border: 0;
  background: transparent;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 15px;
  cursor: pointer;
  width: fit-content;
}

.brand-x {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: #dce2eb;
  font-size: 34px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -.08em;
  transform: skewX(-10deg);
  text-shadow: 0 0 20px rgba(186, 198, 214, .18);
}

.brand-name {
  font-size: 18px;
  font-weight: 850;
  letter-spacing: .08em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-link {
  position: relative;
  padding: 22px 0 19px;
  border: 0;
  background: transparent;
  color: #a5acb7;
  cursor: pointer;
  font-size: 14px;
  transition: .2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 12px;
  width: 0;
  height: 2px;
  transform: translateX(-50%);
  border-radius: 99px;
  background: linear-gradient(90deg, transparent, var(--storm-bright), transparent);
  box-shadow: 0 0 10px rgba(190, 201, 216, .55);
  transition: .2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #f3f5f7;
}

.nav-link.active::after {
  width: 78%;
}

.account-area {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

.login-btn,
.logout-btn {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(170, 184, 204, .25);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(30, 36, 46, .72), rgba(12, 16, 22, .9));
  color: #e9edf3;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.04),
    0 6px 18px rgba(0,0,0,.22);
}

.user-icon {
  font-size: 20px;
  color: #bfc8d5;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 260px;
}

.user-chip img,
.user-avatar-fallback {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(177, 191, 210, .28);
  background: #111720;
  display: grid;
  place-items: center;
}

.user-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.user-text strong,
.user-text small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-text strong {
  font-size: 12px;
  letter-spacing: .03em;
}

.user-text small {
  color: var(--muted);
  font-size: 10px;
}

main {
  width: min(1320px, calc(100% - 72px));
  margin: 0 auto;
}

.page {
  display: none;
  min-height: calc(100vh - 126px);
  padding: 64px 0 46px;
}

.page.active { display: block; }

.hero-wrap {
  position: relative;
}

.hero-glow {
  position: absolute;
  left: 50%;
  top: 95px;
  width: 1000px;
  height: 380px;
  transform: translateX(-50%);
  border-radius: 50%;
  background:
    radial-gradient(ellipse at center, rgba(136, 152, 173, .13), rgba(136,152,173,.02) 47%, transparent 68%);
  filter: blur(4px);
  pointer-events: none;
}

.hero {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 10px 0 52px;
}

.pill {
  width: fit-content;
  margin: 0 auto 23px;
  min-height: 36px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid rgba(161, 175, 194, .27);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(21, 27, 35, .82), rgba(10, 14, 20, .82));
  color: #b4bdca;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .17em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}

.pill-dot,
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c6d2e2;
  box-shadow:
    0 0 10px rgba(198, 210, 226, .8),
    0 0 22px rgba(136, 153, 177, .5);
}

.pill-sep {
  color: #697487;
}

.hero h1 {
  margin: 0;
  font-size: clamp(48px, 5.4vw, 78px);
  line-height: .95;
  letter-spacing: -.055em;
  font-weight: 950;
  background: linear-gradient(180deg, #ffffff 0%, #e5e9ef 43%, #8995a8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 10px 38px rgba(150, 165, 187, .08);
}

.hero p {
  margin: 22px auto 0;
  color: #aeb5c0;
  font-size: 16px;
  line-height: 1.6;
}

.side-copy {
  position: absolute;
  top: 78px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #616d7d;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .34em;
}

.side-copy i {
  width: 38px;
  height: 1px;
  margin-top: 6px;
  background: #788494;
}

.left-side { left: 2px; }
.right-side { right: 2px; align-items: flex-start; }

.engine-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin: 0 4px 28px;
  position: relative;
  z-index: 2;
}

.mini-kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #818c9c;
  font-size: 10px;
  letter-spacing: .31em;
  font-weight: 800;
  margin-bottom: 12px;
}

.kicker-line {
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, #ccd4df, #5c6878);
  box-shadow: 0 0 9px rgba(190, 202, 218, .35);
}

.engine-heading h2 {
  margin: 0;
  font-size: clamp(25px, 3vw, 38px);
  letter-spacing: .08em;
  line-height: 1;
  font-weight: 900;
  color: #e8ebf0;
}

.engine-tagline {
  margin-bottom: 2px;
  color: #626e80;
  font-size: 9px;
  letter-spacing: .33em;
  font-weight: 800;
}

.optimizer-card {
  position: relative;
  z-index: 2;
  padding: 22px 26px 26px;
  border: 1px solid rgba(156, 170, 189, .22);
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 38%, rgba(99, 114, 135, .08), transparent 36%),
    linear-gradient(180deg, rgba(15,20,27,.96), rgba(9,12,17,.97));
  box-shadow:
    0 26px 90px rgba(0,0,0,.34),
    inset 0 1px 0 rgba(255,255,255,.025);
}

.card-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  min-height: 38px;
  margin-bottom: 14px;
}

.engine-name {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #c4cbd5;
  font-size: 11px;
  letter-spacing: .17em;
}

.version {
  border: 1px solid rgba(148, 162, 181, .25);
  border-radius: 999px;
  padding: 4px 9px;
  color: #778395;
  font-size: 9px;
}

.process-map {
  color: #6c7788;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .28em;
}

.drop-zone {
  width: 100%;
  min-height: 310px;
  border: 1px dashed rgba(130, 145, 165, .38);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 45%, rgba(134, 149, 169, .06), transparent 35%),
    linear-gradient(180deg, rgba(14,19,26,.88), rgba(9,13,18,.93));
  color: var(--text);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: .22s ease;
  overflow: hidden;
}

.drop-zone:hover,
.drop-zone.dragging {
  border-color: rgba(196, 207, 221, .68);
  box-shadow:
    inset 0 0 40px rgba(135, 151, 173, .035),
    0 0 24px rgba(125, 142, 165, .05);
}

.upload-icon {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 17px;
  border: 1px solid rgba(165, 179, 198, .28);
  background:
    linear-gradient(145deg, rgba(88,101,119,.32), rgba(22,29,39,.45));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 10px 28px rgba(0,0,0,.2);
}

.upload-icon span {
  font-size: 30px;
  line-height: 1;
  color: #c5cedb;
  transform: translateY(-1px);
}

.drop-zone strong {
  font-size: 21px;
  font-weight: 760;
}

.drop-zone > span {
  margin-top: 7px;
  color: #8d97a6;
  font-size: 14px;
}

.inside-divider {
  width: min(340px, 62%);
  height: 1px;
  margin: 20px 0 16px;
  background: linear-gradient(90deg, transparent, rgba(152, 167, 187, .31), transparent);
}

.drop-zone small {
  color: #8c96a5;
  font-size: 12px;
}

.drop-zone small b {
  color: #d3d8e0;
  font-weight: 800;
}

.action-area {
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.primary-btn,
.download-btn {
  width: min(370px, 100%);
  min-height: 58px;
  border-radius: 15px;
  border: 1px solid rgba(225, 231, 239, .55);
  background:
    linear-gradient(180deg, #d7dde6 0%, #aab5c4 48%, #7d899c 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.7),
    0 11px 28px rgba(74, 87, 105, .18),
    0 0 0 1px rgba(105,119,139,.15);
  color: #0a0d12;
  text-decoration: none;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .05em;
  display: grid;
  grid-template-columns: 32px 1fr 32px;
  align-items: center;
  padding: 0 18px;
  cursor: pointer;
  transition: .2s ease;
}

.primary-btn:hover,
.download-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.primary-btn:disabled {
  opacity: .46;
  cursor: not-allowed;
  transform: none;
  filter: none;
}

.bolt,
.arrow {
  font-size: 24px;
  line-height: 1;
}

.download-btn {
  margin-top: 13px;
  background: linear-gradient(180deg, #cfd6df, #909dae);
}

.download-note {
  margin: 18px 0 0;
  color: #768193;
  font-size: 11px;
}

.download-note span {
  color: #9eabba;
  margin-right: 10px;
}

.status {
  width: min(520px, 100%);
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(143, 158, 178, .2);
  border-radius: 12px;
  background: rgba(12,16,22,.75);
  color: #aeb8c7;
  text-align: center;
  font-size: 12px;
}

.hidden { display: none !important; }

.inner-page {
  max-width: 1120px;
  margin: 0 auto;
}

.section-head {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 38px;
}

.section-head h2 {
  margin: 0 0 15px;
  font-size: clamp(34px, 4vw, 56px);
  letter-spacing: -.035em;
  background: linear-gradient(180deg, #f7f8fa, #9ba7b7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.video-shell {
  padding: 12px;
  border: 1px solid rgba(154, 169, 189, .23);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(17,23,31,.92), rgba(9,13,18,.96));
  box-shadow: 0 24px 70px rgba(0,0,0,.26);
}

.video-shell video {
  width: 100%;
  aspect-ratio: 16/9;
  display: block;
  border-radius: 13px;
  background: #000;
}

.steps {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.step {
  min-height: 130px;
  padding: 20px;
  display: flex;
  gap: 16px;
  border: 1px solid rgba(145, 159, 179, .19);
  border-radius: 17px;
  background: linear-gradient(180deg, rgba(16,21,29,.92), rgba(10,14,19,.96));
}

.step-no {
  color: #9da9b9;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .1em;
}

.step strong {
  display: block;
  margin-bottom: 8px;
  color: #e1e5eb;
  font-size: 15px;
}

.step p {
  margin: 0;
  color: #778293;
  line-height: 1.5;
  font-size: 12px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.price-card {
  min-height: 330px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(145, 160, 181, .2);
  border-radius: 19px;
  background:
    radial-gradient(circle at 50% 0%, rgba(135,151,173,.08), transparent 40%),
    linear-gradient(180deg, rgba(17,23,31,.95), rgba(9,13,18,.97));
  box-shadow: 0 18px 55px rgba(0,0,0,.2);
  position: relative;
  overflow: hidden;
}

.price-card.featured {
  border-color: rgba(194, 205, 220, .5);
  box-shadow:
    0 18px 55px rgba(0,0,0,.22),
    inset 0 0 34px rgba(135,151,173,.05);
}

.featured-label {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 5px 8px;
  border: 1px solid rgba(178,190,207,.28);
  border-radius: 99px;
  color: #aeb9c8;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .12em;
}

.plan-name {
  color: #8b96a6;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .16em;
}

.price {
  margin: 35px 0 10px;
  color: #eef1f5;
  font-size: 60px;
  font-weight: 950;
  letter-spacing: -.06em;
}

.price span {
  font-size: 22px;
  vertical-align: top;
  color: #8f9aaa;
}

.price-card p {
  color: #747f90;
  font-size: 12px;
}

.plan-btn {
  margin-top: auto;
  min-height: 48px;
  border: 1px solid rgba(186, 198, 214, .3);
  border-radius: 13px;
  background: linear-gradient(180deg, rgba(36,45,58,.9), rgba(16,22,30,.95));
  color: #d7dde5;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  cursor: pointer;
}

.plan-btn:hover {
  border-color: rgba(218, 226, 237, .55);
  background: linear-gradient(180deg, rgba(50,61,77,.95), rgba(20,27,36,.98));
}

footer {
  width: min(1400px, calc(100% - 28px));
  margin: 10px auto 0;
  min-height: 66px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(123, 138, 157, .14);
  color: #626e7e;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 9px;
}

.footer-left strong {
  color: #9ba6b5;
  letter-spacing: .12em;
}

.footer-left > span {
  width: 1px;
  height: 20px;
  background: rgba(123,138,157,.24);
}

.footer-left p { margin: 0; }

.footer-right {
  display: flex;
  gap: 28px;
}

.footer-right a {
  color: #5f6a79;
  text-decoration: none;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .1em;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(0,0,0,.78);
  backdrop-filter: blur(9px);
}

.modal-card {
  width: min(520px, 100%);
  padding: 30px;
  border: 1px solid rgba(163, 177, 197, .25);
  border-radius: 23px;
  background:
    radial-gradient(circle at 50% 0%, rgba(134,149,170,.11), transparent 36%),
    linear-gradient(180deg, #111720, #0a0e13);
  box-shadow: 0 30px 100px rgba(0,0,0,.55);
  position: relative;
}

.modal-pill {
  margin-left: 0;
}

.modal-card h3 {
  margin: 4px 0 10px;
  color: #edf0f4;
  font-size: 34px;
  letter-spacing: -.035em;
}

.modal-card > p {
  margin: 0;
  color: #8e98a7;
  line-height: 1.55;
}

.close-modal {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 37px;
  height: 37px;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 50%;
  background: #121821;
  color: #aab4c2;
  cursor: pointer;
  font-size: 21px;
}

.modal-plans {
  margin-top: 21px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.modal-plans button {
  min-height: 62px;
  padding: 0 16px;
  border: 1px solid rgba(151, 165, 184, .2);
  border-radius: 13px;
  background: #111720;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.modal-plans button:hover {
  border-color: rgba(204, 215, 229, .5);
}

.modal-plans span {
  color: #a7b0be;
}

.modal-plans b {
  color: #eef1f5;
}

.google-modal-btn {
  margin-top: 12px;
  min-height: 50px;
  display: grid;
  place-items: center;
  border: 1px solid #d7dde5;
  border-radius: 13px;
  background: linear-gradient(180deg, #edf1f5, #aeb9c8);
  color: #0b0f14;
  text-decoration: none;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
}

@media (max-width: 1000px) {
  .topbar {
    width: calc(100% - 30px);
    grid-template-columns: 1fr auto;
    padding: 8px 12px;
  }

  .nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: center;
    gap: 24px;
  }

  main {
    width: calc(100% - 30px);
  }

  .side-copy,
  .engine-tagline,
  .process-map {
    display: none;
  }

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

@media (max-width: 680px) {
  .topbar {
    margin-top: 7px;
    top: 7px;
  }

  .brand-name {
    display: none;
  }

  .brand-x {
    width: 35px;
    height: 35px;
    font-size: 27px;
  }

  .nav {
    gap: 16px;
  }

  .nav-link {
    font-size: 12px;
  }

  .login-btn {
    padding: 0 12px;
  }

  .user-text,
  .logout-btn {
    display: none;
  }

  .page {
    padding-top: 46px;
  }

  .desktop-break {
    display: none;
  }

  .engine-heading h2 {
    font-size: 25px;
    line-height: 1.15;
  }

  .optimizer-card {
    padding: 16px;
  }

  .card-topline {
    margin-bottom: 10px;
  }

  .drop-zone {
    min-height: 270px;
    padding: 22px 14px;
  }

  .drop-zone strong {
    font-size: 18px;
  }

  .drop-zone > span,
  .drop-zone small {
    font-size: 11px;
  }

  .pricing-grid,
  .steps,
  .modal-plans {
    grid-template-columns: 1fr;
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
  }

  .footer-right {
    gap: 18px;
  }
}

.account-menu-wrap {
  position: relative;
}

.user-chip-btn {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.account-chevron {
  color: var(--muted);
  font-size: 16px;
  margin-left: 2px;
  transition: transform .2s ease;
}

.user-chip-btn[aria-expanded="true"] .account-chevron {
  transform: rotate(180deg);
}

.account-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  width: 300px;
  padding: 14px;
  z-index: 1000;
  border: 1px solid rgba(170, 184, 204, .22);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(22, 27, 35, .98), rgba(9, 12, 17, .99));
  box-shadow: 0 22px 55px rgba(0,0,0,.48);
}

.account-dropdown.hidden {
  display: none;
}

.account-dropdown-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 4px 14px;
  border-bottom: 1px solid rgba(170, 184, 204, .12);
}

.account-dropdown-head img,
.account-dropdown-head .user-avatar-fallback {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
}

.account-dropdown-head > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.account-dropdown-head strong,
.account-dropdown-head small {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.account-dropdown-head strong {
  font-size: 13px;
}

.account-dropdown-head small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.account-dropdown-plan {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 14px 4px;
}

.account-dropdown-plan span {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.account-dropdown-plan strong {
  font-size: 12px;
}

.account-dropdown-logout {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(170, 184, 204, .18);
  border-radius: 12px;
  background: rgba(255,255,255,.035);
  color: #e9edf3;
  cursor: pointer;
  font-weight: 800;
  letter-spacing: .04em;
}

.account-dropdown-logout:hover {
  background: rgba(255,255,255,.07);
}

@media (max-width: 760px) {
  .account-dropdown {
    width: min(300px, calc(100vw - 28px));
  }

  .account-chevron {
    display: none;
  }
}

.account-detail-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 8px;
}

.account-detail-row span {
  text-transform: none;
  letter-spacing: 0;
}

.account-detail-row b {
  font-size: 11px;
  text-align: right;
  color: #e9edf3;
}

.account-cancel-note {
  margin-top: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(224, 176, 110, .18);
  border-radius: 10px;
  color: #d7b581;
  background: rgba(224, 176, 110, .05);
  font-size: 10px;
}

.account-actions {
  display: grid;
  gap: 8px;
  padding: 0 0 12px;
}

.account-actions button {
  min-height: 40px;
  border: 1px solid rgba(170, 184, 204, .18);
  border-radius: 11px;
  background: rgba(255,255,255,.035);
  color: #e9edf3;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

.account-actions button:hover {
  background: rgba(255,255,255,.07);
}

.account-actions button.danger {
  color: #e0a3a3;
  border-color: rgba(224, 120, 120, .18);
}

/* ===== AUTH MODAL ===== */

.auth-card {
  width: min(460px, calc(100vw - 32px));
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 22px 0 20px;
  padding: 5px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
}

.auth-tab {
  border: 0;
  border-radius: 9px;
  padding: 11px 14px;
  background: transparent;
  color: rgba(255,255,255,0.55);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}

.auth-tab:hover {
  color: #fff;
}

.auth-tab.active {
  background: rgba(255,255,255,0.1);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

.auth-panel h3 {
  margin-bottom: 7px;
}

.auth-panel > p {
  margin-top: 0;
  margin-bottom: 18px;
  color: rgba(255,255,255,0.55);
  font-size: 14px;
}

.auth-form {
  display: grid;
  gap: 11px;
}

.auth-form input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  background: rgba(255,255,255,0.045);
  color: #fff;
  padding: 13px 14px;
  outline: none;
  font: inherit;
  transition: 0.2s ease;
}

.auth-form input::placeholder {
  color: rgba(255,255,255,0.34);
}

.auth-form input:focus {
  border-color: rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.065);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.035);
}

.auth-submit {
  width: 100%;
  margin-top: 3px;
}

.auth-error {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255,100,100,0.2);
  border-radius: 9px;
  background: rgba(255,70,70,0.07);
  color: #e4aaaa;
  font-size: 13px;
  line-height: 1.4;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 14px;
  color: rgba(255,255,255,0.34);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.08);
}

.social-auth-buttons {
  display: grid;
  gap: 10px;
}

.social-auth-btn {
  width: 100%;
  box-sizing: border-box;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  background: rgba(255,255,255,0.035);
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}

.social-auth-btn:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.18);
}

@media (max-width: 520px) {
  .auth-card {
    width: calc(100vw - 24px);
  }

  .auth-tabs {
    margin-top: 18px;
  }
}

/* ===== EMAIL VERIFICATION ===== */

.resend-code-btn {
  width: 100%;
  margin-top: 11px;
  padding: 11px 14px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  background: rgba(255,255,255,0.045);
  color: rgba(255,255,255,0.82);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}

.resend-code-btn:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.22);
  color: #fff;
}

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

.auth-submit:disabled {
  opacity: 0.55;
  cursor: wait;
}

.auth-error.success {
  border-color: rgba(100,255,160,0.18);
  background: rgba(80,220,130,0.07);
  color: #a8ddb9;
}

.social-auth-btn {
  position: relative;
  gap: 12px;
}

.social-auth-icon {
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.social-auth-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.google-icon {
  background: #fff;
  border-radius: 50%;
  padding: 2px;
  box-sizing: border-box;
}

.tiktok-icon {
  border-radius: 4px;
}

.verification-hint {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 9px;
  background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.55);
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}

/* ===== PASSWORD / FORGOT PASSWORD UI ===== */

.password-field {
  position: relative;
  width: 100%;
}

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

.password-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,0.58);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: 0.2s ease;
}

.password-toggle:hover {
  color: #fff;
}

.forgot-password-row {
  display: flex;
  justify-content: flex-end;
  margin-top: -3px;
  margin-bottom: 2px;
}

.forgot-password-row button {
  border: 0;
  background: transparent;
  color: rgba(255,255,255,0.58);
  padding: 0;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: 0.2s ease;
}

.forgot-password-row button:hover {
  color: #fff;
}

.auth-back-btn {
  width: 100%;
  margin-top: 11px;
  padding: 10px 14px;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,0.55);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: 0.2s ease;
}

.auth-back-btn:hover {
  color: #fff;
}

#forgotPasswordPanel,
#resetCodePanel,
#newPasswordPanel {
  animation: authPanelFade 0.18s ease;
}

@keyframes authPanelFade {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== PROFESSIONAL PASSWORD EYE ICON ===== */

.password-toggle {
  width: 32px;
  height: 32px;
  right: 12px;
  color: rgba(255,255,255,0.58);
}

.password-toggle:hover {
  color: #fff;
}

.password-eye {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
}

.password-toggle .icon-eye-off {
  display: none;
}

.password-toggle.showing-password .icon-eye {
  display: none;
}

.password-toggle.showing-password .icon-eye-off {
  display: block;
}

/* Password eye icon contrast fix */
.password-toggle {
  color: rgba(20, 28, 40, 0.65) !important;
}

.password-toggle:hover {
  color: rgba(10, 16, 24, 0.95) !important;
}

.password-toggle.showing-password {
  color: rgba(10, 16, 24, 0.9) !important;
}

/* Auto-contrast password eye icon */
.password-toggle {
  color: #fff !important;
  mix-blend-mode: difference;
}

.password-toggle:hover {
  color: #fff !important;
}

.password-toggle.showing-password {
  color: #fff !important;
}



/* ===== MOBILE VIEWPORT / OVERFLOW FIX ===== */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

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

body {
  margin: 0;
}

/* ===== DEVICE-SPECIFIC HOW TO USE ===== */

.device-choice-panel {
  max-width: 760px;
  margin: 28px auto 0;
  padding: 30px;
  text-align: center;
  border-radius: 22px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.1);
}

.device-choice-kicker {
  display: inline-block;
  margin-bottom: 8px;
  color: rgba(255,255,255,0.5);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.4px;
}

.device-choice-panel h3 {
  margin: 0;
  color: #fff;
  font-size: 25px;
}

.device-choice-panel > p {
  margin: 9px 0 22px;
  color: rgba(255,255,255,0.55);
  font-size: 14px;
}

.device-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.device-choice-btn {
  min-height: 105px;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.045);
  color: #fff;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.device-choice-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.075);
}

.device-choice-btn strong,
.device-choice-btn span {
  display: block;
}

.device-choice-btn strong {
  font-size: 18px;
  margin-bottom: 5px;
}

.device-choice-btn span {
  color: rgba(255,255,255,0.48);
  font-size: 12px;
}

.tutorial-main {
  max-width: 820px;
  margin: 26px auto 0;
}

.tutorial-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 18px;
}

.tutorial-tab {
  min-width: 92px;
  padding: 10px 18px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  background: rgba(255,255,255,0.035);
  color: rgba(255,255,255,0.55);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}

.tutorial-tab.active {
  color: #111318;
  background: #f3f4f6;
  border-color: #f3f4f6;
}

.tutorial-device-card {
  padding: 24px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.05), transparent 36%),
    rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.09);
}

.tutorial-device-card.device-highlight {
  animation: tutorialDeviceHighlight 1.2s ease;
}

.tutorial-device-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.tutorial-device-label {
  display: block;
  margin-bottom: 5px;
  color: rgba(255,255,255,0.42);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.3px;
}

.tutorial-device-head h3 {
  margin: 0;
  color: #fff;
  font-size: 22px;
}

.tutorial-device-badge {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.75);
  font-size: 11px;
  font-weight: 800;
}

.tutorial-instructions {
  margin-top: 20px;
  display: grid;
  gap: 10px;
}

.tutorial-instruction {
  display: flex;
  gap: 13px;
  padding: 15px 16px;
  border-radius: 14px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.07);
}

.tutorial-instruction-no {
  flex: 0 0 auto;
  width: 27px;
  height: 27px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.tutorial-instruction strong {
  display: block;
  color: #fff;
  font-size: 13px;
  margin-bottom: 3px;
}

.tutorial-instruction p {
  margin: 0;
  color: rgba(255,255,255,0.53);
  font-size: 12px;
  line-height: 1.5;
}

@keyframes tutorialDeviceHighlight {
  0% {
    transform: scale(1);
    border-color: rgba(255,255,255,0.09);
    box-shadow: none;
  }

  35% {
    transform: scale(1.012);
    border-color: rgba(255,255,255,0.32);
    box-shadow: 0 0 35px rgba(255,255,255,0.08);
  }

  100% {
    transform: scale(1);
    border-color: rgba(255,255,255,0.09);
    box-shadow: none;
  }
}

@media (max-width: 650px) {
  .device-choice-panel {
    padding: 22px 16px;
  }

  .device-choice-grid {
    grid-template-columns: 1fr;
  }

  .device-choice-btn {
    min-height: 78px;
  }

  .tutorial-device-card {
    padding: 17px;
  }

  .tutorial-tabs {
    gap: 6px;
  }

  .tutorial-tab {
    min-width: 0;
    flex: 1;
    padding: 10px 8px;
  }
}

/* ===== MOBILE BRAND NAME FIX ===== */

@media (max-width: 768px) {
  .brand-name {
    display: inline !important;
    font-size: 12px;
    letter-spacing: 1.4px;
    white-space: nowrap;
  }

  .brand {
    gap: 10px;
    align-items: center;
  }
}

/* =========================================================
   V1 ENGINE WELCOME
   ========================================================= */

.v1-welcome-overlay {
  position: fixed;
  inset: 0;
  z-index: 5000;

  display: grid;
  place-items: center;

  padding: 22px;

  background:
    rgba(3, 6, 10, .82);

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  overflow: hidden;

  transition:
    opacity .25s ease;
}

.v1-welcome-overlay[hidden] {
  display: none;
}

.v1-welcome-overlay.v1-welcome-leaving {
  opacity: 0;
}


.v1-welcome-aura {
  position: absolute;

  width: 650px;
  height: 650px;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(190, 204, 225, .12),
      rgba(120, 140, 170, .04) 42%,
      transparent 68%
    );

  filter: blur(10px);

  animation:
    v1AuraPulse 4s ease-in-out infinite;
}


.v1-welcome-card {
  position: relative;
  z-index: 2;

  width: min(500px, 100%);

  padding: 38px 34px 30px;

  text-align: center;

  border:
    1px solid rgba(190, 204, 224, .23);

  border-radius: 26px;

  background:
    radial-gradient(
      circle at 50% -5%,
      rgba(196, 210, 230, .14),
      transparent 36%
    ),
    linear-gradient(
      180deg,
      #151c26 0%,
      #090d13 100%
    );

  box-shadow:
    0 40px 120px rgba(0,0,0,.66),
    inset 0 1px 0 rgba(255,255,255,.055);

  animation:
    v1WelcomeCardIn
    .65s
    cubic-bezier(.18,.9,.25,1.12);
}


.v1-welcome-close {
  position: absolute;

  top: 15px;
  right: 15px;

  width: 38px;
  height: 38px;

  border:
    1px solid rgba(180,195,215,.18);

  border-radius: 50%;

  background:
    rgba(255,255,255,.035);

  color: #929dac;

  cursor: pointer;

  font-size: 21px;

  transition:
    .18s ease;
}

.v1-welcome-close:hover {
  color: #fff;

  background:
    rgba(255,255,255,.08);
}


.v1-engine-mark {
  position: relative;

  width: 86px;
  height: 86px;

  margin:
    2px auto 18px;

  display: grid;
  place-items: center;

  border:
    1px solid rgba(203,216,234,.22);

  border-radius: 25px;

  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,.10),
      rgba(255,255,255,.025)
    );

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.07),
    0 16px 38px rgba(0,0,0,.32),
    0 0 40px rgba(181,198,221,.07);
}


.v1-engine-mark strong {
  position: relative;
  z-index: 2;

  color: #edf2f8;

  font-size: 26px;
  font-weight: 950;

  letter-spacing: -.03em;
}


.v1-engine-ring {
  position: absolute;

  width: 56px;
  height: 56px;

  border:
    1px solid rgba(213,225,240,.18);

  border-radius: 50%;

  animation:
    v1EngineRing 3s ease-in-out infinite;
}


.v1-welcome-kicker {
  margin-bottom: 10px;

  color: #909bac;

  font-size: 9px;
  font-weight: 900;

  letter-spacing: .21em;
}


.v1-welcome-card h2 {
  margin: 0;

  color: #f4f6f9;

  font-size:
    clamp(27px, 5vw, 35px);

  line-height: 1.08;

  letter-spacing: -.035em;
}


.v1-welcome-card > p {
  max-width: 390px;

  margin:
    13px auto 21px;

  color: #8c97a7;

  font-size: 13px;

  line-height: 1.65;
}


.v1-welcome-features {
  display: flex;
  align-items: center;
  justify-content: center;

  flex-wrap: wrap;

  gap: 8px;

  margin-bottom: 22px;

  color: #788394;

  font-size: 8px;
  font-weight: 850;

  letter-spacing: .13em;
}


.v1-welcome-features i {
  width: 3px;
  height: 3px;

  border-radius: 50%;

  background: #6f7a89;
}


.v1-welcome-primary {
  width: 100%;
  min-height: 54px;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 12px;

  border:
    1px solid rgba(235,240,247,.62);

  border-radius: 14px;

  background:
    linear-gradient(
      180deg,
      #f1f4f8,
      #a5b2c4
    );

  color: #080c11;

  cursor: pointer;

  font-size: 12px;
  font-weight: 950;

  letter-spacing: .07em;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.75),
    0 13px 30px rgba(0,0,0,.32);

  transition:
    transform .18s ease,
    filter .18s ease;
}


.v1-welcome-primary:hover {
  transform:
    translateY(-1px);

  filter:
    brightness(1.05);
}


.v1-welcome-primary span {
  font-size: 18px;

  transition:
    transform .18s ease;
}


.v1-welcome-primary:hover span {
  transform:
    translateX(4px);
}


.v1-welcome-card small {
  display: block;

  margin-top: 12px;

  color: #5f6978;

  font-size: 9px;
}


/* =========================================================
   DROP ZONE SPOTLIGHT
   ========================================================= */

.drop-zone {
  position: relative;
  z-index: 1;
}


body.drop-focus-mode::after {
  content: "";

  position: fixed;
  inset: 0;

  z-index: 110;

  pointer-events: none;

  background:
    rgba(2,4,7,.58);

  animation:
    dropFocusFadeIn
    .25s ease;
}


.drop-zone.drop-zone-spotlight {
  z-index: 120;

  animation:
    dropZoneSpotlight
    1.05s ease-in-out
    3;

  border-color:
    rgba(220,230,243,.72) !important;

  box-shadow:
    0 0 0 1px rgba(211,222,237,.16),
    0 0 38px rgba(185,203,226,.24),
    0 30px 80px rgba(0,0,0,.48) !important;
}


@keyframes v1WelcomeCardIn {
  from {
    opacity: 0;

    transform:
      translateY(28px)
      scale(.94);
  }

  to {
    opacity: 1;

    transform:
      translateY(0)
      scale(1);
  }
}


@keyframes v1AuraPulse {
  0%, 100% {
    opacity: .65;
    transform: scale(.95);
  }

  50% {
    opacity: 1;
    transform: scale(1.06);
  }
}


@keyframes v1EngineRing {
  0%, 100% {
    transform: scale(.92);
    opacity: .48;
  }

  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}


@keyframes dropZoneSpotlight {
  0%, 100% {
    transform:
      translateY(0)
      scale(1);

    filter:
      brightness(1);
  }

  50% {
    transform:
      translateY(-2px)
      scale(1.012);

    filter:
      brightness(1.13);
  }
}


@keyframes dropFocusFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}


@media (max-width: 560px) {

  .v1-welcome-card {
    padding:
      34px 21px 25px;

    border-radius: 22px;
  }

  .v1-engine-mark {
    width: 74px;
    height: 74px;

    border-radius: 21px;
  }

  .v1-welcome-card h2 {
    font-size: 27px;
  }

}


/* =========================================================
   STRONG DROP-ZONE SPOTLIGHT FIX
   ========================================================= */

body.drop-focus-mode {
  overflow-x: hidden;
}

body.drop-focus-mode::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 110;
  pointer-events: none;

  background:
    rgba(0, 0, 0, .72);

  animation:
    dropFocusFadeIn .22s ease;
}

/* Lift the entire optimizer card above the dark overlay */
body.drop-focus-mode .optimizer-card {
  position: relative;
  z-index: 115;
}

/* Keep everything inside the optimizer card dim EXCEPT drop-zone */
body.drop-focus-mode .optimizer-card > *:not(.drop-zone) {
  filter: brightness(.34);
  opacity: .52;
  transition:
    filter .25s ease,
    opacity .25s ease;
}

/* Main spotlight */
.drop-zone.drop-zone-spotlight {
  position: relative;
  z-index: 130;

  background:
    radial-gradient(
      circle at 50% 45%,
      rgba(210, 222, 240, .16),
      rgba(110, 130, 158, .06) 48%,
      rgba(10, 15, 22, .96) 78%
    ) !important;

  border:
    1px solid rgba(226, 234, 246, .82) !important;

  box-shadow:
    0 0 0 1px rgba(230, 237, 247, .16),
    0 0 24px rgba(200, 215, 236, .38),
    0 0 65px rgba(170, 193, 225, .26),
    0 24px 70px rgba(0,0,0,.58),
    inset 0 1px 0 rgba(255,255,255,.10) !important;

  filter:
    brightness(1.32)
    saturate(1.08);

  animation:
    dropZoneSpotlightStrong
    1.05s
    ease-in-out
    3;
}

/* Brighten contents inside drop-zone */
.drop-zone.drop-zone-spotlight .upload-icon {
  border-color:
    rgba(220, 231, 245, .55) !important;

  background:
    rgba(215, 225, 239, .08) !important;

  box-shadow:
    0 0 26px rgba(200, 217, 239, .20);
}

.drop-zone.drop-zone-spotlight .upload-icon span {
  color: #eef4fb !important;

  text-shadow:
    0 0 14px rgba(220, 233, 248, .65);
}

.drop-zone.drop-zone-spotlight #dropTitle {
  color: #f7f9fc !important;

  text-shadow:
    0 0 18px rgba(220, 232, 248, .28);
}

.drop-zone.drop-zone-spotlight #dropSub,
.drop-zone.drop-zone-spotlight small {
  color: #c2ccda !important;
}

.drop-zone.drop-zone-spotlight .inside-divider {
  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(218, 228, 242, .24),
      transparent
    ) !important;
}

@keyframes dropZoneSpotlightStrong {
  0%, 100% {
    transform:
      translateY(0)
      scale(1);

    box-shadow:
      0 0 0 1px rgba(230, 237, 247, .12),
      0 0 20px rgba(200, 215, 236, .24),
      0 0 50px rgba(170, 193, 225, .18),
      0 24px 70px rgba(0,0,0,.54),
      inset 0 1px 0 rgba(255,255,255,.08);
  }

  50% {
    transform:
      translateY(-2px)
      scale(1.012);

    box-shadow:
      0 0 0 1px rgba(235, 241, 249, .24),
      0 0 34px rgba(215, 227, 243, .48),
      0 0 86px rgba(177, 202, 235, .33),
      0 28px 84px rgba(0,0,0,.60),
      inset 0 1px 0 rgba(255,255,255,.12);
  }
}


/* =========================================================
   FATI X PRO PAGE
   ========================================================= */

.pro-page {
  position: relative;
}

.pro-section-head {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.pro-section-kicker {
  display: block;
  margin-bottom: 10px;

  color: #8490a1;

  font-size: 9px;
  font-weight: 900;
  letter-spacing: .22em;
}

.pro-pricing-shell {
  position: relative;

  max-width: 760px;

  margin: 40px auto 0;
}

.pro-pricing-glow {
  position: absolute;

  inset: -80px -100px;

  pointer-events: none;

  background:
    radial-gradient(
      ellipse at center,
      rgba(177, 195, 220, .13),
      transparent 66%
    );

  filter: blur(18px);
}

.pro-plan-card {
  position: relative;

  overflow: hidden;

  padding: 34px;

  border:
    1px solid rgba(190, 204, 224, .24);

  border-radius: 26px;

  background:
    radial-gradient(
      circle at 90% 0%,
      rgba(215, 225, 239, .11),
      transparent 35%
    ),
    linear-gradient(
      180deg,
      rgba(24, 31, 41, .98),
      rgba(8, 12, 18, .99)
    );

  box-shadow:
    0 34px 100px rgba(0,0,0,.48),
    inset 0 1px 0 rgba(255,255,255,.045);
}

.pro-plan-card::before {
  content: "";

  position: absolute;

  width: 260px;
  height: 900px;

  top: -360px;
  left: -180px;

  transform: rotate(28deg);

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(255,255,255,.045),
      transparent
    );

  animation:
    proPageSweep 7s ease-in-out infinite;
}

.pro-plan-top {
  position: relative;
  z-index: 2;

  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  gap: 20px;
}

.pro-plan-label {
  color: #929dad;

  font-size: 9px;
  font-weight: 900;
  letter-spacing: .2em;
}

.pro-plan-top h3 {
  margin: 7px 0 0;

  color: #f4f6f9;

  font-size: 27px;
  letter-spacing: -.035em;
}

.pro-live-badge {
  min-height: 36px;

  padding: 0 14px;

  display: inline-flex;
  align-items: center;

  gap: 8px;

  border:
    1px solid rgba(210, 220, 235, .20);

  border-radius: 999px;

  background:
    rgba(255,255,255,.035);

  color: #dce4ef;

  font-size: 9px;
  font-weight: 900;
  letter-spacing: .13em;
}

.pro-live-badge i {
  width: 7px;
  height: 7px;

  border-radius: 50%;

  background: #e4ebf4;

  box-shadow:
    0 0 11px rgba(228,235,244,.75);

  animation:
    proLivePulse 2s ease-in-out infinite;
}

.pro-price-block {
  position: relative;
  z-index: 2;

  margin: 37px 0 28px;

  display: flex;
  align-items: flex-end;

  gap: 18px;
}

.pro-price {
  display: flex;
  align-items: flex-start;

  gap: 8px;
}

.pro-currency {
  margin-top: 12px;

  color: #9ca7b7;

  font-size: 17px;
  font-weight: 800;
}

.pro-price strong {
  color: #f5f7fa;

  font-size: clamp(58px, 8vw, 82px);
  line-height: .88;

  letter-spacing: -.065em;
}

.pro-one-time {
  margin-bottom: 4px;

  color: #7d8898;

  font-size: 9px;
  font-weight: 850;

  letter-spacing: .16em;
}

.pro-divider {
  height: 1px;

  margin-bottom: 26px;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(190,204,224,.17),
      transparent
    );
}

.pro-benefits {
  position: relative;
  z-index: 2;

  display: grid;
  grid-template-columns: 1fr 1fr;

  gap: 12px;
}

.pro-benefit {
  min-height: 78px;

  padding: 14px;

  display: flex;
  align-items: flex-start;

  gap: 12px;

  border:
    1px solid rgba(170,185,205,.11);

  border-radius: 14px;

  background:
    rgba(255,255,255,.018);
}

.pro-check {
  width: 24px;
  height: 24px;

  flex: 0 0 24px;

  display: grid;
  place-items: center;

  border:
    1px solid rgba(206,218,234,.20);

  border-radius: 50%;

  color: #dce4ef;

  background:
    rgba(255,255,255,.035);

  font-size: 11px;
}

.pro-benefit strong {
  display: block;

  color: #e9edf3;

  font-size: 12px;
}

.pro-benefit small {
  display: block;

  margin-top: 4px;

  color: #748091;

  font-size: 9px;
  line-height: 1.45;
}

.pro-main-cta {
  position: relative;
  z-index: 2;

  width: 100%;
  min-height: 65px;

  margin-top: 26px;

  padding: 0 22px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  border:
    1px solid rgba(240,244,249,.72);

  border-radius: 16px;

  background:
    linear-gradient(
      180deg,
      #f2f5f9,
      #a4b2c5
    );

  color: #080c11;

  cursor: pointer;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.85),
    0 16px 36px rgba(0,0,0,.32);

  transition:
    transform .18s ease,
    filter .18s ease;
}

.pro-main-cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.pro-main-cta > span {
  display: flex;
  flex-direction: column;

  align-items: flex-start;

  font-size: 12px;
  font-weight: 950;

  letter-spacing: .07em;
}

.pro-main-cta small {
  margin-top: 3px;

  font-size: 8px;
  font-weight: 800;

  opacity: .62;
}

.pro-main-cta b {
  font-size: 22px;
}

.pro-price-note {
  position: relative;
  z-index: 2;

  max-width: 530px;

  margin: 14px auto 0;

  color: #606b7a;

  text-align: center;

  font-size: 9px;
  line-height: 1.55;
}


/* =========================================================
   PREMIUM PRO UPSELL POPUP
   ========================================================= */

.pro-upsell-overlay {
  z-index: 4000;
}

.pro-upsell-card {
  position: relative;

  overflow: hidden;

  width: min(520px, 100%);

  padding: 36px 32px 29px;

  border:
    1px solid rgba(197, 210, 229, .26);

  border-radius: 26px;

  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(207, 220, 240, .15),
      transparent 38%
    ),
    linear-gradient(
      180deg,
      #151d28,
      #080c12
    );

  box-shadow:
    0 40px 120px rgba(0,0,0,.68),
    inset 0 1px 0 rgba(255,255,255,.05);

  text-align: center;

  animation:
    proUpsellIn
    .52s
    cubic-bezier(.2,.88,.24,1.1);
}

.pro-upsell-shine {
  position: absolute;

  width: 180px;
  height: 700px;

  top: -270px;
  left: -170px;

  transform: rotate(28deg);

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(255,255,255,.055),
      transparent
    );

  animation:
    proUpsellSweep 5.5s ease-in-out infinite;
}

.pro-upsell-close {
  position: absolute;

  top: 14px;
  right: 14px;

  z-index: 3;

  width: 38px;
  height: 38px;

  border:
    1px solid rgba(170,185,205,.19);

  border-radius: 50%;

  background:
    rgba(255,255,255,.035);

  color: #96a1b0;

  cursor: pointer;

  font-size: 21px;
}

.pro-upsell-badge {
  width: fit-content;

  margin: 0 auto 16px;

  padding: 8px 13px;

  display: flex;
  align-items: center;

  gap: 8px;

  border:
    1px solid rgba(198,211,229,.16);

  border-radius: 999px;

  background:
    rgba(255,255,255,.03);

  color: #a9b4c3;

  font-size: 9px;
  font-weight: 900;

  letter-spacing: .18em;
}

.pro-upsell-badge span {
  width: 7px;
  height: 7px;

  border-radius: 50%;

  background: #e4ebf4;

  box-shadow:
    0 0 12px rgba(228,235,244,.75);

  animation:
    proLivePulse 2s ease-in-out infinite;
}

.pro-upsell-card h3 {
  position: relative;
  z-index: 2;

  margin: 0;

  color: #f4f6fa;

  font-size: 34px;
  line-height: 1.05;

  letter-spacing: -.045em;
}

.pro-upsell-card > p {
  max-width: 390px;

  margin: 12px auto 0;

  color: #8a95a5;

  font-size: 12px;
  line-height: 1.6;
}

.pro-upsell-price {
  margin: 24px 0;

  display: flex;
  justify-content: center;
  align-items: center;

  gap: 7px;
}

.pro-upsell-price span {
  color: #9ba7b7;

  font-size: 15px;
  font-weight: 800;
}

.pro-upsell-price strong {
  color: #f4f7fa;

  font-size: 43px;

  letter-spacing: -.055em;
}

.pro-upsell-price small {
  margin-left: 5px;

  color: #6f7a89;

  font-size: 8px;
  font-weight: 850;

  letter-spacing: .13em;
}

.pro-upsell-benefits {
  display: grid;
  grid-template-columns: 1fr 1fr;

  gap: 8px;

  margin-bottom: 20px;
}

.pro-upsell-benefits span {
  min-height: 38px;

  padding: 0 10px;

  display: flex;
  align-items: center;

  gap: 8px;

  border:
    1px solid rgba(170,184,204,.10);

  border-radius: 11px;

  background:
    rgba(255,255,255,.018);

  color: #aab4c2;

  font-size: 9px;

  text-align: left;
}

.pro-upsell-benefits i {
  color: #e6edf6;

  font-style: normal;
}

.pro-upsell-cta {
  width: 100%;
  min-height: 58px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 18px;

  border:
    1px solid rgba(240,244,249,.72);

  border-radius: 15px;

  background:
    linear-gradient(
      180deg,
      #f2f5f9,
      #a5b3c6
    );

  color: #080c11;

  cursor: pointer;
}

.pro-upsell-cta > span {
  display: flex;
  flex-direction: column;

  align-items: flex-start;

  font-size: 11px;
  font-weight: 950;

  letter-spacing: .06em;
}

.pro-upsell-cta small {
  margin-top: 2px;

  font-size: 7px;

  opacity: .63;
}

.pro-upsell-cta b {
  font-size: 20px;
}

.pro-upsell-details {
  margin-top: 12px;

  border: 0;

  background: transparent;

  color: #8b96a6;

  cursor: pointer;

  font-size: 10px;
}

.pro-upsell-details:hover {
  color: #d9e1eb;
}

.pro-upsell-footnote {
  display: block;

  margin-top: 10px;

  color: #596473;

  font-size: 8px;
}


@keyframes proPageSweep {
  0%, 68% {
    transform:
      translateX(-120px)
      rotate(28deg);

    opacity: 0;
  }

  77% {
    opacity: 1;
  }

  100% {
    transform:
      translateX(1100px)
      rotate(28deg);

    opacity: 0;
  }
}


@keyframes proLivePulse {
  0%, 100% {
    opacity: .55;
    transform: scale(.88);
  }

  50% {
    opacity: 1;
    transform: scale(1.12);
  }
}


@keyframes proUpsellIn {
  from {
    opacity: 0;

    transform:
      translateY(25px)
      scale(.95);
  }

  to {
    opacity: 1;

    transform:
      translateY(0)
      scale(1);
  }
}


@keyframes proUpsellSweep {
  0%, 68% {
    transform:
      translateX(-100px)
      rotate(28deg);

    opacity: 0;
  }

  77% {
    opacity: 1;
  }

  100% {
    transform:
      translateX(900px)
      rotate(28deg);

    opacity: 0;
  }
}


@media (max-width: 620px) {

  .pro-plan-card {
    padding: 26px 18px;
  }

  .pro-benefits,
  .pro-upsell-benefits {
    grid-template-columns: 1fr;
  }

  .pro-price-block {
    flex-direction: column;
    align-items: flex-start;

    gap: 10px;
  }

  .pro-price strong {
    font-size: 58px;
  }

  .pro-upsell-card {
    padding: 32px 19px 25px;
  }

  .pro-upsell-card h3 {
    font-size: 29px;
  }

}


/* =========================================================
   OPTIMIZER V2 — STORM / SILVER UI
   ========================================================= */

.optimizer-card-v2 {
  padding: 20px 22px 24px;
  border: 1px solid rgba(178, 192, 211, .22);
  border-radius: 24px;

  background:
    radial-gradient(
      circle at 50% 10%,
      rgba(177, 193, 216, .07),
      transparent 35%
    ),
    linear-gradient(
      180deg,
      rgba(15, 20, 27, .98),
      rgba(7, 10, 15, .99)
    );

  box-shadow:
    0 30px 90px rgba(0, 0, 0, .42),
    inset 0 1px 0 rgba(255,255,255,.035);
}


/* ===== ENGINE BAR ===== */

.optimizer-engine-bar {
  min-height: 52px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 16px;

  margin-bottom: 16px;
  padding: 0 4px;
}

.optimizer-engine-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.optimizer-engine-info > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.optimizer-engine-info strong {
  color: #e4e9f0;

  font-size: 11px;
  font-weight: 900;
  letter-spacing: .16em;
}

.optimizer-engine-info small {
  color: #687486;

  font-size: 8px;
  font-weight: 800;
  letter-spacing: .18em;
}

.optimizer-plan-label {
  padding: 7px 11px;

  border: 1px solid rgba(174, 188, 208, .22);
  border-radius: 999px;

  background:
    rgba(255,255,255,.025);

  color: #8c98a9;

  font-size: 8px;
  font-weight: 900;
  letter-spacing: .16em;
}


/* =========================================================
   DROP ZONE
   ========================================================= */

.optimizer-drop-zone {
  position: relative;

  min-height: 300px;

  padding: 32px 20px;

  border:
    1px dashed rgba(151, 168, 191, .34);

  border-radius: 20px;

  background:
    radial-gradient(
      circle at 50% 43%,
      rgba(165, 184, 210, .055),
      transparent 42%
    ),
    linear-gradient(
      180deg,
      rgba(14, 19, 26, .88),
      rgba(8, 12, 18, .95)
    );

  overflow: hidden;

  transition:
    background .28s ease,
    border-color .28s ease,
    box-shadow .28s ease,
    transform .28s ease,
    filter .28s ease;
}


/* Subtle light inside whole box */
.optimizer-drop-zone::before {
  content: "";

  position: absolute;
  inset: 0;

  pointer-events: none;

  opacity: 0;

  background:
    radial-gradient(
      ellipse at center,
      rgba(200, 216, 238, .14),
      rgba(118, 140, 171, .055) 45%,
      transparent 76%
    );

  transition:
    opacity .28s ease;
}


/* Full box lights up */
.optimizer-drop-zone:hover,
.optimizer-drop-zone.dragging {
  border-color:
    rgba(215, 225, 239, .68);

  background:
    radial-gradient(
      circle at 50% 43%,
      rgba(187, 205, 231, .115),
      rgba(88, 108, 137, .055) 48%,
      rgba(8, 12, 18, .96) 80%
    ),
    linear-gradient(
      180deg,
      rgba(19, 25, 34, .97),
      rgba(9, 13, 19, .99)
    );

  box-shadow:
    0 0 0 1px rgba(210, 222, 238, .07),
    0 0 28px rgba(178, 198, 226, .12),
    0 20px 55px rgba(0, 0, 0, .28),
    inset 0 0 55px rgba(175, 197, 226, .055);

  transform:
    translateY(-1px);

  filter:
    brightness(1.08);
}

.optimizer-drop-zone:hover::before,
.optimizer-drop-zone.dragging::before {
  opacity: 1;
}


/* Upload icon */

.optimizer-drop-zone .upload-icon {
  position: relative;
  z-index: 2;

  width: 68px;
  height: 68px;

  margin-bottom: 18px;

  border:
    1px solid rgba(178, 193, 214, .25);

  border-radius: 18px;

  background:
    linear-gradient(
      145deg,
      rgba(91, 107, 130, .28),
      rgba(23, 30, 41, .5)
    );

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.07),
    0 12px 30px rgba(0,0,0,.24);

  transition:
    border-color .25s ease,
    background .25s ease,
    box-shadow .25s ease,
    transform .25s ease;
}

.optimizer-drop-zone:hover .upload-icon,
.optimizer-drop-zone.dragging .upload-icon {
  border-color:
    rgba(213, 224, 239, .44);

  background:
    linear-gradient(
      145deg,
      rgba(125, 145, 174, .34),
      rgba(29, 38, 51, .62)
    );

  box-shadow:
    0 0 25px rgba(190, 210, 237, .11),
    inset 0 1px 0 rgba(255,255,255,.11);

  transform:
    translateY(-2px);
}

.optimizer-drop-zone .upload-icon span {
  color: #d2dae6;
}

.optimizer-drop-zone:hover .upload-icon span {
  color: #f2f6fb;

  text-shadow:
    0 0 14px rgba(216, 229, 246, .33);
}


/* Text */

.optimizer-drop-zone #dropTitle,
.optimizer-drop-zone #dropSub,
.optimizer-drop-zone .optimizer-bitrate {
  position: relative;
  z-index: 2;
}

.optimizer-drop-zone #dropTitle {
  color: #e9edf3;

  font-size: 22px;
  font-weight: 800;

  transition:
    color .25s ease,
    text-shadow .25s ease;
}

.optimizer-drop-zone:hover #dropTitle {
  color: #ffffff;

  text-shadow:
    0 0 20px rgba(218, 229, 244, .15);
}

.optimizer-drop-zone #dropSub {
  margin-top: 8px;

  color: #828d9d;

  font-size: 13px;
}

.optimizer-bitrate {
  margin-top: 18px;

  padding-top: 17px;

  width: min(390px, 82%);

  border-top:
    1px solid rgba(153, 168, 189, .14);

  color: #7f8a9a !important;

  font-size: 11px !important;
}

.optimizer-bitrate b {
  color: #c8d0dc !important;
  font-weight: 850;
}


/* =========================================================
   FILE SIZE / LIMIT
   ========================================================= */

.optimizer-size-area {
  margin-top: 17px;

  display: grid;
  grid-template-columns: 1fr auto;

  align-items: center;

  gap: 15px;
}

.optimizer-size-track {
  position: relative;

  width: 100%;
  height: 6px;

  overflow: hidden;

  border-radius: 999px;

  background:
    rgba(115, 130, 151, .16);

  box-shadow:
    inset 0 1px 3px rgba(0,0,0,.5);
}

.optimizer-size-fill {
  width: 0%;
  height: 100%;

  border-radius: inherit;

  background:
    linear-gradient(
      90deg,
      #67778e,
      #adb9c9,
      #e0e6ee
    );

  box-shadow:
    0 0 11px rgba(190, 206, 228, .26);

  transition:
    width .4s ease;
}

.optimizer-size-label {
  display: flex;
  align-items: center;

  gap: 5px;

  white-space: nowrap;

  color: #748093;

  font-size: 9px;
  font-weight: 750;
  letter-spacing: .04em;
}

.optimizer-size-label strong {
  color: #bcc6d4;
  font-size: 9px;
}


/* =========================================================
   VIDEO METADATA CARDS
   ========================================================= */

.optimizer-video-meta {
  margin-top: 18px;

  display: grid;
  grid-template-columns: repeat(4, 1fr);

  gap: 10px;
}

.optimizer-meta-card {
  min-width: 0;
  min-height: 72px;

  padding: 13px 15px;

  display: flex;
  flex-direction: column;
  justify-content: center;

  gap: 7px;

  border:
    1px solid rgba(150, 166, 188, .15);

  border-radius: 14px;

  background:
    linear-gradient(
      180deg,
      rgba(20, 26, 35, .78),
      rgba(10, 14, 20, .9)
    );

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.02);

  transition:
    border-color .2s ease,
    background .2s ease,
    transform .2s ease;
}

.optimizer-meta-card:hover {
  border-color:
    rgba(187, 201, 220, .26);

  background:
    linear-gradient(
      180deg,
      rgba(25, 32, 43, .88),
      rgba(11, 16, 23, .95)
    );

  transform:
    translateY(-1px);
}

.optimizer-meta-label {
  color: #687486;

  font-size: 8px;
  font-weight: 900;

  letter-spacing: .17em;
}

.optimizer-meta-card strong {
  overflow: hidden;

  color: #d5dce6;

  font-size: 13px;
  font-weight: 800;

  white-space: nowrap;
  text-overflow: ellipsis;
}


/* =========================================================
   ACTION AREA
   ========================================================= */

.optimizer-action-area {
  padding-top: 22px;
}

.optimizer-action-area .primary-btn {
  width: min(1040px, 100%);
}


/* =========================================================
   USER USAGE ROW
   ========================================================= */

.optimizer-user-usage {
  margin-top: 23px;

  min-height: 52px;

  padding: 12px 14px;

  display: flex;
  align-items: center;

  gap: 11px;

  border-top:
    1px solid rgba(150, 165, 185, .12);
}

.optimizer-usage-avatar {
  width: 30px;
  height: 30px;

  flex: 0 0 30px;

  display: grid;
  place-items: center;

  border:
    1px solid rgba(177, 192, 211, .22);

  border-radius: 50%;

  background:
    linear-gradient(
      145deg,
      rgba(75, 89, 109, .45),
      rgba(24, 31, 42, .65)
    );

  color: #cbd4e0;

  font-size: 10px;
  font-weight: 900;
}

.optimizer-usage-text {
  min-width: 0;

  display: flex;
  align-items: center;
  flex-wrap: wrap;

  gap: 7px;

  color: #707d8f;

  font-size: 10px;
}

.optimizer-usage-text strong {
  color: #bbc5d3;
}

.optimizer-usage-text > span:nth-of-type(1),
.optimizer-usage-text > span:nth-of-type(3) {
  color: #4e5968;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 760px) {

  .optimizer-card-v2 {
    padding: 14px;
    border-radius: 19px;
  }

  .optimizer-engine-bar {
    min-height: 45px;
    margin-bottom: 11px;
  }

  .optimizer-engine-info strong {
    font-size: 9px;
  }

  .optimizer-plan-label {
    font-size: 7px;
    padding: 6px 8px;
  }

  .optimizer-drop-zone {
    min-height: 245px;
    padding: 25px 13px;
  }

  .optimizer-drop-zone #dropTitle {
    font-size: 18px;
  }

  .optimizer-drop-zone #dropSub {
    font-size: 10px;
  }

  .optimizer-bitrate {
    width: 88%;
    margin-top: 15px;

    font-size: 9px !important;
  }

  .optimizer-size-area {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .optimizer-size-label {
    justify-content: flex-end;
  }

  .optimizer-video-meta {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .optimizer-meta-card {
    min-height: 64px;
    padding: 11px 12px;
  }

  .optimizer-meta-card strong {
    font-size: 12px;
  }

  .optimizer-user-usage {
    padding-left: 5px;
    padding-right: 5px;
  }

  .optimizer-usage-text {
    font-size: 9px;
  }
}


/* ===== HEADER DAILY USE BADGE ===== */

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.daily-use-badge {
  min-height: 38px;
  padding: 0 13px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 6px;

  border: 1px solid rgba(173, 188, 208, .2);
  border-radius: 999px;

  background:
    linear-gradient(
      180deg,
      rgba(24, 31, 41, .78),
      rgba(11, 15, 21, .88)
    );

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.03);

  color: #758193;

  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;

  white-space: nowrap;
}

.daily-use-badge strong {
  color: #d1d9e4;
  font-size: 10px;
  font-weight: 900;
}

.daily-use-badge span:last-child {
  color: #8e9aaa;
}

@media (max-width: 760px) {
  .topbar-right {
    gap: 7px;
  }

  .daily-use-badge {
    min-height: 34px;
    padding: 0 9px;
    font-size: 7px;
  }

  .daily-use-badge strong {
    font-size: 8px;
  }
}



/* =========================================================
   TIKTOK ONE-TIME REWARD BANNER
   ========================================================= */

.tiktok-reward-banner {
  position: relative;
  z-index: 2;

  margin: 0 4px 24px;
  padding: 15px 16px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 18px;

  border:
    1px solid rgba(184, 199, 220, .20);

  border-radius: 17px;

  background:
    radial-gradient(
      circle at 85% 50%,
      rgba(191, 209, 235, .09),
      transparent 42%
    ),
    linear-gradient(
      180deg,
      rgba(18, 24, 32, .94),
      rgba(9, 13, 19, .97)
    );

  box-shadow:
    0 16px 40px rgba(0,0,0,.22),
    inset 0 1px 0 rgba(255,255,255,.03);
}

.tiktok-reward-banner::before {
  content: "";

  position: absolute;
  inset: 0;

  pointer-events: none;

  border-radius: inherit;

  background:
    linear-gradient(
      110deg,
      transparent 35%,
      rgba(255,255,255,.025) 50%,
      transparent 65%
    );

  opacity: .8;
}

.tiktok-reward-copy {
  position: relative;
  z-index: 2;

  min-width: 0;

  display: flex;
  flex-direction: column;

  gap: 4px;
}

.tiktok-reward-kicker {
  color: #7d899a;

  font-size: 8px;
  font-weight: 900;
  letter-spacing: .18em;
}

.tiktok-reward-copy strong {
  color: #e7ecf2;

  font-size: 13px;
  font-weight: 850;

  line-height: 1.35;
}

.tiktok-reward-copy small {
  color: #707c8d;

  font-size: 10px;
}

.tiktok-reward-actions {
  position: relative;
  z-index: 2;

  flex: 0 0 auto;

  display: flex;
  align-items: center;

  gap: 9px;
}

.tiktok-follow-btn,
.tiktok-claim-btn {
  min-height: 38px;

  padding: 0 14px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 11px;

  text-decoration: none;

  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;

  cursor: pointer;

  transition:
    transform .18s ease,
    filter .18s ease,
    border-color .18s ease,
    background .18s ease;
}

.tiktok-follow-btn {
  border:
    1px solid rgba(180, 195, 216, .18);

  background:
    rgba(255,255,255,.035);

  color: #bdc7d4;
}

.tiktok-follow-btn:hover {
  transform: translateY(-1px);

  border-color:
    rgba(211, 222, 237, .32);

  background:
    rgba(255,255,255,.06);
}

.tiktok-claim-btn {
  border:
    1px solid rgba(229, 235, 243, .55);

  background:
    linear-gradient(
      180deg,
      #dce2ea,
      #9ca9ba
    );

  color: #090d12;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.65),
    0 8px 20px rgba(0,0,0,.18);
}

.tiktok-claim-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

@media (max-width: 760px) {

  .tiktok-reward-banner {
    margin-bottom: 18px;

    padding: 14px;

    flex-direction: column;
    align-items: stretch;

    gap: 12px;
  }

  .tiktok-reward-copy {
    text-align: left;
  }

  .tiktok-reward-copy strong {
    font-size: 12px;
  }

  .tiktok-reward-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .tiktok-follow-btn,
  .tiktok-claim-btn {
    width: 100%;
    padding: 0 10px;
    font-size: 8px;
  }
}


/* ===== TIKTOK +1 REWARD ANIMATION ===== */

.tiktok-reward-floater {
  position: fixed;
  z-index: 10000;

  pointer-events: none;

  padding: 7px 11px;

  border: 1px solid rgba(225, 233, 244, .5);
  border-radius: 999px;

  background:
    linear-gradient(
      180deg,
      rgba(230,236,244,.98),
      rgba(150,164,184,.96)
    );

  color: #080c11;

  font-size: 13px;
  font-weight: 950;

  box-shadow:
    0 0 20px rgba(204, 219, 239, .25),
    0 10px 30px rgba(0,0,0,.35);

  opacity: 0;

  transform:
    translate(-20px, 70px)
    scale(.82);

  transition:
    transform .72s cubic-bezier(.22,.85,.28,1),
    opacity .25s ease;
}

.tiktok-reward-floater.is-flying {
  opacity: 1;

  transform:
    translate(55px, -8px)
    scale(1);
}

.daily-use-badge.reward-flash {
  animation:
    dailyUseRewardFlash .72s ease;
}

@keyframes dailyUseRewardFlash {
  0% {
    filter: brightness(1);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.03);
  }

  35% {
    filter: brightness(1.55);

    box-shadow:
      0 0 0 1px rgba(226,235,247,.30),
      0 0 28px rgba(200,218,242,.42),
      inset 0 1px 0 rgba(255,255,255,.15);
  }

  100% {
    filter: brightness(1);

    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.03);
  }
}



/* =========================================================
   TIKTOK REWARD — PREMIUM RETURN CELEBRATION
   ========================================================= */

.reward-celebration-overlay {
  position: fixed;
  inset: 0;
  z-index: 99990;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 24px;

  pointer-events: none;

  background:
    rgba(3, 6, 10, 0);

  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);

  opacity: 0;

  transition:
    opacity .32s ease,
    background .32s ease,
    backdrop-filter .32s ease;
}

.reward-celebration-overlay.is-visible {
  opacity: 1;

  background:
    rgba(3, 6, 10, .38);

  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.reward-celebration-overlay.is-leaving {
  opacity: 0;

  background:
    rgba(3, 6, 10, 0);

  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
}


.reward-celebration-card {
  position: relative;

  width: min(390px, calc(100vw - 42px));

  padding: 29px 25px 26px;

  overflow: hidden;

  text-align: center;

  border:
    1px solid rgba(218, 228, 242, .25);

  border-radius: 22px;

  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(208, 222, 243, .13),
      transparent 52%
    ),
    linear-gradient(
      180deg,
      rgba(21, 28, 38, .98),
      rgba(8, 12, 18, .99)
    );

  box-shadow:
    0 28px 85px rgba(0, 0, 0, .55),
    0 0 45px rgba(188, 208, 237, .08),
    inset 0 1px 0 rgba(255, 255, 255, .06);

  opacity: 0;

  transform:
    translateY(14px)
    scale(.92);

  animation:
    rewardCardEnter .52s
    cubic-bezier(.17,.85,.28,1.2)
    forwards;
}


.reward-celebration-glow {
  position: absolute;

  width: 170px;
  height: 170px;

  left: 50%;
  top: -105px;

  transform: translateX(-50%);

  border-radius: 50%;

  background:
    rgba(210, 224, 244, .18);

  filter: blur(45px);

  pointer-events: none;
}


.reward-celebration-plus {
  position: relative;

  width: 58px;
  height: 58px;

  margin:
    0 auto
    16px;

  display: flex;
  align-items: center;
  justify-content: center;

  border:
    1px solid rgba(231, 238, 248, .38);

  border-radius: 50%;

  background:
    linear-gradient(
      145deg,
      #edf2f8,
      #99a9bd
    );

  color: #080c12;

  font-size: 21px;
  font-weight: 950;

  box-shadow:
    0 0 28px rgba(203, 220, 242, .22),
    inset 0 1px 0 rgba(255,255,255,.75);
}


.reward-celebration-card strong {
  position: relative;

  display: block;

  color: #eef3f9;

  font-size: 15px;
  font-weight: 950;

  letter-spacing: .10em;
}


.reward-celebration-card span {
  position: relative;

  display: block;

  margin-top: 8px;

  color: #8e9aab;

  font-size: 11px;
  font-weight: 600;

  line-height: 1.5;
}


.reward-celebration-card.is-dissolving {
  animation:
    rewardCardDissolve .48s
    cubic-bezier(.55,0,.9,.45)
    forwards;
}


.reward-magic-particle {
  position: fixed;

  z-index: 100000;

  width: 45px;
  height: 45px;

  margin:
    -22.5px
    0
    0
    -22.5px;

  display: flex;
  align-items: center;
  justify-content: center;

  pointer-events: none;

  border-radius: 50%;

  border:
    1px solid rgba(236, 242, 250, .7);

  background:
    linear-gradient(
      145deg,
      #f3f6fa,
      #a9b7c9
    );

  color: #070b10;

  font-size: 15px;
  font-weight: 1000;

  opacity: 0;

  transform:
    translate(0, 0)
    scale(.45);

  box-shadow:
    0 0 15px rgba(211,225,245,.7),
    0 0 40px rgba(191,211,239,.38);

  transition:
    transform .75s
      cubic-bezier(.2,.76,.32,1),
    opacity .16s ease,
    filter .75s ease;
}


.reward-magic-particle::before,
.reward-magic-particle::after {
  content: "";

  position: absolute;
  inset: -10px;

  border-radius: inherit;

  border:
    1px solid rgba(212, 228, 249, .18);

  animation:
    rewardMagicRing .7s ease infinite;
}


.reward-magic-particle::after {
  inset: -18px;

  opacity: .45;

  animation-delay: .16s;
}


.reward-magic-particle.is-flying {
  opacity: 1;

  transform:
    translate(
      var(--reward-x),
      var(--reward-y)
    )
    scale(.78);

  filter: brightness(1.35);
}


.reward-magic-particle.has-hit {
  opacity: 0;

  transform:
    translate(
      var(--reward-x),
      var(--reward-y)
    )
    scale(.08);

  transition:
    opacity .22s ease,
    transform .22s ease;
}


.daily-use-badge.reward-flash {
  animation:
    rewardBadgeHit .72s
    cubic-bezier(.15,.8,.25,1);
}


@keyframes rewardCardEnter {
  from {
    opacity: 0;

    transform:
      translateY(18px)
      scale(.9);

    filter: blur(5px);
  }

  to {
    opacity: 1;

    transform:
      translateY(0)
      scale(1);

    filter: blur(0);
  }
}


@keyframes rewardCardDissolve {
  0% {
    opacity: 1;

    transform:
      scale(1);

    filter:
      blur(0)
      brightness(1);
  }

  50% {
    opacity: .55;

    transform:
      scale(.96);

    filter:
      blur(3px)
      brightness(1.5);
  }

  100% {
    opacity: 0;

    transform:
      scale(.78);

    filter:
      blur(12px)
      brightness(2);
  }
}


@keyframes rewardMagicRing {
  0% {
    transform: scale(.65);
    opacity: .65;
  }

  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}


@keyframes rewardBadgeHit {
  0% {
    transform: scale(1);
    filter: brightness(1);
  }

  28% {
    transform: scale(1.14);
    filter: brightness(1.8);

    box-shadow:
      0 0 0 1px rgba(229,238,250,.5),
      0 0 17px rgba(210,225,246,.75),
      0 0 38px rgba(187,210,242,.4);
  }

  55% {
    transform: scale(.97);
  }

  100% {
    transform: scale(1);
    filter: brightness(1);
  }
}


@media (max-width: 600px) {

  .reward-celebration-card {
    padding:
      26px 20px
      23px;
  }

  .reward-celebration-plus {
    width: 54px;
    height: 54px;
  }

  .reward-celebration-card strong {
    font-size: 13px;
  }

}


/* =========================================================
   OPTIMIZER USAGE ROW — BIGGER / MORE NOTICEABLE
   ========================================================= */

.optimizer-user-usage {
  margin-top: 22px;
  padding: 16px 18px;

  display: flex;
  align-items: center;
  gap: 14px;

  border-top: 1px solid rgba(170, 184, 204, .10);

  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,.02),
      rgba(255,255,255,.01)
    );

  border-radius: 14px;
}

.optimizer-usage-avatar {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;

  display: grid;
  place-items: center;

  border: 1px solid rgba(190, 205, 226, .22);
  border-radius: 50%;

  background:
    linear-gradient(
      180deg,
      rgba(72, 88, 110, .85),
      rgba(28, 37, 50, .92)
    );

  color: #f3f6fb;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .02em;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 0 18px rgba(165, 185, 214, .08);
}

.optimizer-usage-text {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;

  color: #94a1b4;
  font-size: 14px;
  line-height: 1.55;
}

.optimizer-usage-text strong {
  color: #f0f4fa;
  font-size: 15px;
  font-weight: 850;
}

#optimizerUsedToday,
#optimizerUsesLeft {
  color: #b7c3d4;
  font-size: 14px;
}

#optimizerUsesLeft {
  color: #eef3fa;
  font-weight: 700;
}

@media (max-width: 760px) {
  .optimizer-user-usage {
    margin-top: 18px;
    padding: 14px;
    gap: 12px;
  }

  .optimizer-usage-avatar {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    font-size: 14px;
  }

  .optimizer-usage-text {
    gap: 8px;
    font-size: 12px;
  }

  .optimizer-usage-text strong,
  #optimizerUsedToday,
  #optimizerUsesLeft {
    font-size: 12px;
  }
}


/* =========================================================
   FREE FILE SIZE LIMIT — EXCEEDED STATE
   ========================================================= */

.optimizer-size-fill.limit-exceeded {
  background:
    linear-gradient(
      90deg,
      #7b1f27,
      #d23b49,
      #ff5968
    ) !important;

  box-shadow:
    0 0 10px rgba(255, 67, 82, .45),
    0 0 24px rgba(255, 67, 82, .18);
}

.optimizer-size-area.limit-exceeded
.optimizer-size-track {
  border-color:
    rgba(255, 76, 91, .30);
}

.optimizer-size-area.limit-exceeded
.optimizer-size-label {
  color: #ff7b87;
}

.optimizer-size-area.limit-exceeded
#optimizerCurrentSize {
  color: #ff6572;
  font-weight: 850;
}



/* =========================================================
   LIVE HERO TITLE — SILVER LIGHT SWEEP
   ========================================================= */

.live-shimmer-title {
  position: relative;

  display: inline-block;

  overflow: hidden;

  isolation: isolate;
}

.live-shimmer-title::after {
  content: "";

  position: absolute;

  top: -20%;
  bottom: -20%;

  width: 22%;

  left: -40%;

  pointer-events: none;

  background:
    linear-gradient(
      105deg,
      transparent 0%,
      rgba(255,255,255,0) 20%,
      rgba(255,255,255,.16) 40%,
      rgba(255,255,255,.72) 50%,
      rgba(255,255,255,.18) 60%,
      rgba(255,255,255,0) 80%,
      transparent 100%
    );

  filter: blur(4px);

  transform: skewX(-14deg);

  mix-blend-mode: screen;

  animation:
    heroSilverSweep 4.4s
    cubic-bezier(.2,.65,.3,1)
    infinite;
}

@keyframes heroSilverSweep {
  0%,
  68% {
    left: -40%;
    opacity: 0;
  }

  72% {
    opacity: .9;
  }

  88% {
    left: 118%;
    opacity: .9;
  }

  92%,
  100% {
    left: 118%;
    opacity: 0;
  }
}


/* =========================================================
   LIVE STATUS DOTS
   ========================================================= */

.live-status-dot {
  position: relative;

  animation:
    statusDotBreathe 1.9s
    ease-in-out
    infinite;

  transform-origin: center;
}

.live-status-dot::after {
  content: "";

  position: absolute;

  inset: -5px;

  border-radius: 50%;

  pointer-events: none;

  border:
    1px solid rgba(210, 225, 246, .22);

  opacity: 0;

  animation:
    statusDotRing 1.9s
    ease-out
    infinite;
}

@keyframes statusDotBreathe {
  0%,
  100% {
    transform: scale(.88);
    filter: brightness(.92);

    box-shadow:
      0 0 4px rgba(199,218,244,.18);
  }

  50% {
    transform: scale(1.18);
    filter: brightness(1.55);

    box-shadow:
      0 0 7px rgba(213,228,249,.6),
      0 0 15px rgba(190,212,242,.30);
  }
}

@keyframes statusDotRing {
  0% {
    transform: scale(.55);
    opacity: 0;
  }

  38% {
    opacity: .48;
  }

  100% {
    transform: scale(1.45);
    opacity: 0;
  }
}


@media (prefers-reduced-motion: reduce) {
  .live-shimmer-title::after,
  .live-status-dot,
  .live-status-dot::after {
    animation: none !important;
  }
}


/* =========================================================
   FINAL TOP TIKTOK REWARD BANNER
   ========================================================= */

.top-follow-banner {
  width: min(1400px, calc(100% - 28px));
  margin: 12px auto 18px;
  padding: 14px 18px;

  display: flex;
  align-items: center;
  gap: 14px;

  border: 1px solid rgba(190, 201, 218, .18);
  border-radius: 22px;

  background:
    radial-gradient(circle at 12% 50%, rgba(255, 75, 125, .16), transparent 25%),
    radial-gradient(circle at 88% 50%, rgba(78, 222, 255, .15), transparent 25%),
    linear-gradient(180deg, rgba(20, 27, 37, .96), rgba(9, 13, 19, .98));

  box-shadow:
    0 18px 40px rgba(0,0,0,.24),
    inset 0 1px 0 rgba(255,255,255,.04);

  cursor: pointer;
  transition:
    transform .18s ease,
    border-color .18s ease,
    box-shadow .18s ease,
    filter .18s ease;
}

.top-follow-banner:hover {
  transform: translateY(-1px);
  border-color: rgba(212, 222, 236, .3);
  box-shadow:
    0 20px 45px rgba(0,0,0,.28),
    0 0 28px rgba(103, 187, 255, .06),
    inset 0 1px 0 rgba(255,255,255,.05);
  filter: brightness(1.02);
}

.top-follow-banner:focus-visible {
  outline: none;
  border-color: rgba(220, 230, 243, .4);
  box-shadow:
    0 0 0 1px rgba(220,230,243,.18),
    0 0 24px rgba(112, 194, 255, .12);
}

.top-follow-banner__gift {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;

  display: grid;
  place-items: center;

  border: 1px solid rgba(222, 232, 244, .16);
  border-radius: 16px;

  background:
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));

  font-size: 22px;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.05),
    0 0 18px rgba(255, 90, 150, .08);

  animation: giftFloat 2.6s ease-in-out infinite;
}

.top-follow-banner__copy {
  min-width: 0;
  flex: 1;

  display: flex;
  flex-direction: column;
  gap: 3px;
}

.top-follow-banner__kicker {
  color: #99a5b8;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .18em;
}

.top-follow-banner__copy strong {
  color: #edf2f8;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.35;
}

.top-follow-banner__copy small {
  color: #8692a4;
  font-size: 10px;
}

.top-follow-banner__cta {
  flex: 0 0 auto;
  min-width: 62px;
  height: 38px;
  padding: 0 16px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(224, 232, 242, .22);
  border-radius: 999px;

  background: rgba(255,255,255,.04);
  color: #edf3fa;

  font-size: 10px;
  font-weight: 900;
  letter-spacing: .16em;
}

@keyframes giftFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.05),
      0 0 18px rgba(255, 90, 150, .08);
  }

  50% {
    transform: translateY(-2px) scale(1.03);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.06),
      0 0 22px rgba(78, 222, 255, .10);
  }
}

@media (max-width: 760px) {
  .top-follow-banner {
    margin: 10px auto 16px;
    padding: 13px 14px;
    gap: 11px;
  }

  .top-follow-banner__gift {
    flex-basis: 42px;
    width: 42px;
    height: 42px;
    font-size: 19px;
    border-radius: 14px;
  }

  .top-follow-banner__copy strong {
    font-size: 12px;
  }

  .top-follow-banner__copy small {
    font-size: 9px;
  }

  .top-follow-banner__cta {
    min-width: 54px;
    height: 34px;
    padding: 0 12px;
    font-size: 9px;
  }
}

/* =========================================================
   LIMIT EXCEEDED RED STATE
   ========================================================= */

.limit-exceeded-text {
  color: #ff6b78 !important;
}

.optimizer-size-fill.limit-exceeded {
  background:
    linear-gradient(90deg, #ff5468, #ff7b6b) !important;
  box-shadow:
    0 0 18px rgba(255, 88, 110, .35);
}

.optimizer-size-area.limit-exceeded .optimizer-size-track {
  box-shadow:
    inset 0 0 0 1px rgba(255, 102, 122, .18),
    0 0 14px rgba(255, 88, 110, .10);
}

.optimizer-size-area.limit-exceeded .optimizer-size-label {
  color: #ff838c !important;
}

/* =========================================================
   SUBTLE HERO TITLE SHEEN
   ========================================================= */

.live-shimmer-title {
  position: relative;
  display: inline-block;
  overflow: hidden;
}

.live-shimmer-title::after {
  content: "";
  position: absolute;
  top: -12%;
  left: -32%;
  width: 24%;
  height: 130%;

  background:
    linear-gradient(
      90deg,
      transparent 0%,
      rgba(255,255,255,.04) 25%,
      rgba(255,255,255,.22) 50%,
      rgba(255,255,255,.04) 75%,
      transparent 100%
    );

  filter: blur(8px);
  transform: skewX(-20deg) translateX(0);
  opacity: 0;

  pointer-events: none;
  animation: subtleHeroSheen 6.5s ease-in-out infinite;
}

@keyframes subtleHeroSheen {
  0%, 62% {
    opacity: 0;
    transform: skewX(-20deg) translateX(0);
  }

  70% {
    opacity: .18;
  }

  84% {
    opacity: .3;
    transform: skewX(-20deg) translateX(520%);
  }

  100% {
    opacity: 0;
    transform: skewX(-20deg) translateX(520%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .top-follow-banner__gift,
  .live-shimmer-title::after {
    animation: none !important;
  }
}

/* =========================================================
   FINAL REWARD BANNER OVERRIDES
   ========================================================= */

.top-follow-banner {
  text-decoration: none !important;
}

.top-follow-banner__arrow {
  flex: 0 0 auto;

  width: 36px;
  height: 36px;

  display: grid;
  place-items: center;

  border-radius: 50%;

  border: 1px solid rgba(216, 226, 240, .14);
  background: rgba(255,255,255,.035);

  color: #dce5f0;

  font-size: 16px;
  font-weight: 800;

  transition:
    transform .2s ease,
    background .2s ease;
}

.top-follow-banner:hover .top-follow-banner__arrow {
  transform: translateX(2px);
  background: rgba(255,255,255,.06);
}

.top-follow-banner__gift {
  animation: finalGiftAlive 2.8s ease-in-out infinite !important;
}

@keyframes finalGiftAlive {
  0%, 100% {
    transform: translateY(0) rotate(-1deg) scale(1);
  }

  50% {
    transform: translateY(-2px) rotate(1.5deg) scale(1.035);
  }
}


/* =========================================================
   FINAL 110MB EXCEEDED STATE
   ========================================================= */

.optimizer-size-fill.limit-exceeded {
  background:
    linear-gradient(
      90deg,
      #ff485d,
      #ff6b75
    ) !important;

  box-shadow:
    0 0 10px rgba(255,72,93,.55),
    0 0 22px rgba(255,72,93,.20) !important;
}

.optimizer-size-area.limit-exceeded .optimizer-size-track {
  box-shadow:
    inset 0 0 0 1px rgba(255,76,94,.24),
    0 0 10px rgba(255,76,94,.12) !important;
}

.limit-exceeded-text,
.optimizer-size-area.limit-exceeded .optimizer-size-label,
.optimizer-size-area.limit-exceeded #optimizerCurrentSize,
.optimizer-size-area.limit-exceeded #optimizerFreeLimit {
  color: #ff6675 !important;
}


/* =========================================================
   FINAL HERO TITLE — SUBTLE GLYPH SHEEN
   ========================================================= */

/*
  Disable the previous overlay swipe completely.
*/
.live-shimmer-title::after {
  display: none !important;
  content: none !important;
  animation: none !important;
}

/*
  The light now moves INSIDE the letters only.
*/
.live-shimmer-title {
  display: inline-block;

  background:
    linear-gradient(
      110deg,
      #e9edf3 0%,
      #e9edf3 42%,
      #ffffff 48%,
      #f7f9fc 52%,
      #e9edf3 58%,
      #e9edf3 100%
    );

  background-size: 260% 100%;
  background-position: 140% 0;

  -webkit-background-clip: text;
  background-clip: text;

  -webkit-text-fill-color: transparent;
  color: transparent;

  animation:
    finalHeroLetterSheen 5.8s
    ease-in-out
    infinite !important;
}

@keyframes finalHeroLetterSheen {
  0%,
  70% {
    background-position: 140% 0;
  }

  84% {
    background-position: -40% 0;
  }

  100% {
    background-position: -40% 0;
  }
}

@media (max-width: 760px) {
  .top-follow-banner__arrow {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .top-follow-banner__gift,
  .live-shimmer-title {
    animation: none !important;
  }
}



/* =========================================================
   HOW TO USE — PREMIUM TEXT GUIDE V2
   ========================================================= */

.tutorial-guide-intro {
  margin: 18px 0 22px;
  padding: 15px 17px;

  display: flex;
  align-items: center;
  gap: 12px;

  border: 1px solid rgba(185,200,221,.13);
  border-radius: 15px;

  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,.035),
      rgba(255,255,255,.015)
    );
}

.tutorial-guide-intro-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;

  border-radius: 50%;

  background: #cbd6e5;

  box-shadow:
    0 0 12px rgba(201,218,240,.55);

  animation:
    guideIntroDot 2s ease-in-out infinite;
}

.tutorial-guide-intro strong {
  display: block;

  color: #eef3f9;

  font-size: 12px;
}

.tutorial-guide-intro p {
  margin: 3px 0 0;

  color: #778496;

  font-size: 10px;
}


.guide-timeline {
  display: grid;
  gap: 13px;
}


.guide-step-card {
  position: relative;

  padding: 17px;

  display: grid;
  grid-template-columns: 55px 1fr;

  gap: 15px;

  border: 1px solid rgba(177,193,215,.11);
  border-radius: 17px;

  background:
    radial-gradient(
      circle at 8% 0%,
      rgba(193,211,237,.055),
      transparent 32%
    ),
    rgba(255,255,255,.018);

  opacity: 0;

  transform: translateY(12px);

  animation:
    guideCardEnter .46s
    cubic-bezier(.2,.75,.3,1)
    forwards;

  animation-delay:
    var(--guide-delay);
}


.guide-step-side {
  display: flex;
  flex-direction: column;
  align-items: center;

  gap: 8px;
}


.guide-step-icon {
  width: 38px;
  height: 38px;

  display: grid;
  place-items: center;

  border-radius: 12px;

  border: 1px solid rgba(203,216,235,.15);

  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,.07),
      rgba(255,255,255,.025)
    );

  color: #e5ebf3;

  font-size: 14px;
  font-weight: 900;
}


.guide-step-number {
  color: #596678;

  font-size: 8px;
  font-weight: 900;

  letter-spacing: .12em;
}


.guide-step-content > strong {
  display: block;

  margin-bottom: 8px;

  color: #eef3f9;

  font-size: 13px;
  font-weight: 850;
}


.guide-step-body {
  color: #909cad;

  font-size: 11px;
  line-height: 1.65;
}


.guide-step-body strong {
  color: #dfe6ef;
}


.guide-emphasis {
  display: block;

  margin-top: 9px;

  color: #c8d2df;

  font-weight: 700;
}


.guide-export-grid {
  margin-top: 7px;

  display: grid;
  grid-template-columns:
    repeat(4, minmax(0,1fr));

  gap: 8px;
}


.guide-spec {
  padding: 12px 8px;

  text-align: center;

  border: 1px solid rgba(186,201,222,.13);
  border-radius: 12px;

  background: rgba(255,255,255,.025);
}


.guide-spec span {
  display: block;

  margin-bottom: 5px;

  color: #647184;

  font-size: 7px;
  font-weight: 900;

  letter-spacing: .1em;
}


.guide-spec strong {
  color: #eef3f9;

  font-size: 11px;
}


.guide-mini-steps {
  display: grid;

  gap: 7px;
}


.guide-mini-steps span {
  display: flex;
  align-items: flex-start;

  gap: 9px;
}


.guide-mini-steps b {
  flex: 0 0 auto;

  color: #66758a;

  font-size: 8px;
  letter-spacing: .08em;
}


.guide-mini-steps a {
  color: #dce8f7;

  font-weight: 800;

  text-decoration: underline;
  text-underline-offset: 3px;
}


.guide-save-flow {
  margin: 13px 0 10px;

  display: flex;
  align-items: center;

  gap: 8px;
}


.guide-app-chip {
  padding: 7px 10px;

  border: 1px solid rgba(194,209,230,.14);
  border-radius: 9px;

  background: rgba(255,255,255,.03);

  color: #dce4ee;

  font-size: 9px;
  font-weight: 800;
}


.guide-save-flow b {
  color: #627084;
}


.guide-warning {
  margin-top: 12px;
  padding: 11px 12px;

  border: 1px solid rgba(255,101,118,.16);
  border-radius: 11px;

  background:
    rgba(255,70,90,.035);

  color: #a68f95;

  font-size: 9px;
  line-height: 1.55;
}


.guide-warning strong {
  display: block;

  margin-bottom: 2px;

  color: #e7b8bf;
}


.guide-ready-card {
  margin-top: 16px;
  padding: 16px 17px;

  display: grid;
  grid-template-columns: auto 1fr auto;

  align-items: center;

  gap: 13px;

  border: 1px solid rgba(203,217,236,.16);
  border-radius: 17px;

  background:
    linear-gradient(
      180deg,
      rgba(203,218,240,.055),
      rgba(255,255,255,.018)
    );
}


.guide-ready-card > span {
  color: #7c899a;

  font-size: 8px;
  font-weight: 950;

  letter-spacing: .15em;
}


.guide-ready-card strong {
  color: #eef3f9;

  font-size: 12px;
}


.guide-ready-card p {
  margin: 3px 0 0;

  color: #748094;

  font-size: 9px;
}


.guide-optimize-btn {
  min-height: 38px;

  padding: 0 14px;

  display: flex;
  align-items: center;

  gap: 12px;

  border: 1px solid rgba(223,231,241,.4);
  border-radius: 11px;

  background:
    linear-gradient(
      180deg,
      #d9e0e9,
      #9baabc
    );

  color: #080c11;

  font-size: 9px;
  font-weight: 950;

  letter-spacing: .08em;

  cursor: pointer;
}


@keyframes guideCardEnter {

  to {
    opacity: 1;
    transform: translateY(0);
  }

}


@keyframes guideIntroDot {

  0%,
  100% {
    transform: scale(.82);
    opacity: .65;
  }

  50% {
    transform: scale(1.18);
    opacity: 1;
  }

}


/* =========================================================
   FIRST OPTIMIZATION — HOW TO REMINDER
   ========================================================= */

.first-howto-overlay {
  position: fixed;

  inset: 0;

  z-index: 120000;

  display: grid;
  place-items: center;

  padding: 22px;

  background:
    rgba(3,6,10,.58);

  backdrop-filter:
    blur(7px);

  -webkit-backdrop-filter:
    blur(7px);

  opacity: 0;

  transition:
    opacity .26s ease;
}


.first-howto-overlay[hidden] {
  display: none !important;
}


.first-howto-overlay.first-howto-visible {
  opacity: 1;
}


.first-howto-overlay.first-howto-leaving {
  opacity: 0;
}


.first-howto-card {
  width:
    min(410px, calc(100vw - 38px));

  padding:
    28px 25px 24px;

  text-align: center;

  border:
    1px solid rgba(210,221,238,.21);

  border-radius: 22px;

  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(198,216,243,.11),
      transparent 42%
    ),
    linear-gradient(
      180deg,
      rgba(20,27,37,.99),
      rgba(8,12,18,.99)
    );

  box-shadow:
    0 28px 80px
      rgba(0,0,0,.5),
    inset 0 1px 0
      rgba(255,255,255,.05);

  transform:
    translateY(13px)
    scale(.95);

  transition:
    transform .32s
    cubic-bezier(.2,.78,.28,1.1);
}


.first-howto-visible
.first-howto-card {

  transform:
    translateY(0)
    scale(1);

}


.first-howto-icon {
  width: 58px;
  height: 58px;

  margin:
    0 auto 16px;

  display: grid;
  place-items: center;

  border:
    1px solid rgba(213,225,242,.24);

  border-radius: 18px;

  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,.09),
      rgba(255,255,255,.025)
    );

  color: #e9eff7;

  font-size: 20px;

  box-shadow:
    0 0 25px
      rgba(184,207,239,.09);
}


.first-howto-icon span {
  animation:
    firstHowToIconFloat
    2.4s ease-in-out infinite;
}


.first-howto-kicker {
  display: block;

  margin-bottom: 7px;

  color: #748196;

  font-size: 8px;
  font-weight: 950;

  letter-spacing: .17em;
}


.first-howto-card h3 {
  margin: 0;

  color: #f0f4fa;

  font-size: 19px;
}


.first-howto-card p {
  margin:
    10px auto 20px;

  max-width: 330px;

  color: #8895a7;

  font-size: 11px;
  line-height: 1.65;
}


.first-howto-btn {
  width: 100%;
  min-height: 48px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 17px;

  border:
    1px solid rgba(225,233,243,.42);

  border-radius: 13px;

  background:
    linear-gradient(
      180deg,
      #dde4ec,
      #9cabbc
    );

  color: #080c11;

  font-size: 10px;
  font-weight: 950;

  letter-spacing: .09em;

  cursor: pointer;
}


@keyframes firstHowToIconFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-3px);
  }

}


@media (max-width: 650px) {

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


  .guide-step-card {
    grid-template-columns:
      44px 1fr;

    padding: 14px;
    gap: 11px;
  }


  .guide-step-icon {
    width: 34px;
    height: 34px;
  }


  .guide-ready-card {
    grid-template-columns: 1fr;

    text-align: left;
  }


  .guide-optimize-btn {
    width: 100%;

    justify-content:
      space-between;
  }

}



/* =========================================================
   POPUP PRIMARY BUTTONS — SUBTLE ALIVE WAVE
   ========================================================= */

.modal .primary-btn,
.modal .pro-main-cta,
.v1-welcome-overlay button:not(.close-modal),
.first-howto-overlay .first-howto-btn,
.paywall-modal .primary-btn,
.paywall-modal .pro-main-cta,
[role="dialog"] .primary-btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;

  animation:
    popupButtonBreath 2.8s ease-in-out infinite;
}


/* soft travelling sheen */
.modal .primary-btn::before,
.modal .pro-main-cta::before,
.v1-welcome-overlay button:not(.close-modal)::before,
.first-howto-overlay .first-howto-btn::before,
.paywall-modal .primary-btn::before,
.paywall-modal .pro-main-cta::before,
[role="dialog"] .primary-btn::before {
  content: "";

  position: absolute;
  top: -45%;
  bottom: -45%;

  width: 34%;

  left: -45%;

  pointer-events: none;

  z-index: 0;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(255,255,255,.10),
      rgba(255,255,255,.22),
      rgba(255,255,255,.10),
      transparent
    );

  transform: skewX(-18deg);

  animation:
    popupButtonWave 2.9s
    cubic-bezier(.45,.05,.2,1)
    infinite;
}


/* subtle outer pulse ring */
.modal .primary-btn::after,
.modal .pro-main-cta::after,
.v1-welcome-overlay button:not(.close-modal)::after,
.first-howto-overlay .first-howto-btn::after,
.paywall-modal .primary-btn::after,
.paywall-modal .pro-main-cta::after,
[role="dialog"] .primary-btn::after {
  content: "";

  position: absolute;
  inset: -3px;

  border-radius: inherit;

  border:
    1px solid
    rgba(220,231,245,.20);

  pointer-events: none;

  z-index: -1;

  opacity: 0;

  animation:
    popupButtonRing 2.8s
    ease-out infinite;
}


/* keep text/icons above wave */
.modal .primary-btn > *,
.modal .pro-main-cta > *,
.v1-welcome-overlay button:not(.close-modal) > *,
.first-howto-overlay .first-howto-btn > *,
.paywall-modal .primary-btn > *,
.paywall-modal .pro-main-cta > *,
[role="dialog"] .primary-btn > * {
  position: relative;
  z-index: 2;
}


.modal .primary-btn:hover,
.modal .pro-main-cta:hover,
.v1-welcome-overlay button:not(.close-modal):hover,
.first-howto-overlay .first-howto-btn:hover,
.paywall-modal .primary-btn:hover,
.paywall-modal .pro-main-cta:hover,
[role="dialog"] .primary-btn:hover {
  box-shadow:
    0 10px 28px rgba(0,0,0,.22),
    0 0 18px rgba(210,224,242,.14);
}


@keyframes popupButtonWave {

  0%,
  22% {
    left: -45%;
    opacity: 0;
  }

  32% {
    opacity: .9;
  }

  58% {
    left: 118%;
    opacity: .75;
  }

  70%,
  100% {
    left: 118%;
    opacity: 0;
  }

}


@keyframes popupButtonRing {

  0% {
    transform: scale(.985);
    opacity: 0;
  }

  20% {
    opacity: .26;
  }

  62% {
    transform: scale(1.045);
    opacity: 0;
  }

  100% {
    transform: scale(1.045);
    opacity: 0;
  }

}


@keyframes popupButtonBreath {

  0%,
  100% {
    transform: translateY(0);
    filter: brightness(1);
  }

  50% {
    transform: translateY(-1px);
    filter: brightness(1.035);
  }

}


@media (prefers-reduced-motion: reduce) {

  .modal .primary-btn,
  .modal .pro-main-cta,
  .v1-welcome-overlay button:not(.close-modal),
  .first-howto-overlay .first-howto-btn,
  .paywall-modal .primary-btn,
  .paywall-modal .pro-main-cta,
  [role="dialog"] .primary-btn,
  .modal .primary-btn::before,
  .modal .pro-main-cta::before,
  .v1-welcome-overlay button:not(.close-modal)::before,
  .first-howto-overlay .first-howto-btn::before,
  .paywall-modal .primary-btn::before,
  .paywall-modal .pro-main-cta::before,
  [role="dialog"] .primary-btn::before,
  .modal .primary-btn::after,
  .modal .pro-main-cta::after,
  .v1-welcome-overlay button:not(.close-modal)::after,
  .first-howto-overlay .first-howto-btn::after,
  .paywall-modal .primary-btn::after,
  .paywall-modal .pro-main-cta::after,
  [role="dialog"] .primary-btn::after {
    animation: none !important;
  }

}



/* =========================================================
   FIX — V1 WELCOME POPUP CLOSE BUTTON POSITION
   ========================================================= */

.v1-welcome-card {
  position: relative;
}

#v1WelcomeClose {
  position: absolute !important;

  top: 14px !important;
  right: 14px !important;

  width: 34px !important;
  height: 34px !important;

  display: grid !important;
  place-items: center !important;

  margin: 0 !important;
  padding: 0 !important;

  border-radius: 50% !important;

  z-index: 20 !important;

  transform: none !important;
}


/* keep it neat on mobile */
@media (max-width: 600px) {
  #v1WelcomeClose {
    top: 11px !important;
    right: 11px !important;

    width: 32px !important;
    height: 32px !important;
  }
}



/* =========================================================
   FATI X VIDEO ANALYZER
   ========================================================= */

.analyzer-page {
  position: relative;

  width: min(980px, calc(100% - 34px));

  margin: 0 auto;

  padding: 54px 0 90px;

  isolation: isolate;
}


.analyzer-ambient {
  position: absolute;

  width: 420px;
  height: 420px;

  border-radius: 50%;

  filter: blur(120px);

  opacity: .08;

  pointer-events: none;

  z-index: -1;
}


.analyzer-ambient-a {
  top: 80px;
  left: -180px;

  background: #8aa9d3;
}


.analyzer-ambient-b {
  top: 460px;
  right: -190px;

  background: #bed0e8;
}


.analyzer-pill {
  width: max-content;

  margin: 0 auto;
}


.analyzer-hero {
  max-width: 700px;

  margin: 31px auto 29px;

  text-align: center;
}


.analyzer-eyebrow {
  display: block;

  margin-bottom: 9px;

  color: #66758a;

  font-size: 8px;
  font-weight: 950;

  letter-spacing: .2em;
}


.analyzer-hero h2 {
  margin: 0;

  color: #edf2f8;

  font-size: clamp(
    34px,
    6vw,
    65px
  );

  font-weight: 950;

  line-height: .98;

  letter-spacing: -.045em;
}


.analyzer-hero p {
  max-width: 560px;

  margin:
    17px auto 0;

  color: #818da0;

  font-size: 12px;

  line-height: 1.7;
}


/* CAPABILITIES */

.analyzer-capabilities {
  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 10px;

  margin:
    0 auto 17px;

  max-width: 760px;
}


.analyzer-capability {
  min-height: 68px;

  padding: 13px 14px;

  display: flex;
  align-items: center;

  gap: 11px;

  border:
    1px solid
    rgba(182,199,221,.1);

  border-radius: 14px;

  background:
    rgba(255,255,255,.015);
}


.analyzer-capability > span {
  width: 29px;
  height: 29px;

  display: grid;
  place-items: center;

  flex: 0 0 auto;

  border:
    1px solid
    rgba(195,210,231,.12);

  border-radius: 9px;

  color: #738096;

  font-size: 8px;
  font-weight: 950;
}


.analyzer-capability strong {
  display: block;

  color: #cfd8e5;

  font-size: 9px;

  letter-spacing: .06em;
}


.analyzer-capability small {
  display: block;

  margin-top: 3px;

  color: #596679;

  font-size: 8px;
}


/* MACHINE */

.analyzer-machine {
  position: relative;

  max-width: 760px;

  margin: 0 auto;

  padding: 18px;

  overflow: hidden;

  border:
    1px solid
    rgba(199,214,233,.16);

  border-radius: 23px;

  background:
    radial-gradient(
      circle at 15% 0%,
      rgba(198,215,239,.07),
      transparent 27%
    ),
    linear-gradient(
      180deg,
      rgba(15,21,29,.98),
      rgba(7,11,16,.985)
    );

  box-shadow:
    0 32px 90px
    rgba(0,0,0,.31),
    inset 0 1px 0
    rgba(255,255,255,.035);
}


.analyzer-machine::before {
  content: "";

  position: absolute;

  top: 0;
  left: 9%;

  width: 82%;
  height: 1px;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(226,235,247,.28),
      transparent
    );
}


.analyzer-machine-top {
  margin-bottom: 14px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 15px;
}


.analyzer-machine-brand {
  display: flex;
  align-items: center;

  gap: 10px;
}


.analyzer-live-dot {
  width: 8px;
  height: 8px;

  border-radius: 50%;

  background: #bfcbda;

  box-shadow:
    0 0 0 0
    rgba(199,215,237,.2);

  animation:
    analyzerLiveDot
    2.1s ease-out infinite;
}


.analyzer-machine-brand strong {
  display: block;

  color: #dce3ec;

  font-size: 9px;

  letter-spacing: .075em;
}


.analyzer-machine-brand small {
  display: block;

  margin-top: 2px;

  color: #5d697b;

  font-size: 7px;
}


.analyzer-secure-badge {
  padding: 6px 9px;

  border:
    1px solid
    rgba(184,201,224,.13);

  border-radius: 8px;

  color: #68768b;

  background:
    rgba(255,255,255,.02);

  font-size: 7px;
  font-weight: 900;

  letter-spacing: .09em;
}


/* DROPZONE */

.analyzer-drop-zone {
  position: relative;

  width: 100%;
  min-height: 220px;

  padding: 30px 20px;

  display: flex;
  flex-direction: column;

  align-items: center;
  justify-content: center;

  border:
    1px dashed
    rgba(184,201,224,.24);

  border-radius: 18px;

  background:
    radial-gradient(
      circle at 50% 20%,
      rgba(190,209,236,.055),
      transparent 45%
    ),
    rgba(255,255,255,.013);

  color: inherit;

  cursor: pointer;

  transition:
    border-color .25s ease,
    background .25s ease,
    transform .25s ease;
}


.analyzer-drop-zone:hover,
.analyzer-drop-zone.analyzer-dragging {
  border-color:
    rgba(207,222,242,.43);

  background:
    radial-gradient(
      circle at 50% 20%,
      rgba(199,218,245,.09),
      transparent 45%
    ),
    rgba(255,255,255,.025);

  transform:
    translateY(-1px);
}


.analyzer-upload-orbit {
  position: relative;

  width: 59px;
  height: 59px;

  margin-bottom: 15px;

  display: grid;
  place-items: center;

  border:
    1px solid
    rgba(196,211,232,.17);

  border-radius: 50%;

  background:
    rgba(255,255,255,.025);

  color: #dce5ef;

  font-size: 20px;
}


.analyzer-upload-orbit::before {
  content: "";

  position: absolute;

  inset: -7px;

  border:
    1px solid
    rgba(186,204,229,.08);

  border-radius: 50%;

  animation:
    analyzerOrbit
    3.5s linear infinite;
}


.analyzer-drop-zone > strong {
  color: #e6ecf4;

  font-size: 14px;
}


.analyzer-drop-zone > span {
  margin-top: 5px;

  color: #748196;

  font-size: 10px;
}


.analyzer-drop-zone > small {
  margin-top: 13px;

  color: #515d6e;

  font-size: 8px;
}


/* SELECTED FILE */

.analyzer-selected-file {
  margin-top: 10px;

  padding: 11px 12px;

  display: flex;
  align-items: center;

  gap: 11px;

  border:
    1px solid
    rgba(185,202,225,.11);

  border-radius: 12px;

  background:
    rgba(255,255,255,.018);
}


.analyzer-selected-icon {
  width: 32px;
  height: 32px;

  display: grid;
  place-items: center;

  border-radius: 9px;

  background:
    rgba(202,217,238,.06);

  color: #99a9bd;

  font-size: 9px;
}


.analyzer-selected-copy {
  min-width: 0;

  flex: 1;
}


.analyzer-selected-copy strong {
  display: block;

  overflow: hidden;

  color: #cfd8e5;

  font-size: 9px;

  text-overflow: ellipsis;
  white-space: nowrap;
}


.analyzer-selected-copy span {
  display: block;

  margin-top: 3px;

  color: #667387;

  font-size: 8px;
}


#analyzerRemoveFile {
  width: 30px;
  height: 30px;

  border: 0;

  border-radius: 8px;

  background:
    rgba(255,255,255,.03);

  color: #718095;

  cursor: pointer;
}


/* RUN */

.analyzer-run-btn {
  position: relative;

  width: 100%;
  min-height: 49px;

  margin-top: 12px;

  padding: 0 17px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  overflow: hidden;

  border:
    1px solid
    rgba(222,231,243,.39);

  border-radius: 13px;

  background:
    linear-gradient(
      180deg,
      #dce4ed,
      #9caabd
    );

  color: #070b10;

  font-size: 10px;
  font-weight: 950;

  letter-spacing: .095em;

  cursor: pointer;

  transition:
    opacity .2s ease,
    transform .2s ease;
}


.analyzer-run-btn:not(:disabled) {
  animation:
    analyzerButtonBreath
    2.8s ease-in-out infinite;
}


.analyzer-run-btn:not(:disabled)::before {
  content: "";

  position: absolute;

  top: -40%;
  bottom: -40%;

  left: -45%;

  width: 28%;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(255,255,255,.4),
      transparent
    );

  transform:
    skewX(-18deg);

  animation:
    analyzerButtonSheen
    2.8s ease-in-out infinite;

  pointer-events: none;
}


.analyzer-run-btn:disabled {
  opacity: .33;

  cursor: default;
}


.analyzer-run-symbol {
  font-size: 15px;
}


/* PROCESSING */

.analyzer-processing {
  margin-top: 13px;

  padding: 15px;

  border:
    1px solid
    rgba(180,198,222,.12);

  border-radius: 15px;

  background:
    #070b10;
}


.analyzer-processing-head {
  display: flex;
  justify-content: space-between;

  align-items: center;

  margin-bottom: 11px;
}


.analyzer-processing-head > div {
  display: flex;
  align-items: center;

  gap: 8px;
}


.analyzer-processing-head strong {
  color: #9baabc;

  font-size: 8px;

  letter-spacing: .1em;
}


.analyzer-processing-head > span {
  color: #718095;

  font-size: 8px;
  font-weight: 900;
}


.analyzer-processing-dot {
  width: 6px;
  height: 6px;

  border-radius: 50%;

  background: #aab9cb;

  animation:
    analyzerProcessingDot
    1s ease-in-out infinite;
}


.analyzer-scan-track {
  height: 3px;

  overflow: hidden;

  border-radius: 999px;

  background:
    rgba(255,255,255,.05);
}


.analyzer-scan-fill {
  width: 0%;
  height: 100%;

  border-radius: inherit;

  background:
    linear-gradient(
      90deg,
      #65758b,
      #e1e8f1
    );

  box-shadow:
    0 0 12px
    rgba(199,218,244,.3);

  transition:
    width .3s ease;
}


.analyzer-console {
  height: 185px;

  margin-top: 12px;

  padding: 11px;

  overflow-y: auto;

  border:
    1px solid
    rgba(255,255,255,.045);

  border-radius: 10px;

  background: #030507;

  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Consolas,
    monospace;

  scrollbar-width: thin;
}


.analyzer-console-placeholder {
  color: #3e4856;

  font-size: 8px;
}


.analyzer-console-line {
  padding: 5px 0;

  display: grid;

  grid-template-columns:
    28px 1fr auto;

  gap: 7px;

  opacity: 0;

  color: #778598;

  font-size: 8px;

  animation:
    analyzerConsoleLine
    .25s ease forwards;
}


.console-prefix {
  color: #465365;
}


.analyzer-console-line b {
  color: #718198;

  font-size: 7px;
}


.analyzer-console-complete {
  color: #b8c7da;
}


.analyzer-console-complete b {
  color: #b8c7da;
}


/* RESULT */

.analyzer-result {
  margin-top: 14px;

  overflow: hidden;

  border:
    1px solid
    rgba(197,213,234,.13);

  border-radius: 18px;

  background:
    rgba(255,255,255,.012);

  animation:
    analyzerResultEnter
    .42s cubic-bezier(.2,.75,.3,1)
    both;
}


.analyzer-result-head {
  padding: 20px;

  display: flex;

  gap: 15px;

  border-bottom:
    1px solid
    rgba(255,255,255,.05);
}


.analyzer-result-icon {
  width: 48px;
  height: 48px;

  flex: 0 0 auto;

  display: grid;
  place-items: center;

  border-radius: 15px;

  font-size: 18px;
  font-weight: 950;
}


.result-green
.analyzer-result-icon {
  color: #a5e8c7;

  border:
    1px solid
    rgba(74,222,145,.25);

  background:
    rgba(48,190,119,.08);

  box-shadow:
    0 0 28px
    rgba(54,208,127,.08);
}


.result-blue
.analyzer-result-icon {
  color: #b8d8ff;

  border:
    1px solid
    rgba(93,161,241,.24);

  background:
    rgba(74,139,217,.08);

  box-shadow:
    0 0 28px
    rgba(74,139,217,.08);
}


.result-red
.analyzer-result-icon {
  color: #ffabb5;

  border:
    1px solid
    rgba(255,92,110,.23);

  background:
    rgba(234,67,87,.07);

  box-shadow:
    0 0 28px
    rgba(234,67,87,.07);
}


.analyzer-result-copy > span {
  display: block;

  margin-bottom: 5px;

  color: #69778b;

  font-size: 7px;
  font-weight: 950;

  letter-spacing: .14em;
}


.analyzer-result-copy h3 {
  margin: 0;

  color: #ecf1f7;

  font-size: 17px;

  letter-spacing: -.02em;
}


.analyzer-result-copy p {
  max-width: 570px;

  margin: 7px 0 0;

  color: #78869a;

  font-size: 9px;

  line-height: 1.6;
}


/* CHECK GRID */

.analyzer-check-grid {
  padding: 14px;

  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 9px;
}


.analyzer-check {
  min-height: 124px;

  padding: 12px;

  border-radius: 13px;

  border:
    1px solid
    rgba(255,255,255,.055);

  background:
    rgba(255,255,255,.015);
}


.analyzer-check-top {
  display: flex;
  align-items: center;

  gap: 6px;

  margin-bottom: 12px;
}


.analyzer-check-icon {
  width: 18px;
  height: 18px;

  display: grid;
  place-items: center;

  border-radius: 50%;

  font-size: 8px;
  font-weight: 950;
}


.analyzer-check.passed
.analyzer-check-icon {
  color: #96ddbb;

  background:
    rgba(45,190,116,.1);
}


.analyzer-check.failed
.analyzer-check-icon {
  color: #ff9eaa;

  background:
    rgba(235,72,91,.1);
}


.analyzer-check.neutral
.analyzer-check-icon {
  color: #a8c6eb;

  background:
    rgba(79,145,218,.1);
}


.analyzer-check-label {
  color: #718096;

  font-size: 7px;
  font-weight: 900;

  letter-spacing: .08em;
}


.analyzer-check > strong {
  display: block;

  color: #d9e1eb;

  font-size: 11px;
}


.analyzer-check > small {
  display: block;

  margin-top: 7px;

  color: #606d7f;

  font-size: 7.5px;

  line-height: 1.45;
}


/* ISSUES */

.analyzer-issues {
  margin: 0 14px 14px;

  padding: 13px;

  border:
    1px solid
    rgba(255,92,110,.12);

  border-radius: 13px;

  background:
    rgba(235,67,87,.025);
}


.analyzer-issues-title {
  display: flex;
  align-items: center;

  gap: 7px;

  margin-bottom: 9px;
}


.analyzer-issues-title > span {
  width: 18px;
  height: 18px;

  display: grid;
  place-items: center;

  border-radius: 50%;

  background:
    rgba(235,67,87,.1);

  color: #ff9fac;

  font-size: 8px;
  font-weight: 900;
}


.analyzer-issues-title strong {
  color: #c49199;

  font-size: 7px;

  letter-spacing: .11em;
}


.analyzer-issue-row {
  padding: 9px 0;

  display: flex;

  gap: 9px;

  border-top:
    1px solid
    rgba(255,255,255,.035);
}


.analyzer-issue-row > span {
  color: #c06d79;

  font-size: 12px;
}


.analyzer-issue-row strong {
  color: #c9a4aa;

  font-size: 9px;
}


.analyzer-issue-row p {
  margin: 3px 0 0;

  color: #7a6469;

  font-size: 8px;

  line-height: 1.5;
}


/* TECHNICAL */

.analyzer-technical {
  margin: 0 14px 14px;

  border:
    1px solid
    rgba(190,206,228,.09);

  border-radius: 12px;

  background:
    rgba(255,255,255,.012);
}


.analyzer-technical summary {
  min-height: 42px;

  padding: 0 13px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  list-style: none;

  color: #748196;

  font-size: 8px;
  font-weight: 900;

  letter-spacing: .08em;

  cursor: pointer;
}


.analyzer-technical summary::-webkit-details-marker {
  display: none;
}


.analyzer-technical summary b {
  color: #67758a;

  font-size: 13px;
}


.analyzer-technical[open]
summary b {
  transform: rotate(45deg);
}


.analyzer-technical-grid {
  padding:
    0 13px 11px;

  display: grid;

  grid-template-columns:
    repeat(2, 1fr);

  gap: 7px;
}


.analyzer-tech-row {
  padding: 8px 9px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 12px;

  border-radius: 8px;

  background:
    rgba(255,255,255,.017);
}


.analyzer-tech-row span {
  color: #596679;

  font-size: 7px;
}


.analyzer-tech-row strong {
  color: #aab6c6;

  font-size: 8px;

  text-align: right;
}


/* ACTIONS */

.analyzer-result-actions {
  padding: 0 14px 14px;

  display: grid;

  grid-template-columns:
    1fr 1fr;

  gap: 9px;
}


.analyzer-result-actions button {
  min-height: 44px;

  border-radius: 11px;

  font-size: 8px;
  font-weight: 950;

  letter-spacing: .08em;

  cursor: pointer;
}


.analyzer-secondary-btn {
  border:
    1px solid
    rgba(190,205,226,.12);

  background:
    rgba(255,255,255,.02);

  color: #778498;
}


.analyzer-primary-result-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 13px;

  border:
    1px solid
    rgba(224,232,242,.35);

  background:
    linear-gradient(
      180deg,
      #d7e0ea,
      #99a8ba
    );

  color: #070b10;
}


/* ERROR */

.analyzer-error {
  margin-top: 12px;

  padding: 11px 12px;

  border:
    1px solid
    rgba(255,89,108,.15);

  border-radius: 11px;

  background:
    rgba(235,66,87,.035);

  color: #d897a0;

  font-size: 9px;
}


/* BOTTOM NOTE */

.analyzer-bottom-note {
  max-width: 720px;

  margin: 16px auto 0;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 8px;

  color: #4f5b6b;
}


.analyzer-bottom-note span {
  color: #66758a;

  font-size: 9px;
}


.analyzer-bottom-note p {
  margin: 0;

  font-size: 8px;
}


/* ANIMATIONS */

@keyframes analyzerLiveDot {

  0% {
    box-shadow:
      0 0 0 0
      rgba(199,215,237,.22);
  }

  70% {
    box-shadow:
      0 0 0 7px
      rgba(199,215,237,0);
  }

  100% {
    box-shadow:
      0 0 0 0
      rgba(199,215,237,0);
  }

}


@keyframes analyzerOrbit {

  from {
    transform: rotate(0deg);
    opacity: .45;
  }

  50% {
    opacity: .9;
  }

  to {
    transform: rotate(360deg);
    opacity: .45;
  }

}


@keyframes analyzerProcessingDot {

  0%,
  100% {
    opacity: .4;
    transform: scale(.8);
  }

  50% {
    opacity: 1;
    transform: scale(1.25);
  }

}


@keyframes analyzerConsoleLine {

  from {
    opacity: 0;
    transform:
      translateY(3px);
  }

  to {
    opacity: 1;
    transform:
      translateY(0);
  }

}


@keyframes analyzerResultEnter {

  from {
    opacity: 0;
    transform:
      translateY(10px);
  }

  to {
    opacity: 1;
    transform:
      translateY(0);
  }

}


@keyframes analyzerButtonBreath {

  0%,
  100% {
    box-shadow:
      0 0 0
      rgba(200,218,242,0);
  }

  50% {
    box-shadow:
      0 0 22px
      rgba(200,218,242,.09);
  }

}


@keyframes analyzerButtonSheen {

  0%,
  25% {
    left: -45%;
    opacity: 0;
  }

  35% {
    opacity: .8;
  }

  58% {
    left: 120%;
    opacity: .6;
  }

  70%,
  100% {
    left: 120%;
    opacity: 0;
  }

}


/* MOBILE */

@media (max-width: 720px) {

  .analyzer-page {
    width:
      min(100% - 22px, 980px);

    padding-top: 35px;
  }


  .analyzer-capabilities {
    grid-template-columns: 1fr;

    gap: 7px;
  }


  .analyzer-capability {
    min-height: 58px;
  }


  .analyzer-machine {
    padding: 12px;

    border-radius: 18px;
  }


  .analyzer-machine-top {
    align-items: flex-start;
  }


  .analyzer-secure-badge {
    font-size: 6px;
  }


  .analyzer-drop-zone {
    min-height: 190px;

    padding:
      25px 12px;
  }


  .analyzer-check-grid {
    grid-template-columns:
      repeat(2, 1fr);

    padding: 11px;
  }


  .analyzer-check {
    min-height: 121px;
  }


  .analyzer-technical-grid {
    grid-template-columns: 1fr;
  }


  .analyzer-result-head {
    padding: 15px;
  }


  .analyzer-result-icon {
    width: 42px;
    height: 42px;

    border-radius: 13px;
  }


  .analyzer-result-copy h3 {
    font-size: 14px;
  }


  .analyzer-result-actions {
    grid-template-columns: 1fr;
  }


  .analyzer-bottom-note {
    align-items: flex-start;

    padding: 0 10px;
  }

}


@media (max-width: 430px) {

  .analyzer-check-grid {
    grid-template-columns: 1fr;
  }


  .analyzer-hero p {
    font-size: 10px;
  }


  .analyzer-machine-brand strong {
    font-size: 8px;
  }

}


@media (prefers-reduced-motion: reduce) {

  .analyzer-live-dot,
  .analyzer-upload-orbit::before,
  .analyzer-processing-dot,
  .analyzer-run-btn,
  .analyzer-run-btn::before {
    animation: none !important;
  }

}



/* =========================================================
   HOW TO USE — APP ICON / NEW WORKFLOW POLISH
   ========================================================= */

.guide-app-feature {
  margin: 12px 0;

  padding: 12px;

  display: flex;
  align-items: center;

  gap: 11px;

  border: 1px solid rgba(190,205,226,.10);

  border-radius: 13px;

  background:
    linear-gradient(
      135deg,
      rgba(255,255,255,.024),
      rgba(255,255,255,.008)
    );
}


.guide-app-feature > div:not(.guide-brand-icon) {
  min-width: 0;
}


.guide-app-feature strong {
  display: block;

  color: #d4dde8;

  font-size: 10px;
}


.guide-app-feature p {
  margin: 4px 0 0;

  color: #687589;

  font-size: 8px;

  line-height: 1.5;
}


.guide-brand-icon {
  width: 39px;
  height: 39px;

  flex: 0 0 39px;

  display: grid;
  place-items: center;

  overflow: hidden;

  border: 1px solid rgba(205,219,238,.15);

  border-radius: 11px;

  background:
    linear-gradient(
      145deg,
      rgba(216,227,242,.09),
      rgba(255,255,255,.025)
    );

  color: #cbd7e6;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.04);
}


.guide-brand-icon svg {
  width: 23px;
  height: 23px;
}


.guide-brand-capcut {
  color: #edf2f7;
}


.guide-vn-mark {
  font-size: 11px;

  font-weight: 1000;

  letter-spacing: -.06em;

  color: #e4ebf4;
}


.guide-brand-files {
  color: #a9c9ef;
}


.guide-brand-photos {
  color: #d5dfeb;
}


.guide-brand-gallery {
  color: #b5c9df;
}


.guide-brand-edge {
  color: #b8d9f4;
}


.guide-edge-mark {
  font-size: 23px;

  font-weight: 1000;

  font-style: italic;

  line-height: 1;
}


.guide-brand-pc {
  color: #becbdd;
}


.guide-no-edit {
  margin: 10px 0 12px;

  padding: 10px 11px;

  border-left: 2px solid rgba(215,226,241,.35);

  border-radius: 3px 10px 10px 3px;

  background:
    rgba(211,224,241,.025);

  color: #6f7d90;

  font-size: 8px;

  line-height: 1.55;
}


.guide-no-edit strong {
  color: #cbd5e1;
}


.guide-capcut-export {
  margin-top: 12px;
}


.guide-spec-important {
  border-color:
    rgba(210,224,243,.20) !important;

  background:
    rgba(203,218,238,.035) !important;
}


.guide-cbr-note {
  margin-top: 10px;

  padding: 11px;

  border: 1px solid rgba(195,211,233,.13);

  border-radius: 11px;

  background:
    rgba(255,255,255,.018);

  color: #768397;

  font-size: 8px;

  line-height: 1.55;
}


.guide-cbr-note strong,
.guide-cbr-note b {
  color: #d3dce7;
}


.guide-warning-cbr {
  margin-top: 10px;
}


.guide-app-feature-compact {
  flex-wrap: wrap;
}


.guide-flow-arrow {
  margin: 0 2px;

  color: #536175;

  font-size: 13px;
}


.guide-save-flow .guide-app-chip {
  display: inline-flex;
  align-items: center;

  gap: 6px;
}


.guide-save-flow
.guide-brand-icon {
  width: 22px;
  height: 22px;

  flex-basis: 22px;

  border-radius: 6px;
}


.guide-save-flow
.guide-brand-icon svg {
  width: 14px;
  height: 14px;
}


.guide-save-flow
.guide-edge-mark,
.guide-save-flow
.guide-vn-mark {
  font-size: 9px;
}


@media (max-width: 600px) {

  .guide-app-feature {
    padding: 10px;
  }


  .guide-brand-icon {
    width: 36px;
    height: 36px;

    flex-basis: 36px;
  }


  .guide-app-feature-compact {
    align-items: center;
  }

}



/* =========================================================
   OPTIMIZER HERO — LAYOUT LOCK
   ========================================================= */

#page-optimizer .hero {
  position: relative;
  z-index: 2;

  display: block;

  width: 100%;
  max-width: none;

  margin-left: auto;
  margin-right: auto;

  padding: 10px 0 52px;

  text-align: center;
}


#page-optimizer .hero > .pill {
  display: flex;

  width: fit-content;

  margin-left: auto;
  margin-right: auto;
  margin-bottom: 23px;
}


#page-optimizer .hero h1 {
  display: block;

  width: 100%;

  margin-left: auto;
  margin-right: auto;

  text-align: center;
}


#page-optimizer .hero p {
  display: block;

  width: 100%;

  margin-left: auto;
  margin-right: auto;

  text-align: center;
}


/* Keep decorative side text attached to hero wrapper */
#page-optimizer .hero-wrap {
  position: relative;

  width: 100%;
}




/* =========================================================
   DESKTOP PAGE WIDTH ALIGNMENT
   Match How To Use + Video Analyzer with Optimizer width
   ========================================================= */

@media (min-width: 1001px) {

  /* HOW TO USE */
  #page-how .inner-page {
    width: 100% !important;
    max-width: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  #page-how .tutorial-main {
    width: 100% !important;
    max-width: none !important;
  }

  #page-how .tutorial-device-card {
    width: 100% !important;
    max-width: none !important;
  }

  #page-how .device-choice-panel {
    width: 100% !important;
    max-width: none !important;
  }


  /* VIDEO ANALYZER */
  #page-analyzer .analyzer-page {
    width: 100% !important;
    max-width: none !important;

    margin-left: auto !important;
    margin-right: auto !important;
  }

  #page-analyzer .analyzer-machine {
    width: 100% !important;
    max-width: none !important;
  }

  #page-analyzer .analyzer-bottom-note {
    width: 100% !important;
    max-width: none !important;
  }


  /* Keep the headings readable while main content is full-width */
  #page-how .section-head,
  #page-analyzer .analyzer-hero {
    max-width: 760px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

}



/* =========================================================
   FATI X PRO — 3 PLAN DESIGN
   ========================================================= */

.fx-plan-grid {
  width: 100%;

  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 18px;

  margin-top: 38px;
}


.fx-plan-card {
  position: relative;

  min-height: 430px;

  padding: 28px;

  display: flex;
  flex-direction: column;

  overflow: hidden;

  border:
    1px solid
    rgba(188,204,225,.15);

  border-radius: 22px;

  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(197,215,240,.06),
      transparent 33%
    ),
    linear-gradient(
      180deg,
      rgba(16,22,30,.98),
      rgba(7,11,16,.98)
    );

  box-shadow:
    0 26px 70px
    rgba(0,0,0,.25);
}


.fx-plan-featured {
  border-color:
    rgba(218,229,243,.35);

  transform:
    translateY(-10px);

  box-shadow:
    0 30px 90px
    rgba(0,0,0,.35),
    0 0 42px
    rgba(190,211,239,.05);
}


.fx-best-value {
  position: absolute;

  top: 17px;
  right: 17px;

  padding: 6px 9px;

  border-radius: 999px;

  background:
    rgba(220,231,245,.08);

  color: #d2dde9;

  font-size: 7px;
  font-weight: 950;

  letter-spacing: .12em;
}


.fx-plan-kicker {
  color: #77869b;

  font-size: 9px;
  font-weight: 950;

  letter-spacing: .16em;
}


.fx-plan-price {
  margin-top: 26px;

  display: flex;
  align-items: flex-start;

  color: #eef3f8;
}


.fx-plan-price sup {
  margin-top: 11px;
  margin-right: 4px;

  color: #8997aa;

  font-size: 18px;
  font-weight: 900;
}


.fx-plan-price strong {
  font-size: 66px;

  line-height: .9;

  letter-spacing: -.06em;
}


.fx-plan-period {
  margin-top: 10px;

  color: #566376;

  font-size: 8px;
  font-weight: 900;

  letter-spacing: .12em;
}


.fx-plan-features {
  margin: 28px 0;

  display: flex;
  flex-direction: column;

  gap: 13px;
}


.fx-plan-features span {
  color: #8895a7;

  font-size: 10px;
}


.fx-plan-button {
  width: 100%;
  min-height: 48px;

  margin-top: auto;

  padding: 0 15px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  border:
    1px solid
    rgba(196,211,232,.17);

  border-radius: 12px;

  background:
    rgba(255,255,255,.025);

  color: #b9c5d4;

  font-size: 9px;
  font-weight: 950;

  letter-spacing: .08em;

  cursor: pointer;
}


.fx-plan-button:hover {
  background:
    rgba(255,255,255,.055);
}


.fx-plan-button-featured {
  border-color:
    rgba(223,232,244,.4);

  background:
    linear-gradient(
      180deg,
      #dce4ed,
      #99a8ba
    );

  color: #080c11;
}


.fx-plan-note {
  margin: 25px auto 0;

  text-align: center;

  color: #566274;

  font-size: 9px;
}


@media (max-width: 900px) {

  .fx-plan-grid {
    grid-template-columns: 1fr;
  }

  .fx-plan-featured {
    transform: none;
  }

  .fx-plan-card {
    min-height: 380px;
  }

}



/* FATI X PRO — FOUR PLAN LAYOUT */

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

  .fx-plan-card {
    padding: 25px 22px;
  }
}


@media (min-width: 901px) and (max-width: 1200px) {
  .fx-plan-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }
}


.fx-plan-lifetime {
  border-color:
    rgba(198,213,234,.25);

  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(205,220,240,.1),
      transparent 36%
    ),
    linear-gradient(
      180deg,
      rgba(18,24,33,.98),
      rgba(8,12,17,.98)
    );
}



/* =========================================================
   PRO CARDS — UNIFIED HEIGHT + PREMIUM HOVER REFLECTION
   ========================================================= */


/* Keep all cards aligned equally */
.fx-plan-featured {
  transform: none !important;
}


/* All plan buttons use the same white premium style */
.fx-plan-button,
.fx-plan-button-featured {
  border-color:
    rgba(223,232,244,.42) !important;

  background:
    linear-gradient(
      180deg,
      #e3eaf2,
      #aab7c6
    ) !important;

  color: #080c11 !important;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.55),
    0 8px 24px rgba(0,0,0,.18);

  transition:
    transform .22s ease,
    box-shadow .22s ease,
    filter .22s ease;
}


.fx-plan-button:hover,
.fx-plan-button-featured:hover {
  transform: translateY(-2px);

  filter: brightness(1.05);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.7),
    0 12px 30px rgba(0,0,0,.26);
}


/* Premium responsive card behavior */
.fx-plan-card {
  position: relative;

  isolation: isolate;

  overflow: hidden;

  transition:
    transform .28s ease,
    border-color .28s ease,
    box-shadow .28s ease,
    background .28s ease;
}


/* Reflective light layer */
.fx-plan-card::before {
  content: "";

  position: absolute;

  inset: -35%;

  z-index: -1;

  opacity: 0;

  pointer-events: none;

  background:
    linear-gradient(
      115deg,
      transparent 34%,
      rgba(255,255,255,.03) 42%,
      rgba(210,225,245,.13) 50%,
      rgba(255,255,255,.035) 58%,
      transparent 66%
    );

  transform:
    translateX(-55%)
    rotate(4deg);

  transition:
    opacity .3s ease,
    transform .55s ease;
}


/* Soft cursor-response feel */
.fx-plan-card:hover {
  transform:
    translateY(-6px)
    scale(1.008);

  border-color:
    rgba(205,220,240,.38);

  box-shadow:
    0 34px 90px rgba(0,0,0,.38),
    0 0 34px rgba(180,205,235,.07),
    inset 0 1px 0 rgba(255,255,255,.045);
}


/* Reflection sweep on hover */
.fx-plan-card:hover::before {
  opacity: 1;

  transform:
    translateX(48%)
    rotate(4deg);
}


/* Slight inner brightness when hovered */
.fx-plan-card:hover .fx-plan-price,
.fx-plan-card:hover .fx-plan-kicker,
.fx-plan-card:hover .fx-plan-features {
  filter: brightness(1.05);
}


/* BEST VALUE card stays aligned but still subtly emphasized */
.fx-plan-featured {
  border-color:
    rgba(218,229,243,.35);
}


/* Lifetime card same hover behavior as others */
.fx-plan-lifetime:hover {
  border-color:
    rgba(218,229,243,.4);
}




/* =========================================================
   FATI X — GLOBAL INTERACTION SYSTEM
   ========================================================= */


/* ---------------------------------------------------------
   1. ALL CLICKABLE ELEMENTS
   Clean physical response — NO reflection sweep
   --------------------------------------------------------- */

button,
a,
[role="button"],
input[type="button"],
input[type="submit"],
input[type="reset"],
label[for],
.nav-link,
.login-btn,
.primary-btn,
.download-btn,
.pro-main-cta,
.pro-upsell-cta,
.pro-upsell-details,
.first-howto-btn,
.device-choice-btn,
.tutorial-tab,
.fx-plan-button,
.analyzer-drop-zone,
.analyzer-primary-result-btn,
.drop-zone {
  transition:
    transform .20s ease,
    filter .20s ease,
    border-color .20s ease,
    background-color .20s ease,
    box-shadow .20s ease,
    opacity .20s ease;

  will-change: transform;
}


/* Desktop hover only */
@media (hover: hover) and (pointer: fine) {

  button:not(:disabled):hover,
  a:hover,
  [role="button"]:hover,
  input[type="button"]:not(:disabled):hover,
  input[type="submit"]:not(:disabled):hover,
  input[type="reset"]:not(:disabled):hover,
  label[for]:hover,
  .nav-link:hover,
  .login-btn:hover,
  .primary-btn:not(:disabled):hover,
  .download-btn:hover,
  .pro-main-cta:hover,
  .pro-upsell-cta:hover,
  .pro-upsell-details:hover,
  .first-howto-btn:hover,
  .device-choice-btn:hover,
  .tutorial-tab:hover,
  .fx-plan-button:hover,
  .analyzer-drop-zone:hover,
  .analyzer-primary-result-btn:hover,
  .drop-zone:hover {
    transform:
      translateY(-2px)
      scale(1.012);

    filter:
      brightness(1.07);

    box-shadow:
      0 10px 28px rgba(0,0,0,.22),
      0 0 18px rgba(188,207,232,.055);
  }


  /* Navigation should remain more subtle */
  .nav-link:hover {
    transform:
      translateY(-1px)
      scale(1.025);

    box-shadow: none;
  }

}


/* Click/tap response */
button:not(:disabled):active,
a:active,
[role="button"]:active,
input[type="button"]:not(:disabled):active,
input[type="submit"]:not(:disabled):active,
input[type="reset"]:not(:disabled):active,
.primary-btn:not(:disabled):active,
.fx-plan-button:active {
  transform:
    translateY(0)
    scale(.985);

  transition-duration: .08s;
}


/* Disabled controls must NOT look interactive */
button:disabled,
input:disabled {
  cursor: not-allowed !important;
  transform: none !important;
  filter: none !important;
}


/* ---------------------------------------------------------
   2. DISPLAY-ONLY UI
   Responsive, but clearly NOT clickable
   --------------------------------------------------------- */

.pill,
.optimizer-plan-label,
.pro-live-badge,
.analyzer-secure-badge,
.tutorial-device-badge,
.pro-section-kicker,
.mini-kicker,
.analyzer-eyebrow,
.fx-plan-kicker,
.fx-best-value {
  transition:
    transform .24s ease,
    filter .24s ease,
    border-color .24s ease,
    box-shadow .24s ease;

  cursor: default;
}


@media (hover: hover) and (pointer: fine) {

  .pill:hover,
  .optimizer-plan-label:hover,
  .pro-live-badge:hover,
  .analyzer-secure-badge:hover,
  .tutorial-device-badge:hover,
  .pro-section-kicker:hover,
  .mini-kicker:hover,
  .analyzer-eyebrow:hover,
  .fx-plan-kicker:hover,
  .fx-best-value:hover {
    transform:
      translateY(-1px)
      scale(1.008);

    filter:
      brightness(1.08);

    border-color:
      rgba(205,220,240,.34);

    box-shadow:
      0 7px 22px rgba(0,0,0,.14);
  }

}


/* Text-only labels should not get a fake big shadow */
.pro-section-kicker:hover,
.mini-kicker:hover,
.analyzer-eyebrow:hover,
.fx-plan-kicker:hover {
  box-shadow: none;
}


/* ---------------------------------------------------------
   3. CONTINUOUS LIVE DOT MOTION
   Whole website
   --------------------------------------------------------- */

.pill-dot,
.status-dot,
.live-status-dot,
.analyzer-live-dot,
.tutorial-guide-intro-dot,
.top-follow-banner__gift::after {
  animation:
    fatiGlobalDotPulse 2.15s
    ease-in-out infinite;

  transform-origin: center;
}


@keyframes fatiGlobalDotPulse {

  0%,
  100% {
    transform: scale(.88);

    opacity: .68;

    box-shadow:
      0 0 5px rgba(205,220,240,.40),
      0 0 12px rgba(160,185,215,.16);
  }

  50% {
    transform: scale(1.18);

    opacity: 1;

    box-shadow:
      0 0 8px rgba(220,232,247,.88),
      0 0 20px rgba(170,198,230,.42);
  }

}


/* Keep animation timing slightly different between dots */
.status-dot {
  animation-delay: -.55s;
}

.analyzer-live-dot {
  animation-delay: -1.05s;
}

.tutorial-guide-intro-dot {
  animation-delay: -.28s;
}


/* ---------------------------------------------------------
   4. SMALL CARDS / OPTION BOXES
   Slight response — not pricing reflection
   --------------------------------------------------------- */

.optimizer-meta-card,
.pro-benefit,
.tutorial-guide-intro,
.guide-app-feature,
.analyzer-check-card,
.analyzer-selected-file {
  transition:
    transform .24s ease,
    filter .24s ease,
    border-color .24s ease,
    box-shadow .24s ease;
}


@media (hover: hover) and (pointer: fine) {

  .optimizer-meta-card:hover,
  .pro-benefit:hover,
  .tutorial-guide-intro:hover,
  .guide-app-feature:hover,
  .analyzer-check-card:hover,
  .analyzer-selected-file:hover {
    transform: translateY(-2px);

    filter: brightness(1.045);

    border-color:
      rgba(195,214,237,.26);

    box-shadow:
      0 11px 30px rgba(0,0,0,.15);
  }

}


/* ---------------------------------------------------------
   5. PRESERVE PRICING CARD'S OWN SPECIAL EFFECT
   Don't spread its reflection animation globally
   --------------------------------------------------------- */

.fx-plan-card {
  cursor: default;
}


/* ---------------------------------------------------------
   6. ACCESSIBILITY
   --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

  button,
  a,
  [role="button"],
  .pill,
  .optimizer-plan-label,
  .pro-live-badge,
  .analyzer-secure-badge,
  .tutorial-device-badge,
  .optimizer-meta-card,
  .pro-benefit,
  .tutorial-guide-intro,
  .guide-app-feature,
  .analyzer-check-card,
  .analyzer-selected-file {
    transition: none !important;
  }

  .pill-dot,
  .status-dot,
  .live-status-dot,
  .analyzer-live-dot,
  .tutorial-guide-intro-dot {
    animation: none !important;
  }

}



/* =========================================================
   HEADER PRO CHIP — PREMIUM LIVE GLOW
   ========================================================= */

.credit-chip-pro {
  position: relative;
  overflow: hidden;

  border-color:
    rgba(220,230,244,.38) !important;

  background:
    linear-gradient(
      180deg,
      rgba(32,40,52,.96),
      rgba(14,19,26,.98)
    ) !important;

  color: #eef4fb !important;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 0 18px rgba(183,205,235,.08);

  animation:
    proChipBreath 2.8s ease-in-out infinite;
}


/* moving premium shine */
.credit-chip-pro::before {
  content: "";

  position: absolute;

  top: -40%;
  left: -55%;

  width: 42%;
  height: 180%;

  pointer-events: none;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(255,255,255,.16),
      rgba(220,232,248,.28),
      rgba(255,255,255,.12),
      transparent
    );

  transform:
    skewX(-18deg);

  animation:
    proChipShine 3.4s ease-in-out infinite;
}


/* keep text above shine */
.credit-chip-pro > * {
  position: relative;
  z-index: 1;
}


.credit-chip-pro strong {
  letter-spacing: .12em;

  text-shadow:
    0 0 8px rgba(220,232,248,.28);
}


/* PRO dot continuously pulses */
.credit-pro-dot {
  width: 7px;
  height: 7px;

  border-radius: 50%;

  background: #e4edf8;

  box-shadow:
    0 0 8px rgba(225,237,250,.85),
    0 0 18px rgba(178,205,238,.45);

  animation:
    proDotPulse 1.8s ease-in-out infinite;
}


@keyframes proChipShine {

  0% {
    left: -55%;
    opacity: 0;
  }

  18% {
    opacity: .8;
  }

  42% {
    left: 120%;
    opacity: 0;
  }

  100% {
    left: 120%;
    opacity: 0;
  }

}


@keyframes proChipBreath {

  0%,
  100% {
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.07),
      0 0 15px rgba(183,205,235,.07);

    filter: brightness(1);
  }

  50% {
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.12),
      0 0 26px rgba(183,205,235,.16);

    filter: brightness(1.08);
  }

}


@keyframes proDotPulse {

  0%,
  100% {
    transform: scale(.86);
    opacity: .7;
  }

  50% {
    transform: scale(1.22);
    opacity: 1;
  }

}


/* hover = slightly stronger premium response */
@media (hover: hover) and (pointer: fine) {

  .credit-chip-pro:hover {
    transform:
      translateY(-2px)
      scale(1.025);

    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.14),
      0 0 32px rgba(183,205,235,.19);
  }

}


/* respect reduced motion */
@media (prefers-reduced-motion: reduce) {

  .credit-chip-pro,
  .credit-chip-pro::before,
  .credit-pro-dot {
    animation: none !important;
  }

}



/* =========================================================
   REAL HEADER DAILY-USE BADGE — PRO MODE
   ========================================================= */

#dailyUseBadge.daily-use-badge-pro {
  position: relative;
  overflow: hidden;

  border-color:
    rgba(216,229,247,.46) !important;

  background:
    linear-gradient(
      180deg,
      rgba(30,38,50,.98),
      rgba(12,17,24,.98)
    ) !important;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.10),
    0 0 16px rgba(178,205,239,.12);

  animation:
    dailyProGlow 2.5s ease-in-out infinite;
}


/* Premium moving shine */
#dailyUseBadge.daily-use-badge-pro::before {
  content: "";

  position: absolute;

  top: -60%;
  left: -45%;

  width: 34%;
  height: 220%;

  pointer-events: none;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(255,255,255,.10),
      rgba(230,239,252,.42),
      rgba(255,255,255,.12),
      transparent
    );

  transform: skewX(-20deg);

  animation:
    dailyProSweep 3.1s ease-in-out infinite;
}


/* Keep badge text above shine */
#dailyUseBadge.daily-use-badge-pro > * {
  position: relative;
  z-index: 2;
}


#dailyUseBadge.daily-use-badge-pro
#dailyUseBadgeCount {
  color: #f3f7fc !important;

  font-weight: 950;

  letter-spacing: .10em;

  text-shadow:
    0 0 8px rgba(220,234,251,.38);
}


#dailyUseBadge.daily-use-badge-pro
#dailyUseBadgePlan {
  color: #aebdd0 !important;

  letter-spacing: .12em;
}


/* Glow breathing */
@keyframes dailyProGlow {

  0%,
  100% {
    filter: brightness(1);

    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.08),
      0 0 13px rgba(178,205,239,.08);
  }

  50% {
    filter: brightness(1.10);

    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.15),
      0 0 28px rgba(178,205,239,.22);
  }

}


/* Shine repeatedly travels across */
@keyframes dailyProSweep {

  0% {
    left: -45%;
    opacity: 0;
  }

  15% {
    opacity: 1;
  }

  42% {
    left: 125%;
    opacity: 0;
  }

  100% {
    left: 125%;
    opacity: 0;
  }

}


/* Stronger interaction on hover */
@media (hover: hover) and (pointer: fine) {

  #dailyUseBadge.daily-use-badge-pro:hover {
    transform:
      translateY(-2px)
      scale(1.035);

    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.16),
      0 0 34px rgba(180,208,242,.24);
  }

}



/* =========================================================
   FREE DAILY USE BADGE — SUBTLE LIVE RESPONSE
   ========================================================= */

#dailyUseBadge:not(.daily-use-badge-pro) {
  position: relative;

  border-color:
    rgba(170,185,205,.24);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.025),
    0 0 10px rgba(150,175,205,.035);

  animation:
    freeBadgeBreath 3.4s ease-in-out infinite;
}


#dailyUseBadge:not(.daily-use-badge-pro)
#dailyUseBadgeCount {
  transition:
    color .22s ease,
    text-shadow .22s ease,
    filter .22s ease;
}


#dailyUseBadge:not(.daily-use-badge-pro)
#dailyUseBadgePlan {
  transition:
    color .22s ease,
    filter .22s ease;
}


@keyframes freeBadgeBreath {

  0%,
  100% {
    filter: brightness(1);

    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.025),
      0 0 8px rgba(150,175,205,.025);
  }

  50% {
    filter: brightness(1.035);

    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.045),
      0 0 15px rgba(150,175,205,.07);
  }

}


@media (hover: hover) and (pointer: fine) {

  #dailyUseBadge:not(.daily-use-badge-pro):hover {
    transform:
      translateY(-1px)
      scale(1.015);

    filter: brightness(1.06);

    border-color:
      rgba(185,200,220,.34);

    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.055),
      0 8px 20px rgba(0,0,0,.14),
      0 0 16px rgba(155,180,210,.08);
  }

  #dailyUseBadge:not(.daily-use-badge-pro):hover
  #dailyUseBadgeCount {
    color: #e5ebf3;

    text-shadow:
      0 0 6px rgba(205,220,240,.12);
  }

  #dailyUseBadge:not(.daily-use-badge-pro):hover
  #dailyUseBadgePlan {
    color: #9ca9b9;
  }

}


/* ===== OPTIMIZER LIVE PROGRESS ===== */

.optimizer-live-progress {
  margin: 18px 0 6px;
  padding: 16px 18px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  background: rgba(255,255,255,.025);
}

.optimizer-live-progress-head,
.optimizer-live-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.optimizer-live-progress-head strong {
  font-size: 11px;
  letter-spacing: .12em;
}

#optimizerLivePercent {
  font-size: 13px;
  font-weight: 800;
}

.optimizer-live-progress-track {
  width: 100%;
  height: 8px;
  margin: 12px 0 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,.08);
}

.optimizer-live-progress-fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    rgba(190,198,210,.55),
    rgba(255,255,255,.95)
  );
  transition: width .18s ease;
}

.optimizer-live-progress-meta {
  color: #8f99a8;
  font-size: 10px;
}

.optimizer-live-progress.hidden {
  display: none;
}

@media (max-width: 760px) {
  .optimizer-live-progress-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}

/* =========================================================
   WEBSITE SUPPORT MESSAGE
   ========================================================= */

.fx-support-section {
  width: 100%;
  padding: 38px 24px 44px;
}

.fx-support-shell {
  width: min(940px, 100%);
  margin: 0 auto;
  padding: 30px;

  border:
    1px solid
    rgba(190, 205, 225, .12);

  border-radius: 18px;

  background:
    linear-gradient(
      180deg,
      rgba(18, 24, 33, .62),
      rgba(7, 11, 17, .62)
    );
}

.fx-support-heading {
  margin-bottom: 22px;
}

.fx-support-kicker {
  display: block;
  margin-bottom: 9px;

  color: #6f7c8f;

  font-size: 9px;
  font-weight: 800;
  letter-spacing: .22em;
}

.fx-support-heading h2 {
  margin: 0;

  color: #e4e9f0;

  font-size: clamp(22px, 3vw, 34px);
  font-weight: 900;
  letter-spacing: .04em;
}

.fx-support-heading p {
  margin: 8px 0 0;

  color: #748195;

  font-size: 12px;
}

.fx-support-form {
  display: grid;
  gap: 13px;
}

.fx-support-form label {
  display: flex;
  align-items: center;
  gap: 8px;

  margin-bottom: 8px;

  color: #8491a4;

  font-size: 9px;
  font-weight: 800;
  letter-spacing: .15em;
}

.fx-support-form label span {
  color: #505b6a;
  font-size: 8px;
}

.fx-support-email-wrap input,
.fx-support-message-wrap textarea {
  width: 100%;
  box-sizing: border-box;

  border:
    1px solid
    rgba(185, 202, 225, .13);

  border-radius: 12px;

  outline: none;

  background:
    rgba(255, 255, 255, .018);

  color: #dce3ec;

  font: inherit;

  transition:
    border-color .2s ease,
    background .2s ease;
}

.fx-support-email-wrap input {
  height: 46px;
  padding: 0 14px;
}

.fx-support-message-wrap textarea {
  min-height: 125px;
  max-height: 300px;

  padding: 14px;

  resize: vertical;

  line-height: 1.55;
}

.fx-support-email-wrap input:focus,
.fx-support-message-wrap textarea:focus {
  border-color:
    rgba(200, 215, 235, .35);

  background:
    rgba(255, 255, 255, .027);
}

.fx-support-email-wrap input::placeholder,
.fx-support-message-wrap textarea::placeholder {
  color: #46515f;
}

.fx-support-message-meta {
  display: flex;
  justify-content: flex-end;

  margin-top: 6px;

  color: #4f5b6a;

  font-size: 8px;
}

.fx-support-submit {
  width: 100%;
  min-height: 48px;

  margin-top: 3px;
  padding: 0 18px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  border:
    1px solid
    rgba(225, 233, 244, .34);

  border-radius: 12px;

  background:
    linear-gradient(
      180deg,
      #d6dde6,
      #8995a6
    );

  color: #070b10;

  font-size: 10px;
  font-weight: 950;
  letter-spacing: .11em;

  cursor: pointer;
}

.fx-support-submit:disabled {
  opacity: .45;
  cursor: default;
}

.fx-support-status {
  min-height: 16px;

  margin: 0;

  color: #77869a;

  font-size: 10px;
}

@media (max-width: 640px) {
  .fx-support-section {
    padding:
      28px 14px
      34px;
  }

  .fx-support-shell {
    padding: 20px;
  }

  .fx-support-heading h2 {
    font-size: 23px;
  }
}



/* =========================================================
   BEFORE / AFTER VIDEO COMPARISON
   ========================================================= */

.fx-compare-section {
  width: min(1400px, calc(100% - 32px));
  margin: 86px auto 88px;
  padding: 0;
}

.fx-compare-heading {
  text-align: center;
  margin-bottom: 34px;
}

.fx-compare-heading > span {
  display: block;

  margin-bottom: 12px;

  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.24em;

  color: #76859a;
}

.fx-compare-heading h2 {
  margin: 0;

  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.05;
  letter-spacing: 0.035em;

  color: #f3f6fb;
}

.fx-compare-heading p {
  max-width: 620px;

  margin: 17px auto 0;

  font-size: 15px;
  line-height: 1.7;

  color: #7f8b9c;
}

.fx-compare-frame {
  width: min(1180px, 100%);

  margin: 0 auto;

  padding: 13px;

  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 34px;

  background:
    linear-gradient(
      145deg,
      rgba(28, 37, 49, 0.96),
      rgba(8, 13, 20, 0.98)
    );

  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.fx-compare-stage {
  --compare-position: 50%;

  position: relative;

  width: 100%;
  aspect-ratio: 16 / 9;

  overflow: hidden;

  border-radius: 24px;

  background:
    radial-gradient(
      circle at 50% 35%,
      rgba(78, 94, 117, 0.18),
      transparent 45%
    ),
    #070b11;

  touch-action: none;
  user-select: none;
}

.fx-compare-video {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;

  background: #070b11;
}

.fx-before-video {
  z-index: 1;
}

.fx-after-video {
  z-index: 2;

  clip-path:
    inset(
      0
      0
      0
      var(--compare-position)
    );
}

.fx-compare-empty {
  position: absolute;
  top: 0;
  bottom: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 50%;

  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;

  color: rgba(199, 210, 225, 0.28);

  pointer-events: none;
}

.fx-before-empty {
  left: 0;
  z-index: 3;
}

.fx-after-empty {
  right: 0;
  z-index: 3;
}

.fx-compare-label {
  position: absolute;
  top: 18px;
  z-index: 8;

  padding: 9px 13px;

  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;

  background: rgba(6, 10, 16, 0.72);

  backdrop-filter: blur(12px);

  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.13em;

  color: #f5f7fa;

  pointer-events: none;
}

.fx-before-label {
  left: 16px;
}

.fx-after-label {
  right: 16px;

  color: #dce5f1;
}

.fx-compare-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--compare-position);

  z-index: 10;

  width: 2px;

  transform: translateX(-1px);

  background:
    linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.48),
      #ffffff 18%,
      #ffffff 82%,
      rgba(255, 255, 255, 0.48)
    );

  pointer-events: none;
}

.fx-compare-divider::before {
  content: "";

  position: absolute;
  inset: 0 -8px;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(255, 255, 255, 0.08),
      transparent
    );
}

.fx-compare-handle {
  position: absolute;
  top: 50%;
  left: 50%;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;

  width: 52px;
  height: 52px;

  transform: translate(-50%, -50%);

  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;

  background:
    linear-gradient(
      145deg,
      #f8fafc,
      #b9c5d4
    );

  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.34),
    0 0 0 5px rgba(255, 255, 255, 0.07);

  color: #10161f;
}

.fx-compare-handle b {
  font-size: 20px;
  line-height: 1;
}

.fx-compare-range {
  position: absolute;
  inset: 0;

  z-index: 20;

  width: 100%;
  height: 100%;

  margin: 0;

  cursor: ew-resize;

  opacity: 0;
}

.fx-compare-caption {
  display: flex;
  align-items: center;
  gap: 12px;

  padding: 14px 6px 3px;

  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.18em;

  color: #68778b;
}

.fx-compare-caption div {
  flex: 1;

  height: 1px;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(142, 158, 180, 0.25),
      transparent
    );
}


/*
  Hide placeholders automatically once
  actual video files are connected.
*/
.fx-compare-stage.has-before-video
.fx-before-empty {
  display: none;
}

.fx-compare-stage.has-after-video
.fx-after-empty {
  display: none;
}


@media (max-width: 640px) {

  .fx-compare-section {
    width: min(100% - 24px, 1120px);

    margin-top: 62px;
    margin-bottom: 66px;
  }

  .fx-compare-heading {
    margin-bottom: 26px;
  }

  .fx-compare-heading p {
    padding: 0 12px;

    font-size: 14px;
  }

  .fx-compare-frame {
    width: 100%;

    padding: 9px;

    border-radius: 28px;
  }

  .fx-compare-stage {
    border-radius: 20px;
  }

  .fx-compare-handle {
    width: 46px;
    height: 46px;
  }

}





/* Detailed Microsoft Edge upload instructions */
.guide-edge-detailed-steps {
  gap: 16px;
}

.guide-edge-detailed-steps span {
  position: relative;

  display: block;

  padding-left: 42px;

  color: #8e99aa;

  line-height: 1.65;
}

.guide-edge-detailed-steps span > b:first-child {
  position: absolute;

  top: 2px;
  left: 0;

  width: 28px;

  color: #66758a;

  font-size: 8px;
  font-weight: 900;

  letter-spacing: .08em;
}

.guide-edge-detailed-steps span > b:first-child + strong {
  display: block;

  margin-bottom: 4px;

  color: #eef3f9;

  font-weight: 800;
}



/* =========================================================
   FATI X — SUBSCRIPTION CHANGE MODAL
   ========================================================= */

.fx-subscription-modal {
  z-index: 180;
}

.fx-subscription-modal-card {
  width: min(520px, 100%);
  padding: 30px;
  overflow: hidden;
}

.fx-subscription-modal-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      circle at 78% 4%,
      rgba(194, 205, 221, .10),
      transparent 34%
    );
}

.fx-subscription-modal-badge {
  position: relative;
  z-index: 1;
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: #aeb8c6;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .17em;
}

.fx-subscription-modal-badge span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #dbe2ea;
  box-shadow:
    0 0 15px rgba(219, 226, 234, .52);
}

.fx-subscription-modal-card h3,
.fx-subscription-modal-card > p,
.fx-subscription-charge-box,
.fx-subscription-detail-list,
.fx-subscription-modal-actions,
.fx-subscription-secure-note {
  position: relative;
  z-index: 1;
}

.fx-subscription-modal-card h3 {
  margin-bottom: 8px;
}

.fx-subscription-modal-card > p {
  max-width: 430px;
}

.fx-subscription-charge-box {
  margin-top: 22px;
  padding: 19px 20px;
  border: 1px solid rgba(167, 181, 200, .20);
  border-radius: 16px;
  background:
    linear-gradient(
      180deg,
      rgba(26, 34, 45, .92),
      rgba(14, 19, 26, .92)
    );
}

.fx-subscription-charge-box span {
  display: block;
  margin-bottom: 5px;
  color: #778292;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .16em;
}

.fx-subscription-charge-box strong {
  color: #f1f4f7;
  font-size: 31px;
  line-height: 1;
  letter-spacing: -.035em;
}

.fx-subscription-detail-list {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.fx-subscription-detail-row {
  min-height: 43px;
  padding: 0 13px;
  border: 1px solid rgba(149, 164, 184, .13);
  border-radius: 11px;
  background: rgba(14, 19, 26, .58);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.fx-subscription-detail-row span {
  color: #778291;
  font-size: 10px;
  font-weight: 800;
}

.fx-subscription-detail-row b {
  color: #cfd6df;
  font-size: 10px;
  font-weight: 900;
  text-align: right;
}

.fx-subscription-modal-actions {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 125px 1fr;
  gap: 10px;
}

.fx-subscription-cancel,
.fx-subscription-confirm {
  min-height: 52px;
  border-radius: 13px;
  cursor: pointer;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
}

.fx-subscription-cancel {
  border: 1px solid rgba(151, 165, 184, .20);
  background: #111720;
  color: #9ca7b6;
}

.fx-subscription-cancel:hover {
  border-color: rgba(204, 215, 229, .42);
  color: #e1e6ec;
}

.fx-subscription-confirm {
  border: 1px solid #d7dde5;
  background:
    linear-gradient(
      180deg,
      #edf1f5,
      #aeb9c8
    );
  color: #0b0f14;
}

.fx-subscription-confirm:disabled {
  opacity: .55;
  cursor: wait;
}

.fx-subscription-secure-note {
  display: block;
  margin-top: 12px;
  color: #626d7c;
  font-size: 9px;
  text-align: center;
  letter-spacing: .04em;
}

@media (max-width: 560px) {
  .fx-subscription-modal-card {
    padding: 24px 18px 20px;
  }

  .fx-subscription-modal-actions {
    grid-template-columns: 1fr;
  }

  .fx-subscription-cancel {
    order: 2;
  }

  .fx-subscription-confirm {
    order: 1;
  }
}



/* ===== SANDBOX TIKTOK CONNECT ===== */

.tiktok-post-panel {
  width: 100%;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
  background: rgba(255,255,255,0.035);
  box-sizing: border-box;
}

.tiktok-connect-btn {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.16);
  background: #fff;
  color: #050505;
  text-decoration: none;
  font: inherit;
  font-weight: 800;
  letter-spacing: 0.02em;
  transition: 0.2s ease;
}

.tiktok-connect-btn:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,0.92);
}

.tiktok-connect-btn:visited {
  color: #050505;
}

.tiktok-connect-note {
  margin: 9px 0 0;
  color: rgba(255,255,255,0.50);
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}

.tiktok-connect-status {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 11px 12px;
  box-sizing: border-box;
  border: 1px solid rgba(100,255,160,0.18);
  border-radius: 10px;
  background: rgba(80,220,130,0.07);
}

.tiktok-connect-avatar {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255,255,255,0.08);
}

.tiktok-connect-user {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tiktok-connect-user span {
  color: #a8ddb9;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.tiktok-connect-user strong {
  color: #fff;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}


/* ===== TIKTOK DIRECT POST CONTROLS ===== */

.tiktok-publish-controls {
  width: 100%;
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.tiktok-field {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.tiktok-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tiktok-field label,
.tiktok-field-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.07em;
  color: rgba(255,255,255,0.72);
}

#tiktokCaptionCount {
  font-size: 11px;
  color: rgba(255,255,255,0.42);
}

#tiktokPostTitle,
#tiktokPrivacySelect {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 9px;
  background: rgba(255,255,255,0.045);
  color: #fff;
  font: inherit;
  outline: none;
}

#tiktokPostTitle {
  min-height: 96px;
  padding: 11px 12px;
  resize: vertical;
  line-height: 1.45;
}

#tiktokPrivacySelect {
  min-height: 44px;
  padding: 0 11px;
}

#tiktokPrivacySelect option {
  color: #000;
}

.tiktok-option-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.tiktok-check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 9px 10px;
  box-sizing: border-box;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 9px;
  background: rgba(255,255,255,0.025);
  cursor: pointer;
}

.tiktok-check-wide {
  width: 100%;
}

.tiktok-check input {
  flex: 0 0 auto;
  margin: 0;
}

.tiktok-check span {
  min-width: 0;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(255,255,255,0.72);
  letter-spacing: 0;
  font-weight: 600;
}

.tiktok-check:has(input:disabled) {
  opacity: 0.45;
  cursor: not-allowed;
}

.tiktok-consent-field {
  padding-top: 2px;
}

.tiktok-post-btn {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 10px;
  font: inherit;
  font-weight: 900;
  letter-spacing: 0.035em;
  cursor: pointer;
}

.tiktok-post-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.tiktok-post-message {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 11px;
  border-radius: 9px;
  font-size: 12px;
  line-height: 1.45;
  background: rgba(255,255,255,0.045);
}

.tiktok-sandbox-note {
  margin: 0;
  font-size: 11px;
  line-height: 1.45;
  text-align: center;
  color: rgba(255,255,255,0.38);
}

@media (max-width: 620px) {
  .tiktok-option-grid {
    grid-template-columns: 1fr;
  }
}


.tiktok-commercial-options {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.tiktok-commercial-hint {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 11px;
  line-height: 1.4;
  color: rgba(255,255,255,0.58);
  background: rgba(255,255,255,0.035);
}

/* TikTok Post button visibility fix */
.tiktok-post-btn,
.tiktok-post-btn:disabled {
  background: #ffffff !important;
  color: #050505 !important;
  -webkit-text-fill-color: #050505 !important;
}

.tiktok-post-btn:disabled {
  opacity: 0.45;
}

/* ===== TIKTOK FULL CONNECTED PROFILE ===== */

.tiktok-connect-status {
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  padding: 14px;
}

.tiktok-profile-top {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.tiktok-profile-top .tiktok-connect-avatar {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border: 1px solid rgba(255,255,255,0.12);
}

.tiktok-connect-user {
  flex: 1 1 auto;
}

.tiktok-profile-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.tiktok-profile-name-row strong {
  min-width: 0;
  font-size: 15px;
}

.tiktok-verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  border-radius: 50%;
  background: #20a7ff;
  color: #fff !important;
  font-size: 10px !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
}

.tiktok-connect-username {
  width: fit-content;
  max-width: 100%;
  color: rgba(255,255,255,0.62);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tiktok-connect-username:hover {
  color: #fff;
}

.tiktok-connect-bio {
  margin: 4px 0 0;
  color: rgba(255,255,255,0.56);
  font-size: 11px;
  line-height: 1.4;
}

.tiktok-profile-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.tiktok-profile-stat {
  min-width: 0;
  padding: 9px 6px;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  background: rgba(255,255,255,0.025);
  text-align: center;
}

.tiktok-profile-stat strong {
  display: block;
  color: #fff;
  font-size: 14px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tiktok-profile-stat span {
  display: block;
  margin-top: 3px;
  color: rgba(255,255,255,0.46);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.tiktok-latest-section {
  width: 100%;
}

.tiktok-latest-heading {
  margin-bottom: 8px;
  color: rgba(255,255,255,0.56);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.tiktok-latest-videos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.tiktok-video-card {
  position: relative;
  display: block;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 9px;
  background: rgba(255,255,255,0.035);
  text-decoration: none;
}

.tiktok-video-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: rgba(255,255,255,0.05);
}

.tiktok-video-meta {
  padding: 7px;
}

.tiktok-video-title {
  display: -webkit-box;
  overflow: hidden;
  color: rgba(255,255,255,0.78);
  font-size: 10px;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tiktok-video-stats {
  margin-top: 5px;
  color: rgba(255,255,255,0.43);
  font-size: 9px;
  line-height: 1.25;
}

.tiktok-videos-empty {
  margin: 0;
  color: rgba(255,255,255,0.42);
  font-size: 11px;
  text-align: center;
}

@media (max-width: 620px) {
  .tiktok-profile-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tiktok-latest-videos {
    gap: 6px;
  }

  .tiktok-profile-top .tiktok-connect-avatar {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }
}

/* TikTok latest videos - compact cards */
.tiktok-latest-videos {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  align-items: flex-start !important;
}

.tiktok-video-card {
  width: 165px !important;
  min-width: 165px !important;
  max-width: 165px !important;
  flex: 0 0 165px !important;
}

.tiktok-video-thumb {
  width: 100% !important;
  aspect-ratio: 9 / 16 !important;
  object-fit: cover !important;
}

@media (max-width: 620px) {
  .tiktok-video-card {
    width: 120px !important;
    min-width: 120px !important;
    max-width: 120px !important;
    flex: 0 0 120px !important;
  }

  .tiktok-latest-videos {
    gap: 8px !important;
  }
}

/* ===== TIKTOK LATEST VIDEOS RESPONSIVE GRID ===== */

.tiktok-latest-videos {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 10px !important;
  width: 100% !important;
  align-items: start !important;
}

.tiktok-video-card {
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  flex: initial !important;
}

.tiktok-video-thumb {
  display: block !important;
  width: 100% !important;
  aspect-ratio: 9 / 16 !important;
  object-fit: cover !important;
}

@media (max-width: 1100px) {
  .tiktok-latest-videos {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 850px) {
  .tiktok-latest-videos {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 620px) {
  .tiktok-latest-videos {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 7px !important;
  }

  .tiktok-video-meta {
    padding: 6px !important;
  }

  .tiktok-video-title {
    font-size: 9px !important;
  }

  .tiktok-video-stats {
    font-size: 8px !important;
  }
}

@media (max-width: 340px) {
  .tiktok-latest-videos {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* ===== TIKTOK DESKTOP VIDEO ROW - CONTENT WIDTH ===== */

@media (min-width: 1101px) {
  .tiktok-latest-section {
    width: max-content !important;
    max-width: 100% !important;
    align-self: flex-start !important;
  }

  .tiktok-latest-videos {
    display: grid !important;
    grid-template-columns: none !important;
    grid-auto-flow: column !important;
    grid-auto-columns: 150px !important;
    width: max-content !important;
    max-width: 100% !important;
    gap: 10px !important;
  }

  .tiktok-video-card {
    width: 150px !important;
    min-width: 0 !important;
    max-width: 150px !important;
  }
}

/* ===== TIKTOK REFLECTIVE POST STATUS ===== */

.tiktok-post-message {
  position: relative;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
  padding: 15px 16px 14px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,0.075),
      rgba(255,255,255,0.025)
    );
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 10px 28px rgba(0,0,0,0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.tiktok-post-message::before {
  content: "";
  position: absolute;
  top: -80%;
  left: -45%;
  width: 35%;
  height: 260%;
  pointer-events: none;
  opacity: 0;
  transform: rotate(18deg);
  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(255,255,255,0.12),
      transparent
    );
}

.tiktok-post-message.is-active::before,
.tiktok-post-message.is-waiting::before {
  opacity: 1;
  animation:
    tiktokStatusReflection 2.6s
    linear infinite;
}

@keyframes tiktokStatusReflection {
  from {
    left: -45%;
  }

  to {
    left: 125%;
  }
}

.tiktok-status-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tiktok-status-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow:
    0 0 0 4px rgba(255,255,255,0.07),
    0 0 14px rgba(255,255,255,0.25);
}

.tiktok-status-title {
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.085em;
}

.tiktok-status-text {
  position: relative;
  z-index: 1;
  margin-top: 9px;
  color: rgba(255,255,255,0.67);
  font-size: 12px;
  line-height: 1.5;
}

.tiktok-status-progress {
  position: relative;
  z-index: 1;
  overflow: hidden;
  width: 100%;
  height: 3px;
  margin-top: 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.07);
}

.tiktok-status-progress span {
  position: absolute;
  top: 0;
  left: -38%;
  width: 38%;
  height: 100%;
  border-radius: inherit;
  background:
    linear-gradient(
      90deg,
      rgba(255,255,255,0.10),
      rgba(255,255,255,0.95),
      rgba(255,255,255,0.10)
    );
  animation:
    tiktokStatusProgress 1.25s
    ease-in-out infinite;
}

@keyframes tiktokStatusProgress {
  from {
    left: -38%;
  }

  to {
    left: 100%;
  }
}

/* Processing / waiting */

.tiktok-post-message.is-waiting {
  border-color:
    rgba(255,255,255,0.14);
}

/* Success */

.tiktok-post-message.is-success {
  border-color:
    rgba(83,255,153,0.28);
  background:
    linear-gradient(
      145deg,
      rgba(66,214,126,0.13),
      rgba(255,255,255,0.025)
    );
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 10px 30px rgba(34,180,91,0.08);
}

.tiktok-post-message.is-success
.tiktok-status-dot {
  background: #66f59c;
  box-shadow:
    0 0 0 4px rgba(102,245,156,0.08),
    0 0 16px rgba(102,245,156,0.35);
}

.tiktok-post-message.is-success
.tiktok-status-progress span {
  left: 0;
  width: 100%;
  animation: none;
  background:
    linear-gradient(
      90deg,
      rgba(80,226,137,0.55),
      rgba(115,255,169,0.95)
    );
}

/* Error */

.tiktok-post-message.is-error {
  border-color:
    rgba(255,103,103,0.24);
  background:
    linear-gradient(
      145deg,
      rgba(220,70,70,0.10),
      rgba(255,255,255,0.025)
    );
}

.tiktok-post-message.is-error
.tiktok-status-dot {
  background: #ff7474;
  box-shadow:
    0 0 0 4px rgba(255,116,116,0.08),
    0 0 14px rgba(255,116,116,0.30);
}

.tiktok-post-message.is-error
.tiktok-status-progress {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .tiktok-post-message::before,
  .tiktok-status-progress span {
    animation: none !important;
  }
}

@media (max-width: 620px) {
  .tiktok-post-message {
    padding: 13px 14px;
  }

  .tiktok-status-title {
    font-size: 10px;
  }

  .tiktok-status-text {
    font-size: 11px;
  }
}

/* ===== TIKTOK CONNECTED ACCOUNT ACTIONS ===== */

.tiktok-profile-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
}

.tiktok-profile-action-btn {
  flex: 1 1 0;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 8px;
  background: rgba(255,255,255,0.035);
  color: rgba(255,255,255,0.72);
  font: inherit;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.065em;
  cursor: pointer;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
}

.tiktok-profile-action-btn:hover {
  background: rgba(255,255,255,0.075);
  border-color: rgba(255,255,255,0.16);
  color: #fff;
}

.tiktok-profile-action-danger {
  color: rgba(255,145,145,0.80);
}

.tiktok-profile-action-danger:hover {
  border-color: rgba(255,105,105,0.22);
  background: rgba(255,80,80,0.06);
  color: #ff9a9a;
}

.tiktok-profile-action-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

@media (max-width: 420px) {
  .tiktok-profile-actions {
    gap: 6px;
  }

  .tiktok-profile-action-btn {
    min-height: 32px;
    padding: 0 8px;
    font-size: 8px;
  }
}


/* ===== SINGLE DISCONNECT BUTTON POLISH ===== */
.tiktok-profile-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 10px 0 14px;
}

.tiktok-profile-action-danger-solid {
  width: 100%;
  min-height: 44px;
  justify-content: center;
  background: rgba(255, 76, 76, 0.12);
  border: 1px solid rgba(255, 110, 110, 0.34);
  color: #ffb3b3;
  font-weight: 900;
  letter-spacing: 0.08em;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.03),
    0 8px 20px rgba(255, 70, 70, 0.08);
}

.tiktok-profile-action-danger-solid:hover {
  background: rgba(255, 76, 76, 0.18);
  border-color: rgba(255, 130, 130, 0.46);
  color: #ffd0d0;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.04),
    0 10px 24px rgba(255, 70, 70, 0.14);
}

.tiktok-profile-action-danger-solid:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* =========================================================
   TIKTOK POST OPTIONS — APP-STYLE TOGGLE SWITCHES
   ========================================================= */

.tiktok-check {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 50px;
  padding: 10px 66px 10px 16px;
  border: 1px solid rgba(255,255,255,0.075);
  border-radius: 12px;
  background: rgba(255,255,255,0.025);
  cursor: pointer;
  user-select: none;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    opacity 0.18s ease;
}

/* Hide native checkbox but preserve real checked/disabled logic */
.tiktok-check > input[type="checkbox"] {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

/* Text */
.tiktok-check > span {
  display: block;
  min-width: 0;
  color: rgba(255,255,255,0.78);
  line-height: 1.35;
}

/* Switch track */
.tiktok-check::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255,255,255,0.13);
  border: 1px solid rgba(255,255,255,0.08);
  transform: translateY(-50%);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

/* Switch knob */
.tiktok-check::before {
  content: "";
  position: absolute;
  z-index: 1;
  right: 35px;
  top: 50%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f4f5f6;
  transform: translateY(-50%);
  box-shadow:
    0 1px 4px rgba(0,0,0,0.35);
  transition:
    right 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

/* ON */
.tiktok-check:has(> input[type="checkbox"]:checked)::after {
  background: #25d9e8;
  border-color: rgba(37,217,232,0.8);
  box-shadow:
    0 0 14px rgba(37,217,232,0.16);
}

.tiktok-check:has(> input[type="checkbox"]:checked)::before {
  right: 17px;
  background: #ffffff;
}

/* Hover */
.tiktok-check:hover {
  background: rgba(255,255,255,0.045);
  border-color: rgba(255,255,255,0.11);
}

/* Keyboard accessibility */
.tiktok-check:has(> input[type="checkbox"]:focus-visible)::after {
  outline: 2px solid rgba(255,255,255,0.7);
  outline-offset: 3px;
}

/* Disabled TikTok options */
.tiktok-check:has(> input[type="checkbox"]:disabled) {
  opacity: 0.38;
  cursor: not-allowed;
}

.tiktok-check:has(> input[type="checkbox"]:disabled):hover {
  background: rgba(255,255,255,0.025);
  border-color: rgba(255,255,255,0.075);
}

.tiktok-check:has(> input[type="checkbox"]:disabled)::after {
  background: rgba(255,255,255,0.09);
  box-shadow: none;
}

/* Commercial sub-options */
.tiktok-commercial-options {
  margin-top: 8px;
}

.tiktok-commercial-options .tiktok-check + .tiktok-check {
  margin-top: 7px;
}

/* Keep wide options clean */
.tiktok-check-wide {
  width: 100%;
}

/* Three interaction options */
.tiktok-option-grid {
  gap: 8px;
}

/* Mobile */
@media (max-width: 600px) {
  .tiktok-check {
    min-height: 48px;
    padding:
      9px 62px 9px 13px;
    border-radius: 11px;
  }

  .tiktok-check::after {
    right: 12px;
    width: 42px;
    height: 23px;
  }

  .tiktok-check::before {
    right: 32px;
    width: 17px;
    height: 17px;
  }

  .tiktok-check:has(> input[type="checkbox"]:checked)::before {
    right: 15px;
  }
}


/* ===== TIKTOK PRIVACY SELECT + REQUIRED CONSENT ===== */

.tiktok-privacy-field {
  gap: 8px;
}

#tiktokPrivacySelect {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 100%;
  min-height: 52px;
  padding: 0 52px 0 16px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.028)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat;
  background-position: 0 0, right 16px center;
  background-size: auto, 14px 14px;
  color: #fff;
  font: inherit;
  font-size: 15px;
  line-height: 1.2;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.02),
    0 8px 24px rgba(0,0,0,0.16);
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

#tiktokPrivacySelect:hover {
  border-color: rgba(255,255,255,0.18);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.035)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat;
  background-position: 0 0, right 16px center;
  background-size: auto, 14px 14px;
}

#tiktokPrivacySelect:focus {
  outline: none;
  border-color: rgba(50, 220, 170, 0.55);
  box-shadow:
    0 0 0 3px rgba(50,220,170,0.10),
    0 10px 28px rgba(0,0,0,0.20);
}

#tiktokPrivacySelect option {
  background: #10161d;
  color: #ffffff;
}

.tiktok-privacy-help {
  margin: 1px 2px 0;
  color: rgba(255,255,255,0.42);
  font-size: 11px;
  line-height: 1.4;
}

.tiktok-check-required {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tiktok-check-required > #tiktokConsentText {
  flex: 1 1 auto;
}

.tiktok-required-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255,120,120,0.32);
  background: rgba(255,86,86,0.12);
  color: #ffb8b8;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.03);
}

.tiktok-consent-help {
  margin: 6px 2px 0;
  color: rgba(255,255,255,0.44);
  font-size: 11px;
  line-height: 1.4;
}

@media (max-width: 600px) {
  #tiktokPrivacySelect {
    min-height: 50px;
    padding: 0 48px 0 13px;
    font-size: 14px;
    border-radius: 11px;
    background-position: 0 0, right 14px center;
  }

  .tiktok-required-pill {
    padding: 4px 8px;
    font-size: 9px;
  }

  .tiktok-consent-help,
  .tiktok-privacy-help {
    font-size: 10px;
  }
}

/* ===== TIKTOK LOGIN KIT BUTTON ===== */

.tiktok-auth-btn {
  position: relative;
  overflow: hidden;
}

.tiktok-auth-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background:
    linear-gradient(
      90deg,
      rgba(37,244,238,0.045),
      transparent 45%,
      rgba(254,44,85,0.045)
    );
  transition: opacity 0.2s ease;
}

.tiktok-auth-btn:hover::before {
  opacity: 1;
}

.tiktok-auth-btn:hover {
  border-color: rgba(255,255,255,0.20);
}

.tiktok-auth-btn .tiktok-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
}

.tiktok-auth-btn .tiktok-icon svg {
  width: 100%;
  height: 100%;
}
