:root {
  --bg: #ffffff;
  --ink: #142326;
  --muted: #66777b;
  --line: #dce8ea;
  --soft: #f5fbfb;
  --brand-primary: #F4D77A;
  --brand-primary-dark: #D4AF37;
  --shadow: 0 18px 55px rgba(18, 49, 52, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background:
    linear-gradient(90deg, rgba(5, 8, 24, 0.76), rgba(5, 8, 24, 0.50) 55%, rgba(5, 8, 24, 0.76)),
    linear-gradient(180deg, rgba(4, 8, 24, 0.58), rgba(4, 8, 24, 0.82)),
    url("fondnew.PNG");
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.global-ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.ambient-shape {
  position: absolute;
  display: block;
  border-radius: 46% 54% 62% 38% / 45% 42% 58% 55%;
  filter: blur(72px);
  opacity: 0.68;
  transform: translateZ(0);
}

.ambient-shape-one {
  width: 620px;
  height: 430px;
  top: -170px;
  right: -160px;
  background:
    radial-gradient(ellipse at 34% 30%, rgba(255, 255, 255, 0.70), transparent 15%),
    radial-gradient(ellipse at 58% 58%, rgba(66, 185, 255, 0.28), transparent 52%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.24), rgba(66, 185, 255, 0.16));
}

.ambient-shape-two {
  width: 650px;
  height: 460px;
  left: -230px;
  bottom: -240px;
  background:
    radial-gradient(ellipse at 42% 40%, rgba(255, 255, 255, 0.66), transparent 14%),
    radial-gradient(ellipse at 58% 56%, rgba(244, 215, 122, 0.26), transparent 52%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.20), rgba(212, 175, 55, 0.17));
}

.ambient-shape-three {
  width: 480px;
  height: 330px;
  left: 18%;
  top: 24%;
  opacity: 0.34;
  background:
    radial-gradient(ellipse at 45% 42%, rgba(255, 255, 255, 0.78), transparent 18%),
    radial-gradient(ellipse at 60% 52%, rgba(66, 185, 255, 0.24), transparent 52%);
}

.ambient-shape-four {
  width: 520px;
  height: 360px;
  right: 15%;
  bottom: 10%;
  opacity: 0.28;
  background:
    radial-gradient(ellipse at 40% 38%, rgba(255, 255, 255, 0.72), transparent 16%),
    radial-gradient(ellipse at 56% 56%, rgba(244, 215, 122, 0.22), transparent 54%);
}

.global-topbar,
main,
footer {
  position: relative;
  z-index: 1;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.global-topbar {
  position: relative;
  z-index: 1000;
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
  padding: 0 32px;
  border-bottom: 1px solid rgba(214, 226, 229, 0.74);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(20px);
  overflow: visible;
}

.global-nav-left,
.global-nav-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 26px;
  min-width: 0;
  overflow: visible;
}

.global-nav-right a {
  color: #0f1728;
  font-size: 1.1rem;
  font-weight: 760;
  line-height: 1.25;
  text-wrap: pretty;
}

.global-nav-right a:hover {
  color: var(--brand-primary-dark);
}

.global-brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  font-size: 1.82rem;
  font-weight: 910;
  line-height: 1;
  letter-spacing: 0;
}

.brand-with-logo {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.brand-logo {
  flex: 0 0 auto;
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 0;
  object-fit: contain;
  object-position: center;
}

.global-signup {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border-radius: 999px;
  color: #ffffff !important;
  background: linear-gradient(135deg, #F4D77A, #D4AF37);
  box-shadow: 0 14px 28px rgba(212, 175, 55, 0.24);
  transition: transform 160ms ease, box-shadow 160ms ease;
  text-align: center;
}

.global-signup:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(244, 215, 122, 0.24);
}

.global-language-menu summary {
  min-height: 44px;
  padding: 0 16px;
  border-color: rgba(205, 218, 224, 0.86);
  color: #0f1728;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 10px 24px rgba(18, 49, 52, 0.055);
  font-size: 1.02rem;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.global-language-menu summary:hover {
  transform: translateY(-1px);
  border-color: rgba(110, 198, 255, 0.36);
  box-shadow: 0 12px 26px rgba(18, 49, 52, 0.075);
}

.global-language-menu .landing-language-dropdown {
  border-color: rgba(211, 225, 228, 0.82);
  box-shadow: 0 20px 46px rgba(18, 49, 52, 0.13);
}

.topbar {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
}

.brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.topnav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 14px;
  min-width: 0;
  font-size: 0.94rem;
}

.topnav a {
  color: var(--muted);
  font-weight: 750;
  line-height: 1.25;
}

.topnav a:hover {
  color: var(--ink);
}

.nav-pill {
  padding: 9px 13px;
  border-radius: 999px;
  color: #052827 !important;
  background: var(--brand-primary);
}

.language-form select {
  width: auto;
  min-height: 38px;
  border-radius: 999px;
}

.brand-mark {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--brand-primary);
  box-shadow: 0 0 0 6px rgba(244, 215, 122, 0.12);
}

.landing-page {
  min-height: 100vh;
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  position: relative;
  overflow-x: hidden;
  background:
    linear-gradient(90deg, rgba(3, 7, 20, 0.26), rgba(3, 7, 20, 0.03) 52%, rgba(3, 7, 20, 0.18)),
    linear-gradient(180deg, rgba(3, 7, 20, 0.02), rgba(3, 7, 20, 0.20)),
    url("fondnew.PNG");
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: #ffffff;
  isolation: isolate;
}

.landing-page::before,
.landing-page::after {
  display: none;
}

.landing-page main {
  min-height: 0;
  overflow: hidden;
}

.landing-page .global-ambient {
  display: none;
}

.landing-topbar {
  z-index: 1000;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 38px;
  position: relative;
  border-bottom: 1px solid rgba(225, 183, 77, 0.22);
  background: rgba(3, 7, 20, 0.70);
  backdrop-filter: blur(14px) saturate(140%);
  overflow: visible;
}

.landing-topbar::after {
  content: "";
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(222, 171, 58, 0.16),
    rgba(255, 214, 116, 0.30),
    rgba(222, 171, 58, 0.16),
    transparent
  );
}

.landing-nav-left,
.landing-nav-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
  min-width: 0;
  overflow: visible;
}

.landing-topbar a,
.landing-footer a {
  color: #ffffff;
  font-size: 1.08rem;
  font-weight: 760;
  line-height: 1.35;
  text-align: center;
  text-wrap: pretty;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

.landing-topbar a:hover,
.landing-footer a:hover {
  color: #ffd978;
}

.landing-signup {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 21px;
  border: 1px solid rgba(255, 227, 146, 0.42);
  border-radius: 15px;
  color: #090a12 !important;
  background: linear-gradient(180deg, #ffe08a 0%, #f4bd46 56%, #dca12f 100%);
  box-shadow: 0 14px 30px rgba(220, 161, 47, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.65);
  text-align: center;
  text-shadow: none;
}

.landing-language-menu {
  position: relative;
  z-index: 1002;
  overflow: visible;
}

.landing-language-menu[open] {
  z-index: 1200;
}

.landing-language-menu summary {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid rgba(113, 149, 219, 0.46);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(6, 12, 32, 0.62);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.20), inset 0 1px 0 rgba(255, 255, 255, 0.10);
  cursor: pointer;
  font-size: 1.02rem;
  font-weight: 850;
  list-style: none;
  backdrop-filter: blur(16px) saturate(140%);
}

.landing-language-menu summary::-webkit-details-marker {
  display: none;
}

.landing-language-menu summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.landing-language-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 1201;
  min-width: max-content;
  max-width: min(260px, calc(100vw - 32px));
  padding: 7px;
  border: 1px solid rgba(255, 214, 116, 0.28);
  border-radius: 16px;
  background: rgba(5, 10, 28, 0.96);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.32);
}

.landing-language-dropdown form {
  margin: 0;
}

.landing-language-dropdown button {
  width: 100%;
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 0;
  border-radius: 11px;
  color: #ffffff;
  background: transparent;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 850;
  text-align: left;
  line-height: 1.2;
}

.landing-language-dropdown button:hover,
.landing-language-dropdown button.active {
  color: #ffffff;
  background: rgba(220, 161, 47, 0.20);
}

.landing-language-menu span,
.landing-language-dropdown span {
  line-height: 1;
}

.profile-menu {
  position: relative;
}

.profile-menu summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  list-style: none;
  cursor: pointer;
  outline: none;
}

.profile-menu summary::-webkit-details-marker {
  display: none;
}

.profile-menu summary span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, #F4D77A, #D4AF37);
  font-size: 0.9rem;
  font-weight: 850;
  box-shadow:
    0 12px 28px rgba(212, 175, 55, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.profile-menu summary:hover span,
.profile-menu[open] summary span {
  transform: translateY(-1px);
  box-shadow:
    0 16px 34px rgba(212, 175, 55, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.profile-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  z-index: 40;
  width: max-content;
  min-width: min(22rem, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  padding: 14px;
  border: 1px solid rgba(213, 225, 229, 0.92);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow:
    0 28px 80px rgba(18, 49, 52, 0.18),
    0 2px 8px rgba(18, 49, 52, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
  transform-origin: top right;
  animation: accountPopupIn 170ms ease both;
  backdrop-filter: blur(18px);
}

@keyframes accountPopupIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.account-popup-identity {
  display: grid;
  justify-items: center;
  padding: 18px 16px 20px;
  text-align: center;
}

.account-popup-avatar {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 50%;
  color: #ffffff;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.38), transparent 25%),
    linear-gradient(135deg, #F4D77A, #D4AF37);
  box-shadow: 0 18px 40px rgba(212, 175, 55, 0.24);
  font-size: 1.2rem;
  font-weight: 900;
  overflow: hidden;
}

.account-popup-avatar span,
.account-popup-avatar img {
  grid-area: 1 / 1;
}

.account-popup-avatar img,
.account-avatar-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  border-radius: 9999px;
}

.account-popup-avatar [hidden],
.account-avatar-preview [hidden] {
  display: none !important;
}

.account-popup-identity strong {
  max-width: 100%;
  color: #13272b;
  font-size: 1.08rem;
  font-weight: 860;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.account-popup-identity small {
  max-width: 100%;
  margin-top: 3px;
  color: #728287;
  font-size: 0.88rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.account-manage-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  margin-top: 16px;
  padding: 9px 18px;
  border: 1px solid rgba(188, 205, 210, 0.92);
  border-radius: 999px;
  color: #163338;
  background: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  font-weight: 780;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.account-manage-button:hover {
  transform: translateY(-1px);
  border-color: rgba(110, 198, 255, 0.42);
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(18, 49, 52, 0.08);
}

.account-popup-menu {
  display: grid;
  gap: 2px;
  padding: 8px 0;
  border-top: 1px solid rgba(221, 232, 235, 0.82);
}

.account-popup-menu a,
.account-popup-logout a,
.account-popup-logout button {
  display: flex;
  align-items: center;
  min-height: 42px;
  width: 100%;
  padding: 10px 16px;
  border: 0;
  border-radius: 14px;
  color: #223a3f;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 0.94rem;
  font-weight: 740;
  line-height: 1.25;
  text-align: center;
  overflow-wrap: anywhere;
  transition: background 150ms ease, color 150ms ease, transform 150ms ease;
}

.account-popup-menu a:hover,
.account-popup-logout a:hover,
.account-popup-logout button:hover {
  transform: translateX(2px);
  color: #F4D77A;
  background: rgba(244, 215, 122, 0.075);
}

.account-popup-logout {
  padding: 10px 0 8px;
  border-top: 1px solid rgba(221, 232, 235, 0.82);
}

.account-popup-logout form {
  margin: 0;
}

.account-popup-logout a,
.account-popup-logout button {
  justify-content: center;
  color: #223a3f;
}

.account-popup-legal {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px 8px 2px;
  color: #849398;
  font-size: 0.76rem;
  font-weight: 650;
  line-height: 1.35;
  text-align: center;
}

.account-popup-legal a {
  overflow-wrap: anywhere;
}

.account-popup-legal a:hover {
  color: var(--brand-primary-dark);
}

.account-shell {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 56px 0 86px;
}

.account-page-header {
  max-width: 720px;
  margin-bottom: 28px;
}

.account-page-header h1 {
  margin: 0 0 10px;
  color: #111f22;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 0.98;
  letter-spacing: 0;
}

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

.account-card {
  padding: 28px;
  border: 1px solid rgba(202, 222, 226, 0.82);
  border-radius: 22px;
  background:
    radial-gradient(circle at 88% 10%, rgba(244, 215, 122, 0.10), transparent 34%),
    rgba(255, 255, 255, 0.88);
  box-shadow:
    0 22px 60px rgba(18, 49, 52, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
}

.account-card-heading {
  margin-bottom: 22px;
}

.account-card h2,
.account-card-heading h2 {
  margin: 0 0 6px;
  color: #13272b;
  font-size: 1.2rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.account-card p,
.account-card-heading p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.account-alert {
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid;
  border-radius: 16px;
}

.stack-form {
  display: grid;
  gap: 16px;
}

.stack-form label,
.account-form-grid label {
  display: grid;
  gap: 8px;
  color: #203b40;
  font-weight: 760;
}

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

.account-form-grid .primary-button {
  align-self: end;
}

.profile-editor {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 10px 0 18px;
  text-align: center;
}

.account-avatar-preview {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 9999px;
  color: #fff;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.38), transparent 25%),
    linear-gradient(135deg, #F4D77A, #D4AF37);
  box-shadow: 0 18px 40px rgba(212, 175, 55, 0.24);
  font-size: 1.3rem;
  font-weight: 900;
}

.profile-photo-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.account-avatar-preview span {
  grid-area: 1 / 1;
}

.account-avatar-preview img {
  grid-area: 1 / 1;
}

.file-pill {
  position: relative;
  width: auto;
  min-height: 42px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border: 1px solid rgba(188, 205, 210, 0.92);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.file-pill:hover {
  transform: translateY(-1px);
  border-color: rgba(110, 198, 255, 0.42);
  box-shadow: 0 10px 22px rgba(18, 49, 52, 0.08);
}

.file-pill input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.remove-avatar-button {
  min-height: 42px;
  border-color: rgba(220, 38, 38, 0.28);
  color: #b42318;
  background: rgba(255, 241, 241, 0.78);
}

.remove-avatar-button:hover {
  border-color: rgba(220, 38, 38, 0.46);
  color: #991b1b;
  background: rgba(254, 226, 226, 0.92);
  box-shadow: 0 10px 22px rgba(185, 28, 28, 0.08);
}

.security-card .account-inline-button {
  margin-top: 26px;
}

.status-row,
.toggle-row,
.plan-row {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(220, 232, 234, 0.9);
  border-radius: 16px;
  background: rgba(248, 253, 253, 0.82);
}

.status-good {
  color: #087d5b;
}

.status-warn {
  color: #a56807;
}

.checkbox-field {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  font-size: 0.92rem;
  line-height: 1.45;
}

.checkbox-field input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
}

.password-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.password-field input {
  border: 0;
}

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

.password-field button {
  position: relative;
  width: 38px;
  height: 38px;
  min-height: 38px;
  margin-right: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: #F4D77A;
  background: rgba(244, 215, 122, 0.10);
  cursor: pointer;
}

.password-field button::before {
  content: "";
  position: absolute;
  inset: 10px 7px;
  border: 2px solid currentColor;
  border-radius: 50% 50% 46% 46% / 64% 64% 42% 42%;
  transform: rotate(-8deg);
}

.password-field button::after {
  content: "";
  position: absolute;
  top: 15px;
  left: 15px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 10px rgba(244, 215, 122, 0.32);
}

.password-field button[aria-pressed="true"]::after {
  top: 18px;
  left: 8px;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: rotate(-35deg);
  box-shadow: 0 0 10px rgba(244, 215, 122, 0.26);
}

.password-strength {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: center;
  gap: 14px;
}

.strength-meter {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8f1f2;
}

.strength-meter span {
  width: 28%;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: #e36c63;
  transition: width 160ms ease, background 160ms ease;
}

.strength-meter span[data-level="medium"] {
  width: 62%;
  background: #d6a332;
}

.strength-meter span[data-level="strong"] {
  width: 100%;
  background: #16a981;
}

.requirement-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.92rem;
}

.requirement-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  display: inline-block;
  margin-right: 9px;
  border-radius: 50%;
  background: #c7d6d9;
}

.requirement-list li.passed {
  color: #087d5b;
}

.requirement-list li.passed::before {
  background: #16a981;
}

.account-inline-button,
.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.danger-button {
  min-height: 40px;
  padding: 0 15px;
  border: 0;
  border-radius: 999px;
  color: #8a1d1d;
  background: #fff0f0;
  cursor: pointer;
  font-weight: 800;
}

.account-action-list,
.table-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.export-status {
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(188, 205, 210, 0.8);
  border-radius: 14px;
  color: #274246;
  background: rgba(248, 253, 253, 0.86);
  font-size: 0.92rem;
  font-weight: 720;
  line-height: 1.4;
}

.export-status[data-type="success"] {
  border-color: rgba(22, 169, 129, 0.28);
  color: #087d5b;
  background: rgba(240, 255, 248, 0.9);
}

.export-status[data-type="error"] {
  border-color: rgba(224, 107, 99, 0.32);
  color: #8a1d1d;
  background: rgba(255, 244, 244, 0.92);
}

.secondary-button:disabled,
.primary-button:disabled,
.danger-button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.table-actions form {
  min-width: max-content;
}

.pdf-library-view-button {
  cursor: pointer;
}

.table-card {
  padding: 18px;
}

.usage-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.usage-strip strong {
  color: #F4D77A;
  font-size: 1.35rem;
}

.usage-strip span,
.usage-reset {
  color: var(--muted);
}

.usage-reset {
  display: block;
  margin-top: 3px;
  font-size: 0.82rem;
  font-weight: 700;
}

.account-table {
  display: grid;
  gap: 10px;
}

.account-table-head,
.account-table-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.25fr) minmax(140px, 0.8fr) minmax(160px, 0.9fr) minmax(280px, 1.1fr);
  gap: 14px;
  align-items: center;
}

.account-table-head {
  padding: 0 14px 8px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.account-table-row {
  padding: 14px;
  border: 1px solid rgba(220, 232, 234, 0.9);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
}

.account-table-row strong,
.history-card h2 {
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.25;
}

.activity-card-grid {
  display: grid;
  gap: 16px;
}

.activity-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.activity-card h2 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.pdf-library-viewer {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: clamp(92px, 12vh, 126px) 24px 28px;
  background: rgba(10, 30, 32, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.pdf-library-viewer.open {
  opacity: 1;
  pointer-events: auto;
}

.pdf-library-viewer-card {
  width: min(1120px, 100%);
  height: min(820px, calc(100dvh - 140px));
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid rgba(216, 229, 232, 0.86);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 30px 80px rgba(18, 49, 52, 0.2);
  transform: translateY(14px) scale(0.985);
  transition: transform 200ms ease;
}

.pdf-library-viewer.open .pdf-library-viewer-card {
  transform: translateY(0) scale(1);
}

.pdf-library-viewer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(220, 232, 234, 0.9);
}

.pdf-library-viewer-header h2 {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: #122427;
  font-size: 1.02rem;
  line-height: 1.25;
}

.pdf-library-frame {
  width: 100%;
  height: 100%;
  border: 0;
  background: #f5f8f9;
}

.empty-state {
  padding: 22px;
  color: var(--muted);
  text-align: center;
}

.account-list {
  display: grid;
  gap: 16px;
}

.history-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(max-content, auto);
  gap: 22px;
  align-items: center;
}

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

.usage-grid div {
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid rgba(220, 232, 234, 0.9);
  border-radius: 16px;
  background: rgba(248, 253, 253, 0.82);
}

.usage-grid strong {
  color: #F4D77A;
  font-size: 1.65rem;
}

.usage-grid span,
.plan-row span {
  color: var(--muted);
}

.plan-options {
  display: grid;
  gap: 18px;
}

.plan-feature-list {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  color: #274246;
  font-weight: 720;
}

.plan-feature-list li {
  padding: 10px 12px;
  border: 1px solid rgba(220, 232, 234, 0.9);
  border-radius: 14px;
  background: rgba(248, 253, 253, 0.72);
}

.plan-reset-note {
  margin-top: 14px;
  color: #587075;
  font-size: 0.92rem;
  font-weight: 680;
  line-height: 1.45;
}

.plan-card-grid {
  display: grid;
  gap: 14px;
}

.plan-card {
  display: grid;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(211, 226, 230, 0.94);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 253, 253, 0.82));
  box-shadow: 0 14px 34px rgba(18, 49, 52, 0.07);
  transition: transform 170ms ease, box-shadow 170ms ease, border-color 170ms ease;
}

.plan-card:hover {
  transform: translateY(-2px);
  border-color: rgba(110, 198, 255, 0.34);
  box-shadow: 0 20px 44px rgba(18, 49, 52, 0.11);
}

.plan-card.current {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(242, 252, 251, 0.86));
}

.plan-card.highlighted {
  border-color: rgba(110, 198, 255, 0.38);
  box-shadow:
    0 20px 52px rgba(212, 175, 55, 0.12),
    0 12px 28px rgba(18, 49, 52, 0.07);
}

.plan-card-header {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}

.plan-card-header h3 {
  margin: 0 0 8px;
  color: #13272b;
  font-size: 1.05rem;
  line-height: 1.2;
}

.plan-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(110, 198, 255, 0.2);
  border-radius: 14px;
  color: #F4D77A;
  background: rgba(236, 249, 249, 0.82);
}

.plan-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.plan-badge {
  display: inline-flex;
  max-width: 100%;
  padding: 5px 9px;
  border: 1px solid rgba(110, 198, 255, 0.22);
  border-radius: 999px;
  color: #F4D77A;
  background: rgba(236, 249, 249, 0.86);
  font-size: 0.75rem;
  font-weight: 850;
  line-height: 1.2;
}

.plan-feature-list.compact {
  margin-top: 0;
  gap: 8px;
}

.plan-feature-list.compact li {
  padding: 0;
  border: 0;
  background: transparent;
  color: #2c474b;
  font-size: 0.92rem;
  line-height: 1.35;
}

.plan-feature-list.compact li::before {
  content: "";
  width: 7px;
  height: 7px;
  display: inline-block;
  margin-right: 9px;
  border-radius: 50%;
  background: #F4D77A;
  vertical-align: 0.08em;
}

.plan-cta {
  min-height: 42px;
  width: max-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #F4D77A, #D4AF37);
  box-shadow: 0 14px 26px rgba(212, 175, 55, 0.20);
  cursor: pointer;
  font-weight: 850;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.plan-cta:hover {
  transform: translateY(-1px);
  filter: saturate(1.04);
  box-shadow: 0 18px 32px rgba(212, 175, 55, 0.25);
}

.plan-cta.disabled,
.plan-cta:disabled {
  color: #557075;
  background: rgba(231, 241, 244, 0.92);
  box-shadow: none;
  cursor: default;
}

.plan-cta.disabled:hover,
.plan-cta:disabled:hover {
  transform: none;
  filter: none;
}

.account-dialog {
  width: min(480px, calc(100% - 32px));
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: transparent;
}

.delete-account-dialog {
  width: min(560px, calc(100% - 28px));
}

.delete-account-flow {
  gap: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 22px;
}

.delete-step {
  display: none;
}

.delete-step.active {
  display: grid;
  gap: 0;
}

.delete-step-header {
  display: grid;
  gap: 8px;
  padding: 26px 28px 18px;
  border-bottom: 1px solid rgba(222, 232, 235, 0.78);
}

.delete-step-header h2 {
  margin: 0;
  color: #142326;
  font-size: 1.24rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.delete-step-header p {
  margin: 0;
  color: #66777b;
  line-height: 1.5;
}

.delete-step-body {
  display: grid;
  gap: 14px;
  padding: 16px 28px 20px;
}

.delete-reason-list {
  display: grid;
  gap: 0;
  padding: 4px 0;
  border: 1px solid rgba(224, 234, 236, 0.86);
  border-radius: 12px;
  background: #ffffff;
  overflow: hidden;
}

.delete-reason-option {
  min-height: 40px;
  display: flex !important;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 8px 12px;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid rgba(232, 239, 241, 0.86);
  background: transparent;
  cursor: pointer;
  color: #203b40;
  font-size: 0.94rem;
  font-weight: 720;
  line-height: 1.25;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease, transform 150ms ease;
}

.delete-reason-option:last-child {
  border-bottom: 0;
}

.delete-reason-option:hover {
  background: rgba(248, 252, 252, 0.92);
}

.delete-reason-option.selected,
.delete-reason-option:has(input:checked) {
  border-bottom-color: rgba(232, 239, 241, 0.86);
  color: #7f1d1d;
  background: rgba(255, 244, 244, 0.92);
  box-shadow: inset 3px 0 0 rgba(194, 65, 58, 0.52);
  transform: none;
}

.delete-reason-option input {
  flex: 0 0 auto;
  margin: 0;
  width: 16px;
  height: 16px;
  accent-color: #c2413a;
}

.delete-reason-option span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.delete-other-reason {
  display: grid;
  gap: 8px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  color: #203b40;
  font-weight: 760;
  transform: translateY(-4px);
  transition: max-height 220ms ease, opacity 180ms ease, transform 180ms ease;
}

.delete-other-reason.open {
  max-height: 180px;
  opacity: 1;
  transform: translateY(0);
}

.delete-other-reason textarea {
  width: 100%;
  min-height: 96px;
  padding: 12px 14px;
  border: 1px solid rgba(203, 218, 222, 0.9);
  border-radius: 12px;
  color: #142326;
  background: #ffffff;
  font: inherit;
  resize: vertical;
}

.delete-flow-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin: 0;
  padding: 18px 28px 24px;
  border-top: 1px solid rgba(222, 232, 235, 0.78);
  background: rgba(250, 252, 252, 0.72);
}

.delete-flow-actions .primary-button,
.delete-flow-actions .secondary-button,
.delete-flow-actions .danger-button {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 10px;
}

.delete-flow-actions .danger-button {
  min-width: 150px;
  color: #ffffff;
  background: #c2413a;
  box-shadow: 0 12px 24px rgba(194, 65, 58, 0.18);
}

.delete-flow-actions .danger-button:hover {
  background: #a93530;
}

.delete-step-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  margin-bottom: 4px;
  border-radius: 10px;
  color: #0f766e;
  background: rgba(236, 249, 249, 0.95);
  font-weight: 900;
}

.delete-step-icon.warning {
  color: #a93530;
  background: rgba(255, 244, 244, 0.95);
}

.final-delete-header {
  border-bottom-color: rgba(224, 107, 99, 0.24);
}

.delete-confirm-field {
  display: grid;
  gap: 8px;
  color: #203b40;
  font-weight: 760;
}

.delete-confirm-field input {
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(203, 218, 222, 0.9);
  border-radius: 12px;
  font: inherit;
}

@media (max-width: 620px) {
  .delete-account-flow {
    padding: 0;
  }

  .delete-step-header {
    padding: 22px 20px 16px;
  }

  .delete-step-body {
    padding: 16px 20px 20px;
  }

  .delete-flow-actions {
    display: grid;
    grid-template-columns: 1fr;
    padding: 16px 20px 20px;
  }
}

.account-dialog::backdrop {
  background: rgba(11, 31, 35, 0.24);
  backdrop-filter: blur(6px);
}

.checkout-layout .primary-button {
  width: max-content;
  max-width: 100%;
}

.checkout-page main {
  min-height: 100vh;
}

.checkout-shell {
  width: min(100% - 48px, 1480px);
  min-height: calc(100vh - 40px);
  display: grid;
  grid-template-columns: 390px minmax(0, 1fr);
  gap: 28px;
  margin: 20px auto;
}

.checkout-sidebar,
.checkout-main-panel {
  border: 1px solid rgba(224, 235, 238, 0.9);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 28px 80px rgba(18, 49, 52, 0.08);
  backdrop-filter: blur(18px);
}

.checkout-sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 38px;
}

.checkout-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #0d1f2f;
  text-decoration: none;
}

.checkout-brand strong {
  font-size: 2rem;
  letter-spacing: 0;
}

.checkout-brand-logo,
.checkout-card-brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 0;
  object-fit: contain;
  object-position: center;
}

.checkout-back {
  color: #F4D77A;
  font-weight: 780;
  text-decoration: none;
}

.checkout-upgrade-copy p,
.checkout-payment-card p,
.checkout-note-card p,
.checkout-legal,
.checkout-trust-row span {
  color: #667589;
  line-height: 1.5;
}

.checkout-upgrade-copy p {
  margin: 0 0 6px;
  color: #0e1f31;
  font-weight: 780;
}

.checkout-upgrade-copy h1 {
  margin: 0 0 12px;
  color: #08192a;
  font-size: 2.15rem;
  line-height: 1;
}

.checkout-upgrade-copy h1 span {
  color: #F4D77A;
  font-size: 1.45rem;
}

.checkout-feature-box,
.checkout-note-card {
  display: grid;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(213, 227, 232, 0.9);
  border-radius: 12px;
  background: rgba(247, 251, 252, 0.85);
}

.checkout-feature-box > div,
.checkout-note-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.checkout-feature-icon,
.checkout-note-card > span {
  color: #F4D77A;
  font-weight: 900;
}

.checkout-feature-box strong,
.checkout-note-card strong,
.checkout-trust-row strong {
  display: block;
  color: #0e1f31;
}

.checkout-feature-box small {
  display: block;
  margin-top: 4px;
  color: #526174;
  line-height: 1.35;
}

.checkout-billing {
  display: grid;
  gap: 12px;
}

.checkout-billing-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.checkout-billing-options div {
  position: relative;
  display: grid;
  gap: 6px;
  min-height: 72px;
  padding: 15px;
  border: 1px solid rgba(213, 227, 232, 0.9);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
}

