/*---------------------------------- Rtl Vazirmatn Fonts ---------------------------------- */

@font-face {
  /* https://rastikerdar.github.io/vazirmatn/fa/docs/Vazirmatn-Variable-fa */
  font-family: Vazirmatn;
  src: url("../fonts/Vazirmatn-RD-FD-Thin.a1a790d2b7d1.woff2") format('woff2');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Vazirmatn;
  src: url("../fonts/Vazirmatn-RD-FD-ExtraLight.9591fa8d20d4.woff2") format('woff2');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Vazirmatn;
  src: url("../fonts/Vazirmatn-RD-FD-Light.4b02a1caf0bb.woff2") format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Vazirmatn;
  src: url("../fonts/Vazirmatn-RD-FD-Regular.6fd5f152b822.woff2") format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Vazirmatn;
  src: url("../fonts/Vazirmatn-RD-FD-Medium.b731d835bb8a.woff2") format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Vazirmatn;
  src: url("../fonts/Vazirmatn-RD-FD-SemiBold.613e50de295c.woff2") format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Vazirmatn;
  src: url("../fonts/Vazirmatn-RD-FD-Bold.29e3c0252dc2.woff2") format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Vazirmatn;
  src: url("../fonts/Vazirmatn-RD-FD-ExtraBold.5702512e44ae.woff2") format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Vazirmatn;
  src: url("../fonts/Vazirmatn-RD-FD-Black.3fcd495ac151.woff2") format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

[lang=fa] *:not(.fa, .fas, .far) {
  font-family: Vazirmatn, Roboto, Helvetica, Arial, sans-serif;
}
/* Keep signed, grouped numbers readable inside RTL text. */
.price-value {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
}

/* Botify UI design system — single source of truth.
 * Semantic tokens are declared once;components use explicit state and variant classes.
*/

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  margin: 0;
  font: inherit;
}
button:not(:disabled),
[type="button"]:not(:disabled),
[type="submit"]:not(:disabled) {
  cursor: pointer;
}
img,
svg {
  vertical-align: middle;
}
table {
  border-collapse: collapse;
}
fieldset {
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.auth-resend-button {
  border-color: rgba(180, 81, 44, 0.2);
  background: rgba(180, 81, 44, 0.07);
  color: var(--accent);
}
.auth-resend-button:disabled {
  opacity: 0.58;
  cursor: wait;
  box-shadow: none;
}
html.theme-dark-effective .auth-resend-button {
  border-color: rgba(239, 139, 98, 0.28);
  background: #4a2f2a;
  color: var(--accent-hover);
}
.app-toast {
  --toast-accent: #1f6b63;
  --toast-tint: #e3f1ed;
  position: relative;
  overflow: hidden;
  min-width: min(340px, calc(100vw - 32px));
  max-width: min(440px, calc(100vw - 32px));
  border: 1px solid color-mix(in srgb, var(--toast-accent) 28%, transparent);
  border-radius: 15px;
  background: linear-gradient(
    135deg,
    var(--toast-tint),
    var(--toast-surface) 72%
  );
  color: var(--toast-ink);
  box-shadow: var(--toast-shadow);
  backdrop-filter: blur(16px) saturate(112%);
}
.app-toast::before {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 4px;
  background: var(--toast-accent);
  content: "";
}
.app-toast__body {
  flex: 1 1 auto;
  min-width: 0;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.65;
}
.app-toast__row {
  display: flex;
  align-items: center;
}
.app-toast__close {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-inline: auto 12px;
  border: 0;
  background: transparent;
  color: currentColor;
  opacity: 0.55;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}
.app-toast__close::before {
  content: "×";
  font-size: 24px;
  line-height: 1;
}
.app-toast__close:hover {
  opacity: 0.9;
  transform: scale(1.06);
}
.app-toast__close:focus-visible {
  opacity: 0.9;
  transform: scale(1.06);
}
html.theme-dark-effective .app-toast {
  --toast-tint: color-mix(in srgb, var(--toast-accent) 17%, #192830);
  border-color: color-mix(in srgb, var(--toast-accent) 45%, #30454d);
  background: linear-gradient(
    135deg,
    var(--toast-tint),
    var(--toast-surface) 76%
  );
  color: var(--toast-ink);
}
.app-toast:not(.is-visible) {
  display: none;
}
.app-toast-stack {
  position: fixed;
  inset-block-end: 0;
  inset-inline-end: 0;
  z-index: 1080;
  display: grid;
  gap: 10px;
  padding: 16px;
}
@media (max-width: 560px) {
.app-toast-stack {
    inset-inline: 0;
    padding: 12px;
  }
.app-toast {
    width: 100%;
    min-width: 0;
    max-width: none;
  }
}
@media (prefers-reduced-motion: reduce) {
.app-toast__close {
    transition: none;
  }
}
button {
  -webkit-tap-highlight-color: transparent;
}
a {
  -webkit-tap-highlight-color: transparent;
}
input {
  -webkit-tap-highlight-color: transparent;
}
textarea {
  -webkit-tap-highlight-color: transparent;
}
.ui-select-trigger:focus-visible {
  outline: 0;
  box-shadow: var(--focus);
}
.ui-select-option:focus-visible {
  outline: 0;
  box-shadow: var(--focus);
}
.brand-copy span {
  margin-top: 2px;
}
.ui-select {
  position: relative;
  min-width: 0;
}
.ui-select-native {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.ui-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-width: 142px;
  height: 42px;
  border: 1px solid #d9d0c3;
  border-radius: 12px;
  background: #f3ede3;
  padding: 0 13px;
  color: #172c35;
  font-size: 13px;
  font-weight: 650;
}
.ui-select-chevron {
  border-inline-end: 2px solid currentColor;
  border-block-end: 2px solid currentColor;
  transition: transform 0.18s;
}
.ui-select-menu {
  position: absolute;
  inset-inline: 0;
  inset-block-end: calc(100% + 8px);
  z-index: 30;
  min-width: 210px;
  border: 1px solid #d9d0c3;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 45px rgba(37, 31, 86, 0.17);
  padding: 6px;
}
.language-switcher .ui-select-menu {
  min-width: 150px;
}
.ui-select-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: transparent;
  padding: 10px 11px;
  color: var(--ink);
  font-size: 13px;
  text-align: start;
}
.ui-select-option.selected {
  color: var(--accent);
  font-weight: 750;
}
.ui-select-check {
  opacity: 0;
}
.ui-select-option.selected .ui-select-check {
  opacity: 1;
}
.language-switcher .ui-select-trigger {
  min-width: 112px;
  background: rgba(255, 255, 255, 0.78);
}
.field-label {
  grid-column: 1 / -1;
}
.field-label {
  margin: 3px 0 -8px;
  font-size: 13px;
  font-weight: 750;
}
.ui-input {
  display: block;
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding-inline: 13px;
  color: var(--ink);
}
.ui-input:focus {
  border-color: var(--accent);
  box-shadow: var(--focus);
}
.api-keys-shell {
  border-color: #d9d0c3;
}
.api-key-card {
  border-color: #d9d0c3;
}
.api-keys-page {
  background: transparent;
}
.key-row {
  border-color: #e4e1ef;
}
.api-key-list {
  display: grid;
  gap: 8px;
}
.api-key-list-header,
.api-key-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.api-key-list-header {
  margin-bottom: 16px;
}
.api-key-list-header h2 {
  margin-bottom: 0;
}
.api-key-create-row {
  display: flex;
  align-items: stretch;
}
.api-key-create-row .ui-input {
  flex: 1;
  min-width: 0;
  border-start-end-radius: 0;
  border-end-end-radius: 0;
}
.api-key-create-row .ui-button {
  border-start-start-radius: 0;
  border-end-start-radius: 0;
}
.api-key-label {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 650;
}
.api-key-name-input {
  width: 100%;
  min-height: 36px;
  margin-bottom: 8px;
}
.api-key-prefix {
  padding: 4px 8px;
}
.api-key-active {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 0.875rem;
}
.api-key-active-input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--action);
}
.api-key-last-used,
.new-key-hint {
  margin-top: 8px;
}
.key-row-actions {
  display: grid;
  gap: 8px;
}
.new-key {
  margin: 0;
  border: 1px solid #ffe69c;
  border-radius: var(--radius-sm);
  background: #fff3cd;
  padding: 16px;
  color: #664d03;
}
.new-key-title {
  margin-bottom: 8px;
  font-weight: 700;
}
.new-key-value {
  display: block;
  padding: 8px;
}
.credit-opportunity__icon svg {
  width: 23px;
  height: 23px;
  fill: none;
}
.credit-package__icon svg {
  width: 23px;
  height: 23px;
  fill: none;
}
.credit-opportunity-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}
.credit-opportunity {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 19px;
  border: 1px solid var(--cc-line);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.credit-opportunity--daily {
  grid-column: 1 / -1;
}
.credit-opportunity.is-ready::after {
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(
    120deg,
    rgba(117, 87, 217, 0.28),
    transparent 42%,
    rgba(40, 174, 142, 0.22)
  );
  content: "";
  filter: blur(10px);
  opacity: 0.42;
  animation: credit-ready-breathe 3.2s ease-in-out infinite;
}
.credit-opportunity.is-complete {
  background: linear-gradient(
    150deg,
    rgba(242, 250, 247, 0.95),
    rgba(248, 251, 250, 0.85)
  );
}
.credit-opportunity__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.credit-opportunity__icon {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
}
.credit-opportunity__status {
  padding: 5px 9px;
  border-radius: 999px;
  color: #5d477d;
  background: rgba(117, 87, 217, 0.09);
  font-size: var(--text-caption);
  font-weight: 780;
}
.credit-opportunity.is-ready .credit-opportunity__status {
  color: #176c58;
  background: rgba(41, 164, 133, 0.12);
}
.credit-opportunity__copy {
  margin: 14px 0;
}
.credit-opportunity__copy h4 {
  margin: 0 0 5px;
  font-size: 1rem;
  font-weight: 820;
}
.credit-opportunity__copy p {
  margin: 0;
  color: var(--cc-muted);
  font-size: 0.82rem;
  line-height: 1.75;
}
.credit-opportunity__action-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
}
.credit-opportunity__action-row > div strong {
  display: block;
}
.credit-opportunity__action-row > div span {
  display: block;
}
.credit-opportunity__action-row > div strong {
  color: #5d43b7;
  font-size: 1.2rem;
}
.credit-opportunity__action-row > div span {
  color: var(--cc-muted);
  font-size: var(--text-caption);
}
.credit-opportunity__message {
  margin: 11px 0 0;
  color: var(--cc-muted);
  font-size: var(--text-small);
  line-height: 1.55;
}
.streak-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, minmax(42px, 1fr));
  gap: 8px;
  margin: 2px 0 18px;
}
.streak-track::before {
  position: absolute;
  top: 18px;
  right: 5%;
  left: 5%;
  height: 2px;
  background: rgba(117, 87, 217, 0.12);
  content: "";
}
.streak-day {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 5px;
  color: var(--cc-muted);
}
.streak-day > span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 2px solid #e1ddea;
  border-radius: 50%;
  background: #fff;
  font-size: 0.75rem;
  font-weight: 800;
}
[data-tooltip] {
  position: relative;
  cursor: default;
}
[data-tooltip]::after {
  position: absolute;
  top: calc(100% + 8px);
  right: 50%;
  z-index: 8;
  min-width: max-content;
  padding: 6px 9px;
  border: 1px solid rgba(117, 87, 217, 0.16);
  border-radius: 9px;
  color: #4f3c7e;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 20px rgba(58, 42, 92, 0.14);
  content: attr(data-tooltip);
  font-size: var(--text-caption);
  font-weight: 750;
  line-height: 1.2;
  opacity: 0;
  pointer-events: none;
  transform: translate(50%, -3px);
  transition:
    opacity 0.14s ease,
    transform 0.14s ease;
}
[data-tooltip]:hover::after {
  opacity: 1;
  transform: translate(50%, 0);
}
[data-tooltip]:focus-visible::after {
  opacity: 1;
  transform: translate(50%, 0);
}
[data-tooltip][data-tooltip-placement="top"]::after {
  top: auto;
  bottom: calc(100% + 8px);
  transform: translate(50%, 3px);
}
[data-tooltip][data-tooltip-placement="top"]:hover::after,
[data-tooltip][data-tooltip-placement="top"]:focus-visible::after {
  transform: translate(50%, 0);
}
.tools-control {
  position: relative;
  display: grid;
  place-items: center;
}
.tools-quick-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}
.tool-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 8px 9px;
  border-radius: 12px;
}
.tool-menu-action {
  width: 100%;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: start;
  cursor: pointer;
}
.tool-menu-item.is-locked {
  opacity: 0.66;
}
.tool-menu-copy {
  display: grid;
  flex: 1;
  min-width: 0;
  gap: 2px;
}
.tool-menu-copy strong {
  overflow: hidden;
  font-size: var(--text-small);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tool-menu-copy small {
  overflow: hidden;
  color: var(--muted);
  font-size: var(--text-caption);
  text-overflow: ellipsis;
  white-space: nowrap;
}
@keyframes microphone-pulse {
  50% {
    box-shadow: 0 0 0 6px rgba(216, 79, 106, 0.13);
  }
}
.streak-day > span svg {
  width: 17px;
  height: 17px;
  fill: none;
}
.streak-day > small {
  font-size: var(--text-caption);
  white-space: nowrap;
}
.streak-day > i {
  position: absolute;
  top: -7px;
  right: calc(50% - 24px);
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  color: #9b651b;
  background: #fff1c9;
}
.streak-day > i svg {
  width: 11px;
  height: 11px;
}
.streak-day--complete > span {
  border-color: #6d54c9;
  color: white;
  background: linear-gradient(145deg, #8165df, #5f45ba);
  box-shadow: 0 4px 12px rgba(94, 68, 185, 0.23);
}
.streak-day--ready > span {
  border-color: #2ba584;
  color: #167058;
  background: #e9faf5;
  box-shadow: 0 0 0 5px rgba(43, 165, 132, 0.09);
  animation: streak-ready-pulse 2.2s ease-in-out infinite;
}
.referral-share label {
  display: block;
  color: var(--cc-muted);
  font-size: var(--text-caption);
  font-weight: 700;
}
.referral-code-form > label {
  display: block;
  color: var(--cc-muted);
  font-size: var(--text-caption);
  font-weight: 700;
}
.referral-share__control {
  display: flex;
  gap: 7px;
  margin-top: 6px;
}
.referral-code-form > div {
  display: flex;
  gap: 7px;
  margin-top: 6px;
}
.referral-code-form .credit-center-button {
  flex: 0 0 auto;
  min-width: 54px;
  height: 34px;
  padding-inline: 10px;
  font-size: var(--text-caption);
  white-space: nowrap;
}
.referral-share input {
  width: 100%;
  min-width: 0;
  height: 40px;
  padding: 0 11px;
  border: 1px solid var(--cc-line);
  border-radius: 11px;
  color: var(--cc-ink);
  background: rgba(255, 255, 255, 0.78);
  direction: ltr;
  text-align: left;
  font-size: 0.73rem;
  outline: 0;
}
.referral-code-form input {
  width: 100%;
  min-width: 0;
  height: 40px;
  padding: 0 11px;
  border: 1px solid var(--cc-line);
  border-radius: 11px;
  color: var(--cc-ink);
  background: rgba(255, 255, 255, 0.78);
  direction: ltr;
  text-align: left;
  font-size: 0.73rem;
  outline: 0;
}
.referral-share input:focus {
  border-color: rgba(117, 87, 217, 0.5);
  box-shadow: 0 0 0 3px rgba(117, 87, 217, 0.1);
}
.referral-code-form input:focus {
  border-color: rgba(117, 87, 217, 0.5);
  box-shadow: 0 0 0 3px rgba(117, 87, 217, 0.1);
}
.referral-share button {
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 11px;
  color: #6047b6;
  background: #eeeaff;
  transition:
    color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease;
}
.referral-share button:hover {
  color: #fff;
  background: #6047b6;
  transform: translateY(-1px);
}
.referral-share button:focus-visible {
  color: #fff;
  background: #6047b6;
  transform: translateY(-1px);
}
.referral-share button.is-copied {
  color: #fff;
  background: #2ba584;
}
.referral-share button svg {
  width: 18px;
  height: 18px;
  fill: none;
}
.referral-code-form {
  margin-top: 13px;
}
.credit-package-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.credit-package {
  --package-accent: #7054ce;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--cc-line);
  text-align: center;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.credit-package--violet {
  --package-accent: #7054ce;
}
.credit-package--blue {
  --package-accent: #3478b8;
}
.credit-package--teal {
  --package-accent: #2f8c80;
}
.credit-package--amber {
  --package-accent: #bd7728;
}
.credit-package--rose {
  --package-accent: #bf5f74;
}
.credit-package--gift {
  --package-accent: #d14f86;
  border-color: color-mix(in srgb, var(--package-accent) 28%, var(--cc-line));
  background: linear-gradient(145deg, color-mix(in srgb, var(--package-accent) 8%, var(--surface)), var(--surface) 58%);
}
.credit-package--gift .credit-package__icon {
  color: #fff;
  background: linear-gradient(145deg, #ec77a8, #bd3e78);
  box-shadow: 0 9px 20px color-mix(in srgb, var(--package-accent) 24%, transparent);
}
.credit-package__price--free strong {
  color: var(--package-accent);
  font-size: 1.08rem;
}
.credit-package.is-featured {
  border-color: color-mix(in srgb, var(--package-accent) 42%, transparent);
  box-shadow: 0 13px 30px
    color-mix(in srgb, var(--package-accent) 13%, transparent);
}
.credit-package.is-popular {
  z-index: 1;
  transform: scale(1.035);
  border-width: 2px;
  box-shadow: 0 18px 38px
    color-mix(in srgb, var(--package-accent) 22%, transparent);
}
.credit-package.is-popular:hover {
  transform: translateY(-4px) scale(1.035);
}
.credit-package__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  text-align: start;
}
.credit-package__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
}
.credit-package__badge {
  padding: 5px 9px;
  border-radius: 999px;
  font-size: var(--text-caption);
  font-weight: 800;
}
.credit-package h4 {
  margin: 16px 0 7px;
  font-size: 1rem;
}
.credit-package__credits {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.credit-package__credits img {
  width: 23px;
  height: 23px;
  object-fit: contain;
}
.credit-package__credits strong {
  font-size: 1.45rem;
}
.credit-package__credits span {
  color: var(--cc-muted);
  font-size: var(--text-caption);
}
.credit-package__price span {
  color: var(--cc-muted);
  font-size: var(--text-caption);
}
.credit-package__price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 5px;
  margin: 12px 0 16px;
}
.credit-package__price strong {
  font-size: 1rem;
}
@keyframes credit-ready-breathe {
  50% {
    opacity: 0.75;
  }
}
@keyframes streak-ready-pulse {
  50% {
    transform: scale(1.06);
    box-shadow: 0 0 0 7px rgba(43, 165, 132, 0.06);
  }
}
@media (prefers-color-scheme: dark) {
html[data-theme="system"] .credit-opportunity {
    background: linear-gradient(
      150deg,
      rgba(47, 41, 60, 0.96),
      rgba(33, 29, 42, 0.9)
    );
  }
html[data-theme="system"] .credit-package {
    background: linear-gradient(
      150deg,
      rgba(47, 41, 60, 0.96),
      rgba(33, 29, 42, 0.9)
    );
  }
html[data-theme="system"] .streak-day > span {
    background: #292431;
  }
html[data-theme="system"] .referral-share input {
    background: #292431;
  }
html[data-theme="system"] .referral-code-form input {
    background: #292431;
  }
html[data-theme="system"] [data-tooltip]::after {
    border-color: rgba(210, 199, 234, 0.18);
    color: #eee8ff;
    background: rgba(47, 41, 60, 0.98);
  }
}
@media (max-width: 760px) {
.credit-opportunity-grid {
    grid-template-columns: 1fr;
  }
.credit-package-grid {
    grid-template-columns: 1fr;
  }
.credit-package.is-popular {
    transform: none;
  }
.credit-package.is-popular:hover {
    transform: none;
  }
.credit-opportunity--daily {
    grid-column: auto;
  }
.streak-track {
    gap: 3px;
    overflow: visible;
  }
.streak-day > span {
    width: 31px;
    height: 31px;
  }
.streak-track::before {
    top: 15px;
  }
.streak-day > small {
    font-size: var(--text-caption);
  }
.credit-opportunity__action-row {
    align-items: stretch;
    flex-direction: column;
  }
}
.tools-quick-list {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: 0;
}
.more-tools-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border-radius: 13px;
  cursor: pointer;
}
.more-tools-button svg {
  width: 20px;
  height: 20px;
  fill: none;
}
.more-tools-button {
  gap: 6px;
  margin-inline-start: 4px;
  padding: 0 11px;
  border: 1px solid color-mix(in srgb, var(--secondary) 24%, var(--line));
  font-size: var(--text-caption);
  font-weight: 800;
  white-space: nowrap;
}
.tool-disable-popover {
  position: absolute;
  inset-inline-start: 0;
  bottom: calc(100% + 7px);
  z-index: 60;
  width: max-content;
  max-width: min(260px, calc(100vw - 24px));
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--text);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.tool-disable-popover p {
  margin: 0 0 8px;
  font-size: var(--text-caption);
  font-weight: 700;
}
.tool-disable-actions {
  display: flex;
  gap: 6px;
}
.tool-disable-actions button {
  min-height: 32px;
  padding: 5px 9px;
  border: 0;
  border-radius: 8px;
  font-size: var(--text-caption);
  font-weight: 800;
}
.tool-disable-confirm {
  color: #fff;
  background: var(--danger, #b63b3b);
}
.tool-disable-cancel {
  color: var(--text);
  background: var(--surface-hover);
}
.tools-empty {
  grid-column: 1 / -1;
  padding: 34px 15px;
  color: var(--muted);
  text-align: center;
  font-size: var(--text-small);
}
@media (max-width: 640px) {
.more-tools-button span {
    display: none;
  }
.more-tools-button {
    width: 44px;
    padding: 0;
  }
}
.credit-history-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.credit-history-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(217, 208, 195, 0.82);
  border-radius: 22px;
  background: rgba(255, 253, 249, 0.86);
  box-shadow: 0 12px 36px rgba(23, 44, 53, 0.07);
}
.credit-history-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 20px 17px;
  border-bottom: 1px solid rgba(217, 208, 195, 0.72);
}
.credit-history-card__header h2 {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 850;
}
.credit-history-card__header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
}
.credit-history-card__icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
}
.credit-history-card__icon.is-teal {
  background: var(--secondary-soft);
  color: var(--secondary);
}
.credit-history-card__icon svg {
  width: 21px;
  height: 21px;
  fill: none;
}
.credit-history-item__mark svg {
  width: 21px;
  height: 21px;
  fill: none;
}
.credit-history-empty svg {
  width: 21px;
  height: 21px;
  fill: none;
}
.credit-history-list {
  max-height: 500px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
.credit-history-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-height: 82px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(217, 208, 195, 0.55);
  transition: background 0.16s ease;
}
.credit-history-item:last-child {
  border-bottom: 0;
}
.credit-history-item:hover {
  background: rgba(220, 236, 231, 0.28);
}
.credit-history-item__mark {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  border-radius: 12px;
}
.credit-history-item__mark.is-positive {
  background: rgba(31, 107, 99, 0.1);
  color: var(--secondary);
}
.credit-history-item__mark.is-usage {
  background: rgba(180, 81, 44, 0.09);
  color: var(--accent);
}
.credit-history-item__main {
  display: grid;
  min-width: 0;
  gap: 5px;
}
.credit-history-item__main strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 0.81rem;
  font-weight: 780;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.credit-history-item time {
  color: var(--muted);
  font-size: var(--text-caption);
}
.credit-history-item__values span {
  color: var(--muted);
  font-size: var(--text-caption);
}
.credit-history-item__values small {
  color: var(--muted);
  font-size: var(--text-caption);
}
.credit-history-item__values {
  display: grid;
  justify-items: end;
  gap: 3px;
  text-align: end;
}
.credit-history-item__values > strong {
  font-size: 0.88rem;
  font-weight: 850;
  direction: ltr;
}
.credit-history-item__values > strong.is-positive {
  color: var(--secondary);
}
.credit-history-item__values > strong.is-usage {
  color: var(--accent);
}
.credit-history-empty {
  display: grid;
  justify-items: center;
  padding: 42px 20px;
  color: var(--muted);
  text-align: center;
}
.credit-history-empty > span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  border-radius: 16px;
  background: var(--surface-subtle);
  color: var(--muted);
}
.credit-history-empty strong {
  color: var(--ink);
  font-size: 0.82rem;
}
.credit-history-empty p {
  margin: 5px 0 0;
  font-size: var(--text-caption);
}
@media (prefers-color-scheme: dark) {
html[data-theme="system"] .credit-history-card {
    border-color: rgba(210, 199, 234, 0.15);
    background: rgba(28, 24, 37, 0.9);
  }
html[data-theme="system"] .credit-history-card__header {
    border-color: rgba(210, 199, 234, 0.12);
  }
html[data-theme="system"] .credit-history-item {
    border-color: rgba(210, 199, 234, 0.12);
  }
html[data-theme="system"] .credit-history-item:hover {
    background: rgba(255, 255, 255, 0.035);
  }
}
@media (max-width: 900px) {
.credit-history-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 520px) {
.credit-history-card {
    border-radius: 18px;
  }
.credit-history-card__header {
    padding: 17px 15px 14px;
  }
.credit-history-item {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 9px;
    padding: 13px 14px;
  }
.credit-history-item__mark {
    width: 34px;
    height: 34px;
  }
.credit-history-item__main strong {
    font-size: 0.76rem;
  }
}
.auth-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-color: rgba(210, 199, 184, 0.78);
}
.auth-card::before {
  position: absolute;
  z-index: -1;
  inset: -120px -110px auto auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(201, 224, 216, 0.72),
    rgba(201, 224, 216, 0) 70%
  );
  content: "";
  pointer-events: none;
}
.auth-logo-wrap {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.85);
}
.auth-brand .auth-logo-wrap img {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  box-shadow: none;
}
.auth-title {
  margin-bottom: 3px;
  letter-spacing: -0.02em;
}
.auth-brand-subtitle {
  font-size: 0.78rem;
}
.auth-heading {
  margin-bottom: 24px;
  text-align: center;
}
.auth-heading h2 {
  margin: 12px 0 8px;
  font-size: clamp(1.32rem, 4vw, 1.58rem);
  font-weight: 800;
  letter-spacing: -0.025em;
}
.auth-step {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  direction: ltr;
}
.auth-step i {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #d9d2c8;
  transition:
    width 0.2s ease,
    background 0.2s ease;
}
.auth-step i.is-active {
  width: 25px;
  background: var(--accent);
}
.auth-subtitle {
  max-width: 360px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.85;
}
.auth-subtitle-compact {
  margin-bottom: 0;
}
.auth-field {
  margin-bottom: 16px;
}
.auth-field label {
  display: block;
  margin-bottom: 9px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 750;
}
.auth-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
}
.otp-field {
  margin-bottom: 16px;
}
.auth-action-row form {
  flex: 1 1 0;
}
.auth-body .ui-input[id="id_phone_number"] {
  min-height: 62px;
  direction: ltr;
  text-align: center;
  letter-spacing: 0.16em;
  font-size: 1.08rem;
  font-weight: 700;
  border: 1.5px solid #d9d0c3;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 2px rgba(25, 43, 46, 0.03);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}
.auth-body .ui-input[id="id_phone_number"]::placeholder {
  color: var(--muted);
  opacity: 0.42;
}
.auth-body .ui-input[id="id_phone_number"]:hover {
  border-color: var(--line-strong);
}
.auth-body .ui-input[id="id_phone_number"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(180, 81, 44, 0.12);
  transform: translateY(-1px);
}
.otp-inputs {
  display: flex;
  justify-content: center;
  gap: clamp(7px, 2vw, 11px);
  margin: 0.35rem 0 1.15rem;
}
.otp-digit {
  width: clamp(42px, 12vw, 54px);
  height: clamp(50px, 14vw, 62px);
  border: 1.5px solid #d9d0c3;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  text-align: center;
  font-size: 1.45rem;
  font-weight: 800;
  direction: ltr;
  caret-color: var(--accent);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease,
    background 0.18s ease;
}
.otp-digit:hover {
  border-color: var(--line-strong);
  background: #fff;
}
.otp-digit:focus {
  outline: 0;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(180, 81, 44, 0.13);
  transform: translateY(-2px);
}
.otp-submit {
  min-height: 54px;
}
.auth-legal-notice {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid rgba(217, 208, 195, 0.72);
}
.gift-icon-stage {
  --gift-sparkle: #bd6d22;
  --gift-sparkle-soft: #fff7d8;
  --gift-aura: rgba(244, 165, 64, 0.28);
  --gift-sheen: rgba(255, 239, 184, 0.3);
  position: relative;
  display: grid;
  place-items: center;
  width: 142px;
  height: 108px;
  margin: -12px auto 4px;
}
.gift-icon-stage--daily {
  --gift-sparkle: #187467;
  --gift-sparkle-soft: #dffff7;
  --gift-aura: rgba(45, 139, 126, 0.25);
  --gift-sheen: rgba(211, 255, 244, 0.28);
}
.gift-icon-stage--signup {
  --gift-sparkle: #6543bd;
  --gift-sparkle-soft: #f4efff;
  --gift-aura: rgba(141, 107, 232, 0.25);
  --gift-sheen: rgba(238, 228, 255, 0.3);
}
.gift-icon-stage::before {
  position: absolute;
  width: 96px;
  height: 82px;
  border-radius: 40%;
  background: radial-gradient(ellipse, var(--gift-aura), transparent 70%);
  content: "";
  filter: blur(5px);
  pointer-events: none;
  animation: gift-aura-breathe 3.8s ease-in-out infinite;
}
.gift-sparkle {
  position: absolute;
  z-index: 2;
  overflow: visible;
  color: var(--gift-sparkle);
  filter: drop-shadow(0 0 5px var(--gift-sparkle-soft));
  transform-origin: center;
  animation: gift-sparkle-twinkle 2.7s ease-in-out infinite;
}
.gift-sparkle--one {
  top: 13px;
  inset-inline-end: 7px;
  width: 22px;
  height: 22px;
}
.gift-sparkle--two {
  bottom: 2px;
  inset-inline-start: 2px;
  width: 15px;
  height: 15px;
  animation-delay: -0.9s;
}
.gift-sparkle--three {
  top: 17px;
  inset-inline-start: 11px;
  width: 10px;
  height: 10px;
  animation-delay: -1.8s;
}
@keyframes gift-icon-float {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateY(-4px) rotate(-1deg);
  }
}
@keyframes gift-edge-glint {
  0%,
  38%,
  100% {
    opacity: 0.12;
  }
  55%,
  68% {
    opacity: 0.34;
  }
}
@keyframes gift-aura-breathe {
  0%,
  100% {
    opacity: 0.48;
    transform: scale(0.92);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.08);
  }
}
@keyframes gift-sparkle-twinkle {
  0%,
  100% {
    opacity: 0.28;
    transform: scale(0.62) rotate(-12deg);
  }
  42% {
    opacity: 1;
    transform: scale(1.08) rotate(5deg);
  }
  58% {
    opacity: 0.82;
    transform: scale(0.92) rotate(12deg);
  }
}
@media (prefers-reduced-motion: reduce) {
.gift-icon-stage {
    animation: none;
  }
.gift-icon-stage::before {
    animation: none;
  }
.gift-sparkle {
    animation: none;
  }
.gift-sparkle {
    opacity: 0.72;
    transform: none;
  }
}
.payment-result-card {
  backdrop-filter: blur(32px) saturate(145%);
}
.payment-result-card::before {
  pointer-events: none;
}
.payment-result-icon {
  position: relative;
  z-index: 1;
}
.payment-result-status {
  position: relative;
  z-index: 1;
}
.payment-result-card h1 {
  position: relative;
  z-index: 1;
}
.payment-result-summary {
  position: relative;
  z-index: 1;
}
.payment-result-bonus {
  position: relative;
  z-index: 1;
}
.payment-result-reference {
  position: relative;
  z-index: 1;
}
.payment-result-action {
  position: relative;
  z-index: 1;
}
.payment-result-icon {
  margin-bottom: 18px;
}
.payment-result-status {
  display: inline-flex;
  padding: 6px 11px;
  border: 1px solid rgba(31, 107, 99, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
}
.payment-result-card--failed .payment-result-status {
  border-color: rgba(182, 59, 59, 0.18);
  color: var(--danger);
}
.payment-result-gift-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 11px;
}
.payment-result-gift-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.8;
}
.payment-result-gift {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}
.payment-result-gift-icon {
  width: 30px;
  height: 30px;
  background: #7768be;
  color: #fff;
}
@keyframes gift-card-arrive {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes daily-gift-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
}
html {
  height: 100%;
}
body {
  height: 100%;
}
.page-container {
  height: 100%;
}
body {
  margin: 0;
  overflow: hidden;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}
