/*
 * DIRECTION: Glazgram's structural UI system adapted to ABCbot without Glazgram's branded eye imagery.
 * MEMORY TEST: A compact Telegram font utility with a solid blue profile, white rounded system surfaces, and floating tab bar.
 * VIEWPORT: Mobile-first 390x844 shell capped at 480px; primary actions remain above or within the natural scroll before the floating navigation.
 * FORM: Established product interface, inherited directly from the user-pinned Glazgram reference.
 * FINISH: unreviewed and undocumented is unfinished; this build ends with the finish review, the verdict, and DESIGN.md
 */

:root {
  color-scheme: light;
  --font-family: "SF Pro", -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", sans-serif;
  --font-family-rounded: "SF Pro Rounded", var(--font-family);
  --accent: #008bff;
  --background: #f2f2f7;
  --profile-background: #4890bf;
  --surface: #fff;
  --text: #000;
  --secondary: rgba(60, 60, 67, 0.6);
  --separator: #e6e6e6;
  --danger: #ff383c;
  --success: #34c759;
  --system-safe-top: max(env(safe-area-inset-top, 0px), var(--tg-safe-area-inset-top, 0px));
  --system-safe-bottom: max(env(safe-area-inset-bottom, 0px), var(--tg-safe-area-inset-bottom, 0px));
  --safe-top: calc(var(--system-safe-top) + var(--tg-content-safe-area-inset-top, 0px));
  --safe-bottom: calc(var(--system-safe-bottom) + var(--tg-content-safe-area-inset-bottom, 0px));
  --tab-height: 102px;
  --top-bar-offset: calc(var(--safe-top) + 8px);
  --standard-header-height: calc(54px + var(--top-bar-offset));
  --ui-enter-duration: 240ms;
  font-family: var(--font-family);
  font-optical-sizing: auto;
  font-synthesis: none;
  font-variation-settings: "wdth" 100;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  width: 100%;
  min-width: 320px;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--background);
  touch-action: pan-x pan-y;
}

body {
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

button {
  border: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
  appearance: none;
}

button:disabled {
  cursor: default;
  opacity: 0.45;
}

button:focus {
  outline: none;
}

html[data-keyboard-navigation] button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 38%, transparent);
  outline-offset: 2px;
}

img {
  display: block;
}

[hidden] {
  display: none !important;
}

.app-shell {
  position: relative;
  width: min(100%, 480px);
  height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--background);
}

.screen,
.app-screen {
  width: 100%;
  height: 100%;
}

.screen {
  display: none;
}

.screen.is-active {
  display: block;
  animation: ui-fade-in var(--ui-enter-duration) ease-out;
}

.app-screen {
  position: relative;
  overflow: hidden;
  background: var(--background);
}

.screen-scroll {
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-width: none;
}

.screen-scroll::-webkit-scrollbar {
  display: none;
}

.center-header,
.plain-header {
  display: flex;
  align-items: center;
  height: var(--standard-header-height);
  min-height: var(--standard-header-height);
  padding: var(--top-bar-offset) 16px 0;
}

.center-header {
  justify-content: center;
}

.center-header h1,
.plain-header h1 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 22px;
}

.plain-header {
  position: relative;
  justify-content: center;
}

.plain-header button {
  position: absolute;
  top: calc(5px + var(--top-bar-offset));
  left: 16px;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--accent);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
}

.ui-icon {
  display: block;
  width: 24px;
  height: 24px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.group-card {
  overflow: hidden;
  border-radius: 26px;
  background: var(--surface);
}

.section-caption {
  margin: 0;
  color: var(--secondary);
  font-size: 13px;
  line-height: 18px;
}

.section-caption.centered {
  color: var(--text);
  text-align: center;
}

.primary-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 17px;
  font-weight: 600;
}

.primary-button:active:not(:disabled) {
  filter: brightness(0.94);
}

.fonts-content {
  height: calc(100% - var(--standard-header-height));
  padding: 16px 16px calc(var(--tab-height) + var(--safe-bottom) + 24px);
}

.style-list {
  margin-bottom: 16px;
}

.font-group + .font-group {
  margin-top: 24px;
}

.font-group-caption {
  padding: 0 16px 8px;
}