.checkout-billing-options .active {
  border-color: #6EC6FF;
  box-shadow: 0 0 0 1px rgba(244, 215, 122, 0.16);
}

.checkout-billing-options span {
  color: #F4D77A;
  font-weight: 820;
}

.checkout-billing-options strong {
  color: #006b9b;
}

.checkout-billing-options em {
  position: absolute;
  top: -10px;
  right: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #F4D77A;
  background: #ffffff;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 850;
}

.checkout-total {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 6px;
}

.checkout-total span {
  grid-column: 1 / -1;
  color: #0e1f31;
  font-weight: 780;
}

.checkout-total strong {
  color: #08192a;
  font-size: 2rem;
}

.checkout-total small,
.checkout-powered {
  color: #627186;
  font-weight: 700;
}

.checkout-main-panel {
  padding: 38px 28px 30px;
}

.checkout-steps {
  width: min(760px, 100%);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 0 auto 46px;
}

.checkout-steps div {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 12px;
  color: #6f7f92;
}

.checkout-steps div::before {
  content: "";
  position: absolute;
  top: 16px;
  left: -50%;
  width: 100%;
  height: 1px;
  background: #dce6ea;
}

.checkout-steps div:first-child::before {
  display: none;
}

.checkout-steps .done::before,
.checkout-steps .active::before {
  background: #F4D77A;
}

.checkout-steps span {
  z-index: 1;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e9eff3;
  color: #0e1f31;
  font-weight: 900;
}

.checkout-steps .done span {
  color: #ffffff;
  background: linear-gradient(135deg, #F4D77A, #42B9FF);
}

.checkout-steps .active span {
  border: 2px solid #0074d9;
  color: #0e4b91;
  background: #ffffff;
}

.checkout-steps strong {
  color: inherit;
  text-align: center;
}

.checkout-payment-card {
  padding: 38px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 24px 70px rgba(18, 49, 52, 0.08);
}

.checkout-payment-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  gap: 54px;
  align-items: center;
}

.checkout-form-preview {
  display: grid;
  gap: 22px;
}

.checkout-form-preview h2 {
  margin: 0;
  color: #0e1f31;
  font-size: 1.45rem;
}

.checkout-form-preview p {
  margin: -14px 0 10px;
}

.checkout-form-preview label {
  display: grid;
  gap: 9px;
  color: #0e1f31;
  font-weight: 800;
}

.checkout-input {
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 18px;
  border: 1px solid #d7e1e7;
  border-radius: 10px;
  color: #0e1f31;
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.checkout-input strong {
  flex: 1;
  font-size: 1.05rem;
}

.checkout-input span:last-child {
  color: #F4D77A;
}

.checkout-input em {
  padding: 3px 5px;
  border: 1px solid #c8d6ea;
  border-radius: 4px;
  color: #064c9c;
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 950;
}

.checkout-two-col {
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  gap: 30px;
}

.checkout-input.cvc {
  width: min(210px, 100%);
}

.checkout-encrypted {
  display: flex;
  gap: 14px;
  max-width: 392px;
  padding: 16px;
  border-radius: 10px;
  background: rgba(247, 251, 252, 0.95);
}

.checkout-encrypted > span {
  color: #F4D77A;
}

.checkout-encrypted p {
  margin: 3px 0 0;
}

.checkout-card-visual {
  min-height: 270px;
  display: grid;
  align-content: space-between;
  padding: 34px 40px 30px;
  border-radius: 14px;
  color: #ffffff;
  background:
    radial-gradient(circle at 20% 10%, rgba(66, 185, 255, 0.28), transparent 32%),
    linear-gradient(135deg, #073344, #071e2d 58%, #053b4b);
  box-shadow: 0 28px 70px rgba(244, 215, 122, 0.35);
}

.checkout-card-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.6rem;
}

.checkout-chip {
  width: 52px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ffe4a3, #d9a94b);
}

.checkout-card-visual p {
  color: #ffffff;
  font-size: 1.55rem;
  letter-spacing: 3px;
}

.checkout-card-visual div:last-of-type {
  display: flex;
  justify-content: space-between;
  color: #ffffff;
  font-size: 0.85rem;
}

.checkout-card-visual b {
  justify-self: end;
  font-size: 1.75rem;
}

.checkout-pay-form {
  margin-top: 34px;
}

.checkout-pay-button {
  width: 100%;
  min-height: 58px;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(135deg, #F4D77A, #D4AF37);
  box-shadow: 0 18px 34px rgba(6, 150, 172, 0.22);
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 900;
}

.checkout-legal {
  margin: 20px 0 0;
  text-align: center;
}

.checkout-legal a {
  color: #F4D77A;
  font-weight: 800;
  text-decoration: none;
}

.checkout-trust-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 36px 24px 0;
}

@media (max-width: 980px) {
  .checkout-shell,
  .checkout-payment-grid,
  .checkout-trust-row {
    grid-template-columns: 1fr;
  }

  .checkout-sidebar,
  .checkout-main-panel,
  .checkout-payment-card {
    padding: 24px;
  }

  .checkout-steps {
    gap: 10px;
  }

  .checkout-steps div::before {
    display: none;
  }
}

@media (max-width: 560px) {
  .checkout-shell {
    width: min(100% - 24px, 1480px);
    margin-top: 12px;
  }

  .checkout-two-col,
  .checkout-billing-options,
  .checkout-steps {
    grid-template-columns: 1fr;
  }

  .checkout-card-visual {
    min-height: 230px;
    padding: 24px;
  }

  .checkout-card-visual p {
    font-size: 1.1rem;
  }
}

.checkout-page {
  background:
    linear-gradient(180deg, rgba(246, 250, 251, 0.98), rgba(255, 255, 255, 0.96)),
    #ffffff;
}

.checkout-page .global-ambient {
  opacity: 0.42;
}

.checkout-page main {
  min-height: calc(100vh - 88px);
}

.checkout-shell {
  width: min(100% - 56px, 1320px);
  min-height: auto;
  display: grid;
  grid-template-columns: minmax(320px, 430px) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  margin: 48px auto 64px;
}

.checkout-sidebar,
.checkout-main-panel,
.checkout-payment-card {
  border: 1px solid rgba(215, 226, 230, 0.86);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 70px rgba(13, 34, 39, 0.08);
  backdrop-filter: blur(18px);
}

.checkout-sidebar {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 34px;
}

.checkout-brand {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #10232b;
}

.checkout-brand strong {
  font-size: 1.55rem;
  font-weight: 900;
}

.checkout-brand-logo,
.checkout-card-brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 0;
  object-fit: contain;
  object-position: center;
}

.checkout-back {
  width: max-content;
  color: #F4D77A;
  font-size: 0.94rem;
  font-weight: 800;
  transition: color 160ms ease, transform 160ms ease;
}

.checkout-back:hover {
  color: #0e505d;
  transform: translateX(-2px);
}

.checkout-upgrade-copy {
  display: grid;
  gap: 10px;
  padding-top: 8px;
}

.checkout-upgrade-copy p {
  margin: 0;
  color: #63747a;
  line-height: 1.55;
}

.checkout-upgrade-copy p:first-child {
  color: #F4D77A;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.checkout-upgrade-copy h1 {
  margin: 0;
  color: #0c2028;
  font-size: clamp(2.2rem, 4vw, 4.2rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.checkout-plan-panel,
.checkout-security-card {
  padding: 20px;
  border: 1px solid rgba(216, 227, 230, 0.9);
  border-radius: 16px;
  background: #f8fbfb;
}

.checkout-price-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.checkout-price-row span {
  color: #596b72;
  font-weight: 800;
}

.checkout-price-row strong {
  color: #0d2028;
  font-size: 1.8rem;
  line-height: 1;
}

.checkout-plan-panel p,
.checkout-security-card p,
.checkout-payment-heading p,
.checkout-encrypted p,
.checkout-legal,
.checkout-trust-row span,
.checkout-feature-list small {
  color: #64757c;
  line-height: 1.55;
}

.checkout-plan-panel p {
  margin: 12px 0 0;
}

.checkout-feature-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checkout-feature-list li,
.checkout-security-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.checkout-feature-list li > span,
.checkout-security-card > span {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: #F4D77A;
  background: #ffffff;
  font-weight: 950;
}

.checkout-feature-list strong,
.checkout-security-card strong,
.checkout-trust-row strong {
  display: block;
  color: #10252d;
}

.checkout-feature-list small {
  display: block;
  margin-top: 4px;
}

.checkout-main-panel {
  padding: 34px;
}

.checkout-steps {
  width: min(680px, 100%);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 auto 30px;
}

.checkout-steps strong {
  font-size: 0.92rem;
}

.checkout-payment-card {
  display: grid;
  gap: 30px;
  padding: clamp(24px, 4vw, 44px);
  overflow: hidden;
}

.checkout-payment-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.checkout-payment-heading h2 {
  margin: 4px 0 8px;
  color: #10252d;
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.checkout-payment-heading p {
  margin: 0;
  max-width: 640px;
}

.checkout-payment-heading > span {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid rgba(32, 149, 144, 0.24);
  border-radius: 999px;
  color: #F4D77A;
  background: rgba(223, 247, 246, 0.78);
  font-size: 0.78rem;
  font-weight: 900;
}

.checkout-payment-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 400px);
  gap: clamp(28px, 5vw, 58px);
  align-items: center;
}

.checkout-form-preview {
  display: grid;
  gap: 18px;
}

.checkout-field {
  display: grid;
  gap: 9px;
}

.checkout-field > span {
  color: #20353d;
  font-size: 0.94rem;
  font-weight: 850;
}

.checkout-field input,
.checkout-card-number-wrap {
  width: 100%;
  min-height: 62px;
  border: 1px solid #d7e3e6;
  border-radius: 14px;
  color: #10252d;
  background: #ffffff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.95), 0 14px 34px rgba(18, 49, 52, 0.045);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, background 160ms ease;
}

.checkout-field input {
  padding: 0 18px;
  outline: 0;
  caret-color: #F4D77A;
  font-size: 1.03rem;
}

.checkout-field input::placeholder {
  color: #9aabb0;
}

.checkout-field input:hover,
.checkout-card-number-wrap:hover {
  border-color: #b7dadd;
}

.checkout-field input:focus,
.checkout-card-number-wrap:focus-within {
  border-color: #6EC6FF;
  background: #fdffff;
  box-shadow: 0 0 0 4px rgba(244, 215, 122, 0.14), 0 18px 44px rgba(212, 175, 55, 0.12);
  transform: translateY(-1px);
}

.checkout-card-number-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px 0 0;
}

.checkout-card-number-wrap input {
  min-height: 60px;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.checkout-card-number-wrap input:focus {
  box-shadow: none;
  transform: none;
}

.checkout-card-number-wrap em {
  flex: 0 0 auto;
  min-width: 74px;
  padding: 7px 9px;
  border: 1px solid #d5e3e8;
  border-radius: 9px;
  color: #F4D77A;
  background: #f4fbfb;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 950;
  text-align: center;
}

.checkout-two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 0.62fr);
  gap: 16px;
}

.checkout-encrypted {
  display: flex;
  gap: 14px;
  margin-top: 4px;
  padding: 16px;
  border: 1px solid rgba(216, 227, 230, 0.8);
  border-radius: 14px;
  background: #f8fbfb;
}

.checkout-encrypted > span {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  color: #ffffff;
  background: #D4AF37;
  font-weight: 900;
}

.checkout-encrypted strong {
  color: #10252d;
}

.checkout-encrypted p {
  margin: 3px 0 0;
}

.checkout-card-preview-wrap {
  width: 100%;
  min-width: 0;
  perspective: 1100px;
}

.checkout-card-visual {
  position: relative;
  width: min(100%, 400px);
  aspect-ratio: 1.586 / 1;
  min-height: 0;
  display: grid;
  align-content: space-between;
  gap: 16px;
  margin: 0 auto;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 22px;
  color: #ffffff;
  background:
    radial-gradient(circle at 18% 10%, rgba(74, 222, 206, 0.42), transparent 28%),
    radial-gradient(circle at 88% 22%, rgba(80, 148, 255, 0.25), transparent 28%),
    linear-gradient(135deg, #082934 0%, #0d1826 56%, #063e4e 100%);
  box-shadow: 0 34px 70px rgba(8, 41, 52, 0.28);
  transform: rotateX(0deg) rotateY(-4deg);
  transition: transform 220ms ease, box-shadow 220ms ease, filter 220ms ease;
  overflow: hidden;
}

.checkout-card-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.16) 44%, transparent 62%);
  opacity: 0;
  transform: translateX(-35%);
  transition: opacity 220ms ease, transform 420ms ease;
}

.checkout-card-visual.has-card-data {
  transform: rotateX(2deg) rotateY(0deg) translateY(-4px);
  box-shadow: 0 38px 76px rgba(8, 41, 52, 0.34);
}

.checkout-card-visual.has-card-data::after {
  opacity: 1;
  transform: translateX(35%);
}

.checkout-card-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 900;
}

.checkout-chip {
  width: 50px;
  height: 36px;
  border-radius: 10px;
  background:
    linear-gradient(90deg, transparent 48%, rgba(132, 93, 24, 0.34) 50%, transparent 52%),
    linear-gradient(135deg, #ffe7a4, #d0a34a);
  box-shadow: inset 0 0 0 1px rgba(113, 77, 19, 0.16);
}

.checkout-card-visual p {
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.12rem, 2.2vw, 1.5rem);
  font-weight: 780;
  letter-spacing: 0.08em;
  overflow-wrap: anywhere;
}

.checkout-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #ffffff;
}

.checkout-card-meta span {
  min-width: 0;
}

.checkout-card-meta small {
  display: block;
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.64rem;
  font-weight: 850;
  text-transform: uppercase;
}

.checkout-card-meta strong {
  display: block;
  max-width: 190px;
  color: #ffffff;
  font-size: 0.8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.checkout-card-visual b {
  position: absolute;
  right: 28px;
  top: 28px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.checkout-pay-form {
  margin-top: 0;
}

.checkout-pay-button {
  width: 100%;
  min-height: 62px;
  border: 0;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #10252d, #D4AF37 58%, #F4D77A);
  box-shadow: 0 18px 36px rgba(212, 175, 55, 0.22);
  cursor: pointer;
  font-size: 1.03rem;
  font-weight: 900;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.checkout-pay-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 44px rgba(212, 175, 55, 0.28);
  filter: saturate(1.04);
}

.checkout-pay-button:active {
  transform: translateY(0);
}

.checkout-legal {
  max-width: 680px;
  margin: -8px auto 0;
  text-align: center;
  font-size: 0.92rem;
}

.checkout-legal a {
  color: #F4D77A;
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.checkout-trust-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 24px 0 0;
}

.checkout-trust-row div {
  min-height: 96px;
  padding: 18px;
  border: 1px solid rgba(215, 226, 230, 0.78);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
}

@media (max-width: 1080px) {
  .checkout-shell {
    grid-template-columns: 1fr;
  }

  .checkout-sidebar {
    position: static;
  }

  .checkout-payment-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .checkout-shell {
    width: min(100% - 24px, 1320px);
    margin: 18px auto 36px;
    gap: 18px;
  }

  .checkout-sidebar,
  .checkout-main-panel,
  .checkout-payment-card {
    padding: 22px;
    border-radius: 18px;
  }

  .checkout-payment-heading,
  .checkout-trust-row {
    grid-template-columns: 1fr;
  }

  .checkout-payment-heading {
    display: grid;
  }

  .checkout-two-col,
  .checkout-steps {
    grid-template-columns: 1fr;
  }

  .checkout-steps {
    display: none;
  }

  .checkout-card-visual {
    transform: none;
  }

  .checkout-card-visual.has-card-data {
    transform: translateY(-2px);
  }
}

@media (max-width: 420px) {
  .checkout-card-number-wrap {
    display: grid;
    padding: 0 12px 12px;
  }

  .checkout-card-number-wrap input {
    padding: 0 6px;
  }

  .checkout-card-number-wrap em {
    width: max-content;
  }
}

.checkout-shell {
  width: min(100% - 72px, 1380px);
  grid-template-columns: minmax(340px, 420px) minmax(0, 1fr);
  gap: clamp(34px, 4vw, 56px);
  margin: 56px auto 76px;
}

.checkout-sidebar {
  gap: 30px;
  padding: 40px;
}

.checkout-main-panel {
  padding: clamp(34px, 4vw, 48px);
}

.checkout-payment-card {
  gap: 38px;
  padding: clamp(38px, 5vw, 64px);
}

.checkout-payment-heading {
  margin-bottom: 2px;
}

.checkout-payment-heading h2 {
  max-width: 560px;
}

.checkout-payment-heading p {
  max-width: 600px;
}

.checkout-payment-grid {
  grid-template-columns: minmax(500px, 1fr) minmax(240px, 320px);
  gap: clamp(44px, 6vw, 76px);
  align-items: start;
}

.checkout-form-preview {
  max-width: 680px;
  gap: 24px;
}

.checkout-field-group {
  display: grid;
  gap: 22px;
}

.checkout-field {
  gap: 10px;
}

.checkout-field input,
.checkout-card-number-wrap {
  min-height: 58px;
  border-radius: 13px;
}

.checkout-field input {
  padding: 0 20px;
  font-size: 1rem;
}

.checkout-card-number-wrap {
  padding-right: 12px;
}

.checkout-card-number-wrap input {
  min-height: 56px;
}

.checkout-card-number-wrap em {
  min-width: 82px;
}

.checkout-two-col {
  grid-template-columns: minmax(0, 1fr) minmax(140px, 0.72fr);
  gap: 18px;
}

.checkout-encrypted {
  align-items: center;
  gap: 12px;
  margin-top: 0;
  padding: 13px 16px;
  border-radius: 999px;
  background: rgba(248, 251, 251, 0.92);
}

.checkout-encrypted > span {
  width: 22px;
  height: 22px;
  font-size: 0.76rem;
}

.checkout-encrypted p {
  margin: 0;
  font-size: 0.9rem;
}

.checkout-encrypted strong {
  margin-right: 4px;
}

.checkout-card-preview-wrap {
  padding-top: 18px;
}

.checkout-card-visual {
  width: min(100%, 310px);
  margin: 0 auto;
  padding: 24px;
  border-radius: 18px;
  transform: rotateX(0deg) rotateY(-3deg);
  box-shadow: 0 26px 56px rgba(8, 41, 52, 0.2);
}

.checkout-card-visual.has-card-data {
  transform: rotateX(1deg) rotateY(0deg) translateY(-3px);
  box-shadow: 0 30px 62px rgba(8, 41, 52, 0.26);
}

.checkout-card-logo {
  font-size: 1rem;
}

.checkout-card-brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 0;
}

.checkout-chip {
  width: 42px;
  height: 30px;
  border-radius: 8px;
}

.checkout-card-visual p {
  font-size: clamp(0.98rem, 1.5vw, 1.16rem);
}

.checkout-card-visual b {
  right: 24px;
  top: 25px;
  font-size: 0.72rem;
}

.checkout-card-meta strong {
  max-width: 142px;
  font-size: 0.72rem;
}

.checkout-pay-form {
  margin-top: 4px;
}

.checkout-pay-button {
  min-height: 58px;
  border-radius: 13px;
}

.checkout-legal {
  max-width: 600px;
  margin: -4px 0 0;
  text-align: left;
}

@media (max-width: 1180px) {
  .checkout-payment-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }

  .checkout-form-preview {
    max-width: none;
  }

  .checkout-card-preview-wrap {
    width: min(360px, 100%);
    padding-top: 0;
    justify-self: center;
  }
}

@media (max-width: 860px) {
  .checkout-shell {
    width: min(100% - 32px, 1380px);
    margin: 28px auto 48px;
    gap: 24px;
  }

  .checkout-sidebar,
  .checkout-main-panel,
  .checkout-payment-card {
    padding: 28px;
  }
}

@media (max-width: 620px) {
  .checkout-shell {
    width: min(100% - 22px, 1380px);
    margin: 16px auto 34px;
  }

  .checkout-sidebar,
  .checkout-main-panel,
  .checkout-payment-card {
    padding: 22px;
  }

  .checkout-payment-card {
    gap: 28px;
  }

  .checkout-payment-heading > span {
    width: max-content;
  }

  .checkout-two-col {
    grid-template-columns: 1fr;
  }

  .checkout-encrypted {
    align-items: flex-start;
    border-radius: 14px;
  }

  .checkout-card-visual {
    width: min(100%, 300px);
  }

  .checkout-legal {
    font-size: 0.88rem;
  }
}

.checkout-payment-card {
  max-width: 860px;
  margin: 0 auto;
  gap: 40px;
  padding: clamp(40px, 5vw, 68px);
}

.checkout-payment-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 28px;
}

.checkout-payment-heading h2 {
  max-width: 680px;
}

.checkout-payment-heading p {
  max-width: 690px;
}

.checkout-payment-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 38px;
  align-items: stretch;
}

.checkout-card-preview-wrap {
  width: min(360px, 100%);
  justify-self: center;
  padding: 4px 0 8px;
}

.checkout-card-visual {
  width: min(100%, 330px);
  transform: rotateX(0deg) rotateY(0deg);
  animation: checkoutCardFloat 5.5s ease-in-out infinite;
}

.checkout-card-visual.has-card-data {
  transform: translateY(-3px);
}

@keyframes checkoutCardFloat {
  0%, 100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -5px;
  }
}

.checkout-form-preview {
  width: 100%;
  max-width: 720px;
  justify-self: center;
  gap: 26px;
}

.checkout-field-group {
  gap: 24px;
}

.checkout-field {
  gap: 11px;
}

.checkout-field input,
.checkout-card-number-wrap {
  min-height: 62px;
  border-radius: 14px;
}

.checkout-field input {
  padding: 0 22px;
  font-size: 1.03rem;
}

.checkout-card-number-wrap input {
  min-height: 60px;
}

.checkout-two-col {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
}

.checkout-encrypted {
  width: 100%;
  justify-content: flex-start;
  padding: 14px 18px;
}

.checkout-pay-form,
.checkout-pay-button {
  width: 100%;
}

.checkout-pay-button {
  min-height: 62px;
}

.checkout-legal {
  max-width: 720px;
}

@media (max-width: 860px) {
  .checkout-payment-card {
    max-width: none;
  }
}

@media (max-width: 620px) {
  .checkout-payment-heading {
    grid-template-columns: 1fr;
  }

  .checkout-card-preview-wrap {
    width: min(330px, 100%);
  }

  .checkout-card-visual {
    width: min(100%, 310px);
  }

  .checkout-two-col {
    grid-template-columns: 1fr;
  }
}

.limit-notice {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 22px 0;
  padding: 14px;
  border: 1px solid rgba(110, 198, 255, 0.24);
  border-radius: 16px;
  color: #274246;
  background: rgba(236, 249, 249, 0.86);
}

.limit-notice p {
  flex: 1 1 260px;
  margin: 0;
  font-weight: 720;
  line-height: 1.45;
}

.limit-notice span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 720;
}

.contact-placeholder {
  margin-top: 18px !important;
}

.landing-shell {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4.2vh, 42px) 24px 24px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: transparent;
}

.landing-shell::before,
.landing-shell::after {
  display: none;
}

.landing-shell::before {
  width: 320px;
  height: 190px;
  top: 9%;
  left: 10%;
  border: 1px solid rgba(110, 198, 255, 0.12);
  border-radius: 58% 42% 49% 51% / 45% 48% 52% 55%;
  background:
    radial-gradient(ellipse at 28% 30%, rgba(255, 255, 255, 0.18), transparent 14%),
    radial-gradient(ellipse at 60% 58%, rgba(66, 185, 255, 0.12), transparent 62%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.06), rgba(244, 215, 122, 0.08));
  box-shadow:
    inset 22px 26px 52px rgba(255, 255, 255, 0.08),
    inset -28px -28px 58px rgba(244, 215, 122, 0.10),
    0 34px 90px rgba(244, 215, 122, 0.12);
  opacity: 0.40;
}

.landing-shell::after {
  width: 360px;
  height: 210px;
  right: 7%;
  top: 20%;
  border: 1px solid rgba(110, 198, 255, 0.14);
  border-radius: 45% 55% 58% 42% / 48% 44% 56% 52%;
  background:
    radial-gradient(ellipse at 34% 30%, rgba(255, 255, 255, 0.14), transparent 15%),
    radial-gradient(ellipse at 60% 64%, rgba(244, 215, 122, 0.14), transparent 60%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(66, 185, 255, 0.06));
  box-shadow:
    inset 20px 22px 46px rgba(255, 255, 255, 0.08),
    inset -24px -24px 52px rgba(244, 215, 122, 0.11),
    0 30px 82px rgba(244, 215, 122, 0.10);
  opacity: 0.38;
}

.landing-center {
  width: min(820px, 100%);
  display: grid;
  justify-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

.landing-center::before,
.landing-center::after {
  display: none;
}

.landing-center::before {
  width: 520px;
  height: 190px;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse at 45% 42%, rgba(255, 255, 255, 0.12), transparent 18%),
    radial-gradient(ellipse at 52% 52%, rgba(244, 215, 122, 0.18), transparent 62%),
    linear-gradient(90deg, transparent, rgba(66, 185, 255, 0.07), transparent);
  opacity: 0.82;
}

.landing-center::after {
  width: 720px;
  height: 220px;
  top: 212px;
  left: 50%;
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse at 30% 50%, rgba(66, 185, 255, 0.10), transparent 36%),
    radial-gradient(ellipse at 70% 44%, rgba(244, 215, 122, 0.12), transparent 34%),
    radial-gradient(ellipse at 50% 58%, rgba(255, 255, 255, 0.10), transparent 52%);
  opacity: 0.86;
}

.landing-wordmark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(4px, 0.7vw, 8px);
  position: relative;
  color: #f5c85b;
  font-size: clamp(3.25rem, 6.25vw, 5.25rem);
  font-weight: 680;
  line-height: 1;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
  padding-left: 0.08em;
  text-transform: uppercase;
  text-shadow:
    0 0 20px rgba(255, 204, 91, 0.28),
    0 8px 28px rgba(0, 0, 0, 0.44);
}

.landing-wordmark .brand-logo {
  position: static;
  width: clamp(88px, 10vw, 128px);
  height: clamp(88px, 10vw, 128px);
  border-radius: 0;
  object-fit: contain;
  object-position: center;
  animation: landing-logo-twinkle 4.8s ease-in-out infinite;
  filter:
    drop-shadow(0 0 20px rgba(255, 205, 92, 0.46));
}

@keyframes landing-logo-twinkle {
  0%,
  100% {
    opacity: 0.96;
    filter:
      drop-shadow(0 0 16px rgba(255, 205, 92, 0.34));
  }

  42% {
    opacity: 1;
    filter:
      drop-shadow(0 0 22px rgba(255, 205, 92, 0.52))
      drop-shadow(0 0 8px rgba(110, 198, 255, 0.22));
  }

  48% {
    opacity: 1;
    filter:
      drop-shadow(0 0 30px rgba(255, 218, 126, 0.74))
      drop-shadow(0 0 12px rgba(110, 198, 255, 0.34));
  }

  56% {
    opacity: 0.98;
    filter:
      drop-shadow(0 0 18px rgba(255, 205, 92, 0.42));
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-wordmark .brand-logo {
    animation: none;
  }
}

.landing-tagline {
  margin: 0 0 24px;
  color: #ffffff;
  font-size: clamp(1.08rem, 1.75vw, 1.45rem);
  font-weight: 540;
  line-height: 1.55;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.48);
}

.landing-error {
  width: min(560px, 100%);
  margin: 0 0 18px;
  text-align: left;
}

.landing-upload-form {
  width: min(760px, 100%);
  display: grid;
  gap: 18px;
  position: relative;
}

.landing-upload-form::before,
.landing-upload-form::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
}

.landing-upload-form::before {
  width: 180px;
  height: 92px;
  right: -120px;
  top: -42px;
  border: 1px solid rgba(163, 225, 231, 0.13);
  border-radius: 58% 42% 52% 48% / 50% 42% 58% 50%;
  background:
    radial-gradient(ellipse at 35% 30%, rgba(255, 255, 255, 0.58), transparent 15%),
    radial-gradient(ellipse at 58% 62%, rgba(244, 215, 122, 0.075), transparent 58%);
  box-shadow: inset 12px 14px 28px rgba(255, 255, 255, 0.42);
  opacity: 0.56;
}

.landing-upload-form::after {
  width: 160px;
  height: 84px;
  left: -118px;
  bottom: 0;
  border: 1px solid rgba(163, 225, 231, 0.12);
  border-radius: 45% 55% 48% 52% / 52% 44% 56% 48%;
  background:
    radial-gradient(ellipse at 36% 30%, rgba(255, 255, 255, 0.50), transparent 15%),
    radial-gradient(ellipse at 58% 62%, rgba(244, 215, 122, 0.065), transparent 58%);
  box-shadow: inset 10px 12px 24px rgba(255, 255, 255, 0.36);
  opacity: 0.48;
}

.landing-file-drop {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 34px;
  border: 1.5px solid rgba(232, 174, 53, 0.94);
  border-radius: 22px;
  color: #ffffff;
  background: rgba(4, 10, 26, 0.38);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    0 18px 42px rgba(0, 0, 0, 0.24);
  cursor: pointer;
  backdrop-filter: blur(8px) saturate(120%);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.landing-file-drop:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 218, 126, 0.98);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    0 18px 44px rgba(220, 161, 47, 0.20);
}

.landing-file-drop.drag-over {
  transform: translateY(-2px);
  border-color: rgba(255, 225, 145, 1);
  background: rgba(220, 161, 47, 0.14);
  box-shadow: 0 16px 38px rgba(220, 161, 47, 0.22);
}

.landing-file-drop input {
  display: none;
}

.upload-drop-error {
  margin-top: -6px;
  padding: 11px 14px;
  border: 1px solid rgba(224, 107, 99, 0.28);
  border-radius: 14px;
  color: #8a1d1d;
  background: rgba(255, 244, 244, 0.92);
  font-size: 0.94rem;
  font-weight: 740;
  line-height: 1.35;
}