body[dir="rtl"] {
  font-family: Vazirmatn, Tahoma, "Segoe UI", sans-serif;
}
button {
  letter-spacing: 0;
}
input {
  letter-spacing: 0;
}
textarea {
  letter-spacing: 0;
}
select {
  letter-spacing: 0;
}
.auth-page {
  position: relative;
  min-height: 100vh;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  padding: 28px;
  background: transparent;
}
.auth-card {
  flex: 0 0 auto;
  width: min(100%, 450px);
  margin-block-start: auto;
  backdrop-filter: blur(22px);
}
.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 22px 0;
}
.auth-brand .language-switcher {
  margin-inline-start: auto;
}
.auth-title {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 760;
  text-align: start;
  text-transform: none;
}
.auth-brand img {
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(27, 34, 44, 0.14);
}
.auth-body {
  padding: 22px;
}
.auth-legal-notice {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: var(--text-small);
  line-height: 1.8;
  text-align: center;
}
.auth-legal-notice a {
  color: var(--secondary);
  text-underline-offset: 3px;
}
.auth-page > .legal-powered-by {
  flex: 0 0 auto;
  width: min(100%, 450px);
  margin: 0;
  margin-block-end: auto;
  padding-top: 18px;
}
@media (max-width: 520px) {
.auth-page {
    padding: 14px;
  }
.auth-card {
    border-radius: 24px;
  }
.auth-brand {
    padding: 22px 22px 0;
  }
.auth-logo-wrap {
    width: 46px;
    height: 46px;
    border-radius: 15px;
  }
.auth-brand .auth-logo-wrap img {
    width: 34px;
    height: 34px;
  }
.auth-body {
    padding: 30px 22px 24px;
  }
}
@media (max-width: 390px) {
.auth-action-row {
    gap: 7px;
  }
.otp-inputs {
    gap: 5px;
  }
.otp-digit {
    width: min(13vw, 46px);
    height: 54px;
    border-radius: 12px;
    font-size: 1.25rem;
  }
}
.legal-document a {
  color: var(--secondary);
  text-underline-offset: 3px;
}
.legal-page {
  position: relative;
  box-sizing: border-box;
  height: 100%;
  min-height: 100vh;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  padding: 28px 16px 56px;
}
.page-theme-switcher {
  position: fixed;
  z-index: 40;
  inset-block-start: max(14px, env(safe-area-inset-top));
  inset-inline-end: max(14px, env(safe-area-inset-right));
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 253, 249, 0.9);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}
.page-theme-option {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}
.page-theme-option svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
}
.page-theme-option:hover {
  color: var(--ink);
  transform: translateY(-1px);
}
.page-theme-option:focus-visible {
  outline: 3px solid rgba(180, 81, 44, 0.22);
  outline-offset: 2px;
}
.page-theme-option.is-selected {
  background: var(--surface);
  color: var(--accent);
  box-shadow: 0 3px 10px rgba(31, 47, 53, 0.1);
}
@media (max-width: 620px) {
.auth-page {
    padding-top: 72px;
  }
.legal-page {
    padding-top: 72px;
  }
.page-theme-switcher {
    inset-block-start: max(10px, env(safe-area-inset-top));
    inset-inline-end: max(10px, env(safe-area-inset-right));
  }
}
.legal-shell {
  width: min(100%, 880px);
  margin: 0 auto;
}
.legal-header {
  border: 1px solid var(--line);
  background: rgba(255, 253, 249, 0.9);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(22px);
}
.legal-document {
  backdrop-filter: blur(22px);
}
.legal-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  padding: 18px 22px;
  border-radius: var(--radius);
}
.legal-header img {
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(27, 34, 44, 0.14);
}
.legal-header-copy {
  flex: 1;
}
.legal-header h1 {
  margin: 0 0 3px;
  font-size: clamp(22px, 4vw, 32px);
}
.legal-header p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.legal-header .language-switcher {
  margin-inline-start: auto;
}
.legal-header .language-switcher {
  position: relative;
  z-index: 21;
}
.legal-header .ui-select {
  position: relative;
  z-index: 21;
}
.legal-header .ui-select-menu {
  z-index: 22;
}
.legal-document {
  position: relative;
  z-index: 1;
  padding: clamp(24px, 5vw, 48px);
  color: var(--ink);
  line-height: 1.95;
}
.legal-document .legal-intro {
  margin-bottom: 32px;
  padding: 16px 18px;
  border-inline-start: 4px solid var(--accent);
  border-radius: var(--radius-sm);
}
.legal-document h2 {
  margin: 34px 0 12px;
  font-size: 19px;
}
.legal-document p {
  margin: 0 0 13px;
}
.legal-document ul {
  margin: 0 0 18px;
  padding-inline-start: 24px;
}
.legal-document li {
  margin-bottom: 8px;
}
.legal-document strong {
  font-weight: 780;
}
.legal-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 10px 18px;
  margin-top: 34px;
  padding-top: 10px;
  padding-bottom: 10px;
  border-top: 1px solid var(--line);
}
.legal-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 650;
  text-decoration: none;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.legal-nav a:hover {
  border-color: var(--line-strong);
  background: var(--bg-card-hover);
  color: var(--secondary);
}
.legal-nav a:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}
.legal-powered-by {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 7px;
  margin: 36px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}