.style-row {
  position: relative;
  display: grid;
  align-items: center;
  width: 100%;
  min-height: 62px;
  padding: 10px 16px;
  grid-template-columns: minmax(0, 1fr) 24px;
  gap: 12px;
  background: transparent;
  text-align: left;
}

.style-row + .style-row::before {
  position: absolute;
  top: 0;
  right: 16px;
  left: 16px;
  height: 1px;
  background: var(--separator);
  content: "";
}

.style-row__content {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 34px;
  overflow: hidden;
  color: #333;
  font-size: 20px;
  line-height: 26px;
  white-space: nowrap;
}

.style-row.is-locked .style-row__content {
  color: var(--secondary);
}

.letter-img {
  width: auto;
  height: 30px;
  object-fit: contain;
}

.selection-indicator {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 2px solid #c7c7cc;
  border-radius: 50%;
}

.style-row.is-selected .selection-indicator {
  border: 6px solid var(--accent);
}

.lock-indicator {
  position: relative;
  width: 20px;
  height: 17px;
  margin-left: 2px;
  border-radius: 4px;
  background: #c7c7cc;
}

.lock-indicator::before {
  position: absolute;
  top: -8px;
  left: 4px;
  width: 12px;
  height: 10px;
  border: 2px solid #c7c7cc;
  border-bottom: 0;
  border-radius: 7px 7px 0 0;
  content: "";
}

.save-style-button {
  margin-top: 16px;
}

.state {
  padding: 24px 16px;
  color: var(--secondary);
  font-size: 15px;
  line-height: 20px;
  text-align: center;
}

.profile-screen {
  background: linear-gradient(
    to bottom,
    var(--profile-background) 0 calc(184px + var(--top-bar-offset)),
    var(--background) calc(184px + var(--top-bar-offset)) 100%
  );
}

.profile-scroll {
  height: 100%;
}

.profile-hero {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  height: calc(184px + var(--top-bar-offset));
  min-height: calc(184px + var(--top-bar-offset));
  padding: 0 16px 16px;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: var(--profile-background);
}

.profile-avatar {
  position: relative;
  display: grid;
  width: 104px;
  height: 104px;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: #08c95a;
  box-shadow: 0 0 64px rgba(255, 255, 255, 0.7);
  color: #fff;
  font-size: 38px;
  font-weight: 700;
}

.profile-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}

.profile-avatar img.loaded {
  opacity: 1;
}

.profile-name {
  position: relative;
  margin-top: 10px;
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  line-height: 34px;
  letter-spacing: 0.38px;
}

.premium-mark {
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-left: 3px;
  vertical-align: -2px;
}

.profile-username {
  position: relative;
  min-height: 20px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 15px;
  font-weight: 510;
  line-height: 20px;
}

.profile-content {
  display: flex;
  padding: 16px 16px calc(var(--tab-height) + var(--safe-bottom) + 24px);
  flex-direction: column;
  gap: 32px;
  background: var(--background);
}

.subscription-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 16px;
  border-radius: 26px;
  background: var(--surface);
  font-size: 17px;
  letter-spacing: -0.43px;
}

.subscription-label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-check {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
}

.status-check svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.subscription-card.inactive .status-check {
  background: #8e8e93;
}

.subscription-expiry {
  color: var(--accent);
  font-size: 15px;
  text-align: right;
}

.days-counter {
  display: flex;
  align-items: center;
  padding: 0;
  flex-direction: column;
  gap: 8px;
  font-size: 15px;
  line-height: 20px;
}

.days-counter strong {
  font-family: var(--font-family-rounded);
  font-size: 48px;
  line-height: 58px;
}

.plans-section {
  margin: 0;
}

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

.plan-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  min-width: 0;
  min-height: 87px;
  padding: 16px;
  flex-direction: column;
  gap: 6px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  text-align: left;
}

.plan-card:active:not(:disabled) {
  background: #fff;
}

.plan-price {
  color: #333;
  font-family: var(--font-family-rounded);
  font-size: 24px;
  font-weight: 600;
  white-space: nowrap;
}

.plan-price small {
  padding: 2px 4px;
  border-radius: 9px;
  background: var(--danger);
  color: #fff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 510;
  vertical-align: 3px;
}