.landing-upload-actions {
  display: flex;
  justify-content: center;
  gap: 0;
  align-items: center;
  flex-wrap: wrap;
}

.landing-upload-button {
  min-width: 178px;
  min-height: 46px;
  border: 1px solid rgba(255, 227, 146, 0.42);
  border-radius: 14px;
  color: #070910;
  background: linear-gradient(180deg, #ffe08a 0%, #f3bd45 56%, #dca12f 100%);
  box-shadow: 0 16px 34px rgba(220, 161, 47, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.65);
  font-size: 1.03rem;
  font-weight: 880;
}

.landing-page .landing-upload-button:disabled {
  color: rgba(7, 9, 16, 0.86);
  background: linear-gradient(180deg, rgba(255, 224, 138, 0.96) 0%, rgba(243, 189, 69, 0.88) 56%, rgba(220, 161, 47, 0.88) 100%);
}

.landing-page .file-title {
  color: #ffffff;
  font-size: clamp(0.98rem, 1.45vw, 1.18rem);
  font-weight: 570;
  text-align: left;
}

.landing-page .file-name {
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(0.88rem, 1.12vw, 1.02rem);
  font-weight: 510;
  text-align: right;
}

.landing-recent-activity {
  position: fixed;
  top: 92px;
  left: 38px;
  z-index: 20;
  width: min(320px, calc(100vw - 76px));
}

.recent-activity-menu {
  position: relative;
}

.recent-activity-menu summary {
  min-height: 40px;
  width: max-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid rgba(110, 198, 255, 0.24);
  border-radius: 999px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.035)),
    rgba(12, 16, 50, 0.72);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  cursor: pointer;
  font-size: 0.94rem;
  font-weight: 820;
  list-style: none;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
  backdrop-filter: blur(18px) saturate(140%);
}

.recent-activity-menu summary::-webkit-details-marker {
  display: none;
}

.recent-activity-menu summary::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: 9px;
  border-right: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.recent-activity-menu summary:hover,
.recent-activity-menu[open] summary {
  transform: translateY(-1px);
  border-color: rgba(110, 198, 255, 0.52);
  background: rgba(244, 215, 122, 0.26);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.20), 0 0 24px rgba(244, 215, 122, 0.18);
}

.recent-activity-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  width: min(320px, calc(100vw - 76px));
  padding: 12px;
  border: 1px solid rgba(110, 198, 255, 0.32);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.045)),
    radial-gradient(circle at 88% 8%, rgba(244, 215, 122, 0.22), transparent 36%),
    rgba(9, 13, 44, 0.96);
  color: #ffffff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28), 0 0 34px rgba(244, 215, 122, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  animation: accountPopupIn 170ms ease both;
  backdrop-filter: blur(22px) saturate(145%);
}

.recent-activity-list {
  display: grid;
  gap: 8px;
}

.recent-activity-item {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(110, 198, 255, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
}

.recent-activity-item strong,
.activity-card h2 {
  display: block;
  color: #ffffff;
  font-size: 0.94rem;
  font-weight: 860;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.recent-activity-item span {
  display: block;
  margin-top: 4px;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 650;
}

.recent-activity-item a,
.recent-activity-footer {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border: 1px solid rgba(110, 198, 255, 0.24);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.10);
  font-size: 0.84rem;
  font-weight: 780;
  line-height: 1.2;
  text-align: center;
  transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.recent-activity-item a:hover,
.recent-activity-footer:hover {
  transform: translateY(-1px);
  border-color: rgba(110, 198, 255, 0.52);
  color: #ffffff;
  background: rgba(244, 215, 122, 0.24);
}

.recent-activity-empty {
  margin: 0;
  padding: 12px;
  color: #ffffff;
  font-size: 0.9rem;
  line-height: 1.4;
}

.recent-activity-footer {
  width: 100%;
  margin-top: 10px;
}

.landing-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.92);
}

.landing-step {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: inherit;
  font-size: clamp(0.88rem, 1.12vw, 1.02rem);
  font-weight: 600;
  line-height: 1;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.42);
}

.landing-step span {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border: 1.5px solid rgba(112, 160, 255, 0.82);
  border-radius: 50%;
  color: #ffffff;
  background: rgba(4, 14, 40, 0.60);
  box-shadow: 0 0 18px rgba(77, 141, 255, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  font-size: 0.88rem;
  font-weight: 850;
}

.landing-step p {
  margin: 0;
}

.landing-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 46px;
  row-gap: 8px;
  padding: 10px 24px 18px;
  text-align: center;
}

.landing-footer a {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.choice-topbar {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
  padding: 0 32px;
  border-bottom: 1px solid rgba(214, 226, 229, 0.74);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(20px);
}

.choice-nav-left,
.choice-nav-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px;
  min-width: 0;
}

.choice-nav-left a,
.choice-nav-right a {
  color: #0f1728;
  font-size: 1.2rem;
  font-weight: 750;
  line-height: 1.25;
  text-wrap: pretty;
}

.choice-nav-left a:hover,
.choice-nav-right a:hover {
  color: var(--brand-primary-dark);
}

.choice-brand {
  color: var(--ink) !important;
  font-size: 1.82rem !important;
  font-weight: 910 !important;
}

.choice-signup {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  padding: 0 24px;
  border-radius: 19px;
  color: #ffffff !important;
  background: linear-gradient(135deg, #F4D77A, #D4AF37);
  box-shadow: 0 14px 28px rgba(212, 175, 55, 0.24);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.choice-signup:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(244, 215, 122, 0.24);
}

.summary-choice-page .landing-language-menu summary {
  min-height: 44px;
  padding: 0 16px;
  border-color: rgba(205, 218, 224, 0.86);
  color: #0f1728;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 10px 24px rgba(18, 49, 52, 0.055);
  font-size: 1.02rem;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.summary-choice-page .landing-language-menu summary:hover {
  transform: translateY(-1px);
  border-color: rgba(110, 198, 255, 0.36);
  box-shadow: 0 12px 26px rgba(18, 49, 52, 0.075);
}

.summary-choice-page .landing-language-dropdown {
  border-color: rgba(211, 225, 228, 0.82);
  box-shadow: 0 20px 46px rgba(18, 49, 52, 0.13);
}

.summary-result-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 88% 10%, rgba(66, 185, 255, 0.20), transparent 31%),
    radial-gradient(ellipse at 11% 14%, rgba(66, 185, 255, 0.16), transparent 29%),
    radial-gradient(ellipse at 24% 32%, rgba(255, 255, 255, 0.66), transparent 18%),
    radial-gradient(circle at 12% 88%, rgba(244, 215, 122, 0.18), transparent 33%),
    radial-gradient(circle at 52% 42%, rgba(244, 215, 122, 0.075), transparent 25%),
    radial-gradient(circle at 70% 62%, rgba(66, 185, 255, 0.09), transparent 26%),
    linear-gradient(135deg, #fbfcfd 0%, #f7fbfc 48%, #ffffff 100%);
}

.summary-result-page main {
  position: relative;
  overflow: hidden;
}

.summary-result-page main::before,
.summary-result-page main::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  filter: blur(78px);
  border-radius: 48% 52% 62% 38% / 45% 42% 58% 55%;
}

.summary-result-page main::before {
  width: 640px;
  height: 430px;
  top: -150px;
  right: -180px;
  background:
    radial-gradient(ellipse at 34% 30%, rgba(255, 255, 255, 0.68), transparent 15%),
    radial-gradient(ellipse at 58% 58%, rgba(66, 185, 255, 0.28), transparent 52%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.24), rgba(66, 185, 255, 0.16));
}

.summary-result-page main::after {
  width: 680px;
  height: 460px;
  left: -230px;
  bottom: -250px;
  background:
    radial-gradient(ellipse at 42% 40%, rgba(255, 255, 255, 0.64), transparent 14%),
    radial-gradient(ellipse at 58% 56%, rgba(244, 215, 122, 0.28), transparent 52%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.20), rgba(212, 175, 55, 0.18));
}

.summary-result-page .reading-shell {
  position: relative;
  z-index: 1;
}

.summary-result-page .reading-shell::before,
.summary-result-page .reading-shell::after {
  content: none;
}

.summary-result-page .summary-card {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(218, 229, 232, 0.82);
  box-shadow: 0 16px 44px rgba(18, 49, 52, 0.085);
}

.summary-result-page .deeper-panel {
  position: relative;
  z-index: 2;
  background: #ffffff;
  border: 1px solid rgba(214, 226, 229, 0.85);
  box-shadow: 0 12px 36px rgba(18, 49, 52, 0.07);
}

.center-shell {
  min-height: calc(100vh - 88px);
  display: grid;
  place-items: center;
  padding: 32px;
}

.upload-panel,
.choice-panel,
.auth-panel {
  width: min(720px, 100%);
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  background: #fff;
}

.auth-panel {
  width: min(540px, 100%);
}

.summary-choice-page .center-shell {
  position: relative;
  min-height: calc(100vh - 88px);
  padding: 24px 24px 32px;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 8%, rgba(29, 200, 211, 0.15), transparent 29%),
    radial-gradient(circle at 7% 86%, rgba(18, 204, 196, 0.16), transparent 27%),
    linear-gradient(135deg, #fbfcfd 0%, #f5fbfc 48%, #ffffff 100%);
}

.summary-choice-page .center-shell::before,
.summary-choice-page .center-shell::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: rgba(66, 185, 255, 0.10);
  filter: blur(78px);
  pointer-events: none;
}

.summary-choice-page .center-shell::before {
  top: -250px;
  right: -190px;
}

.summary-choice-page .center-shell::after {
  left: -230px;
  bottom: -260px;
  background: rgba(244, 215, 122, 0.14);
}

.summary-choice-page .center-shell > .choice-panel::before,
.summary-choice-page .center-shell > .choice-panel::after {
  content: "✦";
  position: fixed;
  z-index: -1;
  color: rgba(255, 255, 255, 0.94);
  font-size: 1.05rem;
  text-shadow: 0 0 14px rgba(244, 215, 122, 0.20);
  pointer-events: none;
}

.summary-choice-page .center-shell > .choice-panel::before {
  left: 9%;
  top: 36%;
}

.summary-choice-page .center-shell > .choice-panel::after {
  right: 6%;
  top: 25%;
}

.summary-choice-page .choice-panel {
  position: relative;
  z-index: 1;
  width: min(840px, 100%);
  padding: 30px 42px 22px;
  border-color: rgba(208, 222, 226, 0.82);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow:
    0 30px 90px rgba(22, 45, 51, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
}

.choice-header {
  text-align: left;
}

.summary-choice-page .choice-panel h1 {
  margin-bottom: 10px;
  color: #0f1728;
  font-size: clamp(2.35rem, 4vw, 3.25rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.02;
}

.choice-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: #F4D77A;
  font-size: 0.9rem;
  letter-spacing: 0.09em;
}

.choice-status span {
  width: 17px;
  height: 17px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: #063b39;
  background: rgba(244, 215, 122, 0.20);
  font-size: 0.68rem;
  font-weight: 900;
}

.choice-file-name {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0;
  color: #6f7f95;
  font-size: 1.04rem;
  font-weight: 590;
}

.choice-file-name svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brand-primary-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.muted {
  color: var(--muted);
  line-height: 1.55;
}

.upload-form {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.file-drop {
  display: grid;
  gap: 8px;
  min-height: 170px;
  place-content: center;
  text-align: center;
  border: 2px dashed rgba(110, 198, 255, 0.45);
  border-radius: 20px;
  background: var(--soft);
  cursor: pointer;
}

.file-drop input {
  display: none;
}

.file-title {
  font-size: 1rem;
  font-weight: 750;
}

.file-name {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.field-label {
  font-weight: 750;
}

select,
input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

select {
  min-height: 48px;
  padding: 0 14px;
}

input {
  min-height: 48px;
  padding: 0 14px;
}

textarea {
  resize: none;
  padding: 14px 16px;
}

.primary-button,
.secondary-button,
.icon-button {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 22px;
  color: #052827;
  background: var(--brand-primary);
}

.secondary-button,
.icon-button {
  min-height: 40px;
  padding: 9px 15px;
  color: var(--ink);
  background: #ffffff;
}

.oauth-row .secondary-button,
.resend-form .secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.error-box {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid #ffc5c5;
  border-radius: 14px;
  color: #8a1d1d;
  background: #fff4f4;
}

.success-box {
  border-color: #a8e6cf;
  color: #0b6b4d;
  background: #f0fff8;
}

.stack-form {
  display: grid;
  gap: 15px;
  margin-top: 22px;
}

.stack-form label {
  display: grid;
  gap: 8px;
  font-weight: 750;
}

.password-reset-panel {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.password-reset-panel summary {
  color: var(--brand-primary-dark);
  cursor: pointer;
  font-weight: 850;
}

.password-reset-panel .compact-form {
  gap: 12px;
  margin-top: 14px;
}

.password-reset-panel .compact-form + .compact-form {
  margin-top: 18px;
}

.auth-forgot-link {
  width: fit-content;
  justify-self: end;
  margin-top: -4px;
  color: var(--brand-primary-dark);
  font-size: 0.9rem;
  font-weight: 850;
}

.password-reset-shell {
  min-height: calc(100vh - 88px);
  padding-bottom: calc(32px + env(safe-area-inset-bottom));
}

.password-reset-card {
  width: min(560px, 100%);
  padding: 34px;
}

.password-reset-card h1 {
  margin-bottom: 10px;
  font-size: clamp(2rem, 3vw, 2.65rem);
}

.password-reset-step-form {
  margin-top: 22px;
}

.reset-code-input {
  text-align: center;
  font-size: 1.28rem;
  font-weight: 900;
  letter-spacing: 0.22em;
}

.field-error {
  color: #ffb8b8;
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.35;
}

.password-reset-secondary-actions {
  display: grid;
  gap: 10px;
  justify-items: center;
  margin-top: 16px;
}

.password-reset-secondary-actions form {
  margin: 0;
}

.password-reset-secondary-actions button,
.password-reset-back {
  border: 0;
  color: var(--brand-primary-dark);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 850;
}

.password-reset-back {
  width: fit-content;
  display: inline-flex;
  margin-top: 18px;
}

.password-reset-success-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 999px;
  color: #07101f;
  background: linear-gradient(135deg, #F4D77A, #D4AF37);
  box-shadow: 0 18px 42px rgba(212, 175, 55, 0.24);
  font-size: 1.45rem;
  font-weight: 950;
}

.password-reset-login-button {
  width: 100%;
  margin-top: 22px;
}

.signup-flow-shell {
  min-height: calc(100vh - 88px);
  padding: 32px 18px calc(32px + env(safe-area-inset-bottom));
}

.signup-flow-card {
  width: min(480px, 100%);
  padding: 34px;
  border-color: rgba(244, 215, 122, 0.22);
  border-radius: 22px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.035)),
    radial-gradient(circle at 86% 6%, rgba(244, 215, 122, 0.15), transparent 34%),
    rgba(8, 13, 38, 0.88);
  box-shadow: 0 24px 70px rgba(3, 7, 22, 0.36);
}

.signup-flow-card h1 {
  margin-bottom: 10px;
  color: #ffffff;
  font-size: clamp(2rem, 3vw, 2.55rem);
}

.signup-flow-card .muted {
  color: rgba(255, 255, 255, 0.74);
}

.signup-flow-card input {
  border-color: rgba(244, 215, 122, 0.18);
  color: #ffffff;
  background: rgba(5, 10, 30, 0.74);
}

.signup-flow-card input::placeholder {
  color: rgba(255, 255, 255, 0.48);
}

.signup-flow-card .password-field {
  border-color: rgba(244, 215, 122, 0.18);
  background: rgba(5, 10, 30, 0.74);
}

.signup-flow-card .password-field input {
  background: transparent;
}

.signup-flow-card .primary-button {
  width: 100%;
  min-height: 52px;
  color: #07101f;
  background: linear-gradient(135deg, #F4D77A, #D4AF37);
  box-shadow: 0 16px 34px rgba(212, 175, 55, 0.22);
}

.signup-step-form {
  gap: 14px;
  margin-top: 22px;
}

.signup-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: rgba(255, 255, 255, 0.54);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
}

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

.signup-google-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  min-height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.075);
}

.signup-auth-switch {
  margin: 22px 0 0;
  text-align: center;
  font-size: 0.93rem;
}

.signup-flow-card a {
  color: #F4D77A;
  font-weight: 850;
}

.signup-legal-check {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.83rem;
  line-height: 1.42;
}

.signup-legal-check input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin-top: 1px;
  accent-color: #D4AF37;
}

.signup-secondary-form {
  margin-top: 14px;
  text-align: center;
}

.signup-secondary-actions {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-top: 16px;
}

.signup-secondary-actions form {
  margin: 0;
}

.signup-text-button {
  border: 0;
  color: #F4D77A;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 0.93rem;
  font-weight: 850;
}

.signup-code-label {
  color: rgba(255, 255, 255, 0.84);
}

.sr-only-code {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 1px;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}

.code-box-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.code-box-grid .code-box {
  aspect-ratio: 1;
  min-height: 0;
  padding: 0;
  text-align: center;
  border-radius: 12px;
  font-size: 1.28rem;
  font-weight: 900;
}

.signup-success-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 999px;
  color: #07101f;
  background: linear-gradient(135deg, #F4D77A, #D4AF37);
  box-shadow: 0 18px 42px rgba(212, 175, 55, 0.24);
  font-size: 1.45rem;
  font-weight: 950;
}

.signup-continue-button {
  margin-top: 22px;
}

@media (max-width: 640px) {
  .signup-flow-shell {
    min-height: calc(100svh - 69px);
    align-items: start;
    padding: 22px 16px calc(24px + env(safe-area-inset-bottom));
  }

  .signup-flow-card {
    width: 100%;
    padding: 24px 16px 20px;
    border-radius: 18px;
  }

  .signup-flow-card h1 {
    margin-bottom: 8px;
    font-size: 1.72rem;
    line-height: 1.06;
  }

  .signup-flow-card .muted {
    margin-bottom: 0;
    font-size: 0.92rem;
    line-height: 1.45;
  }

  .signup-step-form {
    gap: 13px;
    margin-top: 18px;
  }

  .signup-flow-card .primary-button,
  .signup-google-button {
    min-height: 50px;
  }

  .signup-divider {
    margin: 18px 0;
  }

  .code-box-grid {
    gap: 6px;
  }

  .code-box-grid .code-box {
    border-radius: 10px;
    font-size: 1.08rem;
  }

  .signup-success-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 14px;
  }
}

.oauth-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 16px;
}

.oauth-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

.oauth-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.resend-form {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.auth-switch {
  margin: 18px 0 0;
  text-align: center;
}

.auth-switch a {
  color: var(--brand-primary-dark);
  font-weight: 850;
}

.summary-choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 26px;
}

.choice-card {
  position: relative;
  min-height: 238px;
  padding: 24px 28px;
  border: 1px solid rgba(212, 225, 230, 0.86);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  text-align: left;
  box-shadow:
    0 18px 46px rgba(18, 49, 52, 0.065),
    inset 0 1px 0 rgba(255, 255, 255, 0.90);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.choice-card:hover {
  transform: translateY(-4px);
  border-color: rgba(110, 198, 255, 0.42);
  background: rgba(255, 255, 255, 0.98);
  box-shadow:
    0 24px 60px rgba(18, 49, 52, 0.10),
    0 0 0 4px rgba(244, 215, 122, 0.045);
}

.choice-icon {
  width: 44px;
  height: 44px;
  display: inline-grid !important;
  place-items: center;
  margin-bottom: 18px !important;
  border: 0;
  border-radius: 19px;
  color: #F4D77A;
  background: linear-gradient(180deg, rgba(244, 215, 122, 0.12), rgba(244, 215, 122, 0.06));
}

.choice-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.choice-card .choice-title {
  display: block;
  margin-bottom: 12px;
  color: #0f1728;
  font-size: 1.56rem;
  font-weight: 890;
  line-height: 1.15;
}

.choice-card small {
  color: #687b7f;
  line-height: 1.48;
  font-size: 1.02rem;
  font-weight: 520;
}

.fun-card {
  display: grid;
  align-content: start;
  gap: 0;
}

.sub-choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.sub-choice-row button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 16px;
  border: 1px solid rgba(110, 198, 255, 0.18);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.88));
  color: #D4AF37;
  cursor: pointer;
  font-weight: 820;
  transition: background 170ms ease, transform 170ms ease, box-shadow 170ms ease, border-color 170ms ease;
}

.sub-choice-row button:hover {
  transform: translateY(-1px);
  border-color: rgba(110, 198, 255, 0.44);
  background: rgba(244, 215, 122, 0.26);
  box-shadow: 0 10px 22px rgba(244, 215, 122, 0.12);
}

.choice-micro-text {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 20px 0 0;
  color: #6f7f95;
  text-align: center;
  font-size: 0.94rem;
  font-weight: 620;
  letter-spacing: 0;
}

.choice-micro-text span {
  color: #F4D77A;
  font-size: 1.08rem;
}

.reading-shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 56px 32px 86px;
}

.summary-back-button {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 20px;
  border: 1px solid rgba(110, 198, 255, 0.28);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.10);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px) saturate(140%);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.summary-back-button:hover {
  transform: translateY(-1px);
  border-color: rgba(110, 198, 255, 0.52);
  color: #ffffff;
  background: rgba(244, 215, 122, 0.26);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.20), 0 0 24px rgba(244, 215, 122, 0.18);
}

.summary-back-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.summary-header {
  display: block;
  margin-bottom: 34px;
}

.summary-title-block {
  min-width: 0;
}

.pdf-chat-invite {
  margin: 0 0 28px auto;
  width: min(330px, 100%);
  padding: 18px;
  border: 1px solid rgba(188, 226, 229, 0.58);
  border-radius: 22px;
  background:
    radial-gradient(circle at 88% 12%, rgba(244, 215, 122, 0.16), transparent 36%),
    rgba(255, 255, 255, 0.66);
  box-shadow:
    0 18px 44px rgba(18, 49, 52, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(16px);
}

.pdf-chat-invite h2 {
  margin: 0 0 6px;
  color: #111f22;
  font-size: 1rem;
  line-height: 1.18;
  font-weight: 880;
  letter-spacing: 0;
}

.pdf-chat-invite p {
  margin: 0 0 12px;
  color: #63777b;
  font-size: 0.86rem;
  line-height: 1.42;
}

.pdf-chat-invite-button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #F4D77A, #D4AF37);
  box-shadow: 0 12px 24px rgba(212, 175, 55, 0.22);
  font-size: 0.86rem;
  font-weight: 850;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.pdf-chat-invite .pdf-chat-invite-button {
  color: #ffffff !important;
}

.pdf-chat-invite-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(212, 175, 55, 0.30);
}

.summary-card {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.summary-actions-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin: 0 0 28px;
}

.summary-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px;
  border: 1px solid rgba(214, 226, 229, 0.82);
  border-radius: 999px;
  background: rgba(248, 253, 253, 0.86);
  box-shadow: 0 10px 26px rgba(18, 49, 52, 0.06);
}

.summary-action-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #274246;
  background: transparent;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 780;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.summary-action-button:hover {
  transform: translateY(-1px);
  border-color: rgba(110, 198, 255, 0.24);
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(244, 215, 122, 0.09);
}

.summary-action-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: #D4AF37;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.summary-action-feedback {
  opacity: 0;
  transform: translateY(4px);
  color: #F4D77A;
  font-size: 0.86rem;
  font-weight: 760;
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
}

.summary-action-feedback.show {
  opacity: 1;
  transform: translateY(0);
}

.prose {
  line-height: 1.72;
}

.prose h1,
.prose h2,
.prose h3 {
  margin: 1.2em 0 0.4em;
  line-height: 1.2;
}

.prose strong {
  color: #F4D77A;
}

.prose li {
  margin: 0.45rem 0;
}

.legal-shell {
  max-width: 980px;
}

.legal-card {
  padding: 46px;
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(214, 226, 229, 0.84);
  box-shadow: 0 20px 58px rgba(18, 49, 52, 0.095);
}

.legal-card h1 {
  margin-top: 0.18em;
  font-size: clamp(2.35rem, 5vw, 4rem);
  letter-spacing: 0;
}

.legal-card section {
  padding-top: 22px;
  margin-top: 22px;
  border-top: 1px solid rgba(214, 226, 229, 0.72);
}

.legal-card h2 {
  color: #122427;
  font-size: 1.24rem;
  font-weight: 880;
}

.legal-card p {
  color: #4f6267;
  font-size: 1rem;
}

.legal-card a {
  color: var(--brand-primary-dark);
  font-weight: 820;
}

.legal-intro {
  max-width: 760px;
  color: #5d7074 !important;
  font-size: 1.08rem !important;
}

.about-shell {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 78px 0 92px;
}

.about-hero,
.about-section,
.about-feature-card,
.about-ending {
  border: 1px solid rgba(214, 226, 229, 0.82);
  background: rgba(255, 255, 255, 0.88);
  box-shadow:
    0 24px 70px rgba(18, 49, 52, 0.085),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
}

.about-hero {
  max-width: 880px;
  padding: 58px;
  border-radius: 34px;
}

.about-hero h1 {
  max-width: 760px;
  margin: 10px 0 18px;
  color: #0f2024;
  font-size: clamp(3rem, 7vw, 5.7rem);
  line-height: 0.98;
  font-weight: 920;
  letter-spacing: 0;
}

.about-hero p:not(.eyebrow) {
  max-width: 690px;
  margin: 0;
  color: #5b7075;
  font-size: 1.14rem;
  line-height: 1.72;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.62fr) minmax(0, 1fr);
  gap: 48px;
  margin-top: 28px;
  padding: 38px 42px;
  border-radius: 28px;
}

.about-section h2 {
  margin: 8px 0 0;
  color: #122427;
  font-size: clamp(1.8rem, 3vw, 2.55rem);
  line-height: 1.06;
  font-weight: 900;
  letter-spacing: 0;
}

.about-section p {
  margin: 0;
  color: #566b70;
  font-size: 1.04rem;
  line-height: 1.72;
}

.about-vision p + p {
  margin-top: 14px;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.about-feature-card {
  min-height: 245px;
  padding: 30px;
  border-radius: 28px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.about-feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(110, 198, 255, 0.34);
  box-shadow:
    0 28px 76px rgba(18, 49, 52, 0.11),
    0 0 0 1px rgba(244, 215, 122, 0.08);
}

.about-feature-icon {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 26px;
  border: 1px solid rgba(110, 198, 255, 0.22);
  border-radius: 17px;
  color: #F4D77A;
  background: rgba(244, 215, 122, 0.07);
}

.about-feature-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.about-feature-card h3 {
  margin: 0 0 10px;
  color: #122427;
  font-size: 1.2rem;
  font-weight: 890;
  letter-spacing: 0;
}

.about-feature-card p {
  margin: 0;
  color: #65777c;
  font-size: 0.98rem;
  line-height: 1.62;
}

.about-ending {
  display: grid;
  place-items: center;
  gap: 22px;
  margin-top: 28px;
  padding: 42px;
  border-radius: 30px;
  text-align: center;
}

.about-ending p {
  margin: 0;
  color: #15272b;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  line-height: 1.18;
  font-weight: 890;
  letter-spacing: 0;
}

.deeper-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 22px;
  padding: 22px;
  border-radius: 20px;
  background: var(--soft);
}

.deeper-panel p {
  margin: 0;
  font-weight: 750;
}

.chat-shell {
  --composer-height: 96px;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  height: calc(100dvh - 88px);
  min-height: 0;
}

.pdf-chat-page {
  height: 100dvh;
  overflow: hidden;
}

.pdf-chat-page main {
  height: calc(100dvh - 88px);
  overflow: hidden;
}

.pdf-chat-page .global-topbar {
  flex-wrap: nowrap;
}

.pdf-chat-page .global-nav-left {
  width: 100%;
  justify-content: space-between;
}

.pdf-chat-page .global-nav-right {
  display: none;
}

.pdf-chat-page.guest-chat-page .guest-session-notice {
  width: auto;
  margin: 16px clamp(22px, 5vw, 72px) 0;
}

.pdf-chat-page.guest-chat-page .chat-shell {
  height: calc(100dvh - 88px);
  min-height: 0;
}

.full-button {
  width: 100%;
}

.history-block {
  margin: 0;
}

.history-list {
  display: grid;
  gap: 8px;
}

.history-item {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.history-item.active {
  border-color: rgba(110, 198, 255, 0.75);
  background: var(--soft);
}

.history-item strong {
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.25;
}

.history-item span {
  color: var(--muted);
  font-size: 0.82rem;
}

.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

.chat-sidebar {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 20px;
  padding: 18px 14px;
  border-right: 1px solid var(--line);
  overflow: visible;
  min-height: 0;
  background: rgba(255, 255, 255, 0.74);
}

.chat-sidebar h2 {
  font-size: 1.05rem;
  line-height: 1.35;
}

.chat-sidebar-primary {
  display: grid;
  gap: 6px;
}

.chat-sidebar-action,
.history-item {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #173033;
  background: transparent;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}

.chat-sidebar-action {
  padding: 0 10px;
  font-size: 0.96rem;
  font-weight: 770;
}

.chat-sidebar-action:hover,
.history-item:hover {
  border-color: rgba(201, 221, 224, 0.78);
  background: rgba(255, 255, 255, 0.74);
}

.chat-sidebar-action svg,
.chat-sidebar-user-dropdown svg,
.chat-sidebar-user-chevron {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chat-sidebar-action svg {
  color: #D4AF37;
}

.chat-sidebar-recents {
  min-height: 0;
  overflow: auto;
}

.chat-sidebar-section-title {
  margin: 0 0 10px;
  padding: 0 10px;
  color: #718185;
  font-size: 0.78rem;
  font-weight: 820;
  letter-spacing: 0;
}

.chat-sidebar-recents .muted {
  margin: 0;
  padding: 0 10px;
  font-size: 0.9rem;
}

.chat-sidebar .history-list {
  gap: 3px;
}

.chat-sidebar .history-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2px;
  min-height: 50px;
  padding: 8px 10px;
}

.chat-sidebar .history-item strong,
.chat-sidebar .history-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-sidebar .history-item.active {
  border-color: rgba(212, 175, 55, 0.3);
  background: rgba(244, 215, 122, 0.13);
}

.chat-sidebar-user-menu {
  position: relative;
}

.chat-sidebar-user-menu summary {
  min-height: 58px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid rgba(212, 175, 55, 0.38);
  border-radius: 12px;
  background: rgba(244, 215, 122, 0.1);
  cursor: pointer;
  list-style: none;
}

.chat-sidebar-user-menu summary::-webkit-details-marker {
  display: none;
}

.chat-sidebar-user-avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 999px;
  color: #07101f;
  background: linear-gradient(135deg, #F4D77A, #D4AF37);
  font-size: 0.82rem;
  font-weight: 900;
}

.chat-sidebar-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-sidebar-user-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.chat-sidebar-user-copy strong,
.chat-sidebar-user-copy small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-sidebar-user-copy strong {
  color: #ffffff;
  font-size: 0.94rem;
  font-weight: 820;
}

.chat-sidebar-user-copy small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
}

