/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
@layer properties;
@layer theme, base, components, utilities;
@layer theme {
  :root, :host {
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
      "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
      "Segoe UI Symbol", "Noto Color Emoji";
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
      "Courier New", monospace;
    --color-slate-300: oklch(86.9% 0.022 252.894);
    --color-slate-500: oklch(55.4% 0.046 257.417);
    --spacing: 0.25rem;
    --font-weight-semibold: 600;
    --default-transition-duration: 150ms;
    --default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    --default-font-family: var(--font-sans);
    --default-mono-font-family: var(--font-mono);
  }
}
@layer base {
  *, ::after, ::before, ::backdrop, ::file-selector-button {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0 solid;
  }
  html, :host {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    font-family: var(--default-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
    font-feature-settings: var(--default-font-feature-settings, normal);
    font-variation-settings: var(--default-font-variation-settings, normal);
    -webkit-tap-highlight-color: transparent;
  }
  hr {
    height: 0;
    color: inherit;
    border-top-width: 1px;
  }
  abbr:where([title]) {
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
  }
  h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
  }
  a {
    color: inherit;
    -webkit-text-decoration: inherit;
    text-decoration: inherit;
  }
  b, strong {
    font-weight: bolder;
  }
  code, kbd, samp, pre {
    font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
    font-feature-settings: var(--default-mono-font-feature-settings, normal);
    font-variation-settings: var(--default-mono-font-variation-settings, normal);
    font-size: 1em;
  }
  small {
    font-size: 80%;
  }
  sub, sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
  }
  sub {
    bottom: -0.25em;
  }
  sup {
    top: -0.5em;
  }
  table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
  }
  :-moz-focusring:where(:not(iframe)) {
    outline: auto;
  }
  progress {
    vertical-align: baseline;
  }
  summary {
    display: list-item;
  }
  ol, ul, menu {
    list-style: none;
  }
  img, svg, video, canvas, audio, iframe, embed, object {
    display: block;
    vertical-align: middle;
  }
  img, video {
    max-width: 100%;
    height: auto;
  }
  button, input, select, optgroup, textarea, ::file-selector-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    border-radius: 0;
    background-color: transparent;
    opacity: 1;
  }
  :where(select:is([multiple], [size])) optgroup {
    font-weight: bolder;
  }
  :where(select:is([multiple], [size])) optgroup option {
    padding-inline-start: 20px;
  }
  ::file-selector-button {
    margin-inline-end: 4px;
  }
  ::placeholder {
    opacity: 1;
  }
  @supports (not (-webkit-appearance: -apple-pay-button))  or (contain-intrinsic-size: 1px) {
    ::placeholder {
      color: currentcolor;
      @supports (color: color-mix(in lab, red, red)) {
        color: color-mix(in oklab, currentcolor 50%, transparent);
      }
    }
  }
  textarea {
    resize: vertical;
  }
  ::-webkit-search-decoration {
    -webkit-appearance: none;
  }
  ::-webkit-date-and-time-value {
    min-height: 1lh;
    text-align: inherit;
  }
  ::-webkit-datetime-edit {
    display: inline-flex;
  }
  ::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
  }
  ::-webkit-datetime-edit, ::-webkit-datetime-edit-year-field, ::-webkit-datetime-edit-month-field, ::-webkit-datetime-edit-day-field, ::-webkit-datetime-edit-hour-field, ::-webkit-datetime-edit-minute-field, ::-webkit-datetime-edit-second-field, ::-webkit-datetime-edit-millisecond-field, ::-webkit-datetime-edit-meridiem-field {
    padding-block: 0;
  }
  ::-webkit-calendar-picker-indicator {
    line-height: 1;
  }
  :-moz-ui-invalid {
    box-shadow: none;
  }
  button, input:where([type="button"], [type="reset"], [type="submit"]), ::file-selector-button {
    appearance: button;
  }
  ::-webkit-inner-spin-button, ::-webkit-outer-spin-button {
    height: auto;
  }
  [hidden]:where(:not([hidden="until-found"])) {
    display: none !important;
  }
}
@layer utilities {
  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border-width: 0;
  }
  .container {
    width: 100%;
    @media (width >= 40rem) {
      max-width: 40rem;
    }
    @media (width >= 48rem) {
      max-width: 48rem;
    }
    @media (width >= 64rem) {
      max-width: 64rem;
    }
    @media (width >= 80rem) {
      max-width: 80rem;
    }
    @media (width >= 96rem) {
      max-width: 96rem;
    }
  }
  .mt-2 {
    margin-top: calc(var(--spacing) * 2);
  }
  .block {
    display: block;
  }
  .contents {
    display: contents;
  }
  .grid {
    display: grid;
  }
  .hidden {
    display: none;
  }
  .transform {
    transform: var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,);
  }
  .border {
    border-style: var(--tw-border-style);
    border-width: 1px;
  }
  .font-semibold {
    --tw-font-weight: var(--font-weight-semibold);
    font-weight: var(--font-weight-semibold);
  }
  .text-slate-300 {
    color: var(--color-slate-300);
  }
  .text-slate-500 {
    color: var(--color-slate-500);
  }
  .filter {
    filter: var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,);
  }
  .transition {
    transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to, opacity, box-shadow, transform, translate, scale, rotate, filter, -webkit-backdrop-filter, backdrop-filter, display, content-visibility, overlay, pointer-events;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
  }
}
:root {
  color-scheme: dark;
  --bg: #080a0d;
  --panel: #101318;
  --line: #262b33;
  --muted: #89919d;
  --text: #f4f5f7;
  --accent: #f59e0b;
  --accent-bright: #ffb52e;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
  -webkit-font-smoothing: antialiased;
}
button,input,select {
  font: inherit;
}
button,a {
  -webkit-tap-highlight-color: transparent;
}
button {
  color: inherit;
}
.hidden,[hidden] {
  display: none !important;
}
.site-shell {
  min-height: 100vh;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  padding: 0 max(24px,calc((100vw - 1240px)/2));
  border-bottom: 1px solid rgba(255,255,255,.07);
  background: rgba(8,10,13,.92);
  backdrop-filter: blur(18px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}
.brand-mark,.footer-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid #d68b09;
  border-radius: 11px;
  color: #111;
  background: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: -.04em;
  box-shadow: 0 0 28px rgba(245,158,11,.12);
}
.brand strong,.brand small {
  display: block;
}
.brand strong {
  font-size: 14px;
}
.brand small {
  margin-top: 2px;
  color: #717986;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .13em;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-link,.mobile-library-button {
  border: 0;
  background: transparent;
  color: #8d95a1;
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
}
.nav-link {
  padding: 10px 14px;
  border-radius: 9px;
}
.nav-link:hover,.nav-link.active {
  color: #fff;
  background: #14171c;
}
.mobile-library-button {
  display: none;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.account-menu {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-left: 12px;
  border-left: 1px solid var(--line);
  color: #aab1bb;
  font-size: 11px;
}
.account-menu img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}
.account-menu button {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #8d95a1;
  background: #111419;
  cursor: pointer;
  font-size: 10px;
}
.account-menu button:hover {
  color: #fff;
  border-color: #4a515c;
}
main {
  width: min(1240px,calc(100% - 48px));
  margin: 0 auto;
}
.hero {
  padding: 54px 0 44px;
  border-bottom: 1px solid var(--line);
}
.eyebrow,.panel-kicker {
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.add-movie-form {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #0e1115;
  box-shadow: 0 24px 80px rgba(0,0,0,.22);
}
.import-heading {
  margin-bottom: 24px;
}
.import-heading h1 {
  margin: 8px 0 7px;
  font-size: clamp(28px,4vw,40px);
  line-height: 1.05;
  letter-spacing: -.045em;
  text-transform: uppercase;
}
.import-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.add-movie-form>label {
  display: block;
  margin-bottom: 10px;
  color: #c8cdd5;
  font-size: 12px;
  font-weight: 700;
}
.url-control {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 7px;
  border: 1px solid #303640;
  border-radius: 13px;
  background: #090b0e;
  transition: .2s;
}
.url-control:focus-within {
  border-color: #b97809;
  box-shadow: 0 0 0 4px rgba(245,158,11,.08);
}
.url-icon {
  padding-left: 8px;
  color: #646d79;
}
.url-control input {
  min-width: 0;
  height: 44px;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
  font-size: 13px;
}
.url-control input::placeholder {
  color: #545b65;
}
.field-hint {
  margin: 11px 2px 0;
  color: #626a75;
  font-size: 11px;
}
.platform-section {
  margin-top: 22px;
  padding: 24px 26px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #0c0f13;
}
.platform-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 17px;
}
.platform-heading h2 {
  margin: 6px 0 0;
  font-size: 18px;
  letter-spacing: -.025em;
  text-transform: uppercase;
}
.platform-heading>p {
  max-width: 430px;
  margin: 0;
  color: #68717c;
  text-align: right;
  font-size: 10px;
  line-height: 1.55;
}
.platform-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 9px;
}
.platform-card {
  display: grid;
  grid-template-columns: 34px minmax(0,1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 8px 11px;
  border: 1px solid #292f37;
  border-radius: 11px;
  color: #cbd0d7;
  background: #101419;
  text-decoration: none;
  font-size: 11px;
  font-weight: 750;
  transition: border-color .16s,background .16s,color .16s,transform .16s;
}
.platform-card:hover {
  transform: translateY(-1px);
  border-color: #75551d;
  color: #fff;
  background: #18140d;
}
.platform-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-color: var(--accent);
  color: #fff;
}
.platform-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  color: #fff;
  background: #222831;
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
}
.platform-icon.dailymotion {
  color: #111;
  background: #00d2f3;
  font-style: italic;
}
.platform-icon.youtube {
  background: #e52d27;
  font-size: 12px;
}
.platform-icon.tiktok {
  color: #fff;
  background: #111;
  text-shadow: -1px 0 #25f4ee,1px 0 #fe2c55;
}
.platform-icon.facebook {
  background: #1877f2;
  font-family: Arial,sans-serif;
  font-size: 22px;
}
.platform-icon.instagram {
  background: #c13584;
}
.platform-icon.x-twitter {
  background: #050505;
}
.platform-icon.vimeo {
  background: #1ab7ea;
  font-style: italic;
}
.platform-icon.bilibili {
  color: #1f6b87;
  background: #79d7f2;
}
.platform-icon.reddit {
  background: #ff4500;
}
.platform-icon.pinterest {
  background: #bd081c;
  font-family: Georgia,serif;
}
.platform-icon.soundcloud {
  background: #f66b0e;
  font-size: 15px;
}
.external-mark {
  color: #555e69;
  font-size: 13px;
  transition: color .16s;
}
.platform-card:hover .external-mark,.platform-card:focus-visible .external-mark {
  color: var(--accent);
}
.platform-note {
  margin: 14px 2px 0;
  color: #555e69;
  font-size: 9px;
  line-height: 1.5;
}
.trial-offer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 18px;
  padding: 20px 24px;
  border: 1px solid #76551e;
  border-radius: 14px;
  background: #17130c;
}
.trial-offer h2 {
  margin: 5px 0;
  font-size: 18px;
}
.trial-offer p {
  margin: 0;
  color: #9b9387;
  font-size: 11px;
}
.promo-control {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid #2c323a;
  border-radius: 10px;
  background: #0e1216;
}
.promo-control label {
  display: block;
  color: #d8dce1;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.promo-control label span {
  color: #777f89;
}
.promo-control p {
  margin: 6px 0 10px;
  color: #747d88;
  font-size: 10px;
}
.promo-control input {
  width: 100%;
  color: #aeb5bd;
  font-size: 10px;
}
.promo-upload-status {
  margin-top: 12px;
  padding: 11px;
  border: 1px solid #303741;
  border-radius: 9px;
  background: #101419;
}
.promo-file-row,.promo-state-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.promo-file-row>div:first-child {
  min-width: 0;
}
.promo-file-row strong {
  display: inline-block;
  max-width: 210px;
  overflow: hidden;
  color: #dce0e5;
  font-size: 10px;
  text-overflow: ellipsis;
  vertical-align: bottom;
  white-space: nowrap;
}
.promo-file-row span {
  color: #7e8791;
  font-size: 9px;
}
.promo-file-actions {
  display: flex;
  gap: 6px;
}
.promo-file-actions button {
  padding: 4px 6px;
  border: 0;
  color: #d9a33f;
  background: transparent;
  cursor: pointer;
  font-size: 9px;
  font-weight: 750;
}
.promo-file-actions button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.promo-state-row {
  margin-top: 10px;
  color: #aab2bc;
  font-size: 10px;
}
.promo-state-row strong {
  color: #efb54b;
}
.promo-progress {
  height: 7px;
  margin-top: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #262c34;
}
.promo-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width .15s linear;
}
.promo-control .promo-error {
  margin: 9px 0 0;
  color: #ff9696;
  line-height: 1.5;
}
.promo-upload-status.hidden,.promo-progress.hidden,.promo-error.hidden {
  display: none;
}
.text-button {
  padding: 3px 5px;
  border: 0;
  color: var(--accent);
  background: transparent;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.text-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.manual-series-toggle {
  display: inline-block;
  margin-top: 8px;
}
.manual-series {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid #303640;
  border-radius: 12px;
  background: #0b0e12;
}
.manual-series-help {
  grid-column: 1/-1;
  margin: 0 0 4px;
}
.manual-series label {
  grid-column: 1/-1;
}
.manual-series label span {
  color: #747d88;
  font-weight: 400;
}
.manual-series input,.manual-series textarea {
  grid-column: 1/-1;
  width: 100%;
  border: 1px solid #303640;
  border-radius: 9px;
  padding: 10px 12px;
  color: var(--text);
  background: #101419;
  resize: vertical;
}
.manual-series .button {
  grid-column: 2;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  transition: .16s;
}
.button:hover {
  transform: translateY(-1px);
}
.button:disabled {
  cursor: not-allowed;
  opacity: .55;
  transform: none;
}
.button-primary {
  color: #17100a;
  background: var(--accent);
  border-color: #e99508;
}
.button-primary:hover {
  background: var(--accent-bright);
}
.button-danger {
  color: #ff8b8b;
  border-color: #4a2528;
  background: #201214;
}
.library-section {
  padding: 58px 0 80px;
}
.section-heading,.panel-heading,.details-heading,.progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.section-heading h2 {
  margin: 8px 0 0;
  font-size: 30px;
  letter-spacing: -.035em;
}
.library-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #737c88;
  font-size: 12px;
}
.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(245,158,11,.8);
}
.filter-row {
  display: flex;
  gap: 8px;
  margin: 28px 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.filter-chip {
  flex: 0 0 auto;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #858d98;
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}
.filter-chip:hover,.filter-chip.active {
  color: #fff;
  border-color: #534323;
  background: #1b1710;
}
.movie-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 20px;
}
.attempt-group {
  grid-column: 1/-1;
  padding: 14px;
  border: 1px solid #2c323a;
  border-radius: 17px;
  background: #0a0d11;
}
.attempt-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 2px 12px;
  color: #737c87;
  font-size: 10px;
}
.attempt-group-header div {
  display: flex;
  align-items: baseline;
  gap: 9px;
}
.attempt-group-header strong {
  color: #e2e5e9;
  font-size: 12px;
}
.open-default-attempt {
  padding: 6px 9px;
  border: 1px solid #57431d;
  border-radius: 8px;
  color: #dcb15f;
  background: #171209;
  cursor: pointer;
  font-size: 9px;
  font-weight: 800;
}
.open-default-attempt:hover,.open-default-attempt:focus-visible {
  border-color: var(--accent);
  color: #ffc45b;
  outline: 2px solid rgba(245,158,11,.2);
  outline-offset: 2px;
}
.attempt-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 14px;
}
.collection-list {
  display: grid;
  gap: 12px;
  margin: 0 0 24px;
}
.collection-group {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #0c0f13;
  overflow: hidden;
}
.collection-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 17px;
  border-bottom: 1px solid var(--line);
}
.collection-group-header h3 {
  margin: 0 0 4px;
  font-size: 15px;
}
.collection-group-header p {
  margin: 0;
  color: #7e8791;
  font-size: 10px;
}
.collection-progress {
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
}
.collection-episodes {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 1px;
  background: var(--line);
}
.collection-episode {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 11px 15px;
  background: #0f1318;
  font-size: 10px;
}
.collection-episode strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.collection-episode .episode-number {
  color: #717b86;
  font-weight: 800;
}
.queue-label {
  color: #9099a3;
}
.queue-label.completed {
  color: #53c785;
}
.queue-label.failed {
  color: #ef7777;
}
.retry-episode {
  border: 0;
  color: var(--accent);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}
