/* Qbitanimations - "Liquid glass" (owner-approved dark design, 13-14 Nov 2026) for the main buttons:
     app pages   : plan pill (.nav-plan-pill.pro), profile button (.user-dropdown-trigger .nav-user-icon),
                   Generate Video (#genBtn)
     auth pages  : Start for Free (.nav-cta), Sign in / Create account (.btn-submit),
                   the sliding part of the Log in | Sign up switch (.auth-tab-indicator)
     landing home: Start for free in the header (.hdr-nav .hdr-cta) and the filled CTA (.btn-fill)
   Clear glass, strong blur, bright white rim + specular highlight, soft blue glow underneath.
   CSS only. Earthlight Blue palette (no green/orange). Loaded last on each page.
   Border WIDTHS, padding and sizes are untouched (colour + inset shadows + radius only), so nothing moves.
   ":not(#qg)" only raises priority above the older theme rules; no element has that id.
   Motion is limited to hover/press feedback and is removed under prefers-reduced-motion. */

:root {
  --qg-rim: rgba(255, 255, 255, .5);
  --qg-rim-hover: rgba(255, 255, 255, .78);
  --qg-ease: cubic-bezier(.22, 1, .36, 1);
}

/* shared liquid-glass surface */
html body .nav-plan-pill.pro:not(#qg),
html body .user-dropdown-trigger .nav-user-icon:not(#qg),
html body button#genBtn.btn-send,
html body .nav-cta:not(#qg),
html body .btn-submit:not(#qg),
html body .auth-tab-indicator:not(#qg),
html body .hdr-nav .hdr-cta:not(#qg),
html body .btn-fill:not(#qg) {
  background:
    radial-gradient(120% 90% at 50% -20%, rgba(255, 255, 255, .34), rgba(255, 255, 255, 0) 60%),
    linear-gradient(180deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .05)) !important;
  -webkit-backdrop-filter: blur(20px) saturate(190%);
  backdrop-filter: blur(20px) saturate(190%);
  border-color: var(--qg-rim) !important;          /* colour only: each element keeps its own border width */
  color: #ffffff !important;
  box-shadow:
    inset 0 0 0 1px var(--qg-rim),                 /* rim, also on elements that have no border */
    inset 0 1px 1px rgba(255, 255, 255, .8),       /* specular highlight on the top edge */
    inset 0 -10px 18px -12px rgba(140, 196, 255, .75), /* blue light caught in the bottom of the glass */
    0 12px 30px -12px rgba(47, 123, 235, .85),     /* glow underneath */
    0 0 0 1px rgba(5, 10, 20, .35) !important;
  text-shadow: 0 1px 6px rgba(10, 30, 60, .55);
  transition: transform .4s var(--qg-ease), box-shadow .4s var(--qg-ease),
              border-color .4s var(--qg-ease), filter .4s var(--qg-ease) !important;
}

html body .nav-plan-pill.pro:not(#qg):hover,
html body .user-dropdown-trigger:hover .nav-user-icon:not(#qg),
html body button#genBtn.btn-send:not(:disabled):hover,
html body .nav-cta:not(#qg):hover,
html body .btn-submit:not(#qg):not([disabled]):hover,
html body .hdr-nav .hdr-cta:not(#qg):hover,
html body .btn-fill:not(#qg):hover {
  border-color: var(--qg-rim-hover) !important;
  filter: brightness(1.1);
  box-shadow:
    inset 0 0 0 1px var(--qg-rim-hover),
    inset 0 1px 1px rgba(255, 255, 255, .95),
    inset 0 -12px 20px -12px rgba(140, 196, 255, .9),
    0 16px 36px -12px rgba(74, 149, 245, .95),
    0 0 22px -6px rgba(140, 196, 255, .55) !important;
}

/* capsule / circle shapes (radius only - same size) */
html body .nav-plan-pill.pro:not(#qg),
html body button#genBtn.btn-send,
html body .nav-cta:not(#qg),
html body .btn-submit:not(#qg),
html body .auth-tab-indicator:not(#qg),
html body .hdr-nav .hdr-cta:not(#qg),
html body .btn-fill:not(#qg) { border-radius: 999px !important; }
html body .user-dropdown-trigger .nav-user-icon:not(#qg) { border-radius: 50% !important; }

/* icons inside stay white with a faint glow */
html body .nav-plan-pill.pro .sl-ico { stroke: #ffffff !important; filter: drop-shadow(0 0 4px rgba(140, 196, 255, .8)); }

/* hover/press lift on the app buttons (the auth/landing buttons keep their own scale effect) */
html body .user-dropdown-trigger:hover .nav-user-icon:not(#qg) { transform: translateY(-1px); }
html body button#genBtn.btn-send:not(:disabled):hover { transform: translateY(-1px); }
html body button#genBtn.btn-send:not(:disabled):active { transform: translateY(0) scale(.985); }
html body button#genBtn.btn-send:disabled { filter: saturate(.6); }

/* light theme (app pages): the same clear glass, tinted blue so the white text and icons stay readable */
html[data-theme="light"] body .nav-plan-pill.pro:not(#qg),
html[data-theme="light"] body .user-dropdown-trigger .nav-user-icon:not(#qg),
html[data-theme="light"] body button#genBtn.btn-send,
html[data-theme="light"] body .nav-cta:not(#qg),
html[data-theme="light"] body .btn-submit:not(#qg),
html[data-theme="light"] body .auth-tab-indicator:not(#qg),
html[data-theme="light"] body .hdr-nav .hdr-cta:not(#qg),
html[data-theme="light"] body .btn-fill:not(#qg) {
  background:
    radial-gradient(120% 90% at 50% -20%, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 60%),
    linear-gradient(180deg, rgba(74, 149, 245, .82), rgba(47, 123, 235, .72)) !important;
  border-color: rgba(255, 255, 255, .7) !important;
  color: #ffffff !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .6),
    inset 0 1px 1px rgba(255, 255, 255, .9),
    0 10px 24px -12px rgba(47, 123, 235, .75) !important;
}
html[data-theme="light"] body .nav-plan-pill.pro .sl-ico { stroke: #ffffff !important; }

/* browsers without backdrop-filter: a little more opaque so the text keeps its contrast */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  html body .nav-plan-pill.pro:not(#qg),
  html body .user-dropdown-trigger .nav-user-icon:not(#qg),
  html body button#genBtn.btn-send,
  html body .nav-cta:not(#qg),
  html body .btn-submit:not(#qg),
  html body .auth-tab-indicator:not(#qg),
  html body .hdr-nav .hdr-cta:not(#qg),
  html body .btn-fill:not(#qg) {
    background: linear-gradient(180deg, rgba(74, 149, 245, .6), rgba(29, 101, 184, .5)) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html body .nav-plan-pill.pro:not(#qg),
  html body .user-dropdown-trigger .nav-user-icon:not(#qg),
  html body button#genBtn.btn-send,
  html body .nav-cta:not(#qg),
  html body .btn-submit:not(#qg),
  html body .hdr-nav .hdr-cta:not(#qg),
  html body .btn-fill:not(#qg) { transition: none !important; }
  html body .user-dropdown-trigger:hover .nav-user-icon:not(#qg),
  html body button#genBtn.btn-send:not(:disabled):hover,
  html body button#genBtn.btn-send:not(:disabled):active { transform: none !important; }
}