.chat-sidebar-user-chevron {
  display: none;
}

.chat-sidebar-user-menu[open] .chat-sidebar-user-chevron {
  transform: rotate(180deg);
}

.chat-sidebar-user-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 10px);
  z-index: 20;
  display: grid;
  gap: 2px;
  padding: 8px;
  border: 1px solid rgba(244, 215, 122, 0.72);
  border-radius: 14px;
  color: #07101f;
  background: linear-gradient(135deg, rgba(244, 215, 122, 0.98), rgba(212, 175, 55, 0.98));
  box-shadow: 0 20px 52px rgba(212, 175, 55, 0.24), 0 12px 28px rgba(18, 49, 52, 0.14);
  backdrop-filter: blur(18px) saturate(145%);
}

.chat-sidebar-user-dropdown a,
.chat-sidebar-user-dropdown button {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  border: 0;
  border-radius: 9px;
  color: #07101f;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 0.94rem;
  font-weight: 760;
}

.chat-sidebar-user-dropdown a:hover,
.chat-sidebar-user-dropdown button:hover {
  color: #07101f;
  background: rgba(255, 255, 255, 0.24);
}

.chat-sidebar-user-dropdown svg {
  color: #07101f;
}

.chat-sidebar-logout-link {
  width: 100%;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-align: left;
  color: #07101f !important;
}

.chat-sidebar-logout-form {
  margin: 0;
}

.side-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0;
}

.side-actions .secondary-button {
  flex: 1 1 130px;
}

.chat-main {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(248, 252, 252, 0.72), rgba(255, 255, 255, 0.92));
}

.chat-main > .guest-session-notice {
  flex: 0 0 auto;
  padding: 10px 14px;
  border: 1px solid rgba(201, 221, 224, 0.9);
  border-radius: 12px;
  color: #52676c;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 24px rgba(18, 49, 52, 0.055);
  font-size: 0.9rem;
  line-height: 1.35;
}

.chat-feed {
  flex: 1 1 auto;
  overflow-y: auto;
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 34px clamp(22px, 5vw, 72px) 28px;
  scroll-behavior: smooth;
  overscroll-behavior: contain;
}

.message {
  display: flex;
  width: 100%;
  min-width: 0;
  margin: 0;
  flex-direction: column;
  align-items: flex-start;
}

.message.user {
  justify-content: flex-end;
  align-items: flex-end;
}

.bubble {
  position: relative;
  display: inline-block;
  width: fit-content;
  max-width: min(680px, 86%);
  padding: 16px 18px;
  border-radius: 18px;
  line-height: 1.65;
  color: #173033;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: normal;
  box-shadow: 0 12px 30px rgba(18, 49, 52, 0.055);
}

.assistant .bubble {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(220, 232, 234, 0.9);
}

.message-action-button {
  width: 29px;
  height: 29px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  color: #41666b;
  background: transparent;
  cursor: pointer;
  opacity: 0.78;
  transition: opacity 160ms ease, transform 160ms ease, color 160ms ease, background 160ms ease;
}

.message-action-button:hover,
.message-copy-button:hover,
.message-copy-button.copied,
.message-regenerate-button:hover {
  opacity: 1;
  transform: translateY(-1px);
  color: #F4D77A;
  background: rgba(244, 215, 122, 0.09);
}

.message-action-button svg,
.message-copy-button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.message-content {
  min-width: 0;
}

.message-content > :first-child {
  margin-top: 0;
}

.message-content > :last-child {
  margin-bottom: 0;
}

.assistant .bubble.chat-markdown {
  white-space: normal;
}

.chat-markdown h2 {
  margin: 1.1rem 0 0.52rem;
  color: #10252d;
  line-height: 1.24;
  font-size: 1.04rem;
}

.chat-markdown h3 {
  margin: 0.9rem 0 0.42rem;
  color: #10252d;
  line-height: 1.28;
  font-size: 0.98rem;
}

.chat-markdown h2:first-child,
.chat-markdown h3:first-child,
.chat-markdown p:first-child,
.chat-markdown ul:first-child,
.chat-markdown ol:first-child {
  margin-top: 0;
}

.chat-markdown p {
  margin: 0.62rem 0;
}

.chat-markdown ul,
.chat-markdown ol {
  margin: 0.72rem 0;
  padding-left: 1.28rem;
}

.chat-markdown li {
  margin: 0.38rem 0;
  padding-left: 0.08rem;
}

.chat-markdown strong {
  color: #D4AF37;
  font-weight: 800;
}

.chat-markdown code {
  padding: 0.08rem 0.28rem;
  border-radius: 7px;
  color: #F4D77A;
  background: rgba(244, 215, 122, 0.1);
  font-family: inherit;
  font-weight: 760;
}

.user .bubble {
  align-self: flex-end;
  flex: 0 1 auto;
  max-width: min(560px, 72%);
  color: #052827;
  background: linear-gradient(135deg, rgba(244, 215, 122, 0.96), rgba(212, 175, 55, 0.96));
  border: 1px solid rgba(110, 198, 255, 0.22);
}

.assistant .bubble {
  align-self: flex-start;
  flex: 0 1 auto;
}

.composer {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 12px;
  padding: 18px clamp(22px, 5vw, 72px) calc(22px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(220, 232, 234, 0.86);
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(22px) saturate(145%);
  box-shadow: 0 -18px 40px rgba(18, 49, 52, 0.08);
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.composer:focus-within {
  border-top-color: rgba(110, 198, 255, 0.34);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 -20px 48px rgba(18, 49, 52, 0.1);
}

.composer-input-wrap {
  position: relative;
  min-width: 0;
}

.composer textarea {
  width: 100%;
  min-height: 52px;
  max-height: 180px;
  padding: 14px 58px 14px 16px;
  border: 1px solid rgba(203, 218, 222, 0.9);
  border-radius: 16px;
  background: #ffffff;
  line-height: 1.45;
  resize: none;
  outline: 0;
  box-shadow: 0 10px 24px rgba(18, 49, 52, 0.045);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.composer textarea:focus {
  border-color: rgba(110, 198, 255, 0.66);
  box-shadow: 0 0 0 4px rgba(244, 215, 122, 0.12), 0 12px 28px rgba(18, 49, 52, 0.06);
}

.composer-mic-button,
.message-voice-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  color: #F4D77A;
  background: rgba(234, 247, 247, 0.96);
}

.composer-mic-button {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(18, 49, 52, 0.08);
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.composer-mic-button:hover,
.message-voice-button:hover {
  transform: translateY(-1px);
}

.composer-mic-button svg,
.message-voice-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.composer-mic-button.listening {
  color: #052827;
  background: var(--brand-primary);
  box-shadow: 0 0 0 7px rgba(244, 215, 122, 0.12), 0 14px 28px rgba(212, 175, 55, 0.22);
  animation: micGlow 1.7s ease-in-out infinite;
}

.composer-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.scroll-latest-button {
  position: absolute;
  right: clamp(18px, 5vw, 72px);
  bottom: calc(var(--composer-height) + 18px + env(safe-area-inset-bottom));
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  max-width: min(220px, calc(100% - 36px));
  padding: 0 15px 0 12px;
  border: 1px solid rgba(201, 221, 224, 0.9);
  border-radius: 999px;
  color: #D4AF37;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(18px) saturate(145%);
  box-shadow: 0 18px 42px rgba(18, 49, 52, 0.15);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 820;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.scroll-latest-button.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-latest-button:hover {
  border-color: rgba(110, 198, 255, 0.42);
  box-shadow: 0 20px 46px rgba(18, 49, 52, 0.18);
  transform: translateY(-1px);
}

.scroll-latest-button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.message-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  min-height: 31px;
  margin-top: 7px;
  opacity: 0.84;
  transform: none;
  pointer-events: auto;
  transition: opacity 160ms ease, transform 160ms ease;
}

.message.assistant:hover .message-actions,
.message.assistant:focus-within .message-actions {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.message-voice-button,
.message-regenerate-button {
  min-height: 29px;
  padding: 0;
  border-radius: 8px;
  color: #D4AF37;
  font-size: 0.82rem;
  font-weight: 800;
  background: transparent;
  box-shadow: none;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.message-voice-button span {
  display: none;
}

.message-action-button {
  flex: 0 0 29px;
  width: 29px;
  height: 29px;
  padding: 0;
  border-radius: 8px;
}

.message-regenerate-button {
  flex: 0 0 auto;
}

.message-regenerate-button[hidden] {
  display: none !important;
}

.message-regenerate-button.loading svg {
  animation: spinAction 0.9s linear infinite;
}

.message-regenerate-button svg {
  width: 15px;
  height: 15px;
}

.message-actions .message-voice-button svg {
  width: 15px;
  height: 15px;
}

.message-action-feedback {
  min-width: 42px;
  color: #F4D77A;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
}

.message-voice-button.loading,
.message-voice-button.speaking,
.message-regenerate-button.loading {
  color: #052827;
  background: rgba(244, 215, 122, 0.14);
}

.message-voice-button.speaking {
  box-shadow: none;
}

.composer-mic-button:disabled,
.message-voice-button:disabled,
.message-action-button:disabled,
.message-regenerate-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
  box-shadow: none;
}

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

@keyframes micGlow {
  0%,
  100% {
    box-shadow: 0 0 0 7px rgba(244, 215, 122, 0.1), 0 14px 28px rgba(212, 175, 55, 0.18);
  }
  50% {
    box-shadow: 0 0 0 11px rgba(244, 215, 122, 0.16), 0 16px 32px rgba(212, 175, 55, 0.24);
  }
}

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

.drawer-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
}

.drawer-actions[hidden],
.drawer-actions[aria-hidden="true"] {
  display: none !important;
}

.drawer {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-items: center;
  padding: clamp(112px, 14vh, 148px) 24px 32px;
  background: rgba(10, 30, 32, 0.35);
}

.drawer.open {
  display: grid;
}

.drawer-card {
  width: min(820px, 100%);
  max-height: calc(100vh - clamp(144px, 18vh, 180px));
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

.drawer-card.pdf-drawer-card {
  width: min(1120px, calc(100vw - 32px));
  height: min(820px, calc(100vh - clamp(144px, 18vh, 180px)));
  max-height: calc(100vh - clamp(144px, 18vh, 180px));
}

.drawer-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}

.drawer-header h2 {
  margin: 0;
}

.drawer-body {
  overflow: auto;
  padding: 24px;
}

.drawer-body.prose {
  white-space: normal;
}

.pdf-drawer-body {
  position: relative;
  padding: 0;
  overflow: hidden;
}

.pdf-frame {
  width: 100%;
  height: 100%;
  min-height: 70vh;
  display: block;
  border: 0;
  background: #f4f7f8;
}

.pdf-loading-state {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  color: #426064;
  background: linear-gradient(180deg, #f8fbfb, #eef6f7);
  font-weight: 800;
}

.pdf-text-fallback {
  padding: 24px;
  overflow: auto;
}

.pdf-viewer-error {
  display: grid;
  place-content: center;
  gap: 14px;
  padding: 28px;
  background: #f8fbfb;
}

.pdf-fallback-notice {
  margin-bottom: 16px;
  padding: 13px 15px;
  border: 1px solid rgba(214, 163, 50, 0.28);
  border-radius: 14px;
  color: #72520d;
  background: rgba(255, 250, 235, 0.92);
  font-weight: 760;
}

.pdf-text-fallback pre {
  margin: 0;
  padding: 18px;
  border: 1px solid rgba(220, 232, 234, 0.9);
  border-radius: 16px;
  color: #203b40;
  background: #fbfdfd;
  white-space: pre-wrap;
  line-height: 1.6;
  font-family: inherit;
}

.pdf-fallback-button {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  max-width: min(360px, calc(100% - 32px));
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 28px rgba(18, 49, 52, 0.12);
}

.pdf-viewer-error .pdf-fallback-button {
  position: static;
}

/* Elrion space atmosphere for shared/internal pages. */
body:not(.landing-page) {
  background:
    linear-gradient(90deg, rgba(5, 8, 24, 0.84), rgba(7, 10, 31, 0.64) 52%, rgba(5, 8, 24, 0.78)),
    linear-gradient(180deg, rgba(9, 11, 34, 0.70), rgba(14, 10, 44, 0.90)),
    url("fondnew.PNG");
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  color: #ffffff;
}

body:not(.landing-page) .global-ambient {
  opacity: 0.72;
}

body:not(.landing-page) .ambient-shape {
  opacity: 0.32;
}

body:not(.landing-page) .ambient-shape-one,
body:not(.landing-page) .ambient-shape-three {
  background:
    radial-gradient(ellipse at 42% 36%, rgba(255, 255, 255, 0.28), transparent 18%),
    radial-gradient(ellipse at 58% 58%, rgba(66, 185, 255, 0.28), transparent 54%);
}

body:not(.landing-page) .ambient-shape-two,
body:not(.landing-page) .ambient-shape-four {
  background:
    radial-gradient(ellipse at 44% 40%, rgba(255, 255, 255, 0.18), transparent 16%),
    radial-gradient(ellipse at 58% 56%, rgba(244, 215, 122, 0.36), transparent 56%);
}

body:not(.landing-page) .global-topbar,
body:not(.landing-page) .choice-topbar {
  border-bottom-color: rgba(110, 198, 255, 0.20);
  background: rgba(10, 13, 42, 0.76);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.16);
}

body:not(.landing-page) .global-brand,
body:not(.landing-page) .choice-brand,
body:not(.landing-page) .global-nav-right a,
body:not(.landing-page) .choice-nav-left a,
body:not(.landing-page) .choice-nav-right a {
  color: #ffffff;
}

body:not(.landing-page) .global-nav-right a:hover,
body:not(.landing-page) .choice-nav-left a:hover,
body:not(.landing-page) .choice-nav-right a:hover {
  color: #F4D77A;
}

body:not(.landing-page) .global-language-menu summary,
body:not(.landing-page).summary-choice-page .landing-language-menu summary {
  border-color: rgba(110, 198, 255, 0.28);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12);
}

body:not(.landing-page) .global-language-menu .landing-language-dropdown,
body:not(.landing-page).summary-choice-page .landing-language-dropdown {
  border-color: rgba(110, 198, 255, 0.24);
  background: rgba(13, 16, 48, 0.96);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.26);
}

body:not(.landing-page) .account-page-header h1,
body:not(.landing-page) .summary-title-block h1,
body:not(.landing-page) .summary-choice-page .choice-panel h1 {
  color: #ffffff;
  text-shadow: 0 0 24px rgba(244, 215, 122, 0.22);
}

body:not(.landing-page) .account-page-header .muted,
body:not(.landing-page) .summary-title-block .muted {
  color: #ffffff;
}

body:not(.landing-page) .summary-title-block h1 {
  max-width: min(100%, 920px);
  font-size: clamp(1.55rem, 4vw, 3.2rem);
  line-height: 1.08;
  overflow-wrap: anywhere;
  word-break: break-word;
}

body:not(.landing-page) .summary-result-page,
body:not(.landing-page).summary-result-page,
body:not(.landing-page).summary-choice-page .center-shell {
  background: transparent;
}

body:not(.landing-page).summary-result-page main::before,
body:not(.landing-page).summary-result-page main::after,
body:not(.landing-page).summary-choice-page .center-shell::before,
body:not(.landing-page).summary-choice-page .center-shell::after {
  opacity: 0.28;
}

body:not(.landing-page) .account-card,
body:not(.landing-page) .summary-card,
body:not(.landing-page) .choice-panel,
body:not(.landing-page) .auth-panel,
body:not(.landing-page) .pdf-chat-invite,
body:not(.landing-page) .deeper-panel,
body:not(.landing-page) .checkout-sidebar,
body:not(.landing-page) .checkout-payment-card,
body:not(.landing-page) .checkout-security-card,
body:not(.landing-page) .checkout-plan-panel {
  border-color: rgba(110, 198, 255, 0.22);
  background:
    radial-gradient(circle at 88% 10%, rgba(244, 215, 122, 0.10), transparent 34%),
    rgba(255, 255, 255, 0.90);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.20),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

body:not(.landing-page) .summary-choice-page .choice-panel {
  background:
    radial-gradient(circle at 88% 10%, rgba(244, 215, 122, 0.14), transparent 34%),
    rgba(255, 255, 255, 0.88);
}

body:not(.landing-page) .choice-card,
body:not(.landing-page) .history-item,
body:not(.landing-page) .status-row,
body:not(.landing-page) .toggle-row,
body:not(.landing-page) .plan-row,
body:not(.landing-page) .summary-actions,
body:not(.landing-page) .file-pill,
body:not(.landing-page) .export-status {
  border-color: rgba(110, 198, 255, 0.20);
  background: rgba(255, 255, 255, 0.82);
}

body:not(.landing-page) .primary-button,
body:not(.landing-page) .global-signup,
body:not(.landing-page) .choice-signup,
body:not(.landing-page) .pdf-chat-invite-button,
body:not(.landing-page) .checkout-pay-button {
  color: #ffffff;
  background: linear-gradient(135deg, #F4D77A, #D4AF37);
  box-shadow: 0 14px 34px rgba(212, 175, 55, 0.28);
}

body:not(.landing-page) .secondary-button,
body:not(.landing-page) .icon-button {
  border: 1px solid rgba(110, 198, 255, 0.24);
  color: #182033;
  background: rgba(255, 255, 255, 0.86);
}

body:not(.landing-page).pdf-chat-page {
  background:
    linear-gradient(90deg, rgba(5, 8, 24, 0.88), rgba(7, 10, 31, 0.72) 52%, rgba(5, 8, 24, 0.84)),
    linear-gradient(180deg, rgba(9, 11, 34, 0.76), rgba(14, 10, 44, 0.92)),
    url("fondnew.PNG");
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
}

body:not(.landing-page) .chat-sidebar {
  border-right-color: rgba(110, 198, 255, 0.18);
  background: rgba(10, 13, 42, 0.58);
  color: #ffffff;
}

body:not(.landing-page) .chat-sidebar .muted,
body:not(.landing-page) .chat-sidebar .history-item span {
  color: #ffffff;
}

body:not(.landing-page) .chat-main {
  background:
    radial-gradient(circle at 88% 8%, rgba(244, 215, 122, 0.16), transparent 34%),
    rgba(8, 11, 32, 0.38);
}

body:not(.landing-page) .assistant .bubble {
  border-color: rgba(110, 198, 255, 0.20);
  background: rgba(255, 255, 255, 0.92);
}

body:not(.landing-page) .user .bubble {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(244, 215, 122, 0.96), rgba(212, 175, 55, 0.96));
}

body:not(.landing-page) .composer {
  border-top-color: rgba(110, 198, 255, 0.20);
  background: rgba(10, 13, 42, 0.72);
  box-shadow: 0 -18px 44px rgba(0, 0, 0, 0.22);
}

body:not(.landing-page) .composer textarea {
  border-color: rgba(110, 198, 255, 0.24);
  background: rgba(255, 255, 255, 0.96);
}

body:not(.landing-page) .drawer {
  background: rgba(5, 8, 24, 0.62);
}

body:not(.landing-page) .drawer-card,
body:not(.landing-page) .pdf-library-viewer-card {
  border: 1px solid rgba(110, 198, 255, 0.22);
  background: rgba(255, 255, 255, 0.94);
}

body:not(.landing-page) {
  --elrion-glass: rgba(12, 16, 50, 0.72);
  --elrion-glass-strong: rgba(13, 17, 55, 0.88);
  --elrion-glass-soft: rgba(255, 255, 255, 0.08);
  --elrion-glass-line: rgba(110, 198, 255, 0.24);
  --elrion-text: #ffffff;
  --elrion-muted: #ffffff;
  --elrion-faint: #ffffff;
  --elrion-glow: 0 24px 70px rgba(0, 0, 0, 0.28), 0 0 34px rgba(244, 215, 122, 0.12);
  color: var(--elrion-text);
}

body:not(.landing-page) .account-card,
body:not(.landing-page) .account-popup,
body:not(.landing-page) .profile-dropdown,
body:not(.landing-page) .summary-card,
body:not(.landing-page) .legal-card,
body:not(.landing-page) .choice-panel,
body:not(.landing-page) .choice-card,
body:not(.landing-page) .auth-panel,
body:not(.landing-page) .pdf-chat-invite,
body:not(.landing-page) .deeper-panel,
body:not(.landing-page) .checkout-sidebar,
body:not(.landing-page) .checkout-payment-card,
body:not(.landing-page) .checkout-security-card,
body:not(.landing-page) .checkout-plan-panel,
body:not(.landing-page) .checkout-form-preview,
body:not(.landing-page) .checkout-card-visual,
body:not(.landing-page) .drawer-card,
body:not(.landing-page) .pdf-library-viewer-card,
body:not(.landing-page) .account-dialog .account-card,
body:not(.landing-page) .status-row,
body:not(.landing-page) .toggle-row,
body:not(.landing-page) .plan-row,
body:not(.landing-page) .summary-actions,
body:not(.landing-page) .history-item,
body:not(.landing-page) .usage-strip,
body:not(.landing-page) .table-card,
body:not(.landing-page) .account-table-row,
body:not(.landing-page) .account-table-head,
body:not(.landing-page) .pdf-library-viewer-header,
body:not(.landing-page) .pdf-viewer-error,
body:not(.landing-page) .pdf-text-fallback pre,
body:not(.landing-page) .export-status,
body:not(.landing-page) .page-card,
body:not(.landing-page) .about-hero,
body:not(.landing-page) .about-section,
body:not(.landing-page) .about-feature-card,
body:not(.landing-page) .about-ending,
body:not(.landing-page) .plan-card,
body:not(.landing-page) .checkout-main-panel,
body:not(.landing-page) .checkout-steps,
body:not(.landing-page) .checkout-trust-row,
body:not(.landing-page) .delete-step-body,
body:not(.landing-page) .delete-reason-option,
body:not(.landing-page) .limit-notice {
  border-color: var(--elrion-glass-line);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.035)),
    radial-gradient(circle at 86% 6%, rgba(244, 215, 122, 0.18), transparent 36%),
    var(--elrion-glass);
  color: var(--elrion-text);
  box-shadow: var(--elrion-glow), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(22px) saturate(145%);
}

body:not(.landing-page) .account-popup {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    rgba(11, 15, 48, 0.94);
}

body:not(.landing-page) .account-popup-identity strong,
body:not(.landing-page) .account-card h2,
body:not(.landing-page) .account-card-heading h2,
body:not(.landing-page) .summary-choice-page .choice-panel h1,
body:not(.landing-page) .choice-card .choice-title,
body:not(.landing-page) .pdf-chat-invite h2,
body:not(.landing-page) .drawer-header h2,
body:not(.landing-page) .chat-sidebar h2,
body:not(.landing-page) .checkout-brand strong,
body:not(.landing-page) .checkout-payment-heading h1,
body:not(.landing-page) .prose h1,
body:not(.landing-page) .prose h2,
body:not(.landing-page) .prose h3,
body:not(.landing-page) .chat-markdown h2,
body:not(.landing-page) .chat-markdown h3 {
  color: #D4AF37;
}

body:not(.landing-page) label,
body:not(.landing-page) .field-label,
body:not(.landing-page) .stack-form label,
body:not(.landing-page) .account-form-grid label,
body:not(.landing-page) .checkout-field > span,
body:not(.landing-page) .account-table-head,
body:not(.landing-page) .account-table-row strong,
body:not(.landing-page) .status-row strong,
body:not(.landing-page) .plan-row strong,
body:not(.landing-page) .toggle-row strong {
  color: #ffffff;
}

body:not(.landing-page) .muted,
body:not(.landing-page) .account-card p,
body:not(.landing-page) .account-card-heading p,
body:not(.landing-page) .account-popup-identity small,
body:not(.landing-page) .account-popup-legal,
body:not(.landing-page) .choice-file-name,
body:not(.landing-page) .choice-card small,
body:not(.landing-page) .choice-micro-text,
body:not(.landing-page) .pdf-chat-invite p,
body:not(.landing-page) .prose,
body:not(.landing-page) .chat-markdown,
body:not(.landing-page) .history-item span,
body:not(.landing-page) .requirement-list {
  color: var(--elrion-muted);
}

body:not(.landing-page) .eyebrow,
body:not(.landing-page) .choice-status,
body:not(.landing-page) .summary-action-feedback,
body:not(.landing-page) .message-action-feedback,
body:not(.landing-page) .prose strong,
body:not(.landing-page) .chat-markdown strong,
body:not(.landing-page) .chat-markdown code {
  color: #D4AF37;
}

body:not(.landing-page) input,
body:not(.landing-page) textarea,
body:not(.landing-page) select,
body:not(.landing-page) .password-field,
body:not(.landing-page) .composer textarea,
body:not(.landing-page) .checkout-field input,
body:not(.landing-page) .file-pill,
body:not(.landing-page) .pdf-frame,
body:not(.landing-page) .pdf-loading-state {
  border-color: rgba(110, 198, 255, 0.28);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.035)),
    rgba(8, 12, 38, 0.70);
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 12px 28px rgba(0, 0, 0, 0.12);
}

body:not(.landing-page) input::placeholder,
body:not(.landing-page) textarea::placeholder {
  color: rgba(255, 255, 255, 0.62);
}

body:not(.landing-page) input:focus,
body:not(.landing-page) textarea:focus,
body:not(.landing-page) select:focus,
body:not(.landing-page) .composer textarea:focus {
  border-color: rgba(110, 198, 255, 0.78);
  background: rgba(12, 16, 50, 0.86);
  box-shadow: 0 0 0 4px rgba(244, 215, 122, 0.18), 0 18px 38px rgba(0, 0, 0, 0.18);
}

body:not(.landing-page) .password-field input {
  background: transparent;
  box-shadow: none;
}

body:not(.landing-page) .secondary-button,
body:not(.landing-page) .icon-button,
body:not(.landing-page) .account-manage-button,
body:not(.landing-page) .summary-action-button,
body:not(.landing-page) .message-action-button,
body:not(.landing-page) .message-copy-button,
body:not(.landing-page) .message-regenerate-button,
body:not(.landing-page) .message-voice-button,
body:not(.landing-page) .composer-mic-button,
body:not(.landing-page) .scroll-latest-button,
body:not(.landing-page) .pdf-fallback-button {
  border-color: rgba(110, 198, 255, 0.28);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.10);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

body:not(.landing-page) .secondary-button:hover,
body:not(.landing-page) .icon-button:hover,
body:not(.landing-page) .account-manage-button:hover,
body:not(.landing-page) .summary-action-button:hover,
body:not(.landing-page) .message-action-button:hover,
body:not(.landing-page) .message-copy-button:hover,
body:not(.landing-page) .message-copy-button.copied,
body:not(.landing-page) .message-regenerate-button:hover,
body:not(.landing-page) .message-voice-button:hover,
body:not(.landing-page) .composer-mic-button:hover,
body:not(.landing-page) .scroll-latest-button:hover {
  border-color: rgba(110, 198, 255, 0.52);
  color: #ffffff;
  background: rgba(244, 215, 122, 0.26);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.20), 0 0 24px rgba(244, 215, 122, 0.18);
}

body:not(.landing-page) .auth-forgot-link,
body:not(.landing-page) .password-reset-secondary-actions button,
body:not(.landing-page) .password-reset-back {
  color: #F4D77A;
}

body:not(.landing-page) .assistant .bubble,
body:not(.landing-page) .bubble.chat-markdown {
  border: 1px solid rgba(110, 198, 255, 0.26);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    rgba(13, 17, 55, 0.76);
  color: #ffffff;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22), 0 0 26px rgba(244, 215, 122, 0.10);
  backdrop-filter: blur(20px) saturate(145%);
}

body:not(.landing-page) .user .bubble {
  border: 1px solid rgba(110, 198, 255, 0.34);
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(244, 215, 122, 0.92), rgba(212, 175, 55, 0.88)),
    rgba(13, 17, 55, 0.70);
  box-shadow: 0 18px 42px rgba(212, 175, 55, 0.24);
}

body:not(.landing-page) .composer {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(8, 11, 36, 0.82);
  backdrop-filter: blur(24px) saturate(150%);
}

