.ss-auth-widget {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 1800;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: min(420px, calc(100vw - 32px));
  padding: 8px;
  border: 1px solid rgba(57, 255, 20, 0.28);
  border-radius: 999px;
  color: #e5fbe7;
  background: rgba(2, 6, 23, 0.82);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35), 0 0 28px rgba(57, 255, 20, 0.10);
  backdrop-filter: blur(16px);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.app-account-widget-slot {
  margin-top: 12px;
}

.ss-auth-widget--embedded {
  position: static;
  inset: auto;
  z-index: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  width: 100%;
  max-width: none;
  border-radius: 8px;
  box-sizing: border-box;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22), 0 0 20px rgba(57, 255, 20, 0.06);
}

.ss-auth-widget--embedded .ss-auth-status {
  grid-column: 1 / -1;
}

.ss-auth-widget--embedded .ss-auth-button,
.ss-auth-widget--embedded .ss-auth-link {
  min-width: 0;
  padding-inline: 10px;
}

.ss-auth-widget[hidden],
.ss-auth-modal[hidden],
.ss-auth-profile-fields[hidden],
.ss-auth-register-fields[hidden],
.ss-auth-recovery[hidden] {
  display: none;
}

.ss-auth-status {
  min-width: 0;
  padding-left: 8px;
}

.ss-auth-status b,
.ss-auth-status span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ss-auth-status b {
  color: #f8fafc;
  font-size: 12px;
  line-height: 1.1;
}

.ss-auth-status span {
  color: #9fb5a7;
  font-size: 11px;
  font-weight: 800;
}

.ss-auth-button,
.ss-auth-link {
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  padding: 0 12px;
  color: #04110a;
  background: linear-gradient(135deg, #39ff14, #b7ff5c);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.ss-auth-link {
  color: #d8f5dd;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(57, 255, 20, 0.28);
}

.ss-auth-modal {
  position: fixed;
  inset: 0;
  z-index: 2200;
  display: grid;
  place-items: center;
  padding: 16px;
  overflow-y: auto;
  background:
    radial-gradient(circle at 50% 8%, rgba(57, 255, 20, 0.13), transparent 34%),
    rgba(2, 6, 23, 0.94);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ss-auth-card {
  position: relative;
  width: min(680px, 100%);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: 20px;
  border: 1px solid rgba(57, 255, 20, 0.28);
  border-radius: 20px;
  color: #f8fafc;
  background: rgba(7, 17, 31, 0.98);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55), 0 0 54px rgba(57, 255, 20, 0.10);
}

.ss-auth-card h2 {
  margin: 0 42px 8px 0;
  color: #39ff14;
  font-size: 24px;
}

.ss-auth-card p {
  margin: 0 0 12px;
  color: #b9cbbb;
  font-size: 13px;
  line-height: 1.4;
}

.ss-auth-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 12px 0;
  padding: 4px;
  border: 1px solid rgba(57, 255, 20, 0.20);
  border-radius: 10px;
  background: rgba(2, 6, 23, 0.72);
}

.ss-auth-tabs button {
  min-height: 34px;
  border: 0;
  border-radius: 7px;
  color: #9fb5a7;
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.ss-auth-tabs button[aria-selected="true"] {
  color: #04110a;
  background: linear-gradient(135deg, #39ff14, #b7ff5c);
}

.ss-auth-card label,
.ss-auth-grid,
.ss-auth-name-grid {
  display: grid;
  gap: 6px;
}

.ss-auth-card label {
  margin: 9px 0;
  color: #d8f5dd;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.ss-auth-card label small,
.ss-auth-address-group legend small {
  color: #789484;
  font-size: 10px;
  letter-spacing: 0.02em;
  text-transform: none;
}

.ss-auth-card input,
.ss-auth-card select {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(57, 255, 20, 0.22);
  border-radius: 9px;
  color: #f8fafc;
  background: #020617;
  padding: 0 12px;
  font: inherit;
  text-transform: none;
}

.ss-auth-grid {
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.ss-auth-name-grid {
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

.ss-auth-field-note {
  margin-top: -4px !important;
  color: #789484 !important;
  font-size: 11px !important;
}

.ss-auth-address-group {
  margin: 14px 0 10px;
  padding: 8px 12px 12px;
  border: 1px solid rgba(57, 255, 20, 0.18);
  border-radius: 12px;
  background: rgba(2, 6, 23, 0.46);
}

.ss-auth-address-group legend {
  padding: 0 7px;
  color: #39ff14;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ss-auth-check span {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: 9px;
  color: #b9cbbb;
  font-size: 11px;
  line-height: 1.45;
  text-transform: none;
}

.ss-auth-check input {
  width: 18px;
  min-height: 18px;
  margin: 0;
  padding: 0;
  accent-color: #39ff14;
}

.ss-auth-recovery {
  display: block;
  margin: 4px auto 0;
  border: 0;
  color: #9fb5a7;
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.ss-auth-recovery:hover,
.ss-auth-recovery:focus-visible {
  color: #b7ff5c;
}

.ss-auth-submit {
  width: 100%;
  min-height: 40px;
  margin-top: 10px;
  border: 0;
  border-radius: 10px;
  color: #04110a;
  background: linear-gradient(135deg, #39ff14, #b7ff5c);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.ss-auth-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  min-height: 34px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 9px;
  color: #9fb5a7;
  background: rgba(2, 6, 23, 0.72);
  font-size: 22px;
  font-weight: 900;
  cursor: pointer;
}

.ss-auth-message {
  min-height: 18px;
  color: #9fb5a7;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

@media (max-width: 640px) {
  .ss-auth-widget {
    left: 12px;
    right: 12px;
    justify-content: space-between;
  }

  .ss-auth-widget--embedded {
    left: auto;
    right: auto;
    justify-content: stretch;
  }

  .ss-auth-grid,
  .ss-auth-name-grid,
  .ss-auth-tabs {
    grid-template-columns: 1fr;
  }
}
