@charset "UTF-8";
/* ===== Swiss Architectural Membership, Auth & Billing Dialog ===== */

.buying-account-button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink, var(--text));
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1.5px;
  white-space: nowrap;
  cursor: pointer;
  transition: color 150ms var(--ease-tactile, ease);
}

.buying-account-button:hover {
  color: var(--signal, var(--accent));
  background: transparent;
}

.buying-account-button svg:not(.buying-account-caret) {
  display: none;
}

.buying-account-button[data-authenticated="true"] {
  text-decoration: none;
  padding: 0 8px;
  min-height: 30px;
  border: 1px solid var(--rule, var(--line));
  border-radius: 2px;
}

.buying-account-button[data-authenticated="true"]:hover,
.buying-account-button[aria-expanded="true"] {
  border-color: var(--border-strong, var(--line-strong));
  color: var(--ink, var(--text));
  background: var(--subcard, var(--surface));
}

.buying-account-button[data-authenticated="true"]::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #16a34a;
  flex-shrink: 0;
}

.buying-account-caret {
  width: 11px;
  height: 11px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.78;
  flex-shrink: 0;
  transition: transform 150ms ease;
}

.buying-account-button[aria-expanded="true"] .buying-account-caret {
  transform: rotate(180deg);
}

.buying-account-caret[hidden] {
  display: none !important;
}

/* Personal Account Dropdown Menu (Swiss Architectural Popover) */
.buying-account-menu {
  position: fixed;
  z-index: 985;
  width: 268px;
  max-width: calc(100vw - 16px);
  padding: 4px;
  background: var(--card, #faf9f5);
  border: 1px solid var(--border-strong, #181816);
  border-radius: 3px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
  display: flex;
  flex-direction: column;
  gap: 1px;
  box-sizing: border-box;
}

body.dark .buying-account-menu {
  background: #1b1b19;
  border-color: #48453f;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.62);
}

.buying-account-menu[hidden] {
  display: none !important;
}

.buying-menu-summary {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 11px 9px;
  margin-bottom: 3px;
  border-bottom: 1px solid var(--rule, var(--line));
}

.buying-menu-identity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.buying-menu-email {
  font-size: 13px;
  font-weight: 680;
  color: var(--ink, var(--text));
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.buying-menu-access {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--muted, var(--text-secondary));
}

.buying-menu-item {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 8px 11px;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: var(--ink, var(--text));
  font: inherit;
  font-size: 13px;
  font-weight: 550;
  text-align: left;
  cursor: pointer;
  transition: background-color 120ms ease, color 120ms ease;
}

.buying-menu-item:hover,
.buying-menu-item:focus-visible {
  background: var(--subcard, rgba(128, 128, 128, 0.12));
  outline: none;
}

.buying-menu-arrow {
  font-size: 12px;
  color: var(--muted, var(--text-secondary));
  opacity: 0.72;
  transition: transform 120ms ease, color 120ms ease, opacity 120ms ease;
}

.buying-menu-item:hover .buying-menu-arrow,
.buying-menu-item:focus-visible .buying-menu-arrow {
  transform: translateX(2px);
  color: var(--signal, var(--accent));
  opacity: 1;
}

.buying-menu-item.is-signout {
  color: var(--muted, var(--text-secondary));
  font-weight: 500;
}

.buying-menu-item.is-signout:hover,
.buying-menu-item.is-signout:focus-visible {
  color: var(--danger, #bf2c24);
}

.buying-menu-sep {
  height: 1px;
  margin: 3px 6px;
  background: var(--rule, var(--line));
}

.buying-section-switch {
  justify-self: start;
  padding: 4px 0 0;
  font-size: 12.5px;
}

.buying-guest-row,
.buying-premium-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 14px;
  color: var(--muted, var(--text-secondary));
  font-size: 12.5px;
  line-height: 1.55;
}

.buying-guest-row {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--rule, var(--line));
}

.buying-premium-note {
  margin-bottom: 10px;
  padding: 8px 12px;
  border: 1px solid var(--rule, var(--line));
  border-radius: 3px;
  background: var(--subcard, var(--surface));
}

.buying-sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

dialog.buying-membership-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(calc(100vw - 28px), 408px);
  max-width: min(calc(100vw - 28px), 408px);
  max-height: min(calc(100dvh - 28px), 760px);
  padding: 0;
  border: 1.5px solid var(--border-strong, var(--line));
  border-radius: 4px;
  background: var(--card, var(--panel-solid));
  color: var(--ink, var(--text));
  box-shadow: var(--shadow-xl, 0 24px 60px rgba(0, 0, 0, 0.25));
  overflow-x: hidden;
  overflow-y: auto;
  box-sizing: border-box;
}

dialog.buying-membership-dialog::backdrop {
  background: rgba(12, 12, 11, 0.62);
  backdrop-filter: blur(4px);
}

.buying-membership-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  padding: 24px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow-x: hidden;
}

@media (max-width: 440px) {
  dialog.buying-membership-dialog {
    width: calc(100vw - 20px);
    max-width: calc(100vw - 20px);
  }
  .buying-membership-card {
    padding: 20px 16px;
    gap: 12px;
  }
}