body:not(.landing-page) .profile-menu summary span,
body:not(.landing-page) .account-popup-avatar,
body:not(.landing-page) .account-avatar-preview,
body:not(.landing-page) .choice-status span,
body:not(.landing-page) .choice-icon {
  color: #ffffff;
  background: linear-gradient(135deg, #F4D77A, #D4AF37);
  box-shadow: 0 14px 34px rgba(212, 175, 55, 0.28);
}

body:not(.landing-page) .account-popup-menu a,
body:not(.landing-page) .account-popup-logout a,
body:not(.landing-page) .account-popup-legal a {
  color: #ffffff;
}

body:not(.landing-page) .account-popup-menu a:hover,
body:not(.landing-page) .account-popup-logout a:hover,
body:not(.landing-page) .account-popup-legal a:hover {
  color: #ffffff;
  background: rgba(244, 215, 122, 0.22);
}

body:not(.landing-page) .account-popup-menu,
body:not(.landing-page) .account-popup-logout {
  border-top-color: rgba(110, 198, 255, 0.18);
}

body:not(.landing-page) .error-box {
  border-color: rgba(255, 144, 144, 0.38);
  color: #ffd6d6;
  background: rgba(82, 16, 36, 0.58);
}

body:not(.landing-page) .success-box {
  border-color: rgba(116, 232, 190, 0.36);
  color: #c7ffe9;
  background: rgba(16, 70, 58, 0.48);
}

@media (max-width: 1050px) {
  .chat-shell {
    grid-template-columns: 250px minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .drawer {
    padding: 104px 14px 20px;
  }

  .drawer-card,
  .drawer-card.pdf-drawer-card {
    width: 100%;
    max-height: calc(100vh - 124px);
  }

  .drawer-card.pdf-drawer-card {
    height: calc(100vh - 124px);
  }

  .global-topbar {
    min-height: 76px;
    padding: 0 18px;
    gap: 14px;
  }

  .global-nav-left,
  .global-nav-right {
    gap: 12px;
  }

  .global-brand {
    font-size: 1.42rem;
  }

  .brand-logo {
    width: 38px;
    height: 38px;
  }

  .global-nav-right a {
    font-size: 0.95rem;
  }

  .global-signup {
    min-height: 40px;
    padding: 0 16px;
  }

  .global-language-menu summary {
    min-height: 38px;
    padding: 0 12px;
    font-size: 0.9rem;
  }

  .landing-topbar {
    padding: 18px;
    min-height: auto;
    align-items: center;
    gap: 14px;
  }

  .landing-nav-left {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .landing-nav-right {
    gap: 10px;
  }

  .landing-topbar a,
  .landing-footer a {
    font-size: 1rem;
  }

  .landing-language-menu summary {
    min-height: 44px;
    padding: 0 15px;
    font-size: 1rem;
  }

  .landing-language-dropdown {
    left: 0;
  }

  .landing-shell {
    padding: 38px 18px 40px;
  }

  .landing-recent-activity {
    position: relative;
    top: auto;
    left: auto;
    width: min(100% - 36px, 320px);
    margin: 18px 18px 0;
  }

  .landing-center {
    width: 100%;
  }

  .landing-wordmark {
    margin-bottom: 20px;
    font-size: clamp(2.75rem, 12.5vw, 4.35rem);
    letter-spacing: 0.06em;
    padding-left: 0.06em;
  }

  .landing-wordmark .brand-logo {
    width: clamp(72px, 20vw, 96px);
    height: clamp(72px, 20vw, 96px);
  }

  .landing-tagline {
    margin-bottom: 28px;
  }

  .landing-file-drop {
    min-height: 74px;
    padding: 0 22px;
    border-radius: 22px;
  }

  .landing-page .file-title,
  .landing-page .file-name {
    font-size: 0.98rem;
  }

  .landing-upload-button {
    min-width: 176px;
    min-height: 52px;
    font-size: 1.05rem;
  }

  .landing-upload-actions {
    justify-content: center;
  }

  .landing-steps {
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
  }

  .landing-step {
    width: auto;
    margin: 0;
    text-align: center;
  }

  .landing-footer {
    gap: 18px;
    flex-wrap: wrap;
  }

  .choice-topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
    min-height: auto;
  }

  .choice-nav-left,
  .choice-nav-right {
    width: 100%;
    flex-wrap: wrap;
    gap: 14px;
  }

  .choice-nav-right {
    justify-content: flex-start;
  }

  .summary-choice-page .center-shell {
    min-height: auto;
    padding: 34px 18px 48px;
  }

  .summary-choice-page .choice-panel {
    padding: 34px 22px 28px;
    border-radius: 28px;
  }

  .summary-choice-page .choice-panel h1 {
    font-size: clamp(2rem, 11vw, 2.65rem);
  }

  .summary-choice-grid {
    gap: 18px;
    margin-top: 34px;
  }

  .choice-card {
    min-height: auto;
    padding: 26px;
    border-radius: 24px;
  }

  .choice-icon {
    margin-bottom: 22px !important;
  }

  .sub-choice-row {
    margin-top: 24px;
  }

  .choice-micro-text {
    margin-top: 28px;
    font-size: 0.92rem;
  }

  .topbar {
    height: auto;
    min-height: 68px;
    align-items: flex-start;
    flex-direction: column;
    padding: 0 18px;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .topnav {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .center-shell {
    padding: 18px;
  }

  .upload-panel,
  .choice-panel,
  .auth-panel,
  .summary-card {
    padding: 24px;
    border-radius: 18px;
  }

  .summary-actions-row {
    align-items: flex-end;
    flex-direction: column;
    margin-bottom: 22px;
  }

  .summary-actions {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    border-radius: 18px;
  }

  .summary-header {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 18px;
  }

  .pdf-chat-invite {
    margin-top: 0;
    padding: 20px;
  }

  .summary-choice-grid,
  .about-features,
  .deeper-panel,
  .chat-shell,
  .oauth-row,
  .settings-grid,
  .account-layout,
  .account-form-grid,
  .history-card,
  .usage-grid,
  .plan-card-grid {
    grid-template-columns: 1fr;
  }

  .account-shell {
    width: min(100% - 32px, 1120px);
    padding-top: 34px;
  }

  .account-card {
    padding: 22px;
    border-radius: 18px;
  }

  .account-table-head {
    display: none;
  }

  .account-table-row {
    grid-template-columns: 1fr;
  }

  .pdf-library-viewer {
    padding: 96px 14px 20px;
  }

  .pdf-library-viewer-card {
    width: 100%;
    height: calc(100dvh - 116px);
    border-radius: 18px;
  }

  .pdf-library-viewer-header {
    align-items: flex-start;
    padding: 15px;
  }

  .deeper-panel {
    align-items: stretch;
  }

  .chat-shell {
    height: calc(100dvh - 76px);
    min-height: 0;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .pdf-chat-page main {
    height: calc(100dvh - 76px);
  }

  .chat-sidebar {
    max-height: 215px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .chat-main {
    min-height: 0;
  }

  .chat-feed {
    padding: 18px 18px 22px;
  }

  .composer {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 14px 18px calc(18px + env(safe-area-inset-bottom));
  }

  .composer-actions {
    justify-content: space-between;
  }

  .composer-actions .primary-button {
    flex: 1 1 0;
  }

  .scroll-latest-button {
    right: 18px;
    bottom: calc(var(--composer-height) + 14px + env(safe-area-inset-bottom));
    min-height: 40px;
    padding-right: 13px;
    font-size: 0.86rem;
  }

  .about-shell {
    width: min(100% - 36px, 1120px);
    padding: 40px 0 58px;
  }

  .about-hero,
  .about-section,
  .about-feature-card,
  .about-ending {
    padding: 28px;
    border-radius: 24px;
  }

  .about-hero h1 {
    font-size: clamp(2.55rem, 14vw, 4rem);
  }

  .about-section {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .about-feature-card {
    min-height: auto;
  }
}

@media (max-width: 460px) {
  .global-topbar {
    min-height: auto;
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 16px;
  }

  .global-nav-left,
  .global-nav-right {
    width: 100%;
  }

  .global-nav-right {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .profile-menu {
    margin-left: auto;
  }

  .profile-dropdown {
    right: 0;
    min-width: min(352px, calc(100vw - 32px));
  }

  .landing-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .landing-nav-left,
  .landing-nav-right {
    width: 100%;
    justify-content: space-between;
  }

  .landing-file-drop {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 16px 18px;
  }

  .landing-page .file-name {
    text-align: left;
  }

  .landing-step span {
    width: 32px;
    height: 32px;
    font-size: 0.92rem;
  }
}

.mobile-menu {
  display: none;
}

.mobile-language-menu {
  display: none;
}

.mobile-lang-select,
.mobile-lang-form,
.mobile-topbar-brand {
  display: none;
}

.landing-file-icon,
.landing-upload-button svg,
.landing-step svg,
.landing-step small {
  display: none;
}

@media (max-width: 760px) {
  .landing-topbar,
  .global-topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    align-items: center;
    padding: 18px 20px 14px;
    gap: 14px;
  }

  .mobile-menu {
    position: relative;
    z-index: 1300;
    display: block;
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }

  .mobile-menu summary {
    width: 42px;
    height: 42px;
    display: grid;
    align-content: center;
    gap: 6px;
    padding: 0;
    border: 0;
    color: #F4D77A;
    background: transparent;
    cursor: pointer;
    list-style: none;
  }

  .mobile-menu summary::-webkit-details-marker {
    display: none;
  }

  .mobile-menu summary span {
    width: 32px;
    height: 3px;
    display: block;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 0 0 10px rgba(244, 215, 122, 0.28);
  }

  .mobile-menu summary::after {
    content: attr(data-mobile-lang);
    position: fixed;
    top: 18px;
    right: auto;
    left: calc(100vw - 110px);
    z-index: 1900;
    width: 92px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(244, 215, 122, 0.58);
    border-radius: 999px;
    color: #F7D76D;
    background: rgba(4, 10, 29, 0.92);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24);
    font-size: 0.92rem;
    font-weight: 850;
    line-height: 1;
    backdrop-filter: blur(14px) saturate(140%);
  }

  .mobile-menu-language-badge {
    position: fixed;
    top: 18px;
    right: auto;
    left: calc(100vw - 110px);
    z-index: 1800;
    width: 92px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid rgba(244, 215, 122, 0.58);
    border-radius: 999px;
    color: #F7D76D;
    background: rgba(4, 10, 29, 0.92);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24);
    font-size: 0.92rem;
    font-weight: 850;
    line-height: 1;
    backdrop-filter: blur(14px) saturate(140%);
  }

  .landing-topbar .mobile-lang-form,
  .global-topbar .mobile-lang-form {
    position: fixed;
    top: 18px;
    right: 18px;
    left: auto;
    z-index: 1900;
    display: block;
    width: 120px;
    height: 42px;
    margin: 0;
  }

  .mobile-lang-form summary {
    width: 120px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid rgba(244, 215, 122, 0.58);
    border-radius: 999px;
    color: #F7D76D;
    background: rgba(4, 10, 29, 0.92);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24);
    font-size: 0.82rem;
    font-weight: 850;
    line-height: 1;
    list-style: none;
    cursor: pointer;
    backdrop-filter: blur(14px) saturate(140%);
  }

  .mobile-lang-form summary::-webkit-details-marker {
    display: none;
  }

  .mobile-lang-form summary span {
    width: auto;
    height: auto;
    display: inline;
    background: transparent;
    box-shadow: none;
  }

  .mobile-lang-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(190px, calc(100vw - 32px));
    display: grid;
    gap: 4px;
    padding: 8px;
    border: 1px solid rgba(244, 215, 122, 0.34);
    border-radius: 16px;
    background: rgba(4, 10, 29, 0.97);
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.32);
  }

  .mobile-lang-dropdown button {
    width: 100%;
    min-height: 38px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 10px;
    border: 0;
    border-radius: 10px;
    color: #ffffff;
    background: transparent;
    font-size: 0.9rem;
    font-weight: 820;
    cursor: pointer;
  }

  .mobile-lang-dropdown button.active,
  .mobile-lang-dropdown button:hover {
    color: #07101f;
    background: linear-gradient(135deg, #F4D77A, #D4AF37);
  }

  .mobile-menu-panel {
    position: absolute;
    top: calc(100% + 16px);
    left: -20px;
    width: min(254px, calc(100vw - 54px));
    display: grid;
    gap: 2px;
    padding: 28px 28px 24px;
    border: 1px solid rgba(110, 198, 255, 0.26);
    border-radius: 0 26px 26px 0;
    color: #ffffff;
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.026)),
      rgba(4, 10, 29, 0.96);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px) saturate(140%);
  }

  .mobile-menu-panel a {
    min-height: 58px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #ffffff;
    font-size: 1.06rem;
    font-weight: 760;
    line-height: 1.2;
    text-align: left;
    text-shadow: 0 3px 16px rgba(0, 0, 0, 0.34);
  }

  .mobile-menu-panel a:hover {
    color: #F4D77A;
  }

  .mobile-menu-panel svg {
    width: 25px;
    height: 25px;
    flex: 0 0 auto;
    fill: none;
    stroke: #F4D77A;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .mobile-menu-divider {
    height: 1px;
    margin: 14px 0;
    background: rgba(148, 176, 225, 0.28);
  }

  .mobile-topbar-brand {
    position: fixed;
    top: 18px;
    left: 50%;
    z-index: 1800;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #F4D77A;
    font-size: 1.08rem;
    font-weight: 920;
    line-height: 1;
    transform: translateX(-50%);
  }

  .mobile-topbar-brand .brand-logo {
    width: 36px;
    height: 36px;
  }

  .landing-nav-left > a,
  .landing-nav-left .landing-language-menu,
  .global-brand,
  .global-nav-left .global-language-menu,
  .landing-nav-right,
  .global-nav-right {
    display: none;
  }

  .mobile-language-menu {
    position: relative;
    z-index: 1301;
    display: block;
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .landing-language-menu summary,
  .global-language-menu summary,
  .mobile-language-menu summary {
    min-height: 50px;
    padding: 0 20px;
    border-color: rgba(113, 149, 219, 0.54);
    font-size: 1.12rem;
    border-radius: 999px;
  }

  .landing-language-dropdown,
  .global-language-menu .landing-language-dropdown,
  .mobile-language-menu .landing-language-dropdown {
    left: auto;
    right: 0;
  }

  .landing-shell {
    padding: 40px 20px 54px;
  }

  .landing-wordmark {
    margin-top: 8px;
    margin-bottom: 22px;
    gap: 8px;
    font-size: clamp(3.45rem, 18vw, 4.95rem);
    letter-spacing: 0.02em;
  }

  .landing-wordmark .brand-logo {
    width: clamp(96px, 29vw, 132px);
    height: clamp(96px, 29vw, 132px);
  }

  .landing-tagline {
    margin-bottom: 24px;
    font-size: 1.06rem;
  }

  .landing-file-drop {
    min-height: 168px;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 9px;
    padding: 24px 22px;
    border-radius: 28px;
    text-align: center;
  }

  .landing-file-icon {
    display: grid;
    place-items: center;
    color: #F4D77A;
  }

  .landing-file-icon svg {
    width: 54px;
    height: 54px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .landing-page .file-title {
    max-width: 260px;
    color: #ffffff;
    font-size: 1.42rem;
    font-weight: 650;
    line-height: 1.28;
    text-align: center;
  }

  .landing-page .file-name {
    color: rgba(255, 255, 255, 0.72);
    font-size: 1.16rem;
    line-height: 1.3;
    text-align: center;
  }

  .landing-upload-button {
    width: min(100%, 600px);
    min-height: 78px;
    gap: 14px;
    border-radius: 28px;
    font-size: 1.34rem;
  }

  .landing-upload-button svg {
    display: block;
    width: 30px;
    height: 30px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .landing-steps {
    gap: 18px;
    margin-top: 36px;
  }

  .landing-step {
    position: relative;
    min-height: 120px;
    display: grid;
    grid-template-columns: 54px 42px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 22px 26px;
    border: 1px solid rgba(110, 198, 255, 0.24);
    border-radius: 28px;
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.018)),
      rgba(4, 12, 34, 0.54);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  }

  .landing-step span {
    width: 54px;
    height: 54px;
    border-color: rgba(244, 215, 122, 0.66);
    color: #F4D77A;
    font-size: 1.42rem;
  }

  .landing-step svg {
    display: block;
    width: 38px;
    height: 38px;
    fill: none;
    stroke: #F4D77A;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .landing-step p {
    display: grid;
    gap: 7px;
    min-width: 0;
  }

  .landing-step strong {
    color: #ffffff;
    font-size: 1.25rem;
    line-height: 1.12;
  }

  .landing-step small {
    display: block;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.98rem;
    line-height: 1.28;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .landing-footer {
    display: none;
  }

  .about-shell {
    width: min(100% - 32px, 720px);
    padding: 34px 0 58px;
  }

  .about-hero,
  .about-section,
  .about-feature-card,
  .about-ending {
    border-color: rgba(110, 198, 255, 0.20);
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
      rgba(6, 12, 34, 0.62);
    box-shadow: 0 20px 54px rgba(0, 0, 0, 0.20), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }

  .about-hero {
    padding: 34px 24px;
    border-radius: 28px;
  }

  .about-hero h1 {
    color: #F4D77A;
    font-size: clamp(2.35rem, 12vw, 3.6rem);
    line-height: 1.02;
  }

  .about-hero p:not(.eyebrow),
  .about-section p,
  .about-feature-card p,
  .about-ending p {
    color: #ffffff;
  }

  .about-section,
  .about-feature-card,
  .about-ending {
    padding: 24px;
    border-radius: 24px;
  }

  .about-section {
    gap: 16px;
  }

  .about-section h2,
  .about-feature-card h3 {
    color: #F4D77A;
  }
}

@media (max-width: 430px) {
  .landing-topbar,
  .global-topbar {
    padding-inline: 16px;
  }

  .landing-wordmark {
    font-size: clamp(3rem, 17vw, 4.1rem);
  }

  .landing-wordmark .brand-logo {
    width: clamp(78px, 25vw, 106px);
    height: clamp(78px, 25vw, 106px);
  }

  .landing-file-drop {
    min-height: 148px;
    border-radius: 24px;
  }

  .landing-page .file-title {
    font-size: 1.22rem;
  }

  .landing-page .file-name {
    font-size: 1.02rem;
  }

  .landing-upload-button {
    min-height: 64px;
    border-radius: 24px;
    font-size: 1.12rem;
  }

  .landing-step {
    min-height: 104px;
    grid-template-columns: 48px 40px minmax(0, 1fr);
    gap: 12px;
    padding: 18px;
    border-radius: 22px;
  }

  .landing-step span {
    width: 42px;
    height: 42px;
    font-size: 1.12rem;
  }

  .landing-step svg {
    width: 31px;
    height: 31px;
  }

  .landing-step strong {
    font-size: 1.05rem;
  }

  .landing-step small {
    font-size: 0.88rem;
  }
}

@media (max-width: 520px) {
  .center-shell {
    justify-items: start;
  }

  .auth-panel {
    justify-self: start;
    margin-inline: 0;
  }
}

/* Final Elrion visual-system consolidation. Keep all remaining pages in one language. */
body:not(.landing-page) h1,
body:not(.landing-page) .account-page-header h1,
body:not(.landing-page) .about-hero h1,
body:not(.landing-page) .summary-title-block h1,
body:not(.landing-page) .checkout-upgrade-copy h1,
body:not(.landing-page) .legal-card h1 {
  color: #F4D77A;
  text-shadow: 0 0 24px rgba(244, 215, 122, 0.36);
}

body:not(.landing-page) h2,
body:not(.landing-page) h3,
body:not(.landing-page) .legal-card h2,
body:not(.landing-page) .about-section h2,
body:not(.landing-page) .about-feature-card h3,
body:not(.landing-page) .about-ending p,
body:not(.landing-page) .plan-card-header h3,
body:not(.landing-page) .checkout-payment-heading h2,
body:not(.landing-page) .checkout-feature-list strong,
body:not(.landing-page) .checkout-security-card strong,
body:not(.landing-page) .checkout-trust-row strong,
body:not(.landing-page) .checkout-price-row strong,
body:not(.landing-page) .usage-strip strong,
body:not(.landing-page) .usage-grid strong {
  color: #F4D77A;
}

body:not(.landing-page) p,
body:not(.landing-page) li,
body:not(.landing-page) span,
body:not(.landing-page) small,
body:not(.landing-page) .legal-card p,
body:not(.landing-page) .about-section p,
body:not(.landing-page) .about-feature-card p,
body:not(.landing-page) .about-hero p:not(.eyebrow),
body:not(.landing-page) .checkout-upgrade-copy p,
body:not(.landing-page) .checkout-plan-panel p,
body:not(.landing-page) .checkout-security-card p,
body:not(.landing-page) .checkout-payment-heading p,
body:not(.landing-page) .checkout-encrypted p,
body:not(.landing-page) .checkout-feature-list small,
body:not(.landing-page) .checkout-trust-row span,
body:not(.landing-page) .checkout-legal,
body:not(.landing-page) .usage-strip span,
body:not(.landing-page) .usage-reset,
body:not(.landing-page) .plan-reset-note,
body:not(.landing-page) .plan-feature-list {
  color: #ffffff;
}

body:not(.landing-page) .muted,
body:not(.landing-page) .legal-intro {
  color: #ffffff !important;
}

body:not(.landing-page) a:not(.primary-button):not(.secondary-button):not(.global-signup):not(.choice-signup):not(.plan-cta):not(.checkout-pay-button) {
  color: #F4D77A;
}

body:not(.landing-page) .legal-card a,
body:not(.landing-page) .checkout-legal a,
body:not(.landing-page) .account-popup-legal a {
  color: #F4D77A;
  font-weight: 900;
  text-decoration-color: rgba(110, 198, 255, 0.56);
}

body:not(.landing-page) .about-hero,
body:not(.landing-page) .about-section,
body:not(.landing-page) .about-feature-card,
body:not(.landing-page) .about-ending,
body:not(.landing-page) .legal-card,
body:not(.landing-page) .plan-card,
body:not(.landing-page) .plan-options,
body:not(.landing-page) .usage-grid div,
body:not(.landing-page) .checkout-feature-list li,
body:not(.landing-page) .checkout-security-card,
body:not(.landing-page) .checkout-trust-row div,
body:not(.landing-page) .checkout-form-preview,
body:not(.landing-page) .checkout-encrypted,
body:not(.landing-page) .checkout-card-number-wrap,
body:not(.landing-page) .checkout-steps div,
body:not(.landing-page) .account-table-head,
body:not(.landing-page) .account-table-row,
body:not(.landing-page) .empty-state {
  border-color: rgba(110, 198, 255, 0.24);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.035)),
    rgba(12, 16, 50, 0.70);
  color: #ffffff;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px) saturate(145%);
}

body:not(.landing-page) .about-feature-icon,
body:not(.landing-page) .plan-icon,
body:not(.landing-page) .checkout-feature-list li > span,
body:not(.landing-page) .checkout-security-card > span,
body:not(.landing-page) .checkout-payment-heading > span,
body:not(.landing-page) .checkout-encrypted > span {
  color: #ffffff;
  background: linear-gradient(135deg, #F4D77A, #D4AF37);
  border-color: rgba(110, 198, 255, 0.28);
  box-shadow: 0 12px 28px rgba(212, 175, 55, 0.28);
}

body:not(.landing-page) .primary-button,
body:not(.landing-page) .plan-cta,
body:not(.landing-page) .checkout-pay-button,
body:not(.landing-page) .global-signup,
body:not(.landing-page) .choice-signup {
  color: #ffffff;
  background: linear-gradient(135deg, #F4D77A, #D4AF37);
  box-shadow: 0 16px 38px rgba(212, 175, 55, 0.32), 0 0 22px rgba(244, 215, 122, 0.18);
}

body:not(.landing-page) .primary-button:hover,
body:not(.landing-page) .plan-cta:hover,
body:not(.landing-page) .checkout-pay-button:hover,
body:not(.landing-page) .global-signup:hover,
body:not(.landing-page) .choice-signup:hover {
  filter: saturate(1.08) brightness(1.04);
  box-shadow: 0 20px 46px rgba(212, 175, 55, 0.42), 0 0 32px rgba(244, 215, 122, 0.24);
}

body:not(.landing-page) .danger-button,
body:not(.landing-page) .remove-avatar-button,
body:not(.landing-page) #confirmDeleteAccountButton {
  border: 1px solid rgba(255, 116, 116, 0.42);
  color: #ffe5e5;
  background: linear-gradient(135deg, rgba(225, 45, 73, 0.92), rgba(135, 25, 43, 0.92));
  box-shadow: 0 14px 34px rgba(184, 28, 28, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

body:not(.landing-page) .danger-button:hover,
body:not(.landing-page) .remove-avatar-button:hover,
body:not(.landing-page) #confirmDeleteAccountButton:hover {
  border-color: rgba(255, 162, 162, 0.66);
  color: #ffffff;
  background: linear-gradient(135deg, rgba(248, 63, 91, 0.98), rgba(162, 27, 49, 0.98));
  box-shadow: 0 18px 42px rgba(184, 28, 28, 0.38), 0 0 26px rgba(248, 63, 91, 0.18);
}

body:not(.landing-page) .profile-dropdown.account-popup {
  border-color: rgba(110, 198, 255, 0.32);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.045)),
    radial-gradient(circle at 88% 8%, rgba(244, 215, 122, 0.22), transparent 36%),
    rgba(9, 13, 44, 0.96);
}

body:not(.landing-page) .account-popup-menu a,
body:not(.landing-page) .account-popup-logout a {
  color: #ffffff;
  background: transparent;
}

body:not(.landing-page) .account-popup-menu a:hover,
body:not(.landing-page) .account-popup-logout a:hover {
  color: #ffffff;
  background: rgba(244, 215, 122, 0.24);
}

body:not(.landing-page) .account-popup-legal {
  color: #F4D77A;
}

body:not(.landing-page) .account-popup-legal a:hover {
  color: #ffffff;
}

.landing-page .profile-dropdown.account-popup {
  border-color: rgba(110, 198, 255, 0.32);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.045)),
    radial-gradient(circle at 88% 8%, rgba(244, 215, 122, 0.22), transparent 36%),
    rgba(9, 13, 44, 0.96);
  color: #ffffff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28), 0 0 34px rgba(244, 215, 122, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(22px) saturate(145%);
}

.landing-page .account-popup-identity strong {
  color: #ffffff;
}

.landing-page .account-popup-identity small,
.landing-page .account-popup-legal {
  color: #ffffff;
}