.plan-duration {
  display: flex;
  align-items: center;
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
  gap: 4px;
}

.plan-featured-icon {
  width: 16px;
  height: 16px;
  padding: 0.67px 2.67px;
  flex: none;
}

.plan-chevron {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 8px;
  height: 20px;
}

.ad-task-card {
  display: grid;
  align-items: center;
  width: 100%;
  height: 64px;
  padding: 11px 16px;
  grid-template-columns: 22px minmax(0, 1fr) 8px;
  gap: 12px;
  border-radius: 26px;
  background: var(--surface);
  text-align: left;
}

.ad-task-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.ad-task-copy > span {
  overflow: hidden;
  color: #333;
  font-size: 16px;
  line-height: 21px;
  letter-spacing: -0.31px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ad-task-copy > strong {
  overflow: hidden;
  color: var(--secondary);
  font-size: 13px;
  font-weight: 400;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ad-task-icon {
  width: 22px;
  height: 22px;
}

.ad-task-chevron {
  width: 8px;
  height: 22px;
}

.settings-content {
  height: calc(100% - var(--standard-header-height));
  padding: 16px 16px calc(var(--tab-height) + var(--safe-bottom) + 24px);
}

.settings-group {
  margin-bottom: 32px;
}

.settings-row {
  position: relative;
  display: grid;
  align-items: center;
  width: 100%;
  height: 52px;
  padding: 8px 16px;
  grid-template-columns: 30px minmax(0, 1fr) auto 8px;
  column-gap: 8px;
  background: transparent;
  text-align: left;
}

.settings-row-legal {
  grid-template-columns: minmax(0, 1fr) 8px;
  column-gap: 8px;
}

.settings-row + .settings-row::before {
  position: absolute;
  top: 0;
  right: 16px;
  left: 16px;
  height: 1px;
  background: var(--separator);
  content: "";
}

.settings-row strong {
  margin-left: 8px;
  font-size: 17px;
  font-weight: 510;
  line-height: 22px;
  letter-spacing: -0.43px;
}

.settings-row-legal strong {
  margin-left: 0;
}

.settings-glyph {
  width: 30px;
  height: 30px;
}

.row-detail {
  color: var(--secondary);
  font-size: 17px;
  line-height: 22px;
}

.chevron-icon {
  width: 8px;
  height: 20px;
}

.legal-screen .plain-header h1 {
  max-width: calc(100% - 120px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.legal-content {
  height: calc(100% - var(--standard-header-height));
  padding: 16px 16px calc(32px + var(--safe-bottom));
}

.legal-document {
  width: 100%;
  height: 100%;
  padding: 24px 20px 28px;
  overflow-y: auto;
  border-radius: 26px;
  background: var(--surface);
}

.legal-document h2 {
  margin: 0;
  font-size: 26px;
  line-height: 32px;
  letter-spacing: -0.6px;
}

.legal-publication-date {
  margin: 8px 0 0;
  color: var(--secondary);
  font-size: 14px;
  line-height: 20px;
}

.legal-introduction {
  margin: 24px 0 0;
}

.legal-section {
  margin-top: 28px;
}

.legal-section h3 {
  margin: 0 0 12px;
  font-size: 19px;
  line-height: 24px;
  letter-spacing: -0.3px;
}

.legal-section p,
.legal-introduction,
.legal-conclusion {
  font-size: 16px;
  line-height: 24px;
}

.legal-section p {
  margin: 0 0 12px;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-conclusion {
  margin: 28px 0 0;
  font-weight: 600;
}

.tab-bar {
  position: absolute;
  z-index: 30;
  right: 25px;
  bottom: calc(25px + var(--safe-bottom));
  left: 25px;
  display: grid;
  height: 61px;
  padding: 3px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-radius: 31px;
  background: rgba(247, 247, 247, 0.78);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
}

.tab-item {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 5px 3px 6px;
  flex-direction: column;
  justify-content: flex-end;
  gap: 3px;
  border-radius: 27px;
  background: transparent;
  font-size: 10px;
  font-weight: 510;
  line-height: 12px;
}

.tab-item[aria-current="page"] {
  background: #ededed;
  color: var(--accent);
  font-weight: 700;
}

.tab-item img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.tab-item .profile-icon {
  width: 29px;
}

.tab-item[aria-current="page"] img {
  filter: invert(43%) sepia(99%) saturate(3581%) hue-rotate(195deg) brightness(103%);
}

.tab-bar.is-hidden {
  display: none;
}

.overlay-backdrop {
  position: absolute;
  z-index: 100;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: calc(16px + var(--safe-top)) 16px calc(16px + var(--safe-bottom));
  background: rgba(0, 0, 0, 0.3);
  animation: ui-fade-in var(--ui-enter-duration) ease-out;
}

.overlay-dismiss {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  background: transparent;
}

.overlay-backdrop > :not(.overlay-dismiss) {
  z-index: 1;
}

.payment-overlay {
  padding: var(--safe-top) 6px calc(6px + var(--safe-bottom));
}

.payment-sheet {
  display: flex;
  width: min(100%, 390px);
  min-height: min(370px, calc(100dvh - var(--safe-top) - var(--safe-bottom) - 12px));
  max-height: calc(100dvh - var(--safe-top) - var(--safe-bottom) - 12px);
  padding-bottom: 32px;
  flex-direction: column;
  gap: 20px;
  overflow: hidden;
  border-radius: 42px 42px 58px 58px;
  background: #fff;
  box-shadow: 0 15px 75px rgba(0, 0, 0, 0.18);
}

.payment-sheet-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 70px;
  min-height: 70px;
  padding: 0 16px 10px;
}

.payment-sheet-header > div {
  display: flex;
  align-items: center;
  padding-top: 6px;
  flex-direction: column;
  gap: 4px;
}

.payment-sheet-header h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 22px;
  letter-spacing: -0.43px;
}

.payment-sheet-header p {
  display: flex;
  margin: 0;
  gap: 8px;
  color: var(--secondary);
  font-size: 13px;
  line-height: 18px;
}

.payment-sheet-header p strong {
  font-weight: 600;
}

.payment-sheet-header > button {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  color: #c7c7cc;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
}

.payment-methods {
  display: flex;
  padding: 0 28px;
  flex-direction: column;
  gap: 8px;
}

.payment-methods button {
  display: flex;
  align-items: center;
  width: 100%;
  height: 56px;
  padding: 16px;
  gap: 12px;
  border-radius: 20px;
  background: rgba(116, 116, 128, 0.08);
  font-size: 17px;
  font-weight: 510;
  line-height: 22px;
  text-align: left;
}

.payment-methods button:disabled {
  opacity: 0.55;
}

.payment-methods img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.payment-error-overlay,
.payment-success-overlay {
  padding: var(--safe-top) 6px calc(6px + var(--safe-bottom));
  background: rgba(0, 0, 0, 0.22);
}

.payment-error-sheet,
.payment-success-sheet {
  position: relative;
  width: min(100%, 470px);
  overflow: hidden;
  border-radius: 56px 56px 68px 68px;
  background: #fff;
  box-shadow: 0 15px 75px rgba(0, 0, 0, 0.2);
}

.payment-error-sheet {
  height: min(482px, calc(100dvh - var(--safe-top) - var(--safe-bottom) - 12px));
}

.payment-error-close,
.payment-success-close {
  position: absolute;
  z-index: 3;
  top: 20px;
  right: 22px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
  color: #d1d1d3;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
}

.payment-error-close .ui-icon,
.payment-success-close .ui-icon {
  width: 28px;
  height: 28px;
}

.payment-error-content {
  display: flex;
  align-items: center;
  padding-top: 143px;
  flex-direction: column;
}

.payment-error-illustration {
  width: 96px;
  height: 96px;
  overflow: visible;
  fill: none;
  stroke: #8e8e93;
  stroke-width: 8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.payment-error-content h2,
.payment-success-content h2 {
  margin: 34px 0 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 25px;
  letter-spacing: -0.45px;
}

.payment-error-content p,
.payment-success-content p {
  margin: 4px 0 0;
  color: #9b9ba0;
  font-size: 16px;
  line-height: 21px;
}

.payment-error-retry,
.payment-success-continue {
  position: absolute;
  z-index: 2;
  right: 34px;
  left: 34px;
  height: 62px;
  border-radius: 31px;
  font-size: 20px;
  font-weight: 600;
  line-height: 25px;
  letter-spacing: -0.45px;
}

.payment-error-retry {
  bottom: 39px;
  background: #1c1c1e;
  color: #f2f2f7;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
}

.payment-success-sheet {
  height: min(476px, calc(100dvh - var(--safe-top) - var(--safe-bottom) - 12px));
}

.payment-success-confetti {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  left: 0;
  height: 300px;
  overflow: hidden;
  pointer-events: none;
}

.payment-success-confetti i {
  position: absolute;
  top: -24px;
  left: var(--confetti-x);
  width: 12px;
  height: 7px;
  background: var(--confetti-color);
  animation: payment-confetti-fall var(--confetti-duration) linear var(--confetti-delay) infinite;
  will-change: transform, opacity;
}

.payment-success-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  padding-top: 147px;
  flex-direction: column;
}

.payment-success-check {
  display: grid;
  width: 92px;
  height: 92px;
  place-items: center;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
}

.payment-success-check .ui-icon {
  width: 72px;
  height: 72px;
}

.payment-pending-spinner {
  width: 92px;
  height: 92px;
  border: 10px solid rgba(10, 132, 255, 0.22);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: payment-pending-spin 0.8s linear infinite;
}

.payment-success-content h2 {
  margin-top: 33px;
  padding: 0 6px;
  background: #fff;
  color: var(--success);
}

.payment-success-content p {
  padding: 0 6px;
  background: #fff;
}

.payment-success-continue {
  bottom: 34px;
  background: var(--success);
  color: #fff;
  box-shadow: 0 8px 24px rgba(52, 199, 89, 0.2);
}

.payment-success-sheet.pending .payment-success-check {
  background: transparent;
}

.payment-success-sheet.pending .payment-success-continue {
  background: var(--accent);
}

.payment-success-sheet.pending .payment-success-content h2 {
  color: var(--accent);
}

.payment-success-continue:disabled {
  opacity: 0.72;
}

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

@keyframes payment-confetti-fall {
  0% { opacity: 0; transform: translate3d(0, -30px, 0) rotate(0); }
  10%,
  85% { opacity: 1; }
  100% { opacity: 0; transform: translate3d(var(--confetti-drift), 390px, 0) rotate(var(--confetti-rotation)); }
}

@media (prefers-reduced-motion: reduce) {
  .payment-pending-spinner { animation-duration: 1.6s; }
  .payment-success-confetti i {
    top: var(--confetti-rest-y);
    animation: none;
    opacity: 1;
    transform: rotate(var(--confetti-rotation));
  }
}

.language-popover-layer {
  align-items: center;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.language-popover {
  position: absolute;
  top: calc(var(--standard-header-height) + 56px);
  right: 20px;
  width: 190px;
  padding: 6px;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(250, 250, 250, 0.94);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.language-option {
  display: grid;
  align-items: center;
  width: 100%;
  height: 46px;
  padding: 0 12px;
  grid-template-columns: 24px 1fr;
  gap: 8px;
  border-radius: 14px;
  background: transparent;
  font-size: 17px;
  text-align: left;
}

.language-option[aria-pressed="true"] {
  background: rgba(116, 116, 128, 0.08);
}

.language-check {
  color: var(--accent);
  font-weight: 700;
}

.toast {
  position: absolute;
  z-index: 150;
  bottom: calc(102px + var(--safe-bottom));
  left: 50%;
  display: flex;
  align-items: center;
  width: max-content;
  max-width: min(calc(100% - 32px), 360px);
  min-height: 44px;
  padding: 11px 20px;
  transform: translate(-50%, 16px);
  border-radius: 999px;
  background: rgba(86, 86, 86, 0.82);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.16);
  color: #fff;
  font-size: 16px;
  font-weight: 590;
  line-height: 22px;
  letter-spacing: -0.32px;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  transition: opacity 180ms ease-out, transform 180ms ease-out, visibility 180ms;
}

.toast.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
  visibility: visible;
}

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

@media (min-width: 520px) {
  .app-shell {
    box-shadow: 0 0 48px rgba(0, 0, 0, 0.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