.buying-membership-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule, var(--line));
}

.buying-membership-head h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.buying-membership-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  min-height: 0;
  padding: 0;
  border: 1px solid var(--rule, var(--line));
  border-radius: 2px;
  background: transparent;
  color: var(--muted, var(--text-secondary));
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: color 140ms ease, border-color 140ms ease, background-color 140ms ease;
}

.buying-membership-close:hover {
  color: var(--ink, var(--text));
  border-color: var(--border-strong, var(--line-strong));
  background: var(--surface-hover);
  transform: none;
  box-shadow: none;
}

.buying-membership-dialog p {
  margin: 0;
  overflow-wrap: anywhere;
}

.buying-membership-muted {
  color: var(--muted, var(--text-secondary));
  font-size: 13px;
  line-height: 1.55;
}

.buying-membership-card > .buying-membership-muted {
  margin-top: -4px;
}

.buying-membership-tabs {
  display: flex;
}
.buying-membership-tabs button {
  flex: 1;
}

.buying-google-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
}

.buying-google-btn-wrap {
  position: relative;
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.buying-google-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line-strong, var(--line));
  border-radius: 3px;
  background: var(--subcard, var(--surface));
  color: var(--ink, var(--text));
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-sizing: border-box;
  transition: background-color 150ms ease, border-color 150ms ease;
}

.buying-google-btn:hover,
.buying-google-btn-wrap:hover .buying-google-btn {
  background: var(--surface-hover);
  border-color: var(--border-strong, var(--line-strong));
}

.buying-google-btn-wrap[data-mounted="true"] .buying-google-btn {
  display: none;
}

.buying-google-gsi {
  display: none;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.buying-google-btn-wrap[data-mounted="loading"] .buying-google-gsi {
  position: absolute;
  inset: 0;
  display: flex;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}

.buying-google-btn-wrap[data-mounted="true"] .buying-google-gsi {
  position: relative;
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

.buying-google-gsi iframe {
  max-width: 100% !important;
  color-scheme: normal;
}

.buying-google-bridge {
  display: grid;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--rule, var(--line));
  border-radius: 3px;
  background: var(--subcard, var(--surface));
  text-align: center;
}

.buying-google-bridge[hidden] {
  display: none !important;
}

.buying-google-bridge p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted, var(--text-secondary));
}

.buying-google-bridge img {
  justify-self: center;
  width: 144px;
  height: 144px;
  border-radius: 3px;
  background: #fff;
  padding: 6px;
  border: 1px solid var(--rule, var(--line));
}

.buying-auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--faint, var(--text-secondary));
  font-size: 12px;
}

.buying-auth-divider::before,
.buying-auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule, var(--line));
}

.buying-captcha-box {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 8px 12px;
  border: 1px solid var(--rule, var(--line));
  border-radius: 3px;
  background: var(--subcard, var(--surface));
  color: var(--ink, var(--text));
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
  transition: border-color 150ms ease, background-color 150ms ease;
}

.buying-captcha-box:hover {
  background: var(--surface-hover);
  border-color: var(--line-strong);
}

.buying-captcha-box[data-state="verified"] {
  border-color: var(--green, #1e7a46);
}

.buying-captcha-checkbox {
  display: inline-flex;
  flex: 0 0 20px;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--muted, var(--text-secondary));
  border-radius: 2px;
  background: var(--field, var(--card));
  color: var(--green, #1e7a46);
  font-size: 13px;
  font-weight: 700;
}

.buying-captcha-box[data-state="verified"] .buying-captcha-checkbox {
  border-color: var(--green, #1e7a46);
  background: var(--green-soft, rgba(30, 122, 70, 0.12));
}

.buying-captcha-text {
  flex: 1;
  font-weight: 500;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.buying-captcha-brand {
  flex-shrink: 0;
  font-size: 10px;
  color: var(--faint, var(--text-secondary));
}

.buying-membership-form,
.buying-membership-dashboard,
.buying-membership-order,
.buying-fiat-details,
.buying-order-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 11px;
  min-width: 0;
}

.buying-membership-form label {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  min-width: 0;
  font-size: 13px;
}

.buying-membership-form input,
.buying-membership-form select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--rule, var(--line));
  border-radius: 3px;
  background: var(--field, var(--card));
  color: var(--ink, var(--text));
  font: inherit;
  box-sizing: border-box;
}

.buying-switch-row {
  text-align: center;
  font-size: 13px;
  color: var(--muted, var(--text-secondary));
  margin: 2px 0 0 !important;
}

