.wc-account-launcher {
  align-items: center;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  border: 1px solid #fde68a;
  border-radius: 999px;
  bottom: 1rem;
  box-shadow:
    0 12px 35px rgb(2 6 23 / 0.55),
    0 0 0 4px rgb(251 191 36 / 0.08);
  color: #07111f;
  cursor: pointer;
  display: flex;
  font-size: 0.78rem;
  font-weight: 900;
  gap: 0.5rem;
  min-height: 2.85rem;
  padding: 0.55rem 0.9rem;
  position: fixed;
  right: 1rem;
  z-index: 90;
}

.wc-account-launcher:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.wc-account-launcher.is-signed-in {
  background: linear-gradient(135deg, #34d399, #10b981);
  border-color: #a7f3d0;
}

.wc-account-launcher.is-syncing {
  opacity: 0.82;
}

.wc-account-launcher-icon {
  align-items: center;
  background: rgb(7 17 31 / 0.12);
  border-radius: 999px;
  display: inline-flex;
  font-size: 1rem;
  height: 1.55rem;
  justify-content: center;
  width: 1.55rem;
}

.wc-account-modal[hidden] {
  display: none;
}

.wc-account-modal {
  inset: 0;
  position: fixed;
  z-index: 120;
}

.wc-account-backdrop {
  background: rgb(2 6 23 / 0.78);
  inset: 0;
  position: absolute;
}

.wc-account-dialog {
  background:
    radial-gradient(circle at top right, rgb(16 185 129 / 0.12), transparent 38%),
    #0f1c2f;
  border: 1px solid rgb(52 211 153 / 0.34);
  border-radius: 1rem;
  box-shadow: 0 30px 90px rgb(2 6 23 / 0.76);
  color: #e2e8f0;
  left: 50%;
  max-height: min(42rem, calc(100vh - 2rem));
  max-width: calc(100vw - 2rem);
  overflow: auto;
  padding: 1.15rem;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 31rem;
}

.wc-account-dialog > header {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
}

.wc-account-dialog h2 {
  color: #f8fafc;
  font-size: 1.25rem;
  font-weight: 950;
  margin: 0.1rem 0 0;
}

.wc-account-kicker {
  color: #fbbf24;
  font-size: 0.62rem;
  font-weight: 950;
  letter-spacing: 0.16em;
}

.wc-account-close {
  align-items: center;
  background: rgb(30 41 59 / 0.82);
  border: 1px solid #334155;
  border-radius: 0.6rem;
  color: #cbd5e1;
  cursor: pointer;
  display: inline-flex;
  font-size: 1.4rem;
  height: 2.25rem;
  justify-content: center;
  line-height: 1;
  width: 2.25rem;
}

.wc-account-tabs {
  background: rgb(2 6 23 / 0.42);
  border: 1px solid rgb(51 65 85 / 0.72);
  border-radius: 0.7rem;
  display: grid;
  gap: 0.25rem;
  grid-template-columns: 1fr 1fr;
  margin: 1rem 0;
  padding: 0.25rem;
}

.wc-account-tabs button {
  background: transparent;
  border: 0;
  border-radius: 0.5rem;
  color: #94a3b8;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 850;
  padding: 0.65rem;
}

.wc-account-tabs button.is-active {
  background: #1e293b;
  color: #fde68a;
}

.wc-account-body {
  min-height: 13rem;
}

.wc-account-intro {
  background: rgb(15 118 110 / 0.12);
  border: 1px solid rgb(52 211 153 / 0.2);
  border-radius: 0.75rem;
  padding: 0.9rem;
}

.wc-account-intro strong {
  color: #a7f3d0;
  display: block;
  font-size: 0.92rem;
}

.wc-account-intro p,
.wc-account-empty p {
  color: #a8b4c6;
  font-size: 0.72rem;
  line-height: 1.55;
  margin: 0.35rem 0 0;
}

.wc-account-form {
  display: grid;
  gap: 0.55rem;
  margin-top: 1rem;
}

.wc-account-form label {
  color: #cbd5e1;
  font-size: 0.68rem;
  font-weight: 800;
}

.wc-account-form input {
  background: #111d30;
  border: 1px solid #475569;
  border-radius: 0.65rem;
  color: #f8fafc;
  font: inherit;
  min-height: 2.85rem;
  padding: 0.65rem 0.75rem;
}

.wc-account-form input:focus {
  border-color: #fbbf24;
  box-shadow: 0 0 0 3px rgb(251 191 36 / 0.12);
  outline: none;
}

.wc-account-form button,
.wc-account-actions button {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  border: 1px solid #fde68a;
  border-radius: 0.65rem;
  color: #07111f;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 900;
  min-height: 2.65rem;
  padding: 0.6rem 0.8rem;
}

.wc-account-form button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.wc-account-form button.is-secondary,
.wc-account-actions button {
  background: #1e293b;
  border-color: #475569;
  color: #dbeafe;
}

.wc-account-actions button.is-danger {
  border-color: rgb(248 113 113 / 0.45);
  color: #fca5a5;
}

.wc-account-privacy {
  color: #64748b;
  font-size: 0.62rem;
  line-height: 1.5;
  margin: 0.8rem 0 0;
}

.wc-account-message {
  border: 1px solid;
  border-radius: 0.65rem;
  font-size: 0.7rem;
  line-height: 1.45;
  margin-bottom: 0.8rem;
  padding: 0.7rem;
}

.wc-account-message.is-success {
  background: rgb(16 185 129 / 0.12);
  border-color: rgb(52 211 153 / 0.36);
  color: #a7f3d0;
}

.wc-account-message.is-error {
  background: rgb(239 68 68 / 0.1);
  border-color: rgb(248 113 113 / 0.38);
  color: #fecaca;
}

.wc-account-message.is-info {
  background: rgb(59 130 246 / 0.1);
  border-color: rgb(96 165 250 / 0.35);
  color: #bfdbfe;
}

.wc-account-profile {
  align-items: center;
  background: rgb(2 6 23 / 0.32);
  border: 1px solid #334155;
  border-radius: 0.75rem;
  display: flex;
  gap: 0.75rem;
  padding: 0.8rem;
}

.wc-account-profile strong,
.wc-account-profile span {
  display: block;
}

.wc-account-profile strong {
  color: #f8fafc;
  font-size: 0.9rem;
}

.wc-account-profile span {
  color: #7f8da3;
  font-size: 0.66rem;
  margin-top: 0.15rem;
}

.wc-account-avatar {
  align-items: center;
  background: linear-gradient(135deg, #fbbf24, #34d399);
  border-radius: 999px;
  color: #07111f;
  display: flex;
  font-size: 1.05rem;
  font-weight: 950;
  height: 2.65rem;
  justify-content: center;
  width: 2.65rem;
}

.wc-account-sync-status {
  align-items: center;
  color: #94a3b8;
  display: flex;
  font-size: 0.68rem;
  gap: 0.45rem;
  margin: 0.8rem 0;
}

.wc-account-status-dot {
  background: #34d399;
  border-radius: 999px;
  box-shadow: 0 0 10px rgb(52 211 153 / 0.55);
  height: 0.5rem;
  width: 0.5rem;
}

.wc-account-actions {
  display: grid;
  gap: 0.45rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wc-account-loading,
.wc-account-empty {
  color: #94a3b8;
  padding: 2.5rem 1rem;
  text-align: center;
}

.wc-account-empty strong {
  color: #f8fafc;
  display: block;
}

.wc-leaderboard-head,
.wc-leaderboard li {
  align-items: center;
  display: grid;
  gap: 0.55rem;
  grid-template-columns: 2rem minmax(0, 1fr) 3.5rem 4rem;
}

.wc-leaderboard-head {
  color: #64748b;
  font-size: 0.57rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  padding: 0 0.65rem 0.45rem;
  text-transform: uppercase;
}

.wc-leaderboard {
  display: grid;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.wc-leaderboard li {
  background: rgb(30 41 59 / 0.72);
  border: 1px solid #334155;
  border-radius: 0.65rem;
  min-height: 2.65rem;
  padding: 0.55rem 0.65rem;
}

.wc-leaderboard li.is-current {
  border-color: #fbbf24;
  box-shadow: inset 0 0 0 1px rgb(251 191 36 / 0.15);
}

.wc-leaderboard-rank {
  color: #fbbf24;
  font-size: 0.78rem;
  font-weight: 950;
}

.wc-leaderboard strong {
  color: #f8fafc;
  font-size: 0.72rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wc-leaderboard b {
  color: #a7f3d0;
  font-size: 0.8rem;
  text-align: center;
}

.wc-leaderboard li > span:last-child {
  color: #94a3b8;
  font-size: 0.63rem;
  text-align: right;
}

@media (max-width: 640px) {
  .wc-account-launcher {
    bottom: 0.7rem;
    max-width: calc(100vw - 1.4rem);
    right: 0.7rem;
  }

  .wc-account-dialog {
    border-radius: 0.9rem 0.9rem 0 0;
    bottom: 0;
    left: 0;
    max-height: calc(100vh - 1rem);
    max-width: none;
    padding: 1rem;
    top: auto;
    transform: none;
    width: 100%;
  }

  .wc-account-actions {
    grid-template-columns: 1fr;
  }

  .wc-leaderboard-head,
  .wc-leaderboard li {
    gap: 0.35rem;
    grid-template-columns: 1.6rem minmax(0, 1fr) 2.8rem 3.2rem;
  }
}