.legal-powered-by__brand {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  text-decoration: none;
}
.legal-powered-by__logo {
  width: 32px;
  height: 24px;
  object-fit: contain;
}
.legal-powered-by__name {
  color: #1976d2;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}
@media (max-width: 560px) {
.legal-page {
    padding: 12px 10px 32px;
  }
.legal-header {
    align-items: flex-start;
    padding: 15px;
  }
.legal-header img {
    width: 36px;
    height: 36px;
  }
.legal-header h1 {
    font-size: 20px;
  }
.legal-document {
    padding: 22px 17px;
  }
}
.glass-panel {
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
}
.brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-copy {
  min-width: 0;
}
.brand-copy small {
  display: block;
  color: var(--accent);
  font-size: var(--text-caption);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.brand-copy strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.small-muted {
  color: var(--muted);
  font-size: var(--text-small);
}
.icon-button {
  border: 1px solid rgba(116, 128, 143, 0.28);
  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    transform 0.16s ease;
}
.session-actions {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  font-weight: 800;
  line-height: 1;
}
.credit-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  border: 1px solid rgba(31, 107, 99, 0.2);
  border-radius: var(--radius-sm);
  background: linear-gradient(145deg, #e7f1ed 0%, #f8f0e1 100%);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}
.daily-reward-card {
  grid-column: 1 / -1;
}
.credit-summary strong {
  color: var(--credit-value);
  font-weight: 750;
}
.coin-icon {
  display: block;
  align-self: center;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  object-fit: contain;
}
.credit-summary > span {
  display: inline-flex;
  align-items: center;
  height: 24px;
  line-height: 1;
}
.credit-summary > strong {
  display: inline-flex;
  align-items: center;
  height: 24px;
  line-height: 1;
}
.profile-link-icon .coin-icon {
  width: 30px;
  height: 30px;
}
.guest-credit-card {
  grid-column: 1 / -1;
  border: 1px solid rgba(31, 107, 99, 0.2);
  border-radius: var(--radius);
  background: linear-gradient(145deg, #e7f1ed 0%, #f8f0e1 100%);
  padding: 12px;
}
.guest-credit-card p {
  margin: 3px 0 0;
  color: #4d6864;
  font-size: var(--text-small);
  line-height: 1.55;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.topbar-actions .language-switcher {
  min-width: 104px;
}
.assistant-input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}
.icon-button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  font-weight: 800;
}
.messages {
  min-height: 0;
  overflow-y: auto;
}
.message {
  display: grid;
  grid-template-columns: 34px minmax(0, 760px);
  gap: 12px;
  margin: 0 auto 18px;
}
.message.user {
  grid-template-columns: minmax(0, 760px) 34px;
  justify-content: end;
}
.message:not(.user) {
  grid-template-columns: 34px minmax(0, 760px);
}
.avatar {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 34px;
  height: 34px;
  overflow: hidden;
  border-radius: 50%;
  background: #2e343d;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}
.avatar img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: cover;
}
.message.user .avatar {
  grid-column: 2;
  border: 1px solid rgba(116, 128, 143, 0.28);
  background: #f5f6f8;
  color: #323943;
}
.message:not(.user) .avatar {
  width: 34px;
  height: 34px;
  overflow: visible;
  border-radius: 11px;
  background: transparent;
  transform: none;
}
.bubble {
  border: 1px solid rgba(116, 128, 143, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.68);
  padding: 13px 15px;
  box-shadow: 0 10px 28px rgba(42, 48, 56, 0.08);
  line-height: 1.62; /* Rich assistant output is HTML after Markdown parsing. Keeping the
     whitespace rule off the whole bubble prevents tables and block elements
     from inheriting chat-composer-style text layout. */
  white-space: normal;
  overflow-wrap: anywhere;
}
.message.user .bubble {
  white-space: pre-wrap;
}
.bubble > :first-child {
  margin-top: 0;
}
.bubble > :last-child {
  margin-bottom: 0;
}
.bubble p {
  margin: 0 0 10px;
}
.bubble h2 {
  margin: 14px 0 8px;
  color: inherit;
  font-size: 1rem;
  font-weight: 760;
  line-height: 1.35;
}
.bubble h3 {
  margin: 14px 0 8px;
  color: inherit;
  font-size: 1rem;
  font-weight: 760;
  line-height: 1.35;
}
.bubble h4 {
  margin: 14px 0 8px;
  color: inherit;
  font-size: 1rem;
  font-weight: 760;
  line-height: 1.35;
}
.bubble h5 {
  margin: 14px 0 8px;
  color: inherit;
  font-size: 1rem;
  font-weight: 760;
  line-height: 1.35;
}
.bubble h6 {
  margin: 14px 0 8px;
  color: inherit;
  font-size: 1rem;
  font-weight: 760;
  line-height: 1.35;
}
.bubble ul {
  margin: 0 0 10px;
  padding-inline-start: 22px;
}
.bubble ol {
  margin: 0 0 10px;
  padding-inline-start: 22px;
}
.bubble blockquote {
  margin: 0 0 10px;
  padding: 8px 14px;
  border-inline-start: 3px solid var(--accent, #b4512c);
  background: rgba(180, 81, 44, 0.06);
  color: var(--muted);
}
.bubble hr {
  margin: 14px 0;
  border: 0;
  border-top: 1px solid rgba(116, 128, 143, 0.28);
}
.bubble table {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0 0 12px;
  overflow-x: auto;
  border-collapse: collapse;
  border-spacing: 0;
  text-align: start;
  white-space: normal;
}
.bubble th {
  min-width: 7rem;
  padding: 8px 10px;
  border: 1px solid rgba(116, 128, 143, 0.28);
  vertical-align: top;
}
.bubble td {
  min-width: 7rem;
  padding: 8px 10px;
  border: 1px solid rgba(116, 128, 143, 0.28);
  vertical-align: top;
}
.bubble th {
  background: rgba(31, 107, 99, 0.09);
  font-weight: 760;
}
.bubble tr:nth-child(even) td {
  background: rgba(116, 128, 143, 0.045);
}
.bubble img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 0 12px;
  border-radius: 10px;
}
.bubble video {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 0 12px;
  border-radius: 10px;
}
.bubble iframe {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 0 12px;
  border-radius: 10px;
}
.bubble details {
  margin: 0 0 10px;
  padding: 8px 10px;
  border: 1px solid rgba(116, 128, 143, 0.22);
  border-radius: 8px;
}
.bubble details > summary {
  cursor: pointer;
  font-weight: 700;
}
.bubble li + li {
  margin-top: 4px;
}
.bubble code {
  border-radius: 5px;
  background: rgba(47, 54, 63, 0.09);
  padding: 1px 5px;
  font-family:
    ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
}
.bubble pre {
  overflow-x: auto;
  margin: 0 0 10px;
  border-radius: var(--radius);
  background: #252b33;
  padding: 12px;
  color: #f7f9fb;
  white-space: pre;
  direction: ltr;
}
.bubble pre code {
  display: block;
  background: transparent;
  padding: 0;
  color: inherit;
  white-space: pre;
}
.bubble a {
  color: #1457a8;
  font-weight: 650;
}
.message.user .bubble {
  grid-column: 1;
  grid-row: 1;
}
.message.user .bubble code {
  background: rgba(255, 255, 255, 0.12);
}
.message.error .bubble {
  border-color: rgba(180, 35, 24, 0.32);
}
.retry-button {
  display: inline-block;
  border: 1px solid rgba(180, 35, 24, 0.35);
  border-radius: 8px;
  background: #fff;
  padding: 7px 14px;
  color: #912018;
  font: inherit;
  font-weight: 700;
}
.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.charge-account-button {
  border-color: #912018;
  background: #912018;
  color: #fff;
}
.retry-button:hover {
  background: #fee4e2;
}
.charge-account-button:hover {
  background: #741b14;
}
.key-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
  padding: 11px;
  border: 1px solid rgba(116, 128, 143, 0.18);
  border-radius: var(--radius);
  background: #fbf7ef;
}
.key-row code {
  border: 1px solid rgba(116, 128, 143, 0.22);
  background: rgba(237, 240, 244, 0.92);
  color: #343b45;
  white-space: normal;
  word-break: break-all;
}
.new-key code {
  border: 1px solid rgba(116, 128, 143, 0.22);
  background: rgba(237, 240, 244, 0.92);
  color: #343b45;
  white-space: normal;
  word-break: break-all;
}
.api-keys-page {
  box-sizing: border-box;
  height: 100vh;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  padding: 18px;
  scrollbar-gutter: stable;
}
.api-keys-shell {
  max-width: 1040px;
  margin: 0 auto;
  overflow: hidden;
}
.api-keys-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid rgba(116, 128, 143, 0.2);
  background: rgba(255, 255, 255, 0.42);
}
.api-keys-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.api-keys-content {
  display: grid;
  gap: 14px;
  padding: 16px;
}
.api-key-card {
  padding: 16px;
}
.api-key-card h1 {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 760;
  text-align: start;
  text-transform: none;
}
.api-key-card h2 {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 760;
  text-align: start;
  text-transform: none;
}
.payment-result-page {
  display: grid;
  place-items: center;
}
.payment-result-card {
  position: relative;
  width: min(100%, 620px);
  padding: 52px 34px 34px;
  overflow: hidden;
  text-align: center;
}
.payment-result-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  content: "";
  background: var(--accent);
}
.payment-result-card--success::before {
  background: #23866f;
}
.payment-result-card--failed::before {
  background: #b94b43;
}
.payment-result-icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: 0 auto 22px;
  border: 1px solid currentColor;
  font-size: 45px;
  font-weight: 500;
  line-height: 1;
}
.payment-result-card--success .payment-result-icon {
  background: #e2f3ed;
  color: #23866f;
}
.payment-result-card--failed .payment-result-icon {
  background: #f9e7e3;
  color: #b94b43;
}
.payment-result-status {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}
.payment-result-card h1 {
  margin: 0 auto 14px;
  color: var(--ink);
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 800;
  line-height: 1.35;
}
.payment-result-summary {
  margin: 0 auto 22px;
  color: var(--muted);
  font-size: 16px;
}
.payment-result-summary strong {
  color: #23866f;
  font-size: 26px;
}
.payment-result-bonus {
  margin: 0 auto 20px;
  padding: 11px 14px;
  border: 1px solid rgba(35, 134, 111, 0.22);
  border-radius: var(--radius-sm);
  background: #edf8f3;
  color: #226b5b;
  font-size: 13px;
  font-weight: 700;
}
.payment-result-reference {
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: var(--text-small);
}
.payment-result-reference strong {
  color: var(--ink);
}
.payment-result-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 210px;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
  transition:
    background 0.18s ease,
    transform 0.18s ease;
}
.credits-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100vh;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
}
.credits-page .api-keys-shell {
  width: 100%;
  flex: 0 0 auto;
}
.credits-page > .legal-powered-by {
  width: min(100%, 1040px);
  margin-top: 18px;
}
.payment-confirmation-page {
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  align-items: center;
  justify-items: center;
  min-height: 100vh;
  padding: 20px 16px;
}
.payment-confirmation-card {
  position: relative;
  width: min(100%, 520px);
  padding: 0;
  overflow: hidden;
}
.payment-confirmation-card {
  grid-row: 2;
  margin: 0;
}
.payment-confirmation-page > .legal-powered-by {
  grid-row: 3;
  align-self: end;
  width: min(100%, 520px);
  margin: 0 0 18px;
  padding-top: 0;
  border-top: 0;
}
.payment-confirmation-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px 28px 20px;
  text-align: center;
}
.payment-confirmation-header h1 {
  margin: 0;
  color: var(--ink);
  font-size: 19px;
  font-weight: 800;
}
.payment-confirmation-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: var(--action-soft);
  color: var(--action);
}
.payment-confirmation-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.payment-gateway-form {
  display: grid;
  gap: 0;
  padding: 0 28px 26px;
}
.payment-gateway-form::before {
  display: block;
  margin: 0 -28px 24px;
  border-top: 2px dashed var(--line);
  content: "";
}
.payment-gateway-picker {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.payment-gateway-picker legend {
  margin-bottom: 11px;
  color: var(--muted);
  font-size: 13px;
}
.payment-gateway-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.payment-gateway-option {
  position: relative;
  display: flex;
  flex: 0 1 calc(50% - 4px);
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 0;
  max-width: calc(50% - 4px);
  min-height: 42px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition:
    border-color 0.18s,
    background 0.18s,
    box-shadow 0.18s;
}
.payment-gateway-option:hover {
  border-color: color-mix(in srgb, var(--action) 40%, var(--line));
}
.payment-gateway-option:has(input:checked) {
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--action) 8%, transparent);
}
.payment-gateway-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.payment-gateway-indicator {
  flex: 0 0 18px;
  box-sizing: border-box;
  width: 18px;
  height: 18px;
  border: 2px solid var(--muted);
  border-radius: 50%;
  background: var(--panel);
  box-shadow: inset 0 0 0 4px var(--panel);
  transition:
    border-color 0.16s,
    background 0.16s;
}
.payment-gateway-option input:checked + .payment-gateway-indicator {
  border-color: var(--action);
  background: var(--action);
}
.payment-gateway-option input:focus-visible + .payment-gateway-indicator {
  outline: 3px solid color-mix(in srgb, var(--action) 16%, transparent);
  outline-offset: 3px;
}
.payment-gateway-logo {
  display: block;
  width: 52px;
  height: 24px;
  object-fit: contain;
}
.payment-confirmation-summary {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-block: 30px 28px;
  padding-block: 26px;
  border-block: 1px dashed var(--line);
}
.payment-confirmation-summary > span {
  color: var(--muted);
  font-size: 13px;
}
.payment-confirmation-summary strong {
  color: var(--ink);
  font-size: 32px;
  letter-spacing: -0.5px;
}
.payment-confirmation-summary small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}
.payment-confirmation-actions {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}
.payment-confirmation-actions a {
  min-width: 76px;
}
@media (max-width: 520px) {
.payment-confirmation-header {
    padding-inline: 20px;
  }
.payment-gateway-form {
    padding-inline: 20px;
  }
.payment-gateway-form::before {
    margin-inline: -20px;
  }
.payment-confirmation-summary strong {
    font-size: 28px;
  }
}
@media (max-width: 560px) {
.payment-result-card {
    padding: 42px 20px 26px;
  }
.payment-result-icon {
    width: 66px;
    height: 66px;
    font-size: 38px;
  }
}
.profile-page {
  box-sizing: border-box;
  height: 100vh;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  padding: 18px;
  background: transparent;
}
.profile-shell {
  max-width: 720px;
  margin: 0 auto;
  overflow: hidden;
}
.profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-bottom: 1px solid rgba(116, 128, 143, 0.2);
}
.profile-avatar {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--accent);
}
.profile-avatar.credit-avatar {
  background: linear-gradient(145deg, #fff1c7, #f6d98a);
}
.profile-avatar svg {
  width: 27px;
  height: 27px;
}
.profile-content {
  display: grid;
  gap: 14px;
  padding: 18px;
}
.profile-card {
  border: 1px solid var(--line);
  padding: 18px;
}
.profile-card h1 {
  margin: 0 0 5px;
  color: var(--ink);
  font-size: 20px;
}
.profile-card p {
  margin: 0 0 16px;
}
.profile-setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-weight: 700;
}
.profile-setting-row .language-switcher {
  min-width: 150px;
}
.profile-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  color: var(--ink);
  text-decoration: none;
}
.profile-link + .profile-link {
  border-top: 1px solid var(--line);
}
.profile-link > span:nth-child(2) {
  display: grid;
  flex: 1;
  gap: 2px;
}
.profile-link small {
  color: var(--muted);
  font-size: var(--text-small);
  font-weight: 400;
}
.profile-link-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
}
.profile-link-icon svg {
  width: 21px;
  height: 21px;
}
.profile-delete-link .profile-link-icon {
  color: #b42318;
}
.profile-avatar svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.profile-link-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.profile-logout-action svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.profile-chevron {
  display: grid;
  flex: 0 0 18px;
  place-items: center;
  color: var(--muted);
}
.profile-chevron svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition:
    transform 0.18s ease,
    color 0.18s ease;
}
.profile-link:hover .profile-chevron {
  color: var(--accent);
}
html[dir="rtl"] .profile-chevron {
  transform: scaleX(-1);
}
.profile-section-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
}
.profile-section-heading h2 {
  margin: 0 0 2px;
  color: var(--ink);
  font-size: 16px;
}
.profile-section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-small);
}
.profile-nested-links {
  padding-inline-start: 50px;
  padding-inline-end: 12px;
  overflow: hidden;
  border-radius: 10px;
}
.profile-nested-links .profile-link:first-child {
  border-top: 0;
}
.profile-nested-links .profile-link {
  padding-inline: 12px;
  border-top: 0;
  border-radius: 0;
}
.profile-nested-links .profile-link + .profile-link {
  border-top: 1px solid var(--line);
}
.profile-logout-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 45px;
  border: 1px solid rgba(180, 35, 24, 0.22);
  border-radius: var(--radius);
  background: rgba(180, 35, 24, 0.05);
  color: #b42318;
  font-weight: 700;
}
.profile-logout-action:hover {
  background: rgba(180, 35, 24, 0.1);
}
.profile-logout-action svg {
  width: 20px;
  height: 20px;
}
.profile-login {
  display: grid;
  place-items: center;
  min-height: 45px;
  text-decoration: none;
}
.language-switcher {
  display: grid;
  min-width: 112px;
}
.language-switcher select {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(116, 128, 143, 0.28);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  padding: 0 10px;
  font: inherit;
  font-size: 13px;
}
.language-switcher select:focus {
  border-color: rgba(47, 54, 63, 0.46);
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(47, 54, 63, 0.12);
}
@media (max-width: 900px) {
.topbar-actions .language-switcher {
    min-width: 96px;
  }
}
@media (max-width: 640px) {
.message {
    grid-template-columns: 1fr;
  }
.message.user {
    grid-template-columns: 1fr;
  }
.avatar {
    display: none;
  }
.message.user .avatar {
    display: none;
  }
.message.user .bubble {
    grid-column: 1;
  }
.message:not(.user) {
    grid-template-columns: 35px minmax(0, 1fr);
  }
.message:not(.user) .avatar {
    display: grid;
    width: 35px;
    height: 35px;
  }
.api-keys-header {
    align-items: stretch;
    flex-direction: column;
  }
.api-keys-actions {
    align-items: stretch;
    flex-direction: column;
  }
.auth-brand {
    align-items: flex-start;
    flex-wrap: wrap;
  }
.auth-brand .language-switcher {
    width: 100%;
    margin-inline-start: 0;
  }
}
.session-actions:hover {
  border-color: var(--line-strong);
  background: var(--accent-soft);
  color: var(--ink);
}
.session-actions.open {
  border-color: var(--line-strong);
  background: var(--accent-soft);
  color: var(--ink);
}
.ui-select-option:hover {
  border-color: var(--line-strong);
  background: var(--accent-soft);
  color: var(--ink);
}
.ui-select-option:focus-visible {
  border-color: var(--line-strong);
  background: var(--accent-soft);
  color: var(--ink);
}
.ui-select-trigger:hover {
  border-color: var(--line-strong);
  background: var(--surface-hover);
}
.ui-select.open .ui-select-trigger {
  border-color: var(--line-strong);
  background: var(--surface-hover);
}
.topbar-actions {
  position: relative;
  z-index: 51;
}
.language-switcher {
  position: relative;
  z-index: 51;
}
.language-switcher .ui-select {
  position: relative;
  z-index: 51;
}
.language-switcher .ui-select-menu {
  inset-block-start: calc(100% + 8px);
  inset-block-end: auto;
  inset-inline-start: auto;
  inset-inline-end: 0;
  z-index: 60;
  border-color: var(--line);
  background: var(--surface);
}
.ui-select-chevron {
  width: 8px;
  height: 8px;
  border: 0;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-1px, -1px);
  transform-origin: center;
}
.ui-select.open .ui-select-chevron {
  transform: rotate(225deg) translate(-1px, -1px);
}
.messages {
  position: relative;
  z-index: 1;
}
@media (max-width: 900px) {
html {
    min-height: 100%;
  }
body {
    min-height: 100%;
  }
.page-container {
    min-height: 100%;
  }
}
@keyframes guest-gift-enter {
  from {
    opacity: 0;
    transform: translateY(-18px) rotate(-10deg) scale(0.84);
  }
  62% {
    opacity: 1;
    transform: translateY(2px) rotate(1deg) scale(1.035);
  }
  to {
    opacity: 1;
    transform: rotate(-1deg) scale(1);
  }
}
@keyframes guest-amount-arrive {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
body::before {
  width: min(48vw, 620px);
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: 0.42;
  filter: blur(3px);
  transition: transform 900ms var(--motion-ease);
}
body::after {
  position: fixed;
  z-index: -1;
  width: min(48vw, 620px);
  aspect-ratio: 1;
  border-radius: 50%;
  content: "";
  opacity: 0.42;
  pointer-events: none;
  filter: blur(3px);
  transition: transform 900ms var(--motion-ease);
}
body::before {
  inset-block-start: -22%;
  inset-inline-start: -12%;
  transform: translate3d(var(--pointer-x), var(--pointer-y), 0);
}
body::after {
  inset-block-end: -28%;
  inset-inline-end: -12%;
  background: radial-gradient(circle, rgba(31, 107, 99, 0.13), transparent 68%);
  transform: translate3d(
    calc(0px - var(--pointer-x)),
    calc(0px - var(--pointer-y)),
    0
  );
}
.brand-row {
  animation: motion-enter-up var(--motion-enter) 60ms var(--motion-ease) both;
}
button {
  transition-timing-function: var(--motion-ease);
}
.credit-summary {
  transition-timing-function: var(--motion-ease);
}
.price-value.credit-counting {
  animation: credit-value-pop 540ms var(--motion-ease);
}
#daily-credit-amount.credit-counting {
  animation: credit-value-pop 540ms var(--motion-ease);
}
.credit-summary.credit-received {
  animation: credit-surface-glow 720ms var(--motion-ease);
}
@keyframes motion-enter-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes motion-enter-side {
  from {
    opacity: 0;
    transform: translateX(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes assistant-breathe {
  0%,
  100% {
    box-shadow: 0 14px 34px rgba(180, 81, 44, 0.16);
  }
  50% {
    box-shadow: 0 18px 42px rgba(180, 81, 44, 0.25);
  }
}
@keyframes motion-popover-in {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes active-session-in {
  from {
    opacity: 0;
    transform: scaleY(0.25);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes send-state-pulse {
  0%,
  100% {
    opacity: 0.28;
    transform: scale(0.92);
  }
  50% {
    opacity: 0.9;
    transform: scale(1);
  }
}
@keyframes credit-value-pop {
  45% {
    transform: scale(1.16);
    color: var(--accent);
  }
}
@keyframes credit-surface-glow {
  45% {
    box-shadow:
      0 0 0 5px rgba(180, 81, 44, 0.13),
      var(--shadow-soft);
  }
}
@media (max-width: 900px), (pointer: coarse) {
body::before {
    transform: none;
  }
body::after {
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
html:focus-within {
    scroll-behavior: auto;
  }
body::before {
    animation: none;
    transition-duration: 0.001ms;
  }
body::after {
    animation: none;
    transition-duration: 0.001ms;
  }
.brand-row {
    animation: none;
    transition-duration: 0.001ms;
  }
.price-value.credit-counting {
    animation: none;
    transition-duration: 0.001ms;
  }
#daily-credit-amount.credit-counting {
    animation: none;
    transition-duration: 0.001ms;
  }
.credit-summary.credit-received {
    animation: none;
    transition-duration: 0.001ms;
  }
}
html.theme-dark-effective .profile-card {
  box-shadow: var(--shadow);
}
html.theme-dark-effective .auth-card {
  box-shadow: var(--shadow);
}
html.theme-dark-effective .credit-history-card {
  border-color: var(--glass-line);
  background: rgba(20, 31, 39, 0.88);
  box-shadow: var(--shadow);
}
html.theme-dark-effective .profile-header {
  border-color: var(--glass-line);
}
html.theme-dark-effective .api-keys-header {
  border-color: var(--glass-line);
  background: rgba(255, 255, 255, 0.035);
}
html.theme-dark-effective .credit-history-item:hover {
  background: #203b40;
}
html.theme-dark-effective .credit-history-card__header {
  border-color: var(--glass-line);
}
html.theme-dark-effective .credit-history-item {
  border-color: var(--glass-line);
}
html.theme-dark-effective .theme-switcher {
  background: #111c22;
}
html.theme-dark-effective .theme-option {
  color: var(--muted);
}
html.theme-dark-effective .icon-button {
  border-color: var(--line);
  background: #213640;
  color: var(--muted);
}
html.theme-dark-effective .icon-button:hover {
  border-color: var(--secondary);
  background: #29484c;
  color: var(--ink);
}
html.theme-dark-effective .profile-header {
  background: rgba(255, 255, 255, 0.035);
}
html.theme-dark-effective .credit-opportunity__icon {
  background: #1d4545;
  color: var(--secondary);
}
html.theme-dark-effective .credit-package__icon {
  background: color-mix(in srgb, var(--package-accent) 18%, #1b2d35);
}
html.theme-dark-effective .credit-package__badge {
  background: color-mix(in srgb, var(--package-accent) 18%, #1b2d35);
}
html.theme-dark-effective .credit-opportunity__message {
  color: var(--cc-muted);
}
html.theme-dark-effective .streak-day > span {
  border-color: var(--cc-line);
  background: #1a2d35;
  color: var(--cc-ink);
}
html.theme-dark-effective .referral-share input {
  border-color: var(--cc-line);
  background: #1a2d35;
  color: var(--cc-ink);
}
html.theme-dark-effective .referral-code-form input {
  border-color: var(--cc-line);
  background: #1a2d35;
  color: var(--cc-ink);
}
html.theme-dark-effective .api-key-card {
  box-shadow: var(--shadow);
}
html.theme-dark-effective .ui-input {
  border-color: var(--line);
  background: #172830;
  color: var(--ink);
}
html.theme-dark-effective .ui-input::placeholder {
  color: #82999e;
}
html.theme-dark-effective .credit-summary {
  border-color: rgba(114, 198, 181, 0.24);
  background: linear-gradient(145deg, #203f42, #293640);
  color: var(--ink);
}
html.theme-dark-effective .credit-summary:hover {
  border-color: rgba(114, 198, 181, 0.48);
  background: linear-gradient(145deg, #294f4e, #33404a);
}
html.theme-dark-effective .credit-summary strong {
  color: #a8dcf5;
}
html.theme-dark-effective .bubble blockquote {
  background: rgba(114, 198, 181, 0.1);
}
html.theme-dark-effective .legal-header {
  border-color: var(--glass-line);
  background: rgba(20, 31, 39, 0.9);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
}
html.theme-dark-effective .legal-document {
  border-color: var(--glass-line);
  background: rgba(20, 31, 39, 0.9);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
}
html.theme-dark-effective .legal-document .legal-intro {
  border-color: var(--accent);
  background: #213640;
  color: var(--ink);
}
html.theme-dark-effective .legal-document a {
  color: #82d4c1;
}
html.theme-dark-effective .legal-nav {
  border-color: var(--line);
}
html.theme-dark-effective .legal-nav a {
  border-color: var(--glass-line);
  background: rgba(26, 42, 51, 0.72);
  color: var(--ink);
}
html.theme-dark-effective .legal-nav a:hover {
  border-color: var(--accent);
  background: rgba(33, 54, 64, 0.95);
  color: #82d4c1;
}
html.theme-dark-effective .legal-powered-by {
  border-color: var(--line);
  color: var(--muted);
}
html.theme-dark-effective .page-theme-switcher {
  border-color: var(--glass-line);
  background: rgba(17, 28, 34, 0.92);
  box-shadow: var(--shadow-soft);
}
html.theme-dark-effective .page-theme-option {
  color: var(--muted);
}
html.theme-dark-effective .page-theme-option:hover {
  color: var(--ink);
}
html.theme-dark-effective .page-theme-option.is-selected {
  background: #263f47;
  color: var(--accent-hover);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
}
html.theme-dark-effective .auth-card::before {
  background: radial-gradient(
    circle,
    rgba(56, 112, 105, 0.28),
    rgba(56, 112, 105, 0) 70%
  );
}
html.theme-dark-effective .auth-logo-wrap {
  border-color: rgba(185, 210, 214, 0.14);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}
html.theme-dark-effective .auth-brand-subtitle {
  color: var(--muted);
}
html.theme-dark-effective .auth-step i {
  background: #47616a;
}
html.theme-dark-effective .auth-step i.is-active {
  background: var(--accent);
}
html.theme-dark-effective .auth-body .ui-input[id="id_phone_number"] {
  border-color: var(--line);
  background: #172830;
  color: var(--ink);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.16);
}
html.theme-dark-effective .otp-digit {
  border-color: var(--line);
  background: #172830;
  color: var(--ink);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.16);
}
html.theme-dark-effective .auth-body .ui-input[id="id_phone_number"]:hover {
  border-color: var(--line-strong);
  background: #1d313a;
}
html.theme-dark-effective .otp-digit:hover {
  border-color: var(--line-strong);
  background: #1d313a;
}
html.theme-dark-effective .auth-body .ui-input[id="id_phone_number"]:focus {
  border-color: var(--accent);
  background: #1d313a;
  box-shadow: 0 0 0 4px rgba(239, 139, 98, 0.18);
}
html.theme-dark-effective .otp-digit:focus {
  border-color: var(--accent);
  background: #1d313a;
  box-shadow: 0 0 0 4px rgba(239, 139, 98, 0.18);
}
html.theme-dark-effective .auth-legal-notice {
  border-color: var(--glass-line);
  color: var(--muted);
}
html.theme-dark-effective .ui-select-trigger {
  border-color: var(--line);
  background: #213640;
  color: var(--ink);
}
html.theme-dark-effective .ui-select-trigger:hover {
  border-color: var(--secondary);
  background: #29484c;
  color: var(--ink);
}
html.theme-dark-effective .ui-select.open .ui-select-trigger {
  border-color: var(--secondary);
  background: #29484c;
  color: var(--ink);
}
html.theme-dark-effective .ui-select-menu {
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.38);
}
html.theme-dark-effective .ui-select-option {
  color: var(--ink);
}
html.theme-dark-effective .ui-select-option:hover {
  background: #29484c;
  color: var(--ink);
}
html.theme-dark-effective .ui-select-option:focus-visible {
  background: #29484c;
  color: var(--ink);
}
html.theme-dark-effective .ui-select-option.selected {
  background: #2d454b;
  color: #a8dcf5;
}
.profile-settings-title {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 800;
}
.profile-theme-row {
  align-items: center;
}
.profile-setting-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--ink);
}
.profile-setting-label strong {
  white-space: nowrap;
}
.theme-switcher {
  display: grid;
  flex: 0 1 330px;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  min-width: min(250px, 100%);
  padding: 5px;
  border: 1px solid var(--line);
}
.theme-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: var(--text-small);
  font-weight: 750;
  cursor: pointer;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}
.theme-option svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.theme-option:hover {
  color: var(--ink);
}
@media (max-width: 520px) {
.profile-theme-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }
}
@media (max-width: 420px) {
.theme-option {
    gap: 4px;
    font-size: var(--text-caption);
  }
}
:root {
  /* A compact, shared type and icon scale for all customer-facing surfaces. */
  --text-caption: 0.75rem;
  --text-small: 0.8125rem;
  --text-control: 0.875rem;
  --text-body: 0.9375rem;
  --text-title: 1.125rem;
  --icon-small: 1rem;
  --icon-medium: 1.25rem;
  --icon-large: 1.5rem;
  --avatar-small: 2rem;
  --avatar-medium: 2.75rem;
  --tap-target: 2.75rem;
  --toast-surface: #fffdf9;
  --toast-ink: #172c35;
  --toast-muted: #5b6b6f;
  --toast-shadow: 0 18px 46px rgba(23, 44, 53, 0.16);
  --motion-fast: 160ms;
  --motion-state: 280ms;
  --motion-enter: 560ms;
  --motion-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pointer-x: 0px;
  --pointer-y: 0px;
  --panel-bg: #f4eee4;
  --panel-bg-deep: #e8dfd2;
  --glass: rgba(255, 252, 247, 0.9);
  --glass-line: #ded5c8;
  --surface: #fffdf9;
  --surface-subtle: #f6f0e7;
  --surface-hover: #efe9df;
  --line: #ded5ca;
  --line-strong: #c9bcae;
  --ink: #1d302f;
  --muted: #697674;
  --accent: #c97861;
  --accent-hover: #b66751;
  --accent-soft: #f7e7df;
  --action: #367a73;
  --action-hover: #28665f;
  --action-soft: #e4f0ed;
  --button-primary: linear-gradient(135deg, #3d8179, #2f7069);
  --button-primary-hover: linear-gradient(135deg, #33736c, #265f59);
  --secondary: #345f78;
  --secondary-soft: #eaf0f4;
  --credit-value: #315f78;
  --danger: #b33f45;
  --danger-soft: #faebec;
  --shadow: 0 18px 50px rgba(23, 40, 48, 0.08);
  --shadow-soft: 0 8px 24px rgba(23, 40, 48, 0.07);
  --radius: 18px;
  --radius-sm: 12px;
  --focus: 0 0 0 3px rgba(40, 111, 104, 0.18);
  --content-width: 820px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  color-scheme: light;
}
html.theme-dark-effective {
  --toast-surface: #192830;
  --toast-ink: #edf5f3;
  --toast-muted: #a6b9bc;
  --toast-shadow: 0 20px 52px rgba(0, 0, 0, 0.42);
  --panel-bg: #171b1c;
  --panel-bg-deep: #101415;
  --glass: rgba(28, 31, 31, 0.94);
  --glass-line: #3b3c38;
  --surface: #232827;
  --surface-subtle: #2c302e;
  --surface-hover: #343936;
  --line: #404440;
  --line-strong: #595d56;
  --ink: #f3f1eb;
  --muted: #aaa9a2;
  --accent: #e69a7e;
  --accent-hover: #f2ae94;
  --accent-soft: #49342d;
  --action: #6aafa6;
  --action-hover: #57968e;
  --action-soft: #203e3b;
  --button-primary: linear-gradient(135deg, #397f77, #2c6c65);
  --button-primary-hover: linear-gradient(135deg, #327068, #255c56);
  --secondary: #8dbbd2;
  --secondary-soft: #20343e;
  --credit-value: #a5cee0;
  --danger: #ee8c91;
  --danger-soft: #45282c;
  --shadow: 0 20px 58px rgba(0, 0, 0, 0.26);
  --shadow-soft: 0 9px 28px rgba(0, 0, 0, 0.22);
  --focus: 0 0 0 3px rgba(239, 139, 98, 0.22);
  color-scheme: dark;
}
html {
  min-height: 100%;
}
body {
  min-height: 100%;
}
body {
  background:
    radial-gradient(
      circle at 8% 4%,
      color-mix(in srgb, var(--secondary) 11%, transparent),
      transparent 32%
    ),
    radial-gradient(
      circle at 92% 94%,
      color-mix(in srgb, var(--accent) 11%, transparent),
      transparent 30%
    ),
    linear-gradient(
      145deg,
      var(--panel-bg),
      color-mix(in srgb, var(--panel-bg) 82%, var(--panel-bg-deep))
    );
  color: var(--ink);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
html.theme-dark-effective body {
  background:
    radial-gradient(
      circle at 8% 4%,
      color-mix(in srgb, var(--secondary) 11%, transparent),
      transparent 32%
    ),
    radial-gradient(
      circle at 92% 94%,
      color-mix(in srgb, var(--accent) 11%, transparent),
      transparent 30%
    ),
    linear-gradient(
      145deg,
      var(--panel-bg),
      color-mix(in srgb, var(--panel-bg) 82%, var(--panel-bg-deep))
    );
  color: var(--ink);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--accent) 5%, transparent),
    transparent 42%
  );
  content: "";
  pointer-events: none;
}
button {
  font: inherit;
}
input {
  font: inherit;
}
textarea {
  font: inherit;
}
select {
  font: inherit;
}
a {
  color: var(--accent);
}
button {
  transition:
    color 0.16s var(--ease),
    background 0.16s var(--ease),
    border-color 0.16s var(--ease),
    box-shadow 0.16s var(--ease),
    transform 0.16s var(--ease);
}
a {
  transition:
    color 0.16s var(--ease),
    background 0.16s var(--ease),
    border-color 0.16s var(--ease),
    box-shadow 0.16s var(--ease),
    transform 0.16s var(--ease);
}
button:focus-visible {
  outline: 0;
  box-shadow: var(--focus);
}
a:focus-visible {
  outline: 0;
  box-shadow: var(--focus);
}
input:focus-visible {
  outline: 0;
  box-shadow: var(--focus);
}
textarea:focus-visible {
  outline: 0;
  box-shadow: var(--focus);
}
select:focus-visible {
  outline: 0;
  box-shadow: var(--focus);
}
summary:focus-visible {
  outline: 0;
  box-shadow: var(--focus);
}
.ui-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.ui-button:disabled {
  cursor: default;
  opacity: 0.55;
}
.ui-button--block {
  width: 100%;
}
.ui-button--primary {
  background: var(--action);
  color: #fff;
  box-shadow: 0 7px 16px color-mix(in srgb, var(--action) 18%, transparent);
}
.ui-button--primary:hover:not(:disabled) {
  background: var(--action-hover);
  color: #fff;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--action) 23%, transparent);
}
.ui-button--secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}
.ui-button--secondary:hover:not(:disabled) {
  border-color: var(--line-strong);
  background: var(--surface-hover);
  color: var(--ink);
}
.ui-button--danger {
  background: var(--danger);
  color: #fff;
}
.ui-button--danger:hover:not(:disabled) {
  background: color-mix(in srgb, var(--danger) 86%, #000);
  color: #fff;
}
.ui-button--danger-soft {
  border-color: color-mix(in srgb, var(--danger) 28%, var(--line));
  background: var(--danger-soft);
  color: var(--danger);
}
.ui-button--danger-soft:hover:not(:disabled) {
  border-color: color-mix(in srgb, var(--danger) 42%, var(--line));
  background: color-mix(in srgb, var(--danger-soft) 78%, var(--surface));
  color: var(--danger);
}
.ui-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
}
.glass-panel {
  border-color: var(--glass-line);
  background: var(--glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
html.theme-dark-effective .glass-panel {
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.brand-row {
  position: relative;
  z-index: 20;
  min-height: 44px;
  padding: 2px 4px 7px;
  overflow: visible;
}
.app-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  box-shadow: none;
}
.brand-copy strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 780;
}
.brand-copy span {
  color: var(--muted);
  font-size: var(--text-caption);
}
.session-actions {
  color: var(--muted);
}
.account-menu-chevron {
  width: 14px;
  height: 14px;
  margin-inline-start: auto;
  fill: none;
  color: var(--muted);
  transition: transform 0.16s var(--ease);
}
.messages {
  padding: 18px clamp(16px, 4vw, 54px) 34px;
  scroll-padding-bottom: 34px;
}
.message {
  max-width: var(--content-width);
}
.message .bubble {
  line-height: 1.9;
}
.message:not(.user) {
  row-gap: 0;
}
.message:not(.user) .bubble {
  padding: 0 4px;
  border-color: transparent;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  box-shadow: none;
}
html.theme-dark-effective .message:not(.user) .bubble {
  padding: 0 4px;
  border-color: transparent;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  box-shadow: none;
}
.message.user .bubble {
  border-color: color-mix(in srgb, var(--ink) 7%, transparent);
  border-radius: 13px;
  background: color-mix(in srgb, var(--surface-subtle) 82%, transparent);
  color: var(--ink);
  box-shadow: none;
}
html.theme-dark-effective .message.user .bubble {
  border-color: color-mix(in srgb, var(--ink) 7%, transparent);
  border-radius: 13px;
  background: color-mix(in srgb, var(--surface-subtle) 82%, transparent);
  color: var(--ink);
  box-shadow: none;
}
.message.error .bubble {
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--danger) 26%, var(--line));
  border-inline-start: 3px solid var(--danger);
  border-radius: 12px;
  background: color-mix(in srgb, var(--danger-soft) 72%, var(--surface));
  color: var(--ink);
  box-shadow: none;
  line-height: 1.75;
}
html.theme-dark-effective .message.error .bubble {
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--danger) 26%, var(--line));
  border-inline-start: 3px solid var(--danger);
  border-radius: 12px;
  background: color-mix(in srgb, var(--danger-soft) 72%, var(--surface));
  color: var(--ink);
  box-shadow: none;
  line-height: 1.75;
}
.message.error .bubble::before {
  display: none;
}
.message.error .error-actions {
  margin-top: 10px;
}
.message.error .retry-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  border-color: color-mix(in srgb, var(--danger) 28%, var(--line));
  border-radius: 8px;
  background: var(--surface);
  padding: 5px 11px;
  color: var(--danger);
  font-size: var(--text-small);
  font-weight: 720;
}
.message.error .retry-button:hover {
  border-color: color-mix(in srgb, var(--danger) 42%, var(--line));
  background: var(--danger-soft);
  color: var(--danger);
}
.message.error .retry-button:focus-visible {
  border-color: color-mix(in srgb, var(--danger) 42%, var(--line));
  background: var(--danger-soft);
  color: var(--danger);
}
.message.error .charge-account-button {
  border-color: transparent;
  background: var(--danger);
  color: #fff;
}
.message.error .charge-account-button:hover {
  border-color: transparent;
  background: var(--danger);
  color: #fff;
}
.message.error .charge-account-button:focus-visible {
  border-color: transparent;
  background: var(--danger);
  color: #fff;
}
.icon-button {
  border-color: transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
}
.icon-button:hover {
  border-color: transparent;
  background: var(--surface-hover);
  color: var(--ink);
}
.tool-menu-item {
  border: 1px solid transparent;
  background: transparent;
}
.tool-menu-item:hover {
  border-color: var(--line);
  background: var(--surface-hover);
}
.tool-menu-action:focus-visible {
  border-color: var(--line);
  background: var(--surface-hover);
}
.tool-menu-item.is-enabled {
  border-color: color-mix(in srgb, var(--action) 28%, var(--line));
  background: var(--action-soft);
}
.tool-menu-item.is-enabled:hover {
  border-color: color-mix(in srgb, var(--action) 28%, var(--line));
  background: var(--action-soft);
}
.more-tools-button {
  border-color: color-mix(in srgb, var(--action) 25%, var(--line));
  background: var(--action-soft);
  color: var(--action);
}
.more-tools-button:hover {
  border-color: color-mix(in srgb, var(--action) 38%, var(--line));
  background: color-mix(in srgb, var(--action-soft) 72%, var(--surface));
  color: var(--action-hover);
}
.more-tools-button:focus-visible {
  border-color: color-mix(in srgb, var(--action) 38%, var(--line));
  background: color-mix(in srgb, var(--action-soft) 72%, var(--surface));
  color: var(--action-hover);
}
.profile-login {
  border: 1px solid transparent;
  background: var(--button-primary);
  color: #fff;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--action) 18%, transparent);
  opacity: 1;
}
.profile-login:hover {
  border-color: transparent;
  background: var(--button-primary-hover);
  color: #fff;
  box-shadow: 0 10px 22px color-mix(in srgb, var(--action) 22%, transparent);
  transform: translateY(-1px);
}
.ui-input {
  border-color: var(--line);
}
input {
  border-color: var(--line);
}
textarea {
  border-color: var(--line);
}
select {
  border-color: var(--line);
}
.legal-page {
  background: transparent;
}
.payment-result-page {
  background: transparent;
}
.payment-confirmation-page {
  background: transparent;
}
.credits-page {
  background: transparent;
}
.auth-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.profile-shell {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.api-keys-shell {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.api-key-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.legal-document {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.payment-result-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.payment-confirmation-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.auth-card::before {
  display: none;
}
.payment-result-card::before {
  display: none;
}
.auth-logo-wrap {
  border-radius: 13px;
  background: var(--accent-soft);
  box-shadow: none;
}
.profile-avatar {
  border-radius: 13px;
  background: var(--accent-soft);
  box-shadow: none;
}
.auth-title {
  color: var(--ink);
}
.auth-heading h2 {
  color: var(--ink);
}
.profile-settings-title {
  color: var(--ink);
}
.api-key-card h1 {
  color: var(--ink);
}
.api-key-card h2 {
  color: var(--ink);
}
.profile-header {
  border-color: var(--line);
  background: var(--surface-subtle);
}
.profile-card {
  border-color: var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: none;
}
.profile-link {
  border-radius: 10px;
}
.profile-link:hover {
  background: var(--surface-subtle);
  box-shadow: inset 0 0 0 1px var(--line);
}
.profile-link:hover .profile-link-icon {
  background: var(--accent-soft);
  color: var(--accent);
}
.profile-danger-card:has(.profile-delete-link:hover),
.profile-danger-card:has(.profile-delete-link:focus-visible) {
  border-color: rgba(180, 35, 24, 0.35);
  background: rgba(180, 35, 24, 0.07);
}
.profile-delete-link:hover,
.profile-delete-link:focus-visible {
  background: transparent;
  box-shadow: none;
}
.profile-delete-link:hover .profile-link-icon,
.profile-delete-link:focus-visible .profile-link-icon {
  background: rgba(180, 35, 24, 0.14);
  color: #b42318;
}
.profile-link-icon {
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
}
.theme-switcher {
  border-color: var(--line);
  border-radius: 12px;
  background: var(--surface-subtle);
}
.theme-option {
  min-height: 40px;
  border-radius: 9px;
}
.theme-option.is-selected {
  background: var(--surface);
  color: var(--accent);
  box-shadow: 0 2px 8px rgba(23, 40, 48, 0.08);
}
.legal-document .legal-intro {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.credit-opportunity {
  border-color: var(--line);
  border-radius: 15px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: none;
}
.credit-package {
  border-color: var(--line);
  border-radius: 15px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: none;
}
html.theme-dark-effective .credit-opportunity {
  border-color: var(--line);
  border-radius: 15px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: none;
}
html.theme-dark-effective .credit-package {
  border-color: var(--line);
  border-radius: 15px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: none;
}
.credit-opportunity:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}
.credit-package:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}
.credit-opportunity--daily {
  background: var(--surface);
}
.credit-opportunity--daily.is-complete {
  background: var(--surface);
}
.credit-opportunity--daily.is-ready::after {
  display: none;
}
.credit-opportunity__icon {
  border-radius: 10px;
  background: var(--action-soft);
  color: var(--action);
}
.credit-package__icon {
  border-radius: 15px;
  color: var(--package-accent);
  background: color-mix(in srgb, var(--package-accent) 10%, var(--surface));
}
.credit-package__badge {
  color: var(--package-accent);
  background: color-mix(in srgb, var(--package-accent) 9%, var(--surface));
}
.credit-package__credits {
  color: var(--package-accent);
}
.payment-result-icon {
  border-radius: 12px;
  box-shadow: none;
}
.payment-confirmation-icon {
  border-radius: 12px;
  box-shadow: none;
}
.payment-result-action {
  border-radius: 11px;
}
.payment-result-gift {
  border-color: var(--line);
  background: var(--surface-subtle);
  color: var(--muted);
}
.payment-gateway-option {
  border-radius: 11px;
  background: var(--surface);
}
.payment-gateway-option:has(input:checked) {
  border-color: var(--action);
  background: var(--action-soft);
}
html.theme-dark-effective .glass-panel {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}
html.theme-dark-effective .api-key-card {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}
html.theme-dark-effective .auth-card {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}
html.theme-dark-effective .profile-card {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}
html.theme-dark-effective .ui-select-menu {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}
html.theme-dark-effective input {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}
html.theme-dark-effective textarea {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}
@media (max-width: 900px) {
.messages {
    padding-inline: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
* {
    scroll-behavior: auto;
    animation-duration: 0.001ms;
    animation-iteration-count: 1;
    transition-duration: 0.001ms;
  }
*::before {
    scroll-behavior: auto;
    animation-duration: 0.001ms;
    animation-iteration-count: 1;
    transition-duration: 0.001ms;
  }
*::after {
    scroll-behavior: auto;
    animation-duration: 0.001ms;
    animation-iteration-count: 1;
    transition-duration: 0.001ms;
  }
}

/* dialogs component */
.app-dialog {
  margin: auto;
  border: 0;
  border-radius: 1rem;
  padding: 0;
  color: inherit;
}
.app-dialog > .api-key-card {
  margin: 0;
  text-align: center;
}
.dialog-card-centered {
  text-align: center;
}
.dialog-status {
  margin-top: 8px;
}
@keyframes dialog-depth-in {
  from {
  opacity: 0;
  }
  to {
  opacity: 1;
  }
}
@keyframes backdrop-in {
  from {
  opacity: 0;
  }
  to {
  opacity: 1;
  }
}
.dialog-copy h2 {
  margin: 1px 0 6px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 850;
  text-align: start;
  text-transform: none;
}
.dialog-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.dialog-card > input:focus {
  border-color: var(--accent);
  box-shadow: var(--focus);
}
.dialog-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 4px;
}
.guest-welcome-dialog {
  width: min(92vw, 452px);
  overflow: visible;
  border-radius: 32px;
}
.guest-welcome-dialog::backdrop {
  background: rgba(20, 17, 47, 0.7);
  backdrop-filter: blur(12px) saturate(0.8);
}
.guest-welcome-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 32px;
  background: linear-gradient(155deg, #fff 12%, #fff8ed 55%, #f7f0ff 100%);
  padding: 38px 36px 32px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(20, 17, 47, 0.32);
}
.guest-welcome-card::before {
  position: absolute;
  z-index: -1;
  top: -140px;
  inset-inline-start: 50%;
  width: 360px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(
  circle,
  rgba(255, 196, 88, 0.32),
  rgba(255, 196, 88, 0) 68%
  );
  content: "";
  transform: translateX(-50%);
  pointer-events: none;
}
body[dir="rtl"] .guest-welcome-card::before {
  transform: translateX(50%);
}
.guest-welcome-card::after {
  position: absolute;
  z-index: -1;
  inset-inline-end: -92px;
  bottom: -110px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(
  circle,
  rgba(126, 80, 180, 0.13),
  rgba(126, 80, 180, 0) 70%
  );
  content: "";
  pointer-events: none;
}
.guest-welcome-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: 0 auto 20px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 25px;
  background: linear-gradient(145deg, #ffd977, #f4a540);
  color: #7b4610;
  box-shadow:
  0 16px 34px rgba(212, 137, 35, 0.27),
  inset 0 1px rgba(255, 255, 255, 0.68);
  transform: rotate(-1deg);
}
.guest-welcome-icon::after {
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 18px;
  content: "";
}
.guest-welcome-icon svg {
  width: 38px;
  height: 38px;
  stroke: currentColor;
  stroke-width: 1.7;
}
.guest-welcome-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 10px;
  border: 1px solid rgba(180, 81, 44, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  padding: 3px 12px;
  color: #955033;
  font-size: var(--text-small);
  font-weight: 800;
}
.guest-welcome-card h2 {
  width: 100%;
  margin: 0 0 10px;
  color: #211b35;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.45;
  text-align: center;
}
.guest-welcome-description {
  width: 100%;
  max-width: 320px;
  margin: 0 auto 22px;
  color: #716b7c;
  font-size: 14px;
  line-height: 1.9;
  text-align: center;
}
.guest-welcome-amount {
  display: flex;
  align-items: baseline;
  justify-content: center;
  width: 100%;
  margin: 0 0 24px;
  border: 1px solid rgba(180, 81, 44, 0.14);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.7);
  padding: 13px 18px 12px;
  color: #211b35;
  box-shadow:
  0 10px 28px rgba(73, 52, 28, 0.08),
  inset 0 1px rgba(255, 255, 255, 0.8);
  text-align: center;
}
.guest-welcome-amount strong {
  font-size: 36px;
  font-weight: 950;
  line-height: 1;
}
.guest-welcome-amount span {
  margin-inline-start: 8px;
  color: #955033;
  font-size: 13px;
  font-weight: 850;
}
.dialog-button-row {
  display: flex;
  justify-content: center;
  gap: 8px;
}
.guest-welcome-card > .dialog-button-row {
  width: 100%;
}
.guest-welcome-card #daily-credit-message:empty {
  display: none;
}
.signup-gift-dialog {
  width: min(92vw, 452px);
  overflow: visible;
  border-radius: 32px;
}
.signup-gift-dialog::backdrop {
  background: rgba(27, 20, 54, 0.7);
  backdrop-filter: blur(12px) saturate(0.82);
}
.signup-gift-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 32px;
  background: linear-gradient(155deg, #fff 10%, #f8f3ff 58%, #eee8ff 100%);
  padding: 38px 36px 32px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(34, 24, 75, 0.32);
}
.signup-gift-card::before {
  position: absolute;
  z-index: -1;
  top: -140px;
  inset-inline-start: 50%;
  width: 360px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(
  circle,
  rgba(164, 125, 255, 0.3),
  rgba(164, 125, 255, 0) 68%
  );
  content: "";
  transform: translateX(-50%);
  pointer-events: none;
}
body[dir="rtl"] .signup-gift-card::before {
  transform: translateX(50%);
}
.signup-gift-icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: 0 auto 20px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 25px;
  background: linear-gradient(145deg, #cbb6ff, #8d6be8);
  color: #3f2a87;
  box-shadow:
  0 16px 34px rgba(110, 78, 205, 0.25),
  inset 0 1px rgba(255, 255, 255, 0.7);
  transform: rotate(-1deg);
}
.signup-gift-icon svg {
  width: 38px;
  height: 38px;
  stroke: currentColor;
  stroke-width: 1.7;
}
.signup-gift-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 10px;
  border: 1px solid rgba(91, 63, 165, 0.15);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  padding: 3px 12px;
  color: #6043a6;
  font-size: var(--text-small);
  font-weight: 800;
}
.signup-gift-card h2 {
  width: 100%;
  margin: 0 0 10px;
  color: #261c4d;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.45;
  text-align: center;
}
.signup-gift-description {
  width: 100%;
  max-width: 330px;
  margin: 0 auto 22px;
  color: #716b7c;
  font-size: 14px;
  line-height: 1.9;
  text-align: center;
}
.signup-gift-amount {
  display: flex;
  align-items: baseline;
  justify-content: center;
  width: 100%;
  margin: 0 0 24px;
  border: 1px solid rgba(91, 63, 165, 0.16);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  padding: 13px 18px 12px;
  color: #261c4d;
  box-shadow:
  0 10px 28px rgba(73, 52, 120, 0.09),
  inset 0 1px rgba(255, 255, 255, 0.8);
  text-align: center;
}
.signup-gift-amount strong {
  font-size: 36px;
  font-weight: 950;
  line-height: 1;
}
.signup-gift-amount span {
  margin-inline-start: 8px;
  color: #6043a6;
  font-size: 13px;
  font-weight: 850;
}
@media (max-width: 575.98px) {
  .signup-gift-card {
    padding: 32px 22px 24px;
  }
  .signup-gift-icon {
    width: 68px;
    height: 68px;
    border-radius: 22px;
  }
  .signup-gift-card h2 {
    font-size: 25px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .signup-gift-start {
    transition: none;
  }
  .signup-gift-start:hover {
    transform: none;
  }
}
#signup-gift-dialog .signup-gift-card h2 {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.45;
  text-align: center;
}
#signup-gift-dialog .signup-gift-start {
  border-color: transparent;
  background: linear-gradient(110deg, #6548b5, #8868db);
  color: #fff;
}
#signup-gift-dialog .signup-gift-start:focus-visible {
  border-color: transparent;
  background: linear-gradient(110deg, #6548b5, #8868db);
  color: #fff;
}
#signup-gift-dialog .signup-gift-start:hover {
  border-color: transparent;
  background: linear-gradient(110deg, #6548b5, #8868db);
  color: #fff;
  box-shadow: 0 17px 32px rgba(88, 60, 165, 0.3);
  transform: translateY(-2px);
}
@media (max-width: 575.98px) {
  #signup-gift-dialog .signup-gift-card h2 {
    font-size: 25px;
  }
}
@media (max-width: 575px) {
  .guest-welcome-card {
    padding: 32px 22px 24px;
  }
  .guest-welcome-icon {
    width: 68px;
    height: 68px;
    border-radius: 22px;
  }
  .guest-welcome-card h2 {
    font-size: 25px;
  }
}
@media (max-width: 560px) {
  .dialog-actions > * {
    flex: 1;
    padding-inline: 10px;
  }
}
.credit-center-dialog::backdrop {
  background: rgba(22, 16, 37, 0.52);
  backdrop-filter: blur(8px);
}
.credit-center--dialog {
  min-height: 0;
}
.credit-center__hero-copy {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}
.credit-center__kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--cc-violet-dark);
  font-size: var(--text-small);
  font-weight: 800;
  letter-spacing: 0.02em;
}
.credit-center__hero h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  font-weight: 850;
  letter-spacing: -0.035em;
}
.credit-center__hero p {
  margin: 7px 0 0;
  color: var(--cc-muted);
}
.credit-center__balance span {
  display: block;
  color: var(--cc-muted);
  font-size: var(--text-caption);
}
.credit-center__balance small {
  display: block;
  color: var(--cc-muted);
  font-size: var(--text-caption);
}
.credit-center__balance-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 2px 0;
}
.credit-center__balance strong {
  display: block;
  color: var(--cc-violet-dark);
  font-size: 1.55rem;
  line-height: 1.1;
}
.credit-center__coin {
  display: block;
  width: 26px;
  height: 26px;
  object-fit: contain;
}
.credit-center__close {
  position: relative;
  z-index: 2;
  align-self: flex-start;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(91, 72, 128, 0.13);
  border-radius: 13px;
  color: var(--cc-ink);
  background: rgba(255, 255, 255, 0.7);
  transition:
  transform 0.18s ease,
  background 0.18s ease;
}
.credit-center__close:hover {
  transform: rotate(4deg);
  background: white;
}
.credit-center__close svg {
  width: 20px;
  height: 20px;
  fill: none;
}
.credit-center__content {
  display: grid;
  gap: 36px;
  padding: 30px 32px 36px;
}
.credit-center__section--packages {
  order: -1;
}
.credit-center__section {
  min-width: 0;
  scroll-margin-top: 20px;
}
.credit-center__section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 17px;
}
.credit-center__section-head h3 {
  margin: 0;
  font-size: 1.23rem;
  font-weight: 820;
}
.credit-center__section-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
}
.credit-center-button--quiet {
  align-self: flex-start;
  margin-top: auto;
}
.credit-package .credit-center-button {
  width: 100%;
  margin-top: auto;
}
.credit-center__empty {
  grid-column: 1/-1;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 28px;
  color: var(--cc-muted);
  border: 1px dashed var(--cc-line);
  border-radius: 18px;
}
.credit-center__empty svg {
  width: 30px;
  height: 30px;
  fill: none;
}
.credit-center__empty p {
  margin: 0;
}
.credit-center button:focus-visible {
  outline: 3px solid rgba(85, 61, 162, 0.25);
  outline-offset: 2px;
}
.credit-center input:focus-visible {
  outline: 3px solid rgba(85, 61, 162, 0.25);
  outline-offset: 2px;
}
@media (prefers-color-scheme: dark) {
  html[data-theme="system"] .credit-center {
    --cc-ink: #f3effb;
    --cc-muted: #b8b0c6;
    --cc-line: rgba(210, 199, 234, 0.15);
    background: rgba(28, 24, 37, 0.92);
  }
  html[data-theme="system"] .credit-center__hero {
    background: linear-gradient(
    125deg,
    rgba(67, 53, 104, 0.96),
    rgba(38, 62, 88, 0.94),
    rgba(31, 72, 67, 0.92)
    );
  }
  html[data-theme="system"] .credit-center__balance {
    border-color: rgba(255, 255, 255, 0.11);
    background: rgba(19, 16, 28, 0.3);
  }
  html[data-theme="system"] .credit-center__close {
    border-color: rgba(255, 255, 255, 0.11);
    background: rgba(19, 16, 28, 0.3);
  }
  html[data-theme="system"] .credit-center__balance strong {
    color: #c9b9ff;
  }
  html[data-theme="system"] .credit-center__kicker {
    color: #c9b9ff;
  }
}
@media (max-width: 760px) {
  .credit-center-dialog {
    inset: 0;
    width: 100vw;
    height: 100dvh;
    max-height: none;
    margin: 0;
    border-radius: 0;
  }
  .credit-center--dialog {
    min-height: 100dvh;
    border: 0;
    border-radius: 0;
  }
  .credit-center__hero {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 22px 18px;
  }
  .credit-center__hero-copy {
    flex-basis: calc(100% - 54px);
  }
  .credit-center__balance {
    order: 3;
    width: 100%;
  }
  .credit-center__content {
    padding: 24px 16px 30px;
  }
  .credit-center-button {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .credit-center * {
    animation: none;
    scroll-behavior: auto;
    transition-duration: 0.001ms;
  }
  .credit-center *::before {
    animation: none;
    scroll-behavior: auto;
    transition-duration: 0.001ms;
  }
  .credit-center *::after {
    animation: none;
    scroll-behavior: auto;
    transition-duration: 0.001ms;
  }
}
.tools-dialog::backdrop {
  background: rgba(20, 16, 30, 0.48);
  backdrop-filter: blur(4px);
}
.tools-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 20px 15px;
  border-bottom: 1px solid var(--line);
}
.tools-dialog-header h2 {
  margin: 0;
  font-size: 1.05rem;
}
.tools-dialog-header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: var(--text-small);
}
.tools-dialog-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 13px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  min-width: var(--tap-target);
  min-height: var(--tap-target);
}
.tools-dialog-close:hover {
  color: var(--text);
  background: var(--surface-hover);
}
.tools-dialog-close svg {
  width: var(--icon-medium);
  height: var(--icon-medium);
}
.tools-dialog .tool-menu-item {
  min-height: 72px;
  border: 1px solid transparent;
  cursor: pointer;
}
.tools-dialog .tool-menu-item.is-enabled {
  border-color: color-mix(in srgb, var(--secondary) 22%, transparent);
}
.tools-dialog .tool-menu-item:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}
.tools-dialog-context-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px 16px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.tools-dialog-context-actions[hidden] {
  display: none;
}
.tools-dialog-context-actions span {
  color: var(--muted);
  font-size: var(--text-small);
}
.tools-dialog-context-actions.is-ready span {
  visibility: hidden;
}
.tools-dialog-context-actions .ui-button {
  flex: 0 0 auto;
}
.gift-icon-stage .guest-welcome-icon {
  position: relative;
  z-index: 1;
  overflow: hidden;
  margin: 0;
  animation: gift-icon-float 4.2s ease-in-out infinite;
  transform: rotate(-1deg);
}
.gift-icon-stage .daily-gift-welcome-icon {
  position: relative;
  z-index: 1;
  overflow: hidden;
  margin: 0;
  animation: gift-icon-float 4.2s ease-in-out infinite;
  transform: rotate(-1deg);
}
.gift-icon-stage .signup-gift-icon {
  position: relative;
  z-index: 1;
  overflow: hidden;
  margin: 0;
  animation: gift-icon-float 4.2s ease-in-out infinite;
  transform: rotate(-1deg);
}
.gift-icon-stage .guest-welcome-icon::before {
  position: absolute;
  z-index: 1;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(
  135deg,
  rgba(255, 255, 255, 0.48),
  var(--gift-sheen) 16%,
  transparent 38%
  );
  content: "";
  pointer-events: none;
  animation: gift-edge-glint 4.8s ease-in-out infinite;
}
.gift-icon-stage .daily-gift-welcome-icon::before {
  position: absolute;
  z-index: 1;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(
  135deg,
  rgba(255, 255, 255, 0.48),
  var(--gift-sheen) 16%,
  transparent 38%
  );
  content: "";
  pointer-events: none;
  animation: gift-edge-glint 4.8s ease-in-out infinite;
}
.gift-icon-stage .signup-gift-icon::before {
  position: absolute;
  z-index: 1;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(
  135deg,
  rgba(255, 255, 255, 0.48),
  var(--gift-sheen) 16%,
  transparent 38%
  );
  content: "";
  pointer-events: none;
  animation: gift-edge-glint 4.8s ease-in-out infinite;
}
.gift-icon-stage .guest-welcome-icon > svg {
  position: relative;
  z-index: 2;
  animation: none;
  transform: none;
}
.gift-icon-stage .daily-gift-welcome-icon > svg {
  position: relative;
  z-index: 2;
  animation: none;
  transform: none;
}
.gift-icon-stage .signup-gift-icon > svg {
  position: relative;
  z-index: 2;
  animation: none;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .gift-icon-stage .guest-welcome-icon {
    animation: none;
  }
  .gift-icon-stage .daily-gift-welcome-icon {
    animation: none;
  }
  .gift-icon-stage .signup-gift-icon {
    animation: none;
  }
  .gift-icon-stage .guest-welcome-icon::before {
    animation: none;
  }
  .gift-icon-stage .daily-gift-welcome-icon::before {
    animation: none;
  }
  .gift-icon-stage .signup-gift-icon::before {
    animation: none;
  }
}
#daily-credit-dialog.daily-gift-dialog:not(.guest-welcome-dialog) {
  width: min(94vw, 560px);
  overflow: visible;
  border-radius: 32px;
}
#daily-credit-dialog .daily-gift-welcome-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 32px;
  background: linear-gradient(155deg, #f7fffc 10%, #e9f6f1 56%, #e7f0f7 100%);
  padding: 38px 36px 32px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(22, 74, 70, 0.28);
}
#daily-credit-dialog .daily-gift-welcome-card::before {
  position: absolute;
  z-index: -1;
  top: -140px;
  inset-inline-start: 50%;
  width: 360px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(
  circle,
  rgba(102, 205, 180, 0.3),
  rgba(102, 205, 180, 0) 68%
  );
  content: "";
  transform: translateX(-50%);
  pointer-events: none;
}
body[dir="rtl"] #daily-credit-dialog .daily-gift-welcome-card::before {
  transform: translateX(50%);
}
.daily-gift-welcome-icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: 0 auto 20px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 25px;
  background: linear-gradient(145deg, #82d4c0, #2d8b7e);
  color: #effffb;
  box-shadow:
  0 16px 34px rgba(31, 107, 99, 0.25),
  inset 0 1px rgba(255, 255, 255, 0.68);
  transform: rotate(-1deg);
  animation: guest-gift-enter 620ms var(--motion-ease) both;
}
.daily-gift-welcome-icon svg {
  width: 38px;
  height: 38px;
  stroke: currentColor;
  stroke-width: 1.7;
}
#daily-credit-dialog .daily-gift-welcome-card h2 {
  width: 100%;
  margin: 0 0 10px;
  color: #173e3b;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.45;
  text-align: center;
}
#daily-credit-dialog .daily-gift-welcome-card .small-muted {
  color: #587773;
}
#daily-credit-dialog .daily-gift-welcome-amount {
  display: flex;
  align-items: baseline;
  justify-content: center;
  width: 100%;
  margin: 0 0 14px;
  border: 1px solid rgba(31, 107, 99, 0.16);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.74);
  padding: 13px 18px 12px;
  color: #173e3b;
  box-shadow:
  0 10px 28px rgba(31, 107, 99, 0.08),
  inset 0 1px rgba(255, 255, 255, 0.86);
  text-align: center;
}
#daily-credit-dialog .daily-gift-welcome-amount strong {
  font-size: 36px;
  font-weight: 950;
  line-height: 1;
}
#daily-credit-dialog .daily-gift-welcome-amount span {
  margin-inline-start: 8px;
  color: #27766b;
  font-size: 13px;
  font-weight: 850;
}
#daily-credit-dialog .daily-gift-streak {
  width: 100%;
  margin-bottom: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.46);
  padding: 12px 14px 11px;
  text-align: start;
}
#daily-credit-dialog .daily-gift-streak-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #46736d;
  font-size: 12px;
  font-weight: 750;
}
#daily-credit-dialog .daily-gift-streak-head strong {
  color: #1f6b63;
  font-size: 16px;
}
#daily-credit-dialog .daily-gift-streak .progress {
  height: 8px;
  margin-top: 9px;
  background: rgba(31, 107, 99, 0.12);
}
#daily-credit-dialog .daily-gift-streak .progress-bar {
  background: linear-gradient(90deg, #2d8b7e, #71c7b3);
}
#daily-credit-dialog .daily-gift-streak p {
  margin: 8px 0 0;
  font-size: var(--text-small);
  line-height: 1.6;
}
.daily-gift-description {
  margin: -2px 0 14px;
  color: #587773;
  font-size: var(--text-small);
  line-height: 1.6;
  text-align: center;
}
#daily-credit-dialog .daily-gift-week {
  margin: 16px 0 8px;
}
#daily-credit-dialog .daily-gift-week [data-tooltip]:focus::after {
  opacity: 1;
  transform: translate(50%, 0);
}
#daily-credit-dialog .daily-gift-claim {
  min-width: 190px;
  animation: daily-gift-claim-pulse 2.6s ease-in-out infinite;
}
#daily-credit-dialog .daily-gift-claim[hidden] {
  display: none;
}
@keyframes daily-gift-claim-pulse {
  50% { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(45, 139, 126, 0.24); }
}
@media (prefers-reduced-motion: reduce) {
  #daily-credit-dialog .daily-gift-claim { animation: none; }
}
#daily-credit-dialog .daily-gift-next {
  margin: 0 0 16px;
  font-size: var(--text-small);
}
@media (max-width: 575px) {
  #daily-credit-dialog.daily-gift-dialog:not(.guest-welcome-dialog) {
    width: min(92vw, 452px);
  }
  #daily-credit-dialog .daily-gift-welcome-card {
    padding: 32px 22px 24px;
  }
  #daily-credit-dialog .daily-gift-welcome-card h2 {
    font-size: 25px;
  }
  #daily-credit-dialog .daily-gift-week {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 2px;
  }
  #daily-credit-dialog .daily-gift-week .streak-day {
    min-width: 0;
  }
  #daily-credit-dialog .daily-gift-week .streak-day > span {
    width: 28px;
    height: 28px;
  }
  #daily-credit-dialog .daily-gift-week::before {
    top: 14px;
  }
}
#charge-dialog:not(.credit-center-dialog) {
  width: min(92vw, 560px);
  max-height: 80vh;
  color: var(--ink);
}
#charge-dialog:not(.credit-center-dialog)::backdrop {
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(3px);
}
#daily-credit-dialog.guest-welcome-dialog {
  border-radius: 32px;
}
#daily-credit-dialog .guest-welcome-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 32px;
  background: linear-gradient(155deg, #fff 12%, #fff8ed 55%, #f7f0ff 100%);
  padding: 38px 36px 32px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(20, 17, 47, 0.32);
}
#daily-credit-dialog .guest-welcome-card h2 {
  margin: 0 0 10px;
  color: #211b35;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.45;
  text-align: center;
}
#daily-credit-dialog .guest-welcome-claim {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 15px;
  background: linear-gradient(110deg, #a84627, #c76538);
  color: #fff;
  box-shadow: 0 14px 28px rgba(168, 70, 39, 0.25);
  font-size: 15px;
  font-weight: 850;
}
#daily-credit-dialog .guest-welcome-claim:hover {
  background: linear-gradient(110deg, #963b21, #b8552d);
  box-shadow: 0 17px 32px rgba(150, 59, 33, 0.3);
  transform: translateY(-2px);
}
@media (max-width: 575px) {
  #daily-credit-dialog .guest-welcome-card {
    padding: 32px 22px 24px;
  }
  #daily-credit-dialog .guest-welcome-card h2 {
    font-size: 25px;
  }
}
#daily-credit-dialog.guest-welcome-dialog
  .guest-welcome-card.is-presenting
  .guest-welcome-icon {
  animation: guest-gift-enter 620ms var(--motion-ease) both;
}
#daily-credit-dialog.guest-welcome-dialog
  .guest-welcome-card.is-presenting
  .guest-welcome-amount {
  animation: guest-amount-arrive 520ms 320ms var(--motion-ease) both;
}
#daily-credit-dialog.guest-welcome-dialog .guest-welcome-claim {
  position: relative;
  overflow: hidden;
}
#daily-credit-dialog.guest-welcome-dialog .guest-welcome-claim.is-claiming {
  cursor: wait;
  filter: saturate(0.82);
}
#daily-credit-dialog.guest-welcome-dialog .guest-welcome-claim.is-claimed {
  background: linear-gradient(110deg, #28766b, #1f6b63);
  box-shadow: 0 14px 28px rgba(31, 107, 99, 0.25);
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  #daily-credit-dialog.guest-welcome-dialog
    .guest-welcome-card.is-presenting
    .guest-welcome-icon {
    animation: none;
  }
  #daily-credit-dialog.guest-welcome-dialog
    .guest-welcome-card.is-presenting
    .guest-welcome-amount {
    animation: none;
  }
}
.personal-gift-dialog {
  width: min(92vw, 452px);
  overflow: visible;
  border-radius: 32px;
}
.personal-gift-dialog::backdrop {
  backdrop-filter: blur(12px) saturate(0.82);
  background: rgba(8, 26, 40, 0.76);
}
dialog[open] {
  animation: dialog-depth-in 360ms var(--motion-ease) both;
}
dialog[open]::backdrop {
  animation: backdrop-in var(--motion-state) ease-out both;
}
@media (prefers-reduced-motion: reduce) {
  dialog[open] {
    animation: none;
    transition-duration: 0.001ms;
  }
  dialog[open]::backdrop {
    animation: none;
    transition-duration: 0.001ms;
  }
}
html.theme-dark-effective .credit-center {
  --cc-ink: #edf5f3;
  --cc-muted: #a6b9bc;
  --cc-line: rgba(185, 210, 214, 0.16);
  background: #14232b;
}
html.theme-dark-effective .credit-center__balance {
  border-color: rgba(185, 210, 214, 0.2);
  background: #20343d;
  box-shadow:
  inset 0 1px rgba(255, 255, 255, 0.08),
  0 10px 28px rgba(0, 0, 0, 0.2);
}
html.theme-dark-effective .credit-center__balance strong {
  color: #a8dcf5;
}
html.theme-dark-effective .credit-center__section-icon {
  background: #1d4545;
  color: var(--secondary);
}
html.theme-dark-effective .dialog-card > input {
  border-color: var(--line);
  background: #172830;
  color: var(--ink);
}
html.theme-dark-effective .dialog-card > input::placeholder {
  color: #82999e;
}
html.theme-dark-effective .app-dialog::backdrop {
  background: rgba(4, 12, 17, 0.72);
}
html.theme-dark-effective dialog::backdrop {
  background: rgba(4, 12, 17, 0.72);
}
html.theme-dark-effective .credit-center__close {
  border-color: rgba(185, 210, 214, 0.2);
  background: #203640;
  color: var(--ink);
}
html.theme-dark-effective .credit-center__close:hover {
  background: #29484c;
}
html.theme-dark-effective .guest-welcome-card {
  border-color: var(--glass-line);
  background: linear-gradient(155deg, #21343d, #192a32);
  color: var(--ink);
  box-shadow: var(--shadow);
}
html.theme-dark-effective .signup-gift-card {
  border-color: var(--glass-line);
  background: linear-gradient(155deg, #21343d, #192a32);
  color: var(--ink);
  box-shadow: var(--shadow);
}
html.theme-dark-effective .daily-gift-welcome-card {
  border-color: var(--glass-line);
  background: linear-gradient(155deg, #21343d, #192a32);
  color: var(--ink);
  box-shadow: var(--shadow);
}
html.theme-dark-effective .guest-welcome-card h2 {
  color: var(--ink);
}
html.theme-dark-effective .signup-gift-card h2 {
  color: var(--ink);
}
html.theme-dark-effective .daily-gift-welcome-card h2 {
  color: var(--ink);
}
html.theme-dark-effective .guest-welcome-description {
  color: var(--muted);
}
html.theme-dark-effective .daily-gift-welcome-card .small-muted {
  color: var(--muted);
}
html.theme-dark-effective .guest-welcome-amount {
  border-color: var(--glass-line);
  background: #1a2d35;
  color: var(--ink);
}
html.theme-dark-effective .daily-gift-streak {
  border-color: var(--glass-line);
  background: #1a2d35;
  color: var(--ink);
}
.app-dialog {
  width: min(92vw, 480px);
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--ink);
  border-radius: 20px;
}
.tools-dialog {
  width: min(620px, calc(100vw - 28px));
  max-height: min(720px, calc(100dvh - 32px));
  padding: 0;
  border: 0;
  color: var(--text);
  background: transparent;
  overflow: visible;
  border-radius: 20px;
}
.credit-center-dialog {
  width: min(1120px, calc(100vw - 32px));
  max-width: none;
  max-height: min(900px, calc(100dvh - 32px));
  padding: 0;
  border: 0;
  background: transparent;
  overflow: auto;
  border-radius: 20px;
}
.app-dialog::backdrop {
  background: rgba(7, 13, 16, 0.52);
  backdrop-filter: blur(5px);
}
dialog::backdrop {
  background: rgba(7, 13, 16, 0.52);
  backdrop-filter: blur(5px);
}
.dialog-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 15px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  padding: 24px;
  border-color: var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.tools-dialog-panel {
  display: flex;
  flex-direction: column;
  max-height: min(720px, calc(100dvh - 32px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-color: var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
@media (max-width: 640px) {
  .tools-dialog {
    width: 100%;
    max-width: none;
    max-height: 88dvh;
    margin: auto 0 0;
    border-radius: 24px 24px 0 0;
  }
  .tools-dialog-panel {
    max-height: 88dvh;
    border-radius: 24px 24px 0 0;
  }
  .tools-dialog-context-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .tools-dialog-context-actions.is-ready span {
    display: none;
  }
}
.dialog-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  font-size: 22px;
  font-weight: 850;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
}
.dialog-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
}
.danger-dialog .dialog-icon {
  background: var(--danger-soft);
  color: var(--danger);
}
.signup-gift-start {
  width: 100%;
  min-height: 52px;
  border-radius: 15px;
  font-size: 15px;
  font-weight: 850;
  transition:
  transform 0.18s ease,
  box-shadow 0.18s ease,
  filter 0.18s ease;
  border: 1px solid transparent;
  background: var(--button-primary);
  color: #fff;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--action) 18%, transparent);
  opacity: 1;
}
.guest-welcome-claim {
  width: 100%;
  min-height: 52px;
  border-radius: 15px;
  font-size: 15px;
  font-weight: 850;
  transition:
  transform 0.18s ease,
  box-shadow 0.18s ease,
  filter 0.18s ease;
  border: 1px solid transparent;
  background: var(--button-primary);
  color: #fff;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--action) 18%, transparent);
  opacity: 1;
}
.signup-gift-start:hover {
  border-color: transparent;
  background: var(--button-primary-hover);
  color: #fff;
  box-shadow: 0 10px 22px color-mix(in srgb, var(--action) 22%, transparent);
  transform: translateY(-1px);
}
.guest-welcome-claim:hover {
  border-color: transparent;
  background: var(--button-primary-hover);
  color: #fff;
  box-shadow: 0 10px 22px color-mix(in srgb, var(--action) 22%, transparent);
  transform: translateY(-1px);
}
.signup-gift-start:disabled {
  background: var(--surface-subtle);
  color: var(--muted);
  box-shadow: none;
  opacity: 0.7;
  cursor: not-allowed;
}
.guest-welcome-claim:disabled {
  background: var(--surface-subtle);
  color: var(--muted);
  box-shadow: none;
  opacity: 0.7;
  cursor: not-allowed;
}
.signup-gift-start:active {
  background: color-mix(in srgb, var(--action-hover) 88%, #000);
  transform: none;
}
.guest-welcome-claim:active {
  background: color-mix(in srgb, var(--action-hover) 88%, #000);
  transform: none;
}
.dialog-card > input {
  grid-column: 1 / -1;
  min-height: 46px;
  border-radius: 12px;
  padding-inline: 13px;
  border-color: var(--line);
}
.credit-center {
  color: var(--cc-ink);
  overflow: hidden;
  border: 1px solid var(--cc-line);
  box-shadow: 0 24px 70px rgba(55, 38, 90, 0.13);
  backdrop-filter: blur(22px) saturate(1.18);
  --cc-ink: var(--ink);
  --cc-muted: var(--muted);
  --cc-line: var(--line);
  --cc-violet: var(--accent);
  --cc-violet-dark: var(--accent);
  border-color: var(--line);
  border-radius: 20px;
  background: var(--surface);
}
.credit-center__hero {
  position: relative;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 28px 32px;
  overflow: hidden;
  background: var(--surface-subtle);
}
html.theme-dark-effective .credit-center__hero {
  background: var(--surface-subtle);
}
.credit-center__hero::after {
  position: absolute;
  inset: auto -45px -80px auto;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: rgba(117, 87, 217, 0.09);
  content: "";
  display: none;
}
.credit-center__balance {
  position: relative;
  z-index: 1;
  min-width: 174px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  text-align: center;
  border-color: var(--line);
  border-radius: 13px;
  background: var(--surface);
  box-shadow: none;
}
.credit-center__section-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--action-soft);
  color: var(--action);
}
html.theme-dark-effective .dialog-card {
  box-shadow: var(--shadow);
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}
@media (max-width: 560px) {
  .dialog-card {
    grid-template-columns: 40px minmax(0, 1fr);
    padding: 18px;
  }
  .dialog-icon {
    width: 40px;
    height: 40px;
  }
}