.buying-link {
  border: 0;
  background: none;
  padding: 0 0 0 4px;
  color: var(--signal, var(--accent));
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.buying-link:hover {
  text-decoration: underline;
}

/* Signed-in Dashboard */
.buying-profile-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.buying-membership-email {
  font-weight: 600;
  font-size: 14px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.buying-membership-badge {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 2px 9px;
  border-radius: 2px;
  border: 1px solid var(--rule, var(--line));
  font-size: 12px;
  font-weight: 600;
  color: var(--muted, var(--text-secondary));
}

.buying-membership-badge.is-active {
  border-color: var(--green, #1e7a46);
  color: var(--green, #1e7a46);
  background: var(--green-soft, rgba(30, 122, 70, 0.1));
}

.buying-membership-dashboard > .buying-membership-muted {
  margin-top: -4px;
}

.buying-plan-card,
.buying-recharge-form,
.buying-membership-order {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--rule, var(--line));
  border-radius: 3px;
  background: var(--subcard, var(--surface));
}

.buying-plan-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 10px;
}

.buying-plan-title {
  font-size: 15px;
  font-weight: 650;
}

.buying-plan-price {
  font-size: 13px;
  color: var(--muted, var(--text-secondary));
}

.buying-plan-price b {
  font-size: 21px;
  color: var(--ink, var(--text));
  letter-spacing: -0.02em;
}

.buying-plan-actions {
  display: grid;
  gap: 8px;
}

.buying-plan-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.buying-plan-list li {
  padding: 3px 9px;
  border-radius: 2px;
  border: 1px solid var(--rule, var(--line));
  background: var(--card, var(--surface));
  font-size: 12px;
  color: var(--ink, var(--text));
}

.buying-claim-form {
  display: grid;
  padding: 0;
  border: 0;
  background: none;
  gap: 0;
}

.buying-claim-form summary {
  cursor: pointer;
  font-size: 12.5px;
  list-style: none;
  text-align: center;
  color: var(--muted, var(--text-secondary));
}

.buying-claim-form summary::-webkit-details-marker {
  display: none;
}

.buying-claim-form[open] summary {
  margin-bottom: 10px;
}

.buying-claim-form input {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--rule, var(--line));
  border-radius: 3px;
  background: var(--field, var(--card));
  color: var(--ink, var(--text));
  font: inherit;
  font-size: 13px;
  box-sizing: border-box;
}

.buying-apikey-section {
  padding-top: 14px;
  border-top: 1px solid var(--rule, var(--line));
}

.buying-apikey-section summary {
  text-align: left;
  font-weight: 650;
  color: var(--ink, var(--text));
}

.buying-signout {
  justify-self: start;
  padding: 2px 0 0;
  color: var(--muted, var(--text-secondary));
  font-weight: 500;
  font-size: 12.5px;
}

.buying-checkout-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  text-align: center;
}

.buying-membership-order img {
  justify-self: center;
  max-width: 100%;
  height: auto;
  padding: 6px;
  border-radius: 3px;
  background: #fff;
  border: 1px solid var(--rule, var(--line));
}

.buying-order-qr {
  width: 150px;
  height: 150px;
}

.buying-crypto-details {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.buying-crypto-network {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 12px;
  font-size: 14px;
}

.buying-crypto-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px;
}

.buying-crypto-copy label {
  display: grid;
  gap: 4px;
  font-size: 13px;
}

.buying-crypto-copy button {
  min-height: 40px;
  padding-inline: 12px;
  white-space: nowrap;
}

.buying-crypto-copy input {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--rule, var(--line));
  border-radius: 3px;
  background: var(--field, var(--card));
  color: var(--ink, var(--text));
  font: 12.5px var(--font-mono, ui-monospace, Consolas, monospace);
  box-sizing: border-box;
}

.buying-order-actions {
  gap: 8px;
}

.buying-order-actions .text-button {
  justify-self: center;
  font-size: 12.5px;
}

.buying-personal-qr-details {
  display: grid;
  gap: 11px;
  min-width: 0;
}

.buying-qr-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.buying-qr-tabs button {
  min-height: 36px;
  border-radius: 3px;
  border: 1px solid var(--rule, var(--line));
  background: var(--card, var(--surface));
  color: var(--muted, var(--text-secondary));
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.buying-qr-tabs button.is-active {
  border-color: var(--signal, var(--accent));
  color: var(--signal, var(--accent));
  background: var(--accent-soft);
}

.buying-qr-amount-badge {
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink, var(--text));
}

.buying-qr-amount-badge b {
  font-size: 22px;
  color: var(--signal, var(--accent));
  margin: 0 2px;
}

.buying-qr-note-input {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 8px 10px;
  box-sizing: border-box;
  border: 1px solid var(--rule, var(--line));
  border-radius: 3px;
  background: var(--field, var(--card));
  color: var(--ink, var(--text));
  font: inherit;
  font-size: 13px;
}

.buying-membership-status {
  color: var(--danger, #bf2c24);
  font-size: 13px;
}

.buying-membership-status.is-success {
  color: var(--green, #1e7a46);
}

.buying-membership-dialog [hidden],
.buying-account-button[hidden],
.buying-guest-row[hidden],
.buying-premium-note[hidden],
.buying-contact a[hidden] {
  display: none !important;
}

.buying-telegram svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  fill: currentColor;
}

.buying-original-preview {
  display: grid;
  justify-items: center;
  gap: 12px;
  width: 100%;
  padding: 20px;
  text-align: center;
}

.buying-original-preview img {
  max-width: 100%;
  max-height: 45vh;
  object-fit: contain;
}