.collection-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(880px,calc(100% - 28px));
  max-height: calc(100vh - 28px);
  padding: 0;
  overflow: auto;
  border: 1px solid #303640;
  border-radius: 18px;
  color: var(--text);
  background: #0c0f13;
  box-shadow: 0 40px 140px rgba(0,0,0,.72);
}
.collection-dialog::backdrop {
  background: rgba(2,3,5,.82);
  backdrop-filter: blur(8px);
}
.collection-dialog-shell {
  position: relative;
  padding: 28px;
}
.collection-dialog h2 {
  margin: 8px 0 5px;
}
.collection-dialog-shell>p {
  margin: 0;
  color: #8b949e;
}
.collection-toolbar {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 20px 0 10px;
  flex-wrap: wrap;
}
.collection-toolbar>span {
  margin-left: auto;
  color: #aeb5bd;
  font-size: 11px;
}
.collection-entry-list {
  display: grid;
  gap: 7px;
  max-height: 390px;
  overflow: auto;
}
.collection-entry {
  display: grid;
  grid-template-columns: auto 72px minmax(0,1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border: 1px solid #262c34;
  border-radius: 10px;
  background: #101419;
}
.collection-entry img {
  width: 72px;
  height: 42px;
  object-fit: cover;
  border-radius: 6px;
  background: #191e25;
}
.collection-entry strong {
  display: block;
  font-size: 11px;
}
.collection-entry small {
  color: #727b86;
}
.collection-entry.unavailable {
  opacity: .55;
}
.collection-options {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 10px;
  margin-top: 16px;
}
.collection-options label {
  display: grid;
  gap: 5px;
  color: #a7afb8;
  font-size: 10px;
}
.collection-options select,.collection-options input[type=file] {
  min-width: 0;
  width: 100%;
  padding: 9px;
  border: 1px solid #303640;
  border-radius: 8px;
  color: var(--text);
  background: #11151a;
}
.collection-options .compact-check {
  display: flex;
  align-items: center;
  justify-content: center;
}
.collection-create {
  width: 100%;
  margin-top: 16px;
}
.movie-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--panel);
  cursor: pointer;
  transition: .22s;
}
.movie-card:hover {
  transform: translateY(-4px);
  border-color: #4c412c;
  box-shadow: 0 18px 50px rgba(0,0,0,.3);
}
.card-poster {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #171b20;
}
.card-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s;
}
.movie-card:hover .card-poster img {
  transform: scale(1.035);
}
.card-poster::after {
  content: "";
  position: absolute;
  inset: 40% 0 0;
  background: linear-gradient(transparent,rgba(8,10,13,.88));
}
.poster-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #343a43;
  font-size: 30px;
  font-weight: 900;
}
.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 9px;
  border: 1px solid #3a4049;
  border-radius: 999px;
  color: #b7bec8;
  background: rgba(14,17,21,.84);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.status-badge.processing {
  color: #ffcb6d;
  border-color: #624817;
  background: #21190c;
}
.status-badge.completed {
  color: #77e1a4;
  border-color: #285a3c;
  background: #0d2116;
}
.status-badge.failed {
  color: #ff9090;
  border-color: #643035;
  background: #261113;
}
.card-status {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
}
.card-body {
  padding: 16px;
}
.attempt-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
  color: #7e8792;
  font-size: 9px;
}
.attempt-meta strong {
  color: #f0b94f;
  font-size: 10px;
}
.attempt-meta time {
  white-space: nowrap;
}
.card-body h3 {
  min-height: 42px;
  margin: 0;
  overflow: hidden;
  color: #eef0f3;
  font-size: 14px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  color: #69717d;
  font-size: 10px;
}
.card-meta strong {
  color: #aeb5bf;
}
.retry-job {
  width: 100%;
  margin-top: 13px;
  padding: 9px 11px;
  border: 1px solid #57431d;
  border-radius: 9px;
  color: #ffc45b;
  background: #1b150b;
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
}
.retry-job:hover,.retry-job:focus-visible {
  border-color: var(--accent);
  background: #241b0c;
  outline: 2px solid rgba(245,158,11,.24);
  outline-offset: 2px;
}
.empty-library {
  grid-column: 1/-1;
  padding: 70px 24px;
  border: 1px dashed #2a3038;
  border-radius: 16px;
  text-align: center;
  background: #0c0f12;
}
.empty-library strong {
  display: block;
  margin-bottom: 8px;
  font-size: 17px;
}
.empty-library span {
  color: #707986;
  font-size: 12px;
}
.skeleton-card {
  height: 280px;
  cursor: default;
  background: linear-gradient(100deg,#101318 30%,#171b21 50%,#101318 70%);
  background-size: 300% 100%;
  animation: shimmer 1.6s infinite;
}
@keyframes shimmer {
  to {
    background-position: -150% 0;
  }
}
footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 120px;
  padding: 28px 24px;
  border-top: 1px solid var(--line);
  color: #686f79;
  text-align: center;
}
footer .footer-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  font-size: 9px;
}
footer p {
  margin: 0;
  font-size: 11px;
}
footer>span {
  color: #41474f;
  font-size: 10px;
}
.movie-dialog,.billing-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
}
.movie-dialog {
  width: min(1020px,calc(100% - 30px));
  max-height: min(900px,calc(100vh - 30px));
  padding: 0;
  overflow: auto;
  border: 1px solid #303640;
  border-radius: 20px;
  color: var(--text);
  background: #0c0f13;
  box-shadow: 0 40px 140px rgba(0,0,0,.72);
}
.movie-dialog::backdrop {
  background: rgba(2,3,5,.82);
  backdrop-filter: blur(8px);
}
.dialog-shell {
  position: relative;
  display: grid;
  grid-template-columns: 38% 62%;
  min-height: 660px;
}
.dialog-close {
  position: absolute;
  z-index: 5;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 50%;
  color: #fff;
  background: rgba(5,7,9,.72);
  cursor: pointer;
  font-size: 23px;
}
.details-visual {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  background: #161a1f;
}
.details-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.details-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,transparent 35%,rgba(7,9,12,.85));
}
.details-source {
  position: absolute;
  bottom: 24px;
  left: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #c4c9d0;
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.details-source span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.details-content {
  padding: 38px;
  overflow: hidden;
}
.details-heading {
  align-items: flex-start;
  padding-right: 34px;
}
.details-heading h2 {
  max-width: 520px;
  margin: 9px 0 8px;
  font-size: 27px;
  line-height: 1.2;
  letter-spacing: -.035em;
}
.details-heading p {
  margin: 0;
  color: #737c87;
  font-size: 12px;
}
.options-panel,.progress-panel,.parts-panel {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.panel-heading h3 {
  margin: 5px 0 0;
  font-size: 17px;
}
.language-pill {
  padding: 7px 11px;
  border: 1px solid #4f3b16;
  border-radius: 8px;
  color: #ffc55e;
  background: #1c160b;
  font-size: 10px;
  font-weight: 800;
}
.option-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 20px;
}
.voice-fieldset {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}
.voice-fieldset legend,.banner-control>label:first-child,.position-control>span {
  grid-column: 1/-1;
  display: block;
  margin-bottom: 9px;
  color: #9da5b0;
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.voice-option {
  position: relative;
  display: block;
  cursor: pointer;
}
.voice-option input {
  position: absolute;
  opacity: 0;
}
.voice-option span {
  display: block;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #11151a;
}
.voice-option strong,.voice-option small {
  display: block;
}
.voice-option strong {
  font-size: 12px;
}
.voice-option small {
  margin-top: 3px;
  color: #68717d;
  font-size: 9px;
}
.voice-option input:checked+span {
  border-color: #a56b08;
  background: #1a150c;
  box-shadow: inset 0 0 0 1px rgba(245,158,11,.15);
}
.voice-option input:checked+span strong {
  color: #ffc45b;
}
.banner-control>label span {
  color: #555e69;
}
.banner-control input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.banner-drop {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 11px;
  border: 1px dashed #343b45;
  border-radius: 10px;
  background: #0e1115;
  cursor: pointer;
}
.upload-symbol {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: #d99a2c;
  background: #20190e;
  font-size: 22px;
}
.banner-drop strong,.banner-drop small {
  display: block;
}
.banner-drop strong {
  max-width: 170px;
  overflow: hidden;
  color: #bfc5cd;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.banner-drop small {
  margin-top: 4px;
  color: #59616b;
  font-size: 9px;
}
.watermark-row {
  display: grid;
  grid-template-columns: 1fr 170px;
  gap: 16px;
  align-items: end;
  margin-top: 18px;
}
.toggle-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 62px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #101419;
  cursor: pointer;
}
.toggle-control span strong,.toggle-control span small {
  display: block;
}
.toggle-control span strong {
  font-size: 11px;
}
.toggle-control span small {
  margin-top: 4px;
  color: #626b76;
  font-size: 9px;
}
.toggle-control input {
  position: absolute;
  opacity: 0;
}
.toggle-control i {
  position: relative;
  flex: 0 0 auto;
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: #333944;
  transition: .2s;
}
.toggle-control i::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: .2s;
}
.toggle-control input:checked+i {
  background: var(--accent);
}
.toggle-control input:checked+i::after {
  transform: translateX(16px);
}
.position-control select {
  width: 100%;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: 0;
  color: #c7ccd3;
  background: #101419;
  font-size: 10px;
}
.create-ai-button {
  width: 100%;
  min-height: 48px;
  margin-top: 20px;
}
.progress-header {
  color: #dce0e5;
  font-size: 12px;
}
.progress-header>div {
  display: flex;
  align-items: center;
  gap: 9px;
}
.progress-header>span {
  color: var(--accent);
  font-weight: 800;
}
.processing-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.4s infinite;
}
@keyframes pulse {
  50% {
    opacity: .35;
    box-shadow: 0 0 0 7px rgba(245,158,11,.08);
  }
}
.progress-track {
  height: 7px;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 99px;
  background: #20252c;
}
.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width .45s;
}
.progress-track.indeterminate span {
  width: 35% !important;
  animation: download-indeterminate 1.2s ease-in-out infinite;
}
@keyframes download-indeterminate {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(340%);
  }
}
.progress-panel p {
  margin: 12px 0 0;
  color: #68717c;
  font-size: 10px;
}
.parts-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  max-height: 260px;
  overflow: auto;
}
.part-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: #cdd2d8;
  background: #101419;
  text-decoration: none;
  font-size: 10px;
}
.part-link:hover {
  border-color: #5a4825;
  color: #fff;
}
.part-link span:last-child {
  color: var(--accent);
  font-weight: 800;
}
.details-actions {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}
.source-upload-control {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.source-upload-control .field-hint {
  margin: 0;
}
.help-section {
  padding: 28px 0 72px;
}
.help-heading {
  align-items: end;
}
.help-heading>p {
  margin: 0;
  color: #89929c;
  font-size: 11px;
}
.help-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 18px 0 22px;
  padding: 16px;
  border: 1px solid #272d35;
  border-radius: 12px;
  background: #101419;
  color: #d8dce1;
  font-size: 11px;
  font-weight: 700;
}
.help-flow i {
  color: var(--accent);
  font-style: normal;
}
.help-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 12px;
}
.help-card {
  padding: 20px;
  border: 1px solid #272d35;
  border-radius: 13px;
  background: #101419;
}
.help-card-wide {
  grid-column: span 2;
}
.help-card h3 {
  margin: 7px 0 10px;
  color: #f0f2f4;
  font-size: 16px;
}
.help-card h4 {
  margin: 16px 0 6px;
  color: #d9a33f;
  font-size: 12px;
}
.help-card p,.help-card li {
  color: #9ba4ae;
  font-size: 11px;
  line-height: 1.65;
}
.help-card p {
  margin: 0 0 9px;
}
.help-card p:last-child {
  margin-bottom: 0;
}
.help-card ol {
  margin: 0;
  padding-left: 19px;
}
.help-card strong {
  color: #f1c46b;
}
.help-notice {
  padding: 11px 12px;
  border-left: 3px solid var(--accent);
  background: #1b160d;
  color: #d9c39b !important;
}
.help-sites-button {
  margin: 2px 0 12px;
}
.supported-sites-dialog {
  width: min(620px,calc(100% - 28px));
  max-height: calc(100vh - 28px);
  margin: auto;
  padding: 0;
  border: 1px solid #303640;
  border-radius: 18px;
  color: var(--text);
  background: #0c0f13;
  box-shadow: 0 40px 140px rgba(0,0,0,.72);
}
.supported-sites-dialog::backdrop {
  background: rgba(2,3,5,.82);
  backdrop-filter: blur(8px);
}
.supported-sites-shell {
  position: relative;
  padding: 28px;
}
.supported-sites-shell h2 {
  margin: 8px 0;
}
.supported-sites-note {
  margin: 0 0 14px;
  color: #89929c;
  font-size: 11px;
  line-height: 1.6;
}
.supported-sites-search input {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #303640;
  border-radius: 9px;
  color: var(--text);
  background: #11151a;
}
.supported-sites-status {
  margin: 14px 0 10px;
  color: #b7bec7;
  font-size: 11px;
}
.supported-sites-list {
  display: flex;
  gap: 7px;
  max-height: 360px;
  overflow: auto;
  flex-wrap: wrap;
  align-content: flex-start;
  padding: 2px;
}
.supported-site-chip {
  padding: 7px 9px;
  border: 1px solid #303640;
  border-radius: 8px;
  color: #d6dbe0;
  background: #141920;
  font-size: 11px;
}
.supported-sites-empty {
  color: #89929c;
  font-size: 11px;
}
.details-actions .button {
  flex: 1;
}
.toast {
  position: fixed;
  z-index: 80;
  right: 22px;
  bottom: 22px;
  max-width: min(390px,calc(100% - 44px));
  padding: 13px 16px;
  border: 1px solid #343b44;
  border-radius: 11px;
  color: #dce0e5;
  background: #14181e;
  box-shadow: 0 18px 50px rgba(0,0,0,.45);
  font-size: 11px;
  opacity: 0;
  transform: translateY(15px);
  pointer-events: none;
  transition: .2s;
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}
.toast.error {
  color: #ff9b9b;
  border-color: #603036;
}
@media (max-width:1020px) {
  .platform-grid {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }
  .movie-grid,.attempt-grid {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }
  .dialog-shell {
    grid-template-columns: 34% 66%;
  }
}
@media (max-width:760px) {
  .topbar {
    height: 66px;
    padding: 0 18px;
  }
  .main-nav,.account-menu span {
    display: none;
  }
  .account-menu {
    margin-left: auto;
    padding-left: 0;
    border-left: 0;
  }
  .mobile-library-button {
    display: block;
  }
  main {
    width: min(100% - 30px,1240px);
  }
  .hero {
    padding: 38px 0 40px;
  }
  .add-movie-form {
    padding: 20px;
  }
  .url-control {
    grid-template-columns: auto 1fr;
  }
  .url-control .button {
    grid-column: 1/-1;
    width: 100%;
  }
  .platform-section {
    padding: 20px 18px;
  }
  .platform-heading {
    display: block;
  }
  .platform-heading>p {
    margin-top: 9px;
    text-align: left;
  }
  .platform-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .movie-grid,.attempt-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 14px;
  }
  .attempt-group {
    padding: 10px;
  }
  .attempt-group-header {
    align-items: flex-start;
  }
  .attempt-group-header>span {
    max-width: 120px;
    text-align: right;
  }
  .dialog-shell {
    display: block;
  }
  .details-visual {
    height: 260px;
    min-height: 0;
  }
  .details-content {
    padding: 26px 20px 24px;
  }
  .option-grid,.watermark-row {
    grid-template-columns: 1fr;
  }
  footer {
    flex-wrap: wrap;
  }
  .help-section {
    padding: 18px 0 48px;
  }
  .help-heading {
    display: block;
  }
  .help-heading>p {
    margin-top: 8px;
  }
  .help-flow {
    justify-content: flex-start;
    gap: 8px;
    padding: 13px;
    font-size: 10px;
  }
  .help-flow i {
    font-size: 12px;
  }
  .help-grid {
    grid-template-columns: 1fr;
  }
  .help-card-wide {
    grid-column: auto;
  }
  .help-card {
    padding: 17px;
  }
  .collection-episodes {
    grid-template-columns: 1fr;
  }
  .collection-options {
    grid-template-columns: 1fr 1fr;
  }
  .collection-entry {
    grid-template-columns: auto 56px minmax(0,1fr);
  }
  .collection-entry img {
    width: 56px;
    height: 38px;
  }
  .collection-entry>small {
    grid-column: 3;
  }
  .collection-dialog-shell {
    padding: 24px 16px;
  }
  .manual-series {
    grid-template-columns: 1fr;
  }
  .manual-series .button {
    grid-column: 1;
  }
}
.collection-entry-unavailable {
  display: grid;
  justify-items: end;
  gap: 4px;
  min-width: 0;
  max-width: 220px;
  text-align: right;
}
.collection-entry-unavailable small {
  color: #e08b8b;
  line-height: 1.35;
}
.collection-status-badge {
  display: inline-flex;
  padding: 3px 6px;
  border: 1px solid #6d4545;
  border-radius: 999px;
  color: #ffadad;
  background: #321f22;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.collection-create-help {
  margin: 12px 0 0;
  color: #e0a0a0;
  font-size: 10px;
  line-height: 1.5;
}
.promo-placement {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 10px 0 0;
  padding: 0;
  border: 0;
  color: #aab2bc;
  font-size: 10px;
}
.promo-placement legend {
  margin-right: 4px;
  color: #dce0e5;
  font-weight: 750;
}
.promo-placement label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.promo-placement input {
  accent-color: var(--accent);
}
.collection-promo-placement {
  grid-column: 1/-1;
  margin-top: 0;
}
@media (max-width:760px) {
  .trial-offer {
    align-items: stretch;
    flex-direction: column;
  }
  .trial-offer .button {
    width: 100%;
  }
}
@media (max-width:470px) {
  .brand small {
    display: none;
  }
  .library-section {
    padding-top: 44px;
  }
  .section-heading {
    align-items: flex-end;
  }
  .movie-grid,.attempt-grid {
    grid-template-columns: 1fr;
  }
  .card-poster {
    aspect-ratio: 16/8.7;
  }
  .voice-fieldset {
    grid-template-columns: 1fr;
  }
  .details-heading {
    display: block;
    padding-right: 25px;
  }
  .details-heading .status-badge {
    margin-top: 14px;
  }
  .details-actions {
    flex-direction: column;
  }
}
.login-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
  background: #080a0d;
}
.login-card {
  width: min(440px,100%);
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #0e1115;
  box-shadow: 0 30px 100px rgba(0,0,0,.45);
}
.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 34px;
}
.login-brand strong,.login-brand small {
  display: block;
}
.login-brand small {
  margin-top: 3px;
  color: #69717c;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.login-card h1 {
  margin: 0;
  font-size: 34px;
  letter-spacing: -.045em;
}
.login-card>p {
  margin: 13px 0 26px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.google-button {
  width: 100%;
  min-height: 48px;
  color: #17191d;
  background: #fff;
}
.google-button:hover {
  background: #f1f2f4;
}
.login-note {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: #626a75;
  text-align: center;
  font-size: 10px;
  line-height: 1.6;
}
.conflict-panel,.login-error {
  margin-bottom: 20px;
  padding: 16px;
  border: 1px solid #5b4218;
  border-radius: 12px;
  background: #1b150b;
}
.conflict-panel strong,.conflict-panel span {
  display: block;
}
.conflict-panel strong {
  color: #ffc45c;
  font-size: 13px;
}
.conflict-panel span {
  margin-top: 6px;
  color: #a99a7c;
  font-size: 11px;
  line-height: 1.5;
}
.conflict-panel .button {
  width: 100%;
  margin-top: 14px;
}
.login-error {
  color: #ff9b9b;
  border-color: #603036;
  background: #211113;
  font-size: 11px;
}
.billing-dialog {
  width: min(780px,calc(100% - 28px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: #eef0f3;
  background: #0d1014;
  box-shadow: 0 32px 120px rgba(0,0,0,.72);
}
.billing-dialog::backdrop {
  background: rgba(2,4,7,.82);
  backdrop-filter: blur(6px);
}
.billing-shell {
  position: relative;
  padding: 38px;
}
.billing-shell h2 {
  margin: 9px 0 8px;
  font-size: 29px;
  letter-spacing: -.04em;
}
.billing-shell>p {
  margin: 0;
  color: #7f8791;
  font-size: 12px;
}
.plan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 28px 0 18px;
}
.plan-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #11151a;
}
.plan-card.featured {
  border-color: #73521b;
  background: #171309;
}
.plan-card>span {
  color: #dca240;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.plan-card>strong {
  display: block;
  margin-top: 12px;
  font-size: 32px;
}
.plan-card>strong small {
  color: #737c87;
  font-size: 11px;
  font-weight: 600;
}
.plan-card>p {
  min-height: 36px;
  color: #747d88;
  font-size: 11px;
  line-height: 1.6;
}
.plan-card .button {
  width: 100%;
  margin-top: 8px;
}
.payment-state {
  margin-top: 14px;
  padding: 13px 15px;
  border: 1px solid #4c3b1f;
  border-radius: 10px;
  color: #d6b878;
  background: #18140c;
  font-size: 11px;
}
.payment-state.success {
  color: #8ee4b0;
  border-color: #245a3b;
  background: #0c1a12;
}
.payment-state.error {
  color: #ff9b9b;
  border-color: #603036;
  background: #211113;
}
.qr-payment {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  margin-top: 26px;
  padding: 24px;
  border: 1px solid #55431f;
  border-radius: 14px;
  background: #121008;
}
.qr-copy h3 {
  margin: 8px 0 4px;
  font-size: 21px;
}
.qr-copy>strong {
  display: block;
  color: #ffc45b;
  font-size: 25px;
}
.qr-copy>p {
  margin: 12px 0 0;
  color: #a99a7c;
  font-size: 12px;
}
.qr-image-frame {
  display: grid;
  place-items: center;
  padding: 10px;
  border-radius: 12px;
  background: #fff;
}
.qr-image-frame img {
  display: block;
  width: 220px;
  height: 220px;
  object-fit: contain;
}
.manual-payment {
  margin-top: 26px;
  padding: 24px;
  border: 1px solid #55431f;
  border-radius: 14px;
  background: #121008;
  text-align: center;
}
.manual-payment #manual-qr {
  display: block;
  width: 100%;
  height: auto;
  max-width: 220px;
  max-height: none;
  margin: 18px auto;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
}
.manual-payment #manual-amount {
  display: block;
  color: #ffc45b;
  font-size: 25px;
  margin-top: 10px;
}
.manual-payment #manual-status {
  color: #d6b878;
  font-size: 12px;
}
.manual-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}
.aba-mobile-button {
  display: none;
  margin-top: 18px;
}
.sandbox-note {
  display: block;
  margin-top: 17px;
  color: #535b65;
  line-height: 1.6;
}
@media (max-width:620px) {
  .billing-shell {
    padding: 30px 20px 24px;
  }
  .plan-grid {
    grid-template-columns: 1fr;
  }
  .plan-card>p {
    min-height: 0;
  }
  .qr-payment {
    grid-template-columns: 1fr;
    padding: 18px;
    text-align: center;
  }
  .qr-image-frame {
    grid-row: 1;
  }
  .qr-image-frame img {
    width: min(240px,70vw);
    height: min(240px,70vw);
  }
  .manual-payment {
    padding: 18px;
  }
  .manual-payment #manual-qr {
    max-width: min(100%, 190px);
  }
  .manual-actions>* {
    width: 100%;
  }
  .aba-mobile-button {
    display: inline-flex;
    width: 100%;
  }
}
@property --tw-rotate-x {
  syntax: "*";
  inherits: false;
}
@property --tw-rotate-y {
  syntax: "*";
  inherits: false;
}
@property --tw-rotate-z {
  syntax: "*";
  inherits: false;
}
@property --tw-skew-x {
  syntax: "*";
  inherits: false;
}
@property --tw-skew-y {
  syntax: "*";
  inherits: false;
}
@property --tw-border-style {
  syntax: "*";
  inherits: false;
  initial-value: solid;
}
@property --tw-font-weight {
  syntax: "*";
  inherits: false;
}
@property --tw-blur {
  syntax: "*";
  inherits: false;
}
@property --tw-brightness {
  syntax: "*";
  inherits: false;
}
@property --tw-contrast {
  syntax: "*";
  inherits: false;
}
@property --tw-grayscale {
  syntax: "*";
  inherits: false;
}
@property --tw-hue-rotate {
  syntax: "*";
  inherits: false;
}
@property --tw-invert {
  syntax: "*";
  inherits: false;
}
@property --tw-opacity {
  syntax: "*";
  inherits: false;
}
@property --tw-saturate {
  syntax: "*";
  inherits: false;
}
@property --tw-sepia {
  syntax: "*";
  inherits: false;
}
@property --tw-drop-shadow {
  syntax: "*";
  inherits: false;
}
@property --tw-drop-shadow-color {
  syntax: "*";
  inherits: false;
}
@property --tw-drop-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}
@property --tw-drop-shadow-size {
  syntax: "*";
  inherits: false;
}
@keyframes pulse {
  50% {
    opacity: 0.5;
  }
}
@layer properties {
  @supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
    *, ::before, ::after, ::backdrop {
      --tw-rotate-x: initial;
      --tw-rotate-y: initial;
      --tw-rotate-z: initial;
      --tw-skew-x: initial;
      --tw-skew-y: initial;
      --tw-border-style: solid;
      --tw-font-weight: initial;
      --tw-blur: initial;
      --tw-brightness: initial;
      --tw-contrast: initial;
      --tw-grayscale: initial;
      --tw-hue-rotate: initial;
      --tw-invert: initial;
      --tw-opacity: initial;
      --tw-saturate: initial;
      --tw-sepia: initial;
      --tw-drop-shadow: initial;
      --tw-drop-shadow-color: initial;
      --tw-drop-shadow-alpha: 100%;
      --tw-drop-shadow-size: initial;
    }
  }
}