.landing-page .profile-menu summary span,
.landing-page .account-popup-avatar {
  color: #ffffff;
  background: linear-gradient(135deg, #F4D77A, #D4AF37);
  box-shadow: 0 14px 34px rgba(212, 175, 55, 0.28);
}

.landing-page .account-manage-button {
  border-color: rgba(110, 198, 255, 0.28);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.10);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.landing-page .account-manage-button:hover,
.landing-page .account-popup-menu a:hover,
.landing-page .account-popup-logout a:hover,
.landing-page .account-popup-legal a:hover {
  color: #ffffff;
  background: rgba(244, 215, 122, 0.24);
}

.landing-page .account-popup-menu,
.landing-page .account-popup-logout {
  border-top-color: rgba(110, 198, 255, 0.18);
}

.landing-page .account-popup-menu a,
.landing-page .account-popup-logout a,
.landing-page .account-popup-legal a {
  color: #ffffff;
  background: transparent;
}

body .profile-dropdown.account-popup .account-popup-menu a,
body .profile-dropdown.account-popup .account-popup-logout a,
body .profile-dropdown.account-popup .account-popup-legal a {
  color: #ffffff !important;
  text-decoration-color: rgba(255, 255, 255, 0.56);
}

body:not(.landing-page) .usage-strip strong {
  border: 1px solid rgba(110, 198, 255, 0.24);
  border-radius: 16px;
  background: rgba(244, 215, 122, 0.18);
}

body:not(.landing-page) .table-card {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    rgba(10, 14, 45, 0.52);
}

body:not(.landing-page) .account-table-head {
  color: #F4D77A;
  box-shadow: none;
}

body:not(.landing-page) .account-table-row > span,
body:not(.landing-page) .account-table-row strong {
  color: #ffffff;
}

body:not(.landing-page) .plan-card.highlighted {
  border-color: rgba(110, 198, 255, 0.62);
  box-shadow: 0 26px 70px rgba(212, 175, 55, 0.26), 0 0 0 1px rgba(110, 198, 255, 0.16);
}

body:not(.landing-page) .plan-card.current {
  border-color: rgba(110, 198, 255, 0.50);
}

body:not(.landing-page) .plan-badge {
  color: #ffffff;
  background: rgba(244, 215, 122, 0.26);
}

body:not(.landing-page) .plan-cta.disabled,
body:not(.landing-page) .plan-cta:disabled {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

body:not(.landing-page).checkout-page .global-ambient {
  display: block;
}

body:not(.landing-page) .checkout-card-visual {
  border-color: rgba(110, 198, 255, 0.34);
  background:
    radial-gradient(circle at 18% 10%, rgba(244, 215, 122, 0.38), transparent 28%),
    radial-gradient(circle at 88% 22%, rgba(66, 185, 255, 0.28), transparent 30%),
    linear-gradient(135deg, rgba(13, 17, 55, 0.98), rgba(13, 17, 55, 0.94));
  box-shadow: 0 34px 70px rgba(0, 0, 0, 0.32), 0 0 36px rgba(244, 215, 122, 0.18);
}

body:not(.landing-page) .checkout-chip {
  background:
    linear-gradient(90deg, transparent 48%, rgba(255, 255, 255, 0.20) 50%, transparent 52%),
    linear-gradient(135deg, #F4D77A, #F4D77A);
}

body:not(.landing-page) .pdf-library-viewer {
  background: rgba(4, 7, 24, 0.72);
  backdrop-filter: blur(14px);
}

body:not(.landing-page) .pdf-library-frame {
  background: rgba(8, 12, 38, 0.92);
}

body:not(.landing-page) .table-card .account-table-head {
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

body.summary-result-page {
  background:
    linear-gradient(90deg, rgba(5, 8, 24, 0.84), rgba(7, 10, 31, 0.64) 52%, rgba(5, 8, 24, 0.78)),
    linear-gradient(180deg, rgba(9, 11, 34, 0.70), rgba(14, 10, 44, 0.90)),
    url("fondnew.PNG") !important;
  background-size: cover !important;
  background-position: center center !important;
  background-attachment: fixed !important;
}

body.summary-result-page main::before,
body.summary-result-page main::after {
  content: none !important;
}

body.summary-choice-page .choice-panel h1,
body.summary-choice-page .choice-card .choice-title {
  color: #F4D77A !important;
  text-shadow: 0 0 22px rgba(244, 215, 122, 0.24);
}

body.summary-choice-page .sub-choice-row button {
  border-color: rgba(110, 198, 255, 0.36);
  color: #D4AF37;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.70), 0 10px 22px rgba(0, 0, 0, 0.12);
}

body.summary-choice-page .sub-choice-row button span {
  color: #F4D77A;
}

body.summary-choice-page .sub-choice-row button:hover,
body.summary-choice-page .sub-choice-row button:focus-visible,
body.summary-choice-page .sub-choice-row button:active {
  border-color: rgba(110, 198, 255, 0.62);
  color: #ffffff;
  background: linear-gradient(135deg, #F4D77A, #D4AF37);
  box-shadow: 0 14px 30px rgba(212, 175, 55, 0.30), 0 0 22px rgba(244, 215, 122, 0.20);
}

body.summary-choice-page .sub-choice-row button:hover span,
body.summary-choice-page .sub-choice-row button:focus-visible span,
body.summary-choice-page .sub-choice-row button:active span {
  color: #ffffff;
}

/* Checkout visual theme only: no layout, spacing, sizing, or structure changes. */
body.checkout-page,
body:not(.landing-page).checkout-page {
  background:
    linear-gradient(90deg, rgba(5, 8, 24, 0.84), rgba(7, 10, 31, 0.64) 52%, rgba(5, 8, 24, 0.78)),
    linear-gradient(180deg, rgba(9, 11, 34, 0.70), rgba(14, 10, 44, 0.90)),
    url("fondnew.PNG");
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  color: #ffffff;
}

body.checkout-page .checkout-sidebar,
body.checkout-page .checkout-main-panel,
body.checkout-page .checkout-payment-card,
body.checkout-page .checkout-plan-panel,
body.checkout-page .checkout-security-card,
body.checkout-page .checkout-form-preview,
body.checkout-page .checkout-encrypted,
body.checkout-page .checkout-trust-row div,
body.checkout-page .checkout-steps div,
body.checkout-page .checkout-card-number-wrap {
  border-color: rgba(110, 198, 255, 0.24);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.035)),
    radial-gradient(circle at 86% 8%, rgba(244, 215, 122, 0.16), transparent 36%),
    rgba(12, 16, 50, 0.72);
  color: #ffffff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(22px) saturate(145%);
}

body.checkout-page .checkout-field input,
body.checkout-page .checkout-card-number-wrap input {
  border-color: rgba(110, 198, 255, 0.28);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.035)),
    rgba(8, 12, 38, 0.70);
  color: #ffffff;
}

body.checkout-page .checkout-field input::placeholder {
  color: rgba(255, 255, 255, 0.62);
}

body.checkout-page .checkout-field input:focus,
body.checkout-page .checkout-card-number-wrap:focus-within {
  border-color: rgba(110, 198, 255, 0.78);
  background: rgba(12, 16, 50, 0.86);
  box-shadow: 0 0 0 4px rgba(244, 215, 122, 0.18), 0 18px 38px rgba(0, 0, 0, 0.18);
}

body.checkout-page .checkout-brand,
body.checkout-page .checkout-brand strong,
body.checkout-page .checkout-payment-heading h2,
body.checkout-page .checkout-feature-list strong,
body.checkout-page .checkout-security-card strong,
body.checkout-page .checkout-trust-row strong,
body.checkout-page .checkout-encrypted strong,
body.checkout-page .checkout-field > span {
  color: #ffffff;
}

body.checkout-page .checkout-upgrade-copy h1,
body.checkout-page .checkout-price-row strong {
  color: #F4D77A;
  text-shadow: 0 0 24px rgba(244, 215, 122, 0.34);
}

body.checkout-page .checkout-upgrade-copy p,
body.checkout-page .checkout-plan-panel p,
body.checkout-page .checkout-security-card p,
body.checkout-page .checkout-payment-heading p,
body.checkout-page .checkout-encrypted p,
body.checkout-page .checkout-legal,
body.checkout-page .checkout-trust-row span,
body.checkout-page .checkout-feature-list small,
body.checkout-page .checkout-price-row span {
  color: #ffffff;
}

body.checkout-page .checkout-back,
body.checkout-page .checkout-legal a {
  color: #F4D77A;
}

body.checkout-page .checkout-payment-heading > span,
body.checkout-page .checkout-feature-list li > span,
body.checkout-page .checkout-security-card > span,
body.checkout-page .checkout-encrypted > span,
body.checkout-page .checkout-steps .done span,
body.checkout-page .checkout-steps .active span,
body.checkout-page .checkout-pay-button {
  color: #ffffff;
  background: linear-gradient(135deg, #F4D77A, #D4AF37);
  box-shadow: 0 14px 34px rgba(212, 175, 55, 0.28);
}

body.checkout-page .checkout-card-visual {
  border-color: rgba(110, 198, 255, 0.34);
  background:
    radial-gradient(circle at 18% 10%, rgba(244, 215, 122, 0.38), transparent 28%),
    radial-gradient(circle at 88% 22%, rgba(66, 185, 255, 0.28), transparent 30%),
    linear-gradient(135deg, rgba(13, 17, 55, 0.98), rgba(13, 17, 55, 0.94));
  box-shadow: 0 34px 70px rgba(0, 0, 0, 0.32), 0 0 36px rgba(244, 215, 122, 0.18);
}

/* Elrion polish pass: visual consistency only. */
body:not(.landing-page) .usage-grid div,
body:not(.landing-page) .plan-feature-list li {
  border-color: rgba(110, 198, 255, 0.24);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.035)),
    rgba(12, 16, 50, 0.72);
  color: #ffffff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px) saturate(140%);
}

body:not(.landing-page) .usage-grid strong,
body:not(.landing-page) .plan-feature-list li::before,
body:not(.landing-page) .plan-card-header h3,
body:not(.landing-page) .plan-card.highlighted .plan-icon {
  color: #F4D77A;
}

body:not(.landing-page) .usage-grid span,
body:not(.landing-page) .plan-feature-list li,
body:not(.landing-page) .plan-feature-list.compact li,
body:not(.landing-page) .plan-reset-note {
  color: #ffffff;
}

body:not(.landing-page) .plan-card .plan-icon {
  color: #F4D77A;
  background:
    linear-gradient(135deg, rgba(244, 215, 122, 0.24), rgba(212, 175, 55, 0.16)),
    rgba(255, 255, 255, 0.08);
  border-color: rgba(110, 198, 255, 0.32);
  box-shadow: 0 12px 28px rgba(212, 175, 55, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

body:not(.landing-page) .plan-card.highlighted .plan-icon {
  box-shadow: 0 16px 34px rgba(212, 175, 55, 0.34), 0 0 24px rgba(244, 215, 122, 0.24);
}

body:not(.landing-page) .plan-card.highlighted .plan-icon svg {
  stroke-width: 2.35;
  filter: drop-shadow(0 0 7px rgba(244, 215, 122, 0.46));
}

body:not(.landing-page) .plan-feature-list.compact li::before {
  background: #F4D77A;
  box-shadow: 0 0 10px rgba(244, 215, 122, 0.48);
}

body:not(.landing-page) .checkout-input span:last-child,
body:not(.landing-page) .checkout-billing-options span,
body:not(.landing-page) .checkout-billing-options strong,
body:not(.landing-page) .checkout-billing-options em,
body:not(.landing-page) .checkout-card-number-wrap em,
body:not(.landing-page) .checkout-feature-icon,
body:not(.landing-page) .checkout-note-card > span,
body:not(.landing-page) .about-feature-icon,
body:not(.landing-page) .message-action-button:hover,
body:not(.landing-page) .message-copy-button:hover,
body:not(.landing-page) .message-regenerate-button:hover,
body:not(.landing-page) .message-voice-button:hover {
  color: #F4D77A;
}

body.checkout-page .checkout-main-panel {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

body.checkout-page .checkout-form-preview,
body.checkout-page .checkout-steps div {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

body.checkout-page .checkout-steps div::before {
  background: rgba(110, 198, 255, 0.24);
  box-shadow: none;
}

body.checkout-page .checkout-steps .done::before,
body.checkout-page .checkout-steps .active::before {
  background: linear-gradient(90deg, #F4D77A, #D4AF37);
}

body.checkout-page .checkout-steps span {
  border-color: rgba(110, 198, 255, 0.34);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.10);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

body.checkout-page .checkout-steps .done span,
body.checkout-page .checkout-steps .active span {
  color: #ffffff;
  background: linear-gradient(135deg, #F4D77A, #D4AF37);
  box-shadow: 0 12px 28px rgba(212, 175, 55, 0.30);
}

body.checkout-page .checkout-payment-card,
body.checkout-page .checkout-sidebar,
body.checkout-page .checkout-plan-panel,
body.checkout-page .checkout-security-card,
body.checkout-page .checkout-encrypted,
body.checkout-page .checkout-trust-row div,
body.checkout-page .checkout-card-number-wrap,
body.checkout-page .checkout-field input {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.035)),
    rgba(12, 16, 50, 0.72);
}

body.checkout-page .checkout-trust-row div {
  min-height: auto;
}

body.checkout-page .checkout-trust-row strong {
  color: #F4D77A;
}

body.checkout-page .checkout-trust-row span {
  color: #ffffff;
}

body.checkout-page .checkout-payment-card {
  overflow: hidden;
}

body.checkout-page .checkout-payment-card::before,
body.checkout-page .checkout-payment-card::after,
body.checkout-page .checkout-sidebar::before,
body.checkout-page .checkout-sidebar::after,
body.checkout-page .checkout-trust-row div::before,
body.checkout-page .checkout-trust-row div::after {
  content: none;
}

/* Checkout proportion polish: component sizing only, no section reordering. */
body.checkout-page .checkout-feature-list li,
body.checkout-page .checkout-security-card {
  border-color: rgba(110, 198, 255, 0.24);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.035)),
    rgba(12, 16, 50, 0.72);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px) saturate(140%);
}

body.checkout-page .checkout-feature-list li {
  padding: 16px;
}

body.checkout-page .checkout-feature-list strong,
body.checkout-page .checkout-security-card strong {
  color: #F4D77A;
}

body.checkout-page .checkout-feature-list small,
body.checkout-page .checkout-security-card p {
  color: #ffffff;
}

body.checkout-page .checkout-steps div {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

body.checkout-page .checkout-steps strong {
  color: #ffffff;
}

body.checkout-page .checkout-trust-row {
  gap: 12px;
}

body.checkout-page .checkout-trust-row div {
  display: grid;
  align-content: center;
  gap: 4px;
  min-height: 72px;
  padding: 14px 16px;
  border-radius: 16px;
}

body.checkout-page .checkout-trust-row strong {
  color: #F4D77A;
  line-height: 1.15;
  white-space: nowrap;
}

body.checkout-page .checkout-trust-row span {
  color: #ffffff;
  line-height: 1.28;
}

body.checkout-page .checkout-shell {
  margin-top: 34px;
  margin-bottom: 46px;
}

body.checkout-page .checkout-sidebar {
  gap: 20px;
}

body.checkout-page .checkout-main-panel {
  padding-top: 26px;
  padding-bottom: 26px;
}

body.checkout-page .checkout-payment-card {
  gap: 24px;
}

body.checkout-page .checkout-steps {
  margin-bottom: 22px;
}

body.checkout-page .checkout-upgrade-copy {
  gap: 8px;
}

body.checkout-page .checkout-plan-panel p {
  margin-top: 8px;
}

@media (max-width: 720px) {
  body.checkout-page .checkout-trust-row strong {
    white-space: normal;
  }
}

/* Checkout simplification polish: reduce nested-frame weight only. */
body.checkout-page .checkout-steps {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

body.checkout-page .checkout-steps div {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

body.checkout-page .checkout-payment-card {
  border-color: rgba(110, 198, 255, 0.12);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.022)),
    rgba(12, 16, 50, 0.48);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body.checkout-page .checkout-sidebar,
body.checkout-page .checkout-plan-panel,
body.checkout-page .checkout-security-card,
body.checkout-page .checkout-encrypted,
body.checkout-page .checkout-card-number-wrap,
body.checkout-page .checkout-field input,
body.checkout-page .checkout-trust-row div {
  border-color: rgba(110, 198, 255, 0.16);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body.checkout-page .checkout-trust-row {
  gap: 10px;
}

body.checkout-page .checkout-trust-row div {
  min-height: 58px;
  padding: 10px 14px;
}

body.checkout-page .checkout-trust-row strong {
  line-height: 1.1;
}

body.checkout-page .checkout-trust-row span {
  line-height: 1.22;
}

/* Final cleanup: preserve layout, simplify visual hierarchy. */
body:not(.landing-page) .account-card > .plan-feature-list:not(.compact) li {
  color: #F4D77A;
}

body:not(.landing-page) .plan-feature-list.compact li {
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  color: #ffffff;
}

body:not(.landing-page) .plan-card-header h3 {
  color: #F4D77A;
  font-size: 1.18rem;
  font-weight: 930;
}

body:not(.landing-page) .plan-card.highlighted .plan-card-header h3 {
  font-size: 1.38rem;
  font-weight: 980;
  line-height: 1.08;
}

body:not(.landing-page) .plan-card .plan-icon {
  width: 42px;
  height: 42px;
  border-radius: 15px;
}

body:not(.landing-page) .plan-card .plan-icon svg {
  width: 21px;
  height: 21px;
}

body:not(.landing-page) .plan-card.highlighted .plan-icon svg {
  width: 23px;
  height: 23px;
}

body.checkout-page .checkout-main-panel,
body.checkout-page .checkout-form-preview,
body.checkout-page .checkout-steps,
body.checkout-page .checkout-steps div {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

body.checkout-page .checkout-payment-card {
  max-width: none;
  border-color: rgba(110, 198, 255, 0.08);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.018)),
    rgba(12, 16, 50, 0.38);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body.checkout-page .checkout-payment-card,
body.checkout-page .checkout-sidebar,
body.checkout-page .checkout-plan-panel,
body.checkout-page .checkout-security-card,
body.checkout-page .checkout-encrypted,
body.checkout-page .checkout-card-number-wrap,
body.checkout-page .checkout-field input,
body.checkout-page .checkout-trust-row div {
  border-color: rgba(110, 198, 255, 0.12);
}

body.checkout-page .checkout-trust-row {
  gap: 12px;
}

body.checkout-page .checkout-trust-row div {
  min-height: 50px;
  padding: 8px 12px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

body.checkout-page .checkout-trust-row strong {
  color: #F4D77A;
  white-space: normal;
}

body.checkout-page .checkout-trust-row span {
  color: #ffffff;
  font-size: 0.9rem;
}

body:not(.landing-page) .plan-price {
  display: block;
  margin-top: 4px;
  color: #ffffff;
  font-size: 1rem;
  line-height: 1.1;
}

body.checkout-page .checkout-subscription-facts {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
}

body.checkout-page .checkout-subscription-facts div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-top: 1px solid rgba(110, 198, 255, 0.12);
}

body.checkout-page .checkout-subscription-facts dt,
body.checkout-page .checkout-subscription-facts dd {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.35;
}

body.checkout-page .checkout-subscription-facts dt {
  color: #ffffff;
  font-weight: 800;
}

body.checkout-page .checkout-subscription-facts dd {
  color: #ffffff;
  font-weight: 900;
  text-align: right;
}

.guest-session-notice {
  width: min(100% - 32px, 760px);
  margin: 18px auto;
  padding: 10px 14px;
  border: 1px solid rgba(110, 198, 255, 0.24);
  border-radius: 12px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(244, 215, 122, 0.22), rgba(66, 185, 255, 0.10)),
    rgba(10, 14, 42, 0.48);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(14px);
  font-size: 0.92rem;
  line-height: 1.45;
  text-align: center;
}

.guest-session-notice.inline {
  width: 100%;
  margin: 0 0 18px;
}

body:not(.landing-page) .chat-markdown strong,
body:not(.landing-page) .prose strong,
.chat-markdown strong,
.prose strong,
.markdown-content strong,
.message.bot strong {
  color: #D4AF37 !important;
}

.about-feature-icon,
body:not(.landing-page) .about-feature-icon,
.about-feature-icon svg,
body:not(.landing-page) .about-feature-icon svg {
  color: #ffffff !important;
  stroke: #ffffff !important;
}

/* Responsive launch polish: keep Elrion identity while tightening phone/tablet layouts. */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

@media (min-width: 761px) and (max-width: 1100px) {
  .global-topbar,
  .landing-topbar {
    padding-inline: 24px;
  }

  .landing-shell {
    padding: 24px 24px 28px;
  }

  .landing-center {
    width: min(720px, 100%);
  }

  .landing-wordmark {
    font-size: clamp(2.85rem, 6.4vw, 4rem);
  }

  .landing-wordmark .brand-logo {
    width: clamp(78px, 11vw, 106px);
    height: clamp(78px, 11vw, 106px);
  }

  .landing-file-drop {
    padding-inline: 26px;
  }

  .landing-steps {
    width: min(680px, 100%);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .landing-step {
    justify-content: center;
    line-height: 1.25;
  }

  .center-shell {
    padding: 34px 24px;
  }

  .auth-panel,
  .upload-panel,
  .choice-panel,
  .summary-card {
    width: min(680px, 100%);
  }

  .chat-shell {
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .chat-sidebar {
    padding: 20px;
  }

  .chat-feed {
    padding-inline: 24px;
  }
}

@media (max-width: 760px) {
  .landing-page {
    min-height: 100dvh;
  }

  .landing-topbar {
    display: flex;
    align-items: stretch;
    flex-direction: column;
    padding: 12px 16px;
    gap: 10px 12px;
  }

  .landing-nav-left,
  .landing-nav-right {
    width: 100%;
    min-width: 0;
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }

  .landing-nav-right {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .landing-topbar a,
  .landing-footer a {
    font-size: 0.94rem;
    line-height: 1.2;
  }

  .landing-signup,
  .global-signup {
    min-height: 38px;
    padding-inline: 14px;
    border-radius: 12px;
  }

  .landing-language-menu summary,
  .global-language-menu summary {
    min-height: 38px;
    padding-inline: 12px;
    font-size: 0.9rem;
  }

  .landing-language-dropdown {
    max-width: calc(100vw - 24px);
  }

  .landing-nav-right .profile-dropdown,
  .global-nav-right .profile-dropdown {
    right: 0;
    min-width: min(340px, calc(100vw - 24px));
  }

  .landing-shell {
    align-items: start;
    min-height: auto;
    padding: 30px 16px 34px;
  }

  .landing-wordmark {
    width: 100%;
    max-width: 100%;
    gap: 4px;
    margin-bottom: 14px;
    font-size: clamp(1.9rem, 9.6vw, 2.65rem);
    letter-spacing: 0.02em;
    padding-left: 0;
  }

  .landing-wordmark .brand-logo {
    width: clamp(44px, 13vw, 60px);
    height: clamp(44px, 13vw, 60px);
  }

  .landing-tagline {
    max-width: 32rem;
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.42;
  }

  .landing-upload-form {
    gap: 14px;
  }

  .landing-file-drop {
    min-height: 108px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    padding: 18px;
    border-radius: 18px;
  }

  .landing-page .file-title,
  .landing-page .file-name {
    width: 100%;
    font-size: 0.95rem;
    line-height: 1.35;
    text-align: left;
  }

  .landing-page .file-name {
    overflow-wrap: anywhere;
  }

  .landing-upload-button {
    width: min(100%, 260px);
    min-height: 48px;
  }

  .landing-steps {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 20px;
  }

  .landing-step {
    justify-content: flex-start;
    min-height: 44px;
    padding: 8px 10px;
    border: 1px solid rgba(110, 198, 255, 0.18);
    border-radius: 14px;
    background: rgba(5, 12, 32, 0.36);
    text-align: left;
  }

  .landing-step p {
    line-height: 1.25;
  }

  .landing-footer {
    padding: 12px 16px calc(18px + env(safe-area-inset-bottom));
    gap: 14px;
  }

  .global-topbar {
    min-height: auto;
    padding: 12px 16px;
  }

  .global-brand {
    font-size: 1.24rem;
    letter-spacing: 0.02em;
  }

  .brand-logo {
    width: 34px;
    height: 34px;
  }

  .center-shell {
    min-height: calc(100dvh - 72px);
    padding: 22px 16px calc(28px + env(safe-area-inset-bottom));
  }

  .auth-panel,
  .upload-panel,
  .choice-panel,
  .summary-card,
  .account-card {
    padding: 22px 18px;
    border-radius: 18px;
  }

  .auth-panel {
    width: min(100%, 360px);
    max-width: calc(100vw - 32px);
    overflow: hidden;
  }

  .auth-panel h1,
  .choice-panel h1,
  .summary-title-block h1,
  body:not(.landing-page) h1 {
    font-size: clamp(1.85rem, 8.5vw, 2.55rem);
    line-height: 1.08;
  }

  .auth-panel h1 {
    font-size: clamp(1.72rem, 7.4vw, 2.15rem);
    overflow-wrap: anywhere;
    text-wrap: balance;
  }

  .stack-form {
    gap: 14px;
  }

  .checkbox-field {
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 10px;
  }

  .checkbox-field input {
    width: 20px;
    height: 20px;
  }

  .oauth-row .secondary-button,
  .primary-button,
  .secondary-button {
    width: 100%;
    min-height: 46px;
    justify-content: center;
  }

  .summary-actions {
    padding: 8px;
  }

  .summary-action-button {
    flex: 1 1 120px;
    min-width: 0;
  }

  .chat-shell {
    height: calc(100dvh - 68px);
    grid-template-rows: minmax(120px, 176px) minmax(0, 1fr);
  }

  .pdf-chat-page main {
    height: calc(100dvh - 68px);
  }

  .chat-sidebar {
    max-height: none;
    padding: 14px 16px;
  }

  .history-block {
    margin: 12px 0 14px;
  }

  .side-actions {
    margin: 14px 0;
  }

  .chat-feed {
    gap: 14px;
    padding: 16px 14px 18px;
  }

  .bubble,
  .user .bubble {
    max-width: 94%;
    padding: 13px 14px;
    border-radius: 16px;
    line-height: 1.5;
  }

  .composer {
    padding: 12px 14px calc(14px + env(safe-area-inset-bottom));
  }

  .composer textarea {
    min-height: 48px;
    padding: 13px 54px 13px 14px;
  }

  .account-shell,
  .about-shell,
  .legal-shell {
    width: min(100% - 28px, 1120px);
  }

  .account-table-row,
  .account-table-head {
    min-width: 0;
  }
}

@media (max-width: 460px) {
  .landing-topbar {
    display: flex;
    align-items: stretch;
    flex-direction: column;
    padding: 12px 14px;
  }

  .landing-nav-left,
  .landing-nav-right,
  .global-nav-left,
  .global-nav-right {
    width: 100%;
    min-width: 0;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px;
  }

  .landing-nav-right,
  .global-nav-right {
    justify-content: flex-end;
  }

  .landing-nav-right a:not(.landing-signup),
  .global-nav-right a:not(.global-signup) {
    padding-inline: 4px;
  }

  .landing-wordmark {
    width: 100%;
    max-width: 100%;
    gap: 3px;
    font-size: clamp(1.85rem, 11.3vw, 2.45rem);
    letter-spacing: 0.02em;
    padding-left: 0;
  }

  .landing-wordmark .brand-logo {
    width: clamp(42px, 14vw, 56px);
    height: clamp(42px, 14vw, 56px);
  }

  .auth-panel,
  .upload-panel,
  .choice-panel,
  .summary-card,
  .account-card {
    padding: 20px 16px;
  }

  .profile-dropdown,
  .landing-nav-right .profile-dropdown,
  .global-nav-right .profile-dropdown {
    left: auto;
    right: 0;
    min-width: min(328px, calc(100vw - 20px));
  }

  .chat-shell {
    grid-template-rows: minmax(108px, 150px) minmax(0, 1fr);
  }

  .chat-sidebar h2 {
    font-size: 0.98rem;
  }

  .history-item {
    padding: 10px;
  }

  .composer-actions {
    gap: 8px;
  }

  .composer-actions .primary-button,
  .composer-actions .composer-mic-button {
    min-height: 42px;
  }
}

@media (max-width: 760px) {
  .landing-topbar,
  .global-topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    align-items: center;
    position: relative;
  }

  .mobile-menu {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }

  .landing-topbar .mobile-language-menu,
  .global-topbar .mobile-language-menu {
    position: absolute !important;
    top: 18px !important;
    right: auto !important;
    left: calc(100vw - 104px) !important;
    width: 86px !important;
    height: auto !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    z-index: 1500;
  }

  .mobile-language-menu summary {
    width: 86px !important;
    min-width: 86px !important;
    min-height: 42px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 0 14px !important;
    border: 1px solid rgba(244, 215, 122, 0.54) !important;
    border-radius: 999px !important;
    color: #F7D76D !important;
    background: rgba(4, 10, 29, 0.88) !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.24) !important;
    font-size: 0.96rem !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    list-style: none !important;
    cursor: pointer;
  }

  .mobile-language-menu summary::-webkit-details-marker {
    display: none;
  }

  .mobile-language-menu summary span {
    display: inline !important;
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .mobile-language-menu .landing-language-dropdown {
    top: calc(100% + 10px);
    left: auto !important;
    right: 0 !important;
  }

  .landing-topbar .mobile-lang-select,
  .global-topbar .mobile-lang-select {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 1700;
    display: block;
  }

  .mobile-lang-select summary {
    width: 86px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0;
    border: 1px solid rgba(244, 215, 122, 0.56);
    border-radius: 999px;
    color: #F7D76D;
    background: rgba(4, 10, 29, 0.9);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24);
    font-size: 0.96rem;
    font-weight: 850;
    line-height: 1;
    list-style: none;
    cursor: pointer;
    backdrop-filter: blur(14px) saturate(140%);
  }

  .mobile-lang-select summary::-webkit-details-marker {
    display: none;
  }

  .landing-topbar .mobile-lang-form,
  .global-topbar .mobile-lang-form {
    position: fixed;
    top: 18px;
    right: 18px;
    left: auto;
    z-index: 9999;
    display: block;
    width: 120px;
    height: 42px;
    margin: 0;
  }

  .landing-step {
    grid-template-columns: 48px 34px minmax(0, 1fr);
    gap: 10px;
    overflow: hidden;
  }

  .landing-step p,
  .landing-step strong,
  .landing-step small {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .landing-step strong {
    font-size: 1.08rem;
  }

  .landing-step small {
    font-size: 0.88rem;
  }

  .about-hero,
  .about-section,
  .about-feature-card,
  .about-ending {
    overflow: hidden;
  }

  .about-hero h1,
  .about-section h2,
  .about-feature-card h3,
  .about-hero p,
  .about-section p,
  .about-feature-card p {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
}

.chat-mobile-menu-toggle,
.chat-mobile-settings-toggle,
.chat-mobile-topbar,
.chat-mobile-scrim,
.chat-mobile-settings-scrim,
.chat-mobile-drawer,
.chat-mobile-settings-drawer {
  display: none;
}

@media (max-width: 760px) {
  .mobile-menu summary::after,
  .mobile-menu-language-badge {
    content: none !important;
    display: none !important;
  }

  .pdf-chat-page .global-topbar {
    display: none;
  }

  .pdf-chat-page main {
    height: 100dvh;
  }

  .pdf-chat-page.guest-chat-page main {
    grid-template-rows: auto minmax(0, 1fr);
  }

  .pdf-chat-page.guest-chat-page .guest-session-notice {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    z-index: 78;
    width: 100%;
    margin: 0;
    padding: 8px 16px;
    border: 0;
    border-bottom: 1px solid rgba(110, 198, 255, 0.18);
    border-radius: 0;
    color: rgba(255, 255, 255, 0.78);
    background: rgba(7, 12, 32, 0.82);
    box-shadow: none;
    backdrop-filter: blur(18px) saturate(140%);
    font-size: 0.78rem;
    font-weight: 650;
    line-height: 1.3;
    text-align: center;
  }

  .chat-mobile-topbar {
    position: fixed;
    inset: 0 0 auto;
    z-index: 80;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(244, 215, 122, 0.18);
    background: rgba(2, 6, 20, 0.86);
    backdrop-filter: blur(18px) saturate(140%);
  }

  .chat-mobile-topbar-brand {
    position: absolute;
    left: 50%;
    top: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: max-content;
    max-width: 112px;
    color: #F4D77A;
    font-size: 1rem;
    font-weight: 920;
    line-height: 1;
    letter-spacing: 0;
    transform: translate(-50%, -50%);
  }

  .chat-mobile-topbar-brand .brand-logo {
    width: 30px;
    height: 30px;
    filter: drop-shadow(0 0 8px rgba(244, 215, 122, 0.22));
  }

  .chat-mobile-menu-button {
    width: 44px;
    height: 44px;
    display: grid;
    align-content: center;
    gap: 6px;
    color: #F4D77A;
    cursor: pointer;
  }

  .chat-mobile-menu-button span {
    width: 32px;
    height: 3px;
    display: block;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 0 0 10px rgba(244, 215, 122, 0.28);
  }

  .chat-mobile-language {
    position: relative;
    margin: 0;
  }

  .chat-mobile-language summary {
    width: 118px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0;
    border: 1px solid rgba(244, 215, 122, 0.48);
    border-radius: 999px;
    color: #F7D76D;
    background: rgba(6, 12, 32, 0.82);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.20), inset 0 1px 0 rgba(255, 255, 255, 0.10);
    font-size: 0.82rem;
    font-weight: 850;
    list-style: none;
    cursor: pointer;
  }

  .chat-mobile-language summary::-webkit-details-marker {
    display: none;
  }

  .chat-mobile-language-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(190px, calc(100vw - 32px));
    display: grid;
    gap: 4px;
    padding: 8px;
    border: 1px solid rgba(244, 215, 122, 0.34);
    border-radius: 16px;
    background: rgba(4, 10, 29, 0.98);
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.32);
  }

  .chat-mobile-language-menu button {
    width: 100%;
    min-height: 38px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 10px;
    border: 0;
    border-radius: 10px;
    color: #ffffff;
    background: transparent;
    font-size: 0.9rem;
    font-weight: 820;
    cursor: pointer;
  }

  .chat-mobile-language-menu button.active,
  .chat-mobile-language-menu button:hover {
    color: #07101f;
    background: linear-gradient(135deg, #F4D77A, #D4AF37);
  }

  .chat-mobile-scrim {
    position: fixed;
    inset: 0;
    z-index: 95;
    display: block;
    background: rgba(2, 6, 20, 0.46);
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease;
  }

  .chat-mobile-settings-scrim {
    position: fixed;
    inset: 0;
    z-index: 115;
    display: block;
    background: rgba(2, 6, 20, 0.48);
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease;
  }

  .chat-mobile-drawer {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 100;
    width: min(360px, 84vw);
    display: grid;
    grid-template-rows: auto auto auto minmax(0, 1fr) auto;
    gap: 20px;
    padding: 36px 20px calc(24px + env(safe-area-inset-bottom));
    border-right: 1px solid rgba(110, 198, 255, 0.22);
    border-radius: 0 28px 28px 0;
    color: #ffffff;
    background:
      radial-gradient(circle at 18% 6%, rgba(110, 198, 255, 0.16), transparent 34%),
      linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
      rgba(4, 9, 28, 0.97);
    box-shadow: 28px 0 80px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(22px) saturate(150%);
    transform: translateX(-104%);
    transition: transform 240ms ease;
  }

  .chat-mobile-settings-drawer {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 120;
    width: min(390px, 88vw);
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    gap: 16px;
    padding: 24px 16px calc(20px + env(safe-area-inset-bottom));
    border-left: 1px solid rgba(244, 215, 122, 0.24);
    border-radius: 22px 0 0 22px;
    color: #ffffff;
    background:
      radial-gradient(circle at 82% 6%, rgba(244, 215, 122, 0.13), transparent 32%),
      linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
      rgba(4, 9, 28, 0.98);
    box-shadow: -22px 0 64px rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(22px) saturate(150%);
    transform: translateX(104%);
    transition: transform 240ms ease;
  }

  .chat-mobile-menu-toggle:checked ~ .chat-mobile-scrim {
    opacity: 1;
    pointer-events: auto;
  }

  .chat-mobile-menu-toggle:checked ~ .chat-mobile-drawer {
    transform: translateX(0);
  }

  .chat-mobile-settings-toggle:checked ~ .chat-mobile-settings-scrim {
    opacity: 1;
    pointer-events: auto;
  }

  .chat-mobile-settings-toggle:checked ~ .chat-mobile-settings-drawer {
    transform: translateX(0);
  }

  .chat-mobile-drawer-head,
  .chat-mobile-brand,
  .chat-mobile-menu-list a,
  .chat-mobile-recent-item,
  .chat-mobile-new-chat,
  .chat-mobile-settings-button,
  .mobile-settings-options a {
    display: flex;
    align-items: center;
  }

  .chat-mobile-drawer-head {
    justify-content: space-between;
    gap: 16px;
  }

  .chat-mobile-brand {
    gap: 8px;
    color: #F4D77A;
    font-size: 1.75rem;
    font-weight: 920;
    line-height: 1;
  }

  .chat-mobile-star-wrap {
    position: relative;
    display: grid;
    place-items: center;
  }

  .chat-mobile-star-wrap::after {
    content: "";
    position: absolute;
    right: 2px;
    bottom: 6px;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: rgba(110, 198, 255, 0.9);
    filter: blur(4px);
  }

  .chat-mobile-brand .brand-logo {
    position: relative;
    z-index: 1;
    width: 48px;
    height: 48px;
  }

  .chat-mobile-close {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(110, 198, 255, 0.22);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
  }

  .chat-mobile-close span {
    grid-area: 1 / 1;
    width: 26px;
    height: 3px;
    border-radius: 999px;
    background: #ffffff;
  }

  .chat-mobile-close span:first-child {
    transform: rotate(45deg);
  }

  .chat-mobile-close span:last-child {
    transform: rotate(-45deg);
  }

  .chat-mobile-menu-kicker {
    margin: 0;
    color: #F4D77A;
    font-size: 0.86rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
  }

  .chat-mobile-menu-list {
    display: grid;
    gap: 4px;
  }

  .chat-mobile-menu-list a {
    min-height: 58px;
    justify-content: space-between;
    gap: 16px;
    color: #ffffff;
    font-size: 1.08rem;
    font-weight: 760;
  }

  .chat-mobile-menu-list a::after {
    content: "";
    width: 9px;
    height: 9px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    color: rgba(255, 255, 255, 0.54);
    transform: rotate(-45deg);
  }

  .chat-mobile-menu-list svg,
  .chat-mobile-recent-item svg,
  .chat-mobile-new-chat svg,
  .chat-mobile-settings-button svg,
  .mobile-settings-options svg {
    width: 25px;
    height: 25px;
    flex: 0 0 auto;
    fill: none;
    stroke: #F4D77A;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .chat-mobile-menu-list span {
    min-width: 0;
    margin-right: auto;
  }

  .chat-mobile-recent {
    min-height: 0;
    padding-top: 18px;
    border-top: 1px solid rgba(148, 176, 225, 0.22);
    overflow-y: auto;
  }

  .chat-mobile-recent .chat-mobile-menu-kicker {
    margin-bottom: 14px;
  }

  .chat-mobile-recent-item {
    gap: 14px;
    min-height: 68px;
    padding: 12px;
    border: 1px solid transparent;
    border-radius: 16px;
    color: #ffffff;
  }

  .chat-mobile-recent-item.active {
    border-color: rgba(110, 198, 255, 0.20);
    background: rgba(255, 255, 255, 0.07);
  }

  .chat-mobile-recent-item span {
    min-width: 0;
    display: grid;
    gap: 4px;
  }

  .chat-mobile-recent-item strong,
  .chat-mobile-recent-item small {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .chat-mobile-recent-item strong {
    font-size: 0.98rem;
    font-weight: 760;
  }

  .chat-mobile-recent-item small,
  .chat-mobile-empty {
    color: rgba(255, 255, 255, 0.62);
  }

  .chat-mobile-empty {
    margin: 0;
    line-height: 1.45;
  }

  .chat-mobile-drawer-foot {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 54px;
    gap: 10px;
    align-items: center;
  }

  .chat-mobile-new-chat,
  .chat-mobile-settings-button {
    justify-content: center;
    gap: 12px;
    min-height: 54px;
    border: 1px solid rgba(244, 215, 122, 0.28);
    border-radius: 16px;
    color: #F4D77A;
    font-size: 1.02rem;
    font-weight: 820;
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
  }

  .chat-mobile-new-chat svg,
  .chat-mobile-settings-button svg {
    stroke: currentColor;
  }

  .chat-mobile-settings-title {
    color: #ffffff;
    font-size: 1.32rem;
    font-weight: 900;
  }

  .mobile-settings-profile {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .mobile-profile-cover {
    position: relative;
    min-height: 104px;
    background:
      radial-gradient(circle at 20% 18%, rgba(244, 215, 122, 0.28), transparent 30%),
      linear-gradient(135deg, rgba(18, 49, 52, 0.92), rgba(6, 12, 32, 0.9));
  }

  .mobile-profile-cover img {
    width: 100%;
    height: 104px;
    display: block;
    object-fit: cover;
  }

  .mobile-cover-edit {
    position: absolute;
    right: 12px;
    bottom: 12px;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    color: #ffffff;
    background: rgba(4, 9, 28, 0.68);
    font-size: 0.82rem;
    font-weight: 780;
    cursor: pointer;
  }

  .mobile-profile-cover input,
  .mobile-avatar-edit + input {
    display: none;
  }

  .mobile-profile-main {
    display: grid;
    justify-items: center;
    gap: 12px;
    padding: 0 4px 12px;
    margin-top: -38px;
    text-align: center;
  }

  .mobile-profile-main .account-avatar-preview {
    width: 82px;
    height: 82px;
    border: 3px solid rgba(4, 9, 28, 0.98);
    font-size: 1.12rem;
  }

  .mobile-settings-guest .mobile-profile-main {
    margin-top: 0;
    padding-top: 4px;
  }

  .mobile-avatar-edit {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.8rem;
    font-weight: 740;
    cursor: pointer;
  }

  .mobile-name-field {
    width: 100%;
    display: grid;
    gap: 7px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.86rem;
    font-weight: 760;
    text-align: left;
  }

  .mobile-name-field input {
    width: 100%;
    min-height: 44px;
    border: 1px solid rgba(110, 198, 255, 0.22);
    border-radius: 14px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
  }

  .mobile-save-profile {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border: 0;
    border-radius: 999px;
    color: #07101f;
    background: linear-gradient(135deg, #F4D77A, #D4AF37);
    font-weight: 860;
    cursor: pointer;
  }

  .mobile-settings-options {
    min-height: 0;
    overflow-y: auto;
    display: grid;
    gap: 0;
    padding-right: 2px;
  }

  .mobile-settings-options a,
  .mobile-settings-options button {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    align-items: center;
    min-height: 46px;
    gap: 12px;
    padding: 0 6px;
    border: 0;
    border-radius: 12px;
    color: #ffffff;
    background: transparent;
    cursor: pointer;
    font: inherit;
    font-size: 1.03rem;
    font-weight: 760;
  }

  .mobile-settings-options a:hover,
  .mobile-settings-options button:hover {
    background: rgba(255, 255, 255, 0.06);
  }

  .mobile-settings-options svg {
    stroke: #F4D77A;
  }

.mobile-settings-logout {
  width: 100%;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-align: left;
  color: #ff7676 !important;
}

.mobile-settings-logout-form {
  margin: 0;
}

.mobile-settings-logout svg {
  stroke: currentColor;
}

  .pdf-chat-page .chat-shell {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr);
    height: 100dvh;
    padding-top: 70px;
  }

  .pdf-chat-page .chat-sidebar {
    display: none;
  }

  .pdf-chat-page .chat-main {
    min-height: 0;
    height: calc(100dvh - 70px);
    background:
      radial-gradient(circle at 88% 7%, rgba(110, 198, 255, 0.12), transparent 30%),
      rgba(5, 8, 24, 0.30);
  }

  .pdf-chat-page .chat-feed {
    padding: 96px 16px 18px;
  }

  .pdf-chat-page.guest-chat-page .chat-feed {
    padding-top: 124px;
  }

  .pdf-chat-page:not(.guest-chat-page) .chat-feed {
    padding-top: 26px;
  }

  .pdf-chat-page .composer {
    width: 100%;
    margin: 0;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    border: 1px solid rgba(110, 198, 255, 0.18);
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 0;
    background: rgba(9, 12, 38, 0.94);
  }

  .pdf-chat-page .composer-input-wrap {
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
  }
}

@media (max-width: 460px) {
  .summary-result-page .reading-shell {
    padding-top: 18px;
  }

  body:not(.landing-page) .summary-title-block h1 {
    font-size: clamp(1.35rem, 7vw, 2.1rem);
    line-height: 1.12;
  }
}

/* UI system polish: final consistency layer for motion, spacing, controls, and responsive stability. */
:root {
  --elrion-gold: #F4D77A;
  --elrion-gold-strong: #D4AF37;
  --elrion-ink: #07101f;
  --elrion-panel: rgba(9, 13, 42, 0.78);
  --elrion-panel-strong: rgba(7, 10, 33, 0.92);
  --elrion-blue-line: rgba(110, 198, 255, 0.24);
  --elrion-gold-line: rgba(244, 215, 122, 0.28);
  --elrion-radius-sm: 10px;
  --elrion-radius-md: 14px;
  --elrion-radius-lg: 20px;
  --elrion-ease: cubic-bezier(.2, .8, .2, 1);
  --elrion-focus: 0 0 0 3px rgba(244, 215, 122, 0.26);
}

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

button,
a,
summary,
label,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}

button,
a,
summary,
.primary-button,
.secondary-button,
.icon-button,
.account-inline-button,
.plan-cta,
.landing-upload-button,
.summary-action-button,
.message-action-button,
.message-copy-button,
.message-regenerate-button,
.message-voice-button,
.composer-mic-button,
.scroll-latest-button,
.chat-sidebar-action,
.history-item,
.mobile-menu-panel a,
.chat-mobile-menu-list a,
.chat-mobile-recent-item,
.mobile-settings-options a {
  transition:
    transform 170ms var(--elrion-ease),
    border-color 170ms var(--elrion-ease),
    background 170ms var(--elrion-ease),
    color 170ms var(--elrion-ease),
    box-shadow 170ms var(--elrion-ease),
    opacity 170ms var(--elrion-ease);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 0;
  box-shadow: var(--elrion-focus);
}

.primary-button,
.secondary-button,
.icon-button,
.account-inline-button,
.danger-button,
.plan-cta,
.landing-upload-button,
.summary-action-button,
.chat-sidebar-action,
.chat-mobile-new-chat,
.chat-mobile-settings-button,
.mobile-save-profile,
.composer-mic-button,
.scroll-latest-button,
.landing-signup,
.global-signup {
  min-height: 44px;
  border-radius: var(--elrion-radius-md);
  user-select: none;
}

.primary-button:hover,
.secondary-button:hover,
.icon-button:hover,
.account-inline-button:hover,
.plan-cta:hover,
.landing-upload-button:hover,
.summary-action-button:hover,
.chat-sidebar-action:hover,
.history-item:hover,
.mobile-menu-panel a:hover,
.chat-mobile-menu-list a:hover,
.chat-mobile-recent-item:hover,
.mobile-settings-options a:hover {
  transform: translateY(-1px);
}

.primary-button:active,
.secondary-button:active,
.icon-button:active,
.account-inline-button:active,
.plan-cta:active,
.landing-upload-button:active,
.summary-action-button:active,
.chat-sidebar-action:active,
.history-item:active,
.mobile-menu-panel a:active,
.chat-mobile-menu-list a:active,
.chat-mobile-recent-item:active,
.mobile-settings-options a:active {
  transform: translateY(0) scale(0.99);
}

.global-topbar,
.landing-topbar,
.chat-mobile-topbar,
.composer,
.chat-sidebar,
.chat-mobile-drawer,
.chat-mobile-settings-drawer,
.mobile-menu-panel,
.profile-dropdown,
.account-popup,
.landing-language-dropdown,
.mobile-lang-dropdown,
.chat-mobile-language-menu,
.chat-sidebar-user-dropdown {
  backdrop-filter: blur(22px) saturate(150%);
}

.global-topbar,
.landing-topbar {
  min-height: 76px;
}

.brand-with-logo .brand-logo,
.landing-wordmark .brand-logo,
.chat-mobile-brand .brand-logo,
.chat-mobile-topbar-brand .brand-logo {
  object-fit: contain;
  flex: 0 0 auto;
}

.account-card,
.summary-card,
.choice-panel,
.choice-card,
.auth-panel,
.about-hero,
.about-section,
.about-feature-card,
.about-ending,
.legal-card,
.plan-card,
.table-card,
.usage-strip,
.drawer-card,
.pdf-library-viewer-card,
.checkout-sidebar,
.checkout-payment-card,
.checkout-security-card,
.checkout-plan-panel {
  overflow: hidden;
}

.account-page-header,
.summary-title-block,
.about-shell,
.legal-shell,
.account-shell,
.center-shell {
  min-width: 0;
}

.account-page-header h1,
.summary-title-block h1,
.about-hero h1,
.auth-panel h1,
.choice-panel h1,
.landing-wordmark {
  letter-spacing: 0;
  text-wrap: balance;
}

.muted,
.account-card p,
.about-section p,
.about-feature-card p,
.legal-card p,
.prose p,
.chat-markdown p {
  line-height: 1.62;
}

.stack-form,
.account-form-grid {
  gap: 16px;
}

input,
textarea,
select {
  min-height: 44px;
  border-radius: var(--elrion-radius-md);
}

textarea {
  resize: vertical;
}

.password-field {
  border-radius: var(--elrion-radius-md);
}

.account-table-row,
.account-table-head {
  gap: 14px;
}

.table-actions,
.account-action-list,
.summary-actions,
.drawer-actions {
  gap: 10px;
}

.profile-dropdown,
.account-popup,
.landing-language-dropdown,
.mobile-lang-dropdown,
.chat-mobile-language-menu,
.chat-sidebar-user-dropdown {
  transform-origin: top right;
  animation: elrionMenuIn 150ms var(--elrion-ease) both;
}

@keyframes elrionMenuIn {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.drawer.open .drawer-card,
.pdf-library-viewer.open .pdf-library-viewer-card {
  animation: elrionPanelIn 180ms var(--elrion-ease) both;
}

@keyframes elrionPanelIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.landing-file-drop,
.choice-card,
.plan-card,
.account-card,
.about-feature-card,
.history-item,
.chat-sidebar-user-menu summary {
  will-change: transform;
}

.chat-shell {
  --composer-height: 96px;
}

.chat-feed {
  scrollbar-width: thin;
  scrollbar-color: rgba(244, 215, 122, 0.42) transparent;
}

.chat-feed::-webkit-scrollbar,
.chat-mobile-recent::-webkit-scrollbar,
.mobile-settings-options::-webkit-scrollbar {
  width: 8px;
}

.chat-feed::-webkit-scrollbar-thumb,
.chat-mobile-recent::-webkit-scrollbar-thumb,
.mobile-settings-options::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(244, 215, 122, 0.36);
}

.chat-sidebar-primary {
  gap: 8px;
}

.chat-sidebar-action,
.history-item,
.chat-sidebar-user-menu summary {
  border-radius: var(--elrion-radius-md);
}

.chat-sidebar-user-menu summary {
  min-height: 60px;
}

.chat-sidebar-user-dropdown {
  border: 1px solid var(--elrion-gold-line);
  background:
    linear-gradient(135deg, rgba(244, 215, 122, 0.18), rgba(212, 175, 55, 0.08)),
    var(--elrion-panel-strong);
}

.chat-sidebar-user-dropdown a {
  min-height: 42px;
  border-radius: 12px;
}

.chat-sidebar-user-dropdown a:hover {
  background: rgba(244, 215, 122, 0.18);
}

.composer-input-wrap {
  display: flex;
  align-items: stretch;
}

.composer textarea {
  display: block;
}

.message {
  animation: elrionMessageIn 180ms var(--elrion-ease) both;
}

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

@media (min-width: 761px) {
  .global-topbar,
  .landing-topbar {
    padding-inline: clamp(22px, 4vw, 48px);
  }

  .account-shell,
  .about-shell,
  .legal-shell {
    padding-block: clamp(34px, 5vw, 72px);
  }

  .account-layout {
    align-items: start;
  }

  .chat-shell {
    min-height: 100dvh;
  }

  .chat-sidebar {
    width: 280px;
  }

  .chat-main > .guest-session-notice {
    margin: 14px clamp(18px, 4vw, 48px) 0;
  }
}

@media (max-width: 760px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  body {
    background-attachment: scroll;
  }

  .global-ambient {
    opacity: 0.5;
  }

  .landing-topbar,
  .global-topbar {
    min-height: 68px;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 112px;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
  }

  .mobile-menu {
    grid-column: 1;
    justify-self: start;
  }

  .mobile-topbar-brand {
    position: static;
    grid-column: 2;
    justify-self: center;
    max-width: 120px;
    transform: none;
    font-size: 1rem;
  }

  .mobile-topbar-brand .brand-logo {
    width: 30px;
    height: 30px;
  }

  .landing-page .mobile-topbar-brand {
    display: none;
  }

  .landing-topbar .mobile-lang-form,
  .global-topbar .mobile-lang-form {
    position: fixed !important;
    top: 13px !important;
    right: 12px !important;
    left: auto !important;
    grid-column: 3;
    justify-self: end;
    width: 102px;
    height: 42px;
    z-index: 9999;
  }

  .mobile-lang-form summary,
  .chat-mobile-language summary {
    width: 102px;
    min-width: 0;
    padding: 0 8px;
    overflow: hidden;
    gap: 5px;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 0.75rem;
  }

  .mobile-lang-form summary {
    height: 42px;
  }

  .mobile-lang-form summary span,
  .chat-mobile-language summary span {
    flex: 0 0 auto;
  }

  .mobile-lang-dropdown,
  .chat-mobile-language-menu {
    right: 0;
    width: min(210px, calc(100vw - 28px));
  }

  .mobile-menu-panel {
    position: fixed;
    top: 68px;
    left: 0;
    width: min(282px, 82vw);
    max-height: calc(100dvh - 82px);
    overflow-y: auto;
    padding: 20px 18px;
    border-radius: 0 22px 22px 0;
  }

  .about-shell,
  .account-shell,
  .legal-shell,
  .center-shell,
  .about-hero,
  .about-section,
  .about-feature-card,
  .about-ending,
  .account-card,
  .summary-card,
  .choice-panel,
  .auth-panel {
    max-width: 100%;
  }

  .about-hero h1,
  .about-section h2,
  .summary-title-block h1,
  .account-page-header h1,
  .auth-panel h1,
  .choice-panel h1 {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: normal;
    hyphens: auto;
  }

  .about-hero h1 {
    font-size: clamp(1.85rem, 7.4vw, 2.25rem) !important;
    line-height: 1.08;
    overflow-wrap: break-word;
    word-break: break-word;
  }

  .about-shell {
    width: calc(100vw - 28px) !important;
  }

  .about-hero,
  .about-section,
  .about-feature-card,
  .about-ending {
    width: 100%;
    min-width: 0;
  }

  .mobile-menu-panel a {
    min-height: 48px;
    font-size: 0.98rem;
  }

  .center-shell,
  .account-shell,
  .about-shell,
  .legal-shell {
    width: min(100% - 28px, 720px);
    padding-block: 24px 42px;
  }

  .account-page-header,
  .summary-title-block {
    margin-bottom: 18px;
  }

  .account-card,
  .summary-card,
  .choice-panel,
  .auth-panel,
  .about-hero,
  .about-section,
  .about-feature-card,
  .about-ending,
  .legal-card,
  .plan-card {
    border-radius: var(--elrion-radius-lg);
  }

  .account-layout,
  .plan-card-grid,
  .about-features {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .account-card,
  .summary-card,
  .choice-panel,
  .auth-panel,
  .about-hero,
  .about-section,
  .about-feature-card,
  .about-ending {
    padding: 20px 16px;
  }

  .account-table,
  .account-table-row,
  .account-table-head {
    min-width: 0;
  }

  .account-table-row,
  .account-table-head {
    grid-template-columns: 1fr;
  }

  .table-actions,
  .account-action-list,
  .summary-actions,
  .drawer-actions,
  .composer-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .table-actions > *,
  .account-action-list > *,
  .summary-actions > *,
  .drawer-actions > *,
  .composer-actions > * {
    width: 100%;
  }

  .pdf-chat-page .chat-mobile-topbar {
    height: 68px;
    padding: 12px 14px;
  }

  .chat-mobile-topbar-brand {
    max-width: 110px;
  }

  .chat-mobile-language summary {
    height: 42px;
    font-size: 0.8rem;
  }

  .pdf-chat-page .chat-shell {
    height: 100dvh;
    padding-top: 68px;
  }

  .pdf-chat-page .chat-main {
    height: calc(100dvh - 68px);
  }

  .pdf-chat-page.guest-chat-page .guest-session-notice {
    top: 68px;
    padding: 7px 12px;
  }

  .pdf-chat-page .chat-feed {
    gap: 12px;
    padding: 78px 12px 14px;
  }

  .pdf-chat-page.guest-chat-page .chat-feed {
    padding-top: 108px;
  }

  .pdf-chat-page:not(.guest-chat-page) .chat-feed {
    padding-top: 18px;
  }

  .bubble,
  .user .bubble,
  .assistant .bubble {
    max-width: 92%;
    padding: 12px 13px;
    border-radius: 15px;
  }

  .pdf-chat-page .composer {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  }

  .pdf-chat-page .composer textarea {
    min-height: 46px;
    padding: 12px 52px 12px 13px;
  }

  .chat-mobile-drawer {
    width: min(318px, 84vw);
    gap: 14px;
    padding: 24px 16px calc(16px + env(safe-area-inset-bottom));
    border-radius: 0 22px 22px 0;
  }

  .chat-mobile-settings-drawer {
    width: min(340px, 88vw);
    gap: 12px;
    padding: 20px 14px calc(16px + env(safe-area-inset-bottom));
    border-radius: 20px 0 0 20px;
  }

  .chat-mobile-menu-list a,
  .chat-mobile-recent-item {
    min-height: 50px;
  }

  .chat-mobile-recent {
    padding-top: 12px;
  }

  .mobile-profile-cover {
    min-height: 82px;
    border-radius: 16px;
    overflow: hidden;
  }

  .mobile-profile-cover img {
    height: 82px;
  }

  .mobile-profile-main {
    gap: 10px;
    margin-top: -30px;
  }

  .mobile-settings-guest .mobile-profile-main {
    margin-top: 0;
  }

  .mobile-profile-main .account-avatar-preview {
    width: 76px;
    height: 76px;
  }

  .mobile-settings-options a {
    min-height: 44px;
    font-size: 0.98rem;
  }
}

@media (max-width: 420px) {
  .landing-topbar,
  .global-topbar {
    grid-template-columns: 48px minmax(0, 1fr) 104px;
    padding-inline: 12px;
  }

  .mobile-lang-form summary,
  .chat-mobile-language summary,
  .landing-topbar .mobile-lang-form,
  .global-topbar .mobile-lang-form {
    width: 96px;
  }

  .mobile-topbar-brand,
  .chat-mobile-topbar-brand {
    font-size: 0.94rem;
  }

  .chat-mobile-topbar-brand .brand-logo,
  .mobile-topbar-brand .brand-logo {
    width: 28px;
    height: 28px;
  }

  .landing-shell {
    padding-inline: 14px;
  }
}

.checkout-mobile-pay-bar {
  display: none;
}

@media (max-width: 760px) {
  .pdf-chat-page .composer {
    --composer-control-height: 48px;
    grid-template-columns: minmax(0, 1fr) minmax(76px, max-content);
    align-items: end;
    gap: 8px;
    min-height: calc(64px + env(safe-area-inset-bottom));
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  }

  .pdf-chat-page .composer-input-wrap {
    min-width: 0;
    height: var(--composer-control-height);
  }

  .pdf-chat-page .composer textarea {
    min-height: var(--composer-control-height);
    max-height: 118px;
    padding: 12px 48px 12px 13px;
    border-radius: 15px;
  }

  .pdf-chat-page .composer-mic-button {
    right: 6px;
    bottom: 6px;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
  }

  .pdf-chat-page .composer-actions {
    display: flex;
    align-items: stretch;
    width: auto;
    min-width: 0;
  }

  .pdf-chat-page .composer-actions .primary-button {
    width: auto;
    min-width: 76px;
    min-height: var(--composer-control-height);
    padding: 0 14px;
    border-radius: 15px;
    white-space: nowrap;
  }

  .chat-shell {
    --composer-height: 64px;
  }

  .chat-mobile-settings-drawer {
    width: min(340px, calc(100vw - 22px));
    overflow-y: auto;
  }

  .mobile-settings-profile {
    padding: 0;
  }

  .mobile-profile-cover {
    display: none;
  }

  .mobile-profile-main {
    justify-items: stretch;
    gap: 12px;
    margin-top: 0;
    padding: 12px 0 14px;
    text-align: left;
  }

  .mobile-avatar-edit {
    grid-template-columns: 68px minmax(0, 1fr);
    align-items: center;
    justify-items: start;
    gap: 12px;
    width: 100%;
    min-height: 74px;
    padding: 8px;
    border: 1px solid rgba(110, 198, 255, 0.16);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.055);
  }

  .mobile-profile-main .account-avatar-preview {
    width: 58px;
    height: 58px;
    border: 2px solid rgba(244, 215, 122, 0.72);
    box-shadow: none;
  }

  .mobile-avatar-edit > span:last-child {
    max-width: 100%;
    color: #ffffff;
    font-size: 0.94rem;
    line-height: 1.2;
    overflow-wrap: anywhere;
  }

  .mobile-name-field input {
    padding: 0 12px;
  }

  .mobile-save-profile {
    width: 100%;
    min-height: 44px;
    border-radius: 14px;
  }

  .mobile-settings-options {
    gap: 4px;
    padding-top: 8px;
    border-top: 1px solid rgba(110, 198, 255, 0.14);
  }

  .mobile-settings-options a {
    grid-template-columns: 22px minmax(0, 1fr);
    min-height: 46px;
    padding: 0 8px;
  }

  .mobile-settings-options a span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.checkout-page {
    padding-bottom: calc(86px + env(safe-area-inset-bottom));
  }

  body.checkout-page .checkout-shell {
    width: min(100% - 24px, 720px);
    margin-top: 18px;
  }

  body.checkout-page .checkout-payment-card {
    padding: 18px 14px;
  }

  body.checkout-page .checkout-payment-grid {
    gap: 16px;
  }

  body.checkout-page .checkout-pay-form {
    display: none;
  }

  .checkout-mobile-pay-bar {
    position: fixed;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    left: 10px;
    z-index: 80;
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 0;
    min-height: 64px;
    padding: 10px;
    border: 1px solid rgba(244, 215, 122, 0.28);
    border-radius: 18px;
    background: rgba(7, 16, 31, 0.94);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(18px) saturate(140%);
  }

  .checkout-mobile-pay-bar span {
    display: none;
  }

  .checkout-mobile-pay-bar button {
    width: 100%;
    min-height: 44px;
    padding: 0 14px;
    border: 0;
    border-radius: 14px;
    color: #07101f;
    background: linear-gradient(135deg, #F4D77A, #D4AF37);
    font-weight: 900;
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}

@media (max-width: 760px) {
  .landing-topbar .mobile-language-menu,
  .global-topbar .mobile-language-menu,
  .mobile-menu-language-badge,
  .mobile-menu summary::after {
    content: none !important;
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  .landing-topbar .mobile-lang-form,
  .global-topbar .mobile-lang-form {
    display: block !important;
    position: fixed !important;
    top: 13px !important;
    right: 12px !important;
    left: auto !important;
    width: 102px !important;
    max-width: 102px !important;
    height: 42px !important;
    z-index: 10000 !important;
    overflow: visible !important;
  }

  .mobile-lang-form summary {
    width: 102px !important;
    max-width: 102px !important;
    height: 42px !important;
    padding: 0 8px !important;
    display: flex !important;
    gap: 5px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: 0.75rem !important;
  }

  body:not(.landing-page) .about-shell {
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 0 !important;
    padding: 24px 14px 42px !important;
  }

  body:not(.landing-page) .about-hero,
  body:not(.landing-page) .about-section,
  body:not(.landing-page) .about-feature-card,
  body:not(.landing-page) .about-ending {
    width: 100% !important;
    max-width: 100% !important;
    margin-inline: 0 !important;
  }

  body:not(.landing-page) .about-hero h1 {
    font-size: clamp(1.75rem, 7vw, 2.18rem) !important;
    line-height: 1.1 !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
  }

  body:not(.landing-page) .about-hero p,
  body:not(.landing-page) .about-section p,
  body:not(.landing-page) .about-feature-card p,
  body:not(.landing-page) .about-ending p {
    overflow-wrap: anywhere !important;
  }
}

@media (max-width: 760px) {
  .pdf-chat-page .composer {
    --composer-control-height: 46px;
    width: 100%;
    max-width: 100vw;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 68px !important;
    align-items: end;
    gap: 8px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom)) !important;
    overflow: hidden;
  }

  .pdf-chat-page .composer-input-wrap {
    width: 100%;
    min-width: 0;
    height: auto;
    min-height: var(--composer-control-height);
    display: block;
    overflow: visible;
  }

  .pdf-chat-page .composer textarea {
    width: 100%;
    min-width: 0;
    min-height: var(--composer-control-height);
    max-height: 112px;
    padding: 11px 46px 11px 13px !important;
    border-radius: 14px;
    overflow-y: auto;
  }

  .pdf-chat-page .composer-mic-button {
    right: 6px !important;
    bottom: 5px !important;
    width: 36px !important;
    height: 36px !important;
    min-height: 36px;
    border-radius: 12px;
  }

  .pdf-chat-page .composer-actions {
    width: 68px !important;
    min-width: 68px;
    display: block !important;
  }

  .pdf-chat-page .composer-actions .primary-button {
    width: 68px !important;
    min-width: 0 !important;
    min-height: var(--composer-control-height);
    padding: 0 8px !important;
    border-radius: 14px;
    font-size: 0.9rem;
    line-height: 1;
    white-space: nowrap;
  }

  .chat-mobile-settings-drawer {
    width: min(336px, calc(100vw - 18px)) !important;
    grid-template-rows: auto auto minmax(0, 1fr);
    gap: 14px;
    padding: 20px 14px calc(16px + env(safe-area-inset-bottom)) !important;
    overflow-y: auto;
  }

  .mobile-settings-profile {
    padding: 0 !important;
  }

  .mobile-profile-cover,
  .mobile-cover-edit,
  #mobileCoverInput {
    display: none !important;
  }

  .mobile-profile-main {
    margin-top: 0 !important;
    padding: 12px;
    display: grid;
    grid-template-columns: 1fr;
    justify-items: stretch;
    gap: 12px;
    border: 1px solid rgba(110, 198, 255, 0.16);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.055);
    text-align: left;
  }

  .mobile-avatar-edit {
    width: 100%;
    min-height: 64px;
    display: grid !important;
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: center;
    justify-items: start;
    gap: 12px;
    padding: 0;
    border: 0 !important;
    background: transparent !important;
  }

  .mobile-profile-main .account-avatar-preview {
    width: 76px !important;
    height: 58px !important;
    border: 2px solid rgba(244, 215, 122, 0.68) !important;
    box-shadow: none !important;
  }

  .mobile-avatar-edit > span:last-child {
    min-width: 0;
    color: #ffffff;
    font-size: 0.94rem;
    font-weight: 800;
    line-height: 1.2;
    overflow-wrap: anywhere;
  }

  .mobile-name-field {
    gap: 6px;
    font-size: 0.82rem;
  }

  .mobile-name-field input {
    min-height: 42px;
    padding: 0 12px !important;
  }

  .mobile-save-profile {
    width: 100%;
    min-height: 44px;
    border-radius: 14px !important;
  }

  .mobile-settings-options {
    gap: 5px !important;
    padding-top: 10px;
    border-top: 1px solid rgba(110, 198, 255, 0.14);
  }

  .mobile-settings-options a {
    display: grid !important;
    grid-template-columns: 24px minmax(0, 1fr);
    min-height: 46px;
    align-items: center;
    gap: 12px;
    padding: 0 10px !important;
    border-radius: 13px;
  }

  .mobile-settings-options a span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.checkout-page .checkout-pay-form {
    display: none !important;
  }

  .checkout-mobile-pay-bar {
    position: fixed !important;
    right: 10px !important;
    bottom: calc(10px + env(safe-area-inset-bottom)) !important;
    left: 10px !important;
    z-index: 10000 !important;
    display: grid !important;
  }
}

/* Mobile UX corrections: compact language codes, non-floating checkout CTA, and darker panels. */
.mobile-menu-section-title {
  margin: 6px 0 4px;
  color: #F4D77A;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

.general-action-form {
  margin: 0;
}

.general-action-card {
  min-height: 118px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(110, 198, 255, 0.22);
  border-radius: 16px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.035)),
    rgba(12, 16, 50, 0.78);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

button.general-action-card {
  width: 100%;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.general-action-card:hover {
  border-color: rgba(244, 215, 122, 0.48);
  background:
    linear-gradient(135deg, rgba(244, 215, 122, 0.15), rgba(255, 255, 255, 0.045)),
    rgba(12, 16, 50, 0.84);
  transform: translateY(-1px);
}

.general-action-card svg {
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid rgba(244, 215, 122, 0.24);
  border-radius: 14px;
  color: #F4D77A;
  background: rgba(244, 215, 122, 0.10);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.general-action-card span {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.general-action-card strong {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 860;
}

.general-action-card small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.84rem;
  line-height: 1.35;
}

.general-action-card.danger {
  border-color: rgba(255, 124, 124, 0.28);
}

.general-action-card.danger svg {
  color: #ffb4b4;
  border-color: rgba(255, 124, 124, 0.28);
  background: rgba(255, 124, 124, 0.10);
}

.checkout-mobile-flow {
  display: none;
}

@media (max-width: 760px) {
  .landing-topbar::before,
  .global-topbar::before,
  .chat-mobile-topbar::before {
    content: none !important;
    display: none !important;
  }

  .mobile-menu-panel {
    width: min(304px, calc(100vw - 38px)) !important;
    max-height: calc(100dvh - 84px);
  }

  .mobile-menu-panel a {
    min-height: 50px !important;
  }

  .landing-topbar .mobile-lang-form,
  .global-topbar .mobile-lang-form,
  .mobile-lang-form summary,
  .chat-mobile-language summary {
    width: 76px !important;
    max-width: 76px !important;
  }

  .landing-topbar .mobile-lang-form,
  .global-topbar .mobile-lang-form {
    display: block !important;
    height: 42px !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .mobile-lang-form summary,
  .chat-mobile-language summary,
  .landing-language-menu summary,
  .global-language-menu summary {
    min-height: 42px !important;
    height: 42px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding-inline: 0 !important;
    color: #F4D77A !important;
    border: 1px solid rgba(244, 215, 122, 0.58) !important;
    background: rgba(4, 10, 29, 0.94) !important;
    font-size: 0.82rem !important;
    font-weight: 920 !important;
    letter-spacing: 0 !important;
  }

  .mobile-lang-form summary span,
  .chat-mobile-language summary span,
  .landing-language-menu summary span,
  .global-language-menu summary span {
    width: auto !important;
    display: inline !important;
    font-weight: 920;
  }

  .mobile-lang-dropdown,
  .chat-mobile-language-menu,
  .landing-language-dropdown,
  .global-language-menu .landing-language-dropdown {
    width: min(122px, calc(100vw - 28px)) !important;
    min-width: 0 !important;
  }

  .mobile-lang-dropdown button,
  .chat-mobile-language-menu button,
  .landing-language-dropdown button {
    justify-content: center;
    min-height: 38px;
    padding-inline: 0 !important;
    font-size: 0.86rem;
    font-weight: 900;
  }

  .auth-page .center-shell,
  body:not(.landing-page) .center-shell {
    background: transparent !important;
  }

  .password-reset-page .center-shell {
    min-height: calc(100svh - 69px) !important;
    align-items: start !important;
    padding: 28px 16px calc(28px + env(safe-area-inset-bottom)) !important;
  }

  .password-reset-card {
    width: 100% !important;
    padding: 24px 16px 20px !important;
    border-radius: 18px !important;
  }

  .password-reset-card h1 {
    margin-bottom: 8px !important;
    font-size: 1.72rem !important;
    line-height: 1.06 !important;
  }

  .password-reset-card .muted {
    margin-bottom: 0 !important;
    font-size: 0.92rem !important;
    line-height: 1.45 !important;
  }

  .password-reset-step-form {
    gap: 13px !important;
    margin-top: 18px !important;
  }

  .auth-forgot-link {
    margin-top: -8px !important;
    font-size: 0.86rem !important;
  }

  .reset-code-input {
    min-height: 54px !important;
    font-size: 1.2rem !important;
  }

  .password-reset-secondary-actions {
    gap: 8px !important;
    margin-top: 14px !important;
  }

  .password-reset-success-icon {
    width: 50px !important;
    height: 50px !important;
    margin-bottom: 14px !important;
  }

  body:not(.landing-page) .auth-panel,
  body:not(.landing-page) .account-card,
  body:not(.landing-page) .summary-card,
  body:not(.landing-page) .choice-panel,
  body:not(.landing-page) .legal-card,
  body:not(.landing-page) .plan-card,
  body:not(.landing-page) .checkout-sidebar,
  body:not(.landing-page) .checkout-payment-card,
  body:not(.landing-page) .checkout-security-card,
  body:not(.landing-page) .checkout-plan-panel,
  body:not(.landing-page) .checkout-form-preview,
  body:not(.landing-page) .checkout-trust-row div {
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.035)),
      radial-gradient(circle at 86% 6%, rgba(244, 215, 122, 0.16), transparent 36%),
      rgba(12, 16, 50, 0.78) !important;
    color: #ffffff !important;
  }

  .checkbox-field.auth-legal {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    padding: 12px;
    border: 1px solid rgba(110, 198, 255, 0.22);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.055);
  }

  .checkbox-field.auth-legal input {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    min-height: 24px;
    margin: 0;
    display: grid;
    place-items: center;
    border: 1.5px solid rgba(244, 215, 122, 0.68);
    border-radius: 8px;
    background: rgba(4, 10, 29, 0.72);
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: none;
  }

  .checkbox-field.auth-legal input::after {
    content: none;
  }

  .checkbox-field.auth-legal input:checked {
    border-color: transparent;
    background-color: #F4D77A;
    background-image:
      url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 12.4l4.2 4.2L19 6.8' fill='none' stroke='%2307101f' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"),
      linear-gradient(135deg, #F4D77A, #D4AF37);
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
    background-size: 18px 18px, cover;
  }

  .checkbox-field.auth-legal span {
    min-width: 0;
    color: #ffffff;
    font-size: 0.88rem;
    line-height: 1.45;
  }

  .checkbox-field.auth-legal a {
    color: #F4D77A !important;
    font-weight: 850;
  }

  body.checkout-page {
    padding-bottom: 0 !important;
  }

  body.checkout-page .checkout-shell {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    width: min(100% - 24px, 720px) !important;
    margin-bottom: calc(18px + env(safe-area-inset-bottom)) !important;
  }

  body.checkout-page .checkout-pay-form {
    display: none !important;
  }

  body.checkout-page .checkout-mobile-pay-bar {
    position: static !important;
    inset: auto !important;
    z-index: 1 !important;
    order: 99;
    display: grid !important;
    width: 100%;
    margin: 0;
    min-height: 62px;
    padding: 10px;
  }

  body.checkout-page .checkout-mobile-pay-bar button {
    min-height: 46px;
  }

  body.checkout-page .checkout-shell {
    gap: 12px !important;
    width: min(100% - 20px, 560px) !important;
    margin-top: 10px !important;
  }

  body.checkout-page .checkout-sidebar,
  body.checkout-page .checkout-main-panel,
  body.checkout-page .checkout-payment-card,
  body.checkout-page .checkout-plan-panel,
  body.checkout-page .checkout-security-card,
  body.checkout-page .checkout-form-preview {
    border-radius: 14px !important;
    box-shadow: none !important;
  }

  body.checkout-page .checkout-sidebar {
    gap: 12px !important;
    padding: 14px !important;
  }

  body.checkout-page .checkout-brand {
    min-height: 34px;
  }

  body.checkout-page .checkout-back {
    width: fit-content;
    min-height: 34px;
    padding: 0 10px;
    font-size: 0.82rem;
  }

  body.checkout-page .checkout-upgrade-copy {
    gap: 4px !important;
    margin: 0 !important;
  }

  body.checkout-page .checkout-upgrade-copy h1 {
    font-size: 1.5rem !important;
    line-height: 1.08 !important;
  }

  body.checkout-page .checkout-plan-panel {
    padding: 12px !important;
  }

  body.checkout-page .checkout-subscription-facts {
    gap: 6px !important;
    margin: 10px 0 !important;
  }

  body.checkout-page .checkout-subscription-facts div {
    min-height: 34px;
    padding: 7px 0 !important;
  }

  body.checkout-page .checkout-feature-list {
    gap: 7px !important;
  }

  body.checkout-page .checkout-feature-list li {
    min-height: auto !important;
    padding: 9px !important;
    border-radius: 12px !important;
  }

  body.checkout-page .checkout-feature-list small,
  body.checkout-page .checkout-security-card,
  body.checkout-page .checkout-trust-row {
    display: none !important;
  }

  body.checkout-page .checkout-main-panel {
    gap: 10px !important;
  }

  body.checkout-page .checkout-steps {
    gap: 6px !important;
    padding: 0 !important;
  }

  body.checkout-page .checkout-steps div {
    min-height: 42px !important;
    padding: 8px 6px !important;
    border-radius: 12px !important;
  }

  body.checkout-page .checkout-steps span {
    width: 24px !important;
    height: 24px !important;
    font-size: 0.78rem !important;
  }

  body.checkout-page .checkout-steps strong {
    font-size: 0.72rem !important;
  }

  body.checkout-page .checkout-payment-card {
    padding: 14px !important;
  }

  body.checkout-page .checkout-payment-heading {
    gap: 10px !important;
    align-items: start !important;
  }

  body.checkout-page .checkout-payment-heading h2 {
    font-size: 1.12rem !important;
    line-height: 1.15 !important;
  }

  body.checkout-page .checkout-payment-heading > span {
    min-height: 30px !important;
    padding: 0 9px !important;
    font-size: 0.72rem !important;
  }

  body.checkout-page .checkout-payment-grid {
    display: block !important;
  }

  body.checkout-page .checkout-card-preview-wrap,
  body.checkout-page .checkout-card-visual {
    display: none !important;
  }

  body.checkout-page .checkout-form-preview {
    gap: 10px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
  }

  body.checkout-page .checkout-encrypted {
    grid-template-columns: 30px minmax(0, 1fr);
    min-height: auto !important;
    padding: 10px !important;
    border-radius: 12px !important;
  }

  body.checkout-page .checkout-legal {
    margin: 0 !important;
    font-size: 0.78rem !important;
    line-height: 1.45 !important;
  }

  body.checkout-page .checkout-mobile-pay-bar {
    min-height: 58px !important;
    padding: 8px !important;
    border-radius: 14px !important;
  }

  body.checkout-page .checkout-mobile-pay-bar button {
    min-height: 44px !important;
    border-radius: 12px !important;
    white-space: normal !important;
    line-height: 1.15 !important;
  }

  body.checkout-page .checkout-shell {
    gap: 10px !important;
    width: min(100% - 18px, 520px) !important;
  }

  body.checkout-page .checkout-sidebar,
  body.checkout-page .checkout-main-panel {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
  }

  body.checkout-page .checkout-brand,
  body.checkout-page .checkout-steps,
  body.checkout-page .checkout-feature-list,
  body.checkout-page .checkout-security-card,
  body.checkout-page .checkout-trust-row,
  body.checkout-page .checkout-payment-heading > span {
    display: none !important;
  }

  body.checkout-page .checkout-back {
    margin-bottom: 2px !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.08) !important;
  }

  body.checkout-page .checkout-upgrade-copy {
    padding: 2px 2px 0 !important;
  }

  body.checkout-page .checkout-upgrade-copy p:first-child {
    display: none !important;
  }

  body.checkout-page .checkout-upgrade-copy h1 {
    font-size: 1.42rem !important;
  }

  body.checkout-page .checkout-upgrade-copy p:last-child {
    margin-top: 4px !important;
    font-size: 0.9rem !important;
  }

  body.checkout-page .checkout-plan-panel {
    margin-top: 4px !important;
    padding: 12px !important;
  }

  body.checkout-page .checkout-subscription-facts {
    display: none !important;
  }

  body.checkout-page .checkout-plan-panel p {
    margin: 8px 0 0 !important;
    font-size: 0.8rem !important;
    line-height: 1.35 !important;
  }

  body.checkout-page .checkout-main-panel {
    gap: 0 !important;
  }

  body.checkout-page .checkout-payment-card {
    padding: 12px !important;
  }

  body.checkout-page .checkout-payment-heading {
    display: block !important;
  }

  body.checkout-page .checkout-payment-heading .eyebrow {
    margin-bottom: 5px !important;
  }

  body.checkout-page .checkout-payment-heading p:last-child {
    margin-top: 6px !important;
    font-size: 0.86rem !important;
    line-height: 1.38 !important;
  }

  body.checkout-page .checkout-encrypted {
    margin-top: 10px !important;
  }

  body.checkout-page .checkout-mobile-pay-bar {
    margin-top: 2px !important;
  }

  body.checkout-page .checkout-shell {
    gap: 14px !important;
    width: min(100% - 20px, 560px) !important;
    margin-top: 12px !important;
  }

  body.checkout-page .checkout-sidebar,
  body.checkout-page .checkout-main-panel,
  body.checkout-page .checkout-payment-card,
  body.checkout-page .checkout-plan-panel,
  body.checkout-page .checkout-security-card {
    border: 1px solid rgba(110, 198, 255, 0.18) !important;
    border-radius: 16px !important;
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.035)),
      rgba(12, 16, 50, 0.80) !important;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.18) !important;
  }

  body.checkout-page .checkout-sidebar {
    display: grid !important;
    gap: 12px !important;
    padding: 14px !important;
  }

  body.checkout-page .checkout-main-panel {
    display: grid !important;
    gap: 12px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body.checkout-page .checkout-brand {
    display: flex !important;
    min-height: 34px !important;
  }

  body.checkout-page .checkout-back {
    margin: 0 !important;
    border: 1px solid rgba(244, 215, 122, 0.22) !important;
    border-radius: 999px !important;
    background: rgba(244, 215, 122, 0.09) !important;
  }

  body.checkout-page .checkout-upgrade-copy {
    gap: 5px !important;
    padding: 0 !important;
  }

  body.checkout-page .checkout-upgrade-copy p:first-child {
    display: block !important;
    margin: 0 !important;
    font-size: 0.72rem !important;
  }

  body.checkout-page .checkout-upgrade-copy h1 {
    font-size: 1.55rem !important;
    line-height: 1.08 !important;
  }

  body.checkout-page .checkout-upgrade-copy p:last-child {
    margin: 0 !important;
    font-size: 0.9rem !important;
    line-height: 1.38 !important;
  }

  body.checkout-page .checkout-plan-panel {
    display: grid !important;
    gap: 10px !important;
    margin: 0 !important;
    padding: 12px !important;
  }

  body.checkout-page .checkout-subscription-facts {
    display: grid !important;
    gap: 6px !important;
    margin: 0 !important;
  }

  body.checkout-page .checkout-subscription-facts div {
    display: flex !important;
    justify-content: space-between;
    gap: 12px;
    min-height: 30px !important;
    padding: 6px 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  body.checkout-page .checkout-plan-panel p {
    margin: 0 !important;
    font-size: 0.8rem !important;
    line-height: 1.36 !important;
  }

  body.checkout-page .checkout-feature-list {
    display: grid !important;
    gap: 7px !important;
  }

  body.checkout-page .checkout-feature-list li {
    grid-template-columns: 24px minmax(0, 1fr) !important;
    align-items: start !important;
    min-height: auto !important;
    padding: 9px !important;
    border-radius: 12px !important;
  }

  body.checkout-page .checkout-feature-list small {
    display: block !important;
    margin-top: 2px !important;
    font-size: 0.76rem !important;
    line-height: 1.28 !important;
  }

  body.checkout-page .checkout-security-card {
    display: grid !important;
    grid-template-columns: 30px minmax(0, 1fr) !important;
    gap: 10px !important;
    padding: 11px !important;
  }

  body.checkout-page .checkout-security-card p {
    margin: 2px 0 0 !important;
    font-size: 0.78rem !important;
    line-height: 1.32 !important;
  }

  body.checkout-page .checkout-steps {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 7px !important;
    padding: 0 !important;
  }

  body.checkout-page .checkout-steps div {
    display: grid !important;
    justify-items: center;
    gap: 4px !important;
    min-height: 46px !important;
    padding: 7px 4px !important;
    border-radius: 12px !important;
  }

  body.checkout-page .checkout-steps strong {
    display: block !important;
    max-width: 100%;
    font-size: 0.7rem !important;
    line-height: 1.1 !important;
    text-align: center;
    white-space: normal !important;
  }

  body.checkout-page .checkout-payment-card {
    padding: 14px !important;
  }

  body.checkout-page .checkout-payment-heading {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 10px !important;
    align-items: start !important;
  }

  body.checkout-page .checkout-payment-heading > span {
    display: inline-flex !important;
    min-height: 30px !important;
    padding: 0 9px !important;
    font-size: 0.72rem !important;
  }

  body.checkout-page .checkout-payment-heading h2 {
    font-size: 1.16rem !important;
    line-height: 1.16 !important;
  }

  body.checkout-page .checkout-payment-heading p:last-child {
    font-size: 0.86rem !important;
    line-height: 1.38 !important;
  }

  body.checkout-page .checkout-card-preview-wrap,
  body.checkout-page .checkout-card-visual {
    display: none !important;
  }

  body.checkout-page .checkout-payment-grid {
    display: block !important;
  }

  body.checkout-page .checkout-form-preview {
    display: grid !important;
    gap: 10px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body.checkout-page .checkout-encrypted {
    display: grid !important;
    grid-template-columns: 30px minmax(0, 1fr) !important;
    margin-top: 12px !important;
    padding: 10px !important;
    border-radius: 12px !important;
  }

  body.checkout-page .checkout-trust-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }

  body.checkout-page .checkout-trust-row div {
    display: grid !important;
    gap: 3px !important;
    min-height: 64px !important;
    padding: 10px !important;
    border-radius: 12px !important;
  }

  body.checkout-page .checkout-trust-row span {
    display: block !important;
    font-size: 0.72rem !important;
    line-height: 1.25 !important;
  }

  body.checkout-page {
    padding-bottom: calc(28px + env(safe-area-inset-bottom)) !important;
  }

  body.checkout-page .checkout-shell {
    display: block !important;
    width: min(100% - 24px, 520px) !important;
    margin: 10px auto calc(24px + env(safe-area-inset-bottom)) !important;
  }

  body.checkout-page .checkout-sidebar,
  body.checkout-page .checkout-main-panel,
  body.checkout-page > .checkout-mobile-pay-bar,
  body.checkout-page .checkout-shell > .checkout-mobile-pay-bar {
    display: none !important;
  }

  .checkout-mobile-flow {
    display: grid;
    gap: 14px;
  }

  .checkout-mobile-back {
    width: fit-content;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    padding: 0 2px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.88rem;
    font-weight: 800;
  }

  .checkout-mobile-hero {
    display: grid;
    gap: 6px;
    padding: 0 2px 2px;
  }

  .checkout-mobile-hero h1 {
    margin: 0;
    color: #ffffff;
    font-size: 1.62rem;
    line-height: 1.08;
    font-weight: 920;
  }

  .checkout-mobile-hero p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.98rem;
    font-weight: 820;
  }

  .checkout-mobile-price {
    display: flex;
    align-items: baseline;
    gap: 7px;
    margin-top: 2px;
  }

  .checkout-mobile-price strong {
    color: #F4D77A;
    font-size: 2.65rem;
    line-height: 0.95;
    font-weight: 950;
  }

  .checkout-mobile-price span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.95rem;
    font-weight: 800;
  }

  .checkout-mobile-hero small {
    color: rgba(255, 255, 255, 0.64);
    font-size: 0.82rem;
    line-height: 1.35;
  }

  .checkout-mobile-benefits {
    display: grid;
    gap: 11px;
    padding: 14px;
    border: 1px solid rgba(110, 198, 255, 0.18);
    border-radius: 16px;
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.035)),
      rgba(12, 16, 50, 0.80);
  }

  .checkout-mobile-benefits h2 {
    margin: 0;
    color: #ffffff;
    font-size: 1rem;
    line-height: 1.15;
    font-weight: 900;
  }

  .checkout-mobile-benefits ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .checkout-mobile-benefits li {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
  }

  .checkout-mobile-benefits li > span {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #07101f;
    background: linear-gradient(135deg, #F4D77A, #D4AF37);
    font-size: 0.82rem;
    font-weight: 950;
  }

  .checkout-mobile-benefits strong {
    display: block;
    color: #ffffff;
    font-size: 0.91rem;
    line-height: 1.2;
    font-weight: 860;
  }

  .checkout-mobile-benefits small {
    display: block;
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.64);
    font-size: 0.78rem;
    line-height: 1.32;
  }

  .checkout-mobile-security {
    display: grid;
    gap: 4px;
    padding: 11px 12px;
    border: 1px solid rgba(244, 215, 122, 0.16);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.055);
  }

  .checkout-mobile-security strong {
    color: #ffffff;
    font-size: 0.88rem;
    line-height: 1.25;
    font-weight: 860;
  }

  .checkout-mobile-security p {
    margin: 0;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.76rem;
    line-height: 1.32;
  }

  .checkout-mobile-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .checkout-mobile-steps div {
    min-height: 40px;
    display: grid;
    justify-items: center;
    gap: 3px;
    padding: 7px 4px;
    border: 1px solid rgba(110, 198, 255, 0.14);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.045);
  }

  .checkout-mobile-steps span {
    width: 21px;
    height: 21px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #07101f;
    background: linear-gradient(135deg, #F4D77A, #D4AF37);
    font-size: 0.72rem;
    font-weight: 920;
  }

  .checkout-mobile-steps strong {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.68rem;
    line-height: 1.08;
    text-align: center;
    font-weight: 780;
  }

  .checkout-mobile-flow-form {
    display: grid;
    margin: 0;
  }

  .checkout-mobile-flow-form button {
    width: 100%;
    min-height: 54px;
    border: 0;
    border-radius: 999px;
    color: #07101f;
    background: linear-gradient(135deg, #F4D77A, #D4AF37);
    box-shadow: 0 16px 34px rgba(212, 175, 55, 0.22);
    font-size: 0.98rem;
    font-weight: 950;
  }

  .checkout-mobile-fineprint {
    display: grid;
    justify-items: center;
    gap: 5px;
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
    color: rgba(255, 255, 255, 0.56);
    font-size: 0.76rem;
    line-height: 1.25;
    text-align: center;
  }

  .checkout-mobile-fineprint p {
    margin: 0;
  }

  .checkout-mobile-fineprint nav {
    display: inline-flex;
    align-items: center;
    gap: 7px;
  }

  .checkout-mobile-fineprint a {
    color: rgba(244, 215, 122, 0.78) !important;
    font-weight: 800;
  }

  .password-reset-page .center-shell {
    width: min(342px, calc(100% - 32px)) !important;
    max-width: 342px !important;
    margin-left: 16px !important;
    margin-right: auto !important;
    padding-inline: 0 !important;
  }

  .password-reset-page .password-reset-card {
    width: 100% !important;
    max-width: 100% !important;
    margin-inline: auto !important;
  }

  .message-actions {
    width: fit-content;
    max-width: 100%;
    min-height: 36px;
    margin-top: 8px;
    padding: 3px;
    border: 1px solid rgba(110, 198, 255, 0.22);
    border-radius: 12px;
    background: rgba(4, 10, 29, 0.34);
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
  }

  .message-action-button,
  .message-voice-button,
  .message-regenerate-button {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    min-height: 34px;
    border-radius: 10px;
  }

  .message-action-button svg,
  .message-copy-button svg,
  .message-regenerate-button svg,
  .message-actions .message-voice-button svg {
    width: 16px;
    height: 16px;
  }

  .general-action-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .general-action-card {
    min-height: 84px;
    grid-template-columns: 38px minmax(0, 1fr);
    padding: 14px;
    border-radius: 14px;
  }

  .general-action-card svg {
    width: 38px;
    height: 38px;
    padding: 9px;
    border-radius: 12px;
  }
}
