/* Spin Wheel Creator account UI. Sits inside the wheel page's #nav-links pill. */

.swc-acc-root {
  position: relative;
}

.swc-acc-trigger {
  padding: 3px 6px;
}

.swc-acc-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.swc-acc-head .swc-acc-avatar {
  width: 36px;
  height: 36px;
}

.swc-acc-initials {
  background: #4f46e5;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.swc-acc-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 300px;
  max-width: calc(100vw - 32px);
  background: rgba(16, 16, 40, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 8px;
  z-index: 300;
  color: #fff;
  font-family: var(--font, system-ui, sans-serif);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.swc-acc-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 6px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.swc-acc-who {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.swc-acc-name {
  font-size: 14px;
  font-weight: 700;
}

.swc-acc-email {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.swc-acc-section {
  padding: 10px 6px 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.swc-acc-wheels {
  max-height: 280px;
  overflow-y: auto;
}

.swc-acc-wheel {
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 8px;
}

.swc-acc-wheel:hover {
  background: rgba(255, 255, 255, 0.06);
}

.swc-acc-wheel-open {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 6px;
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
}

.swc-acc-wheel-open:hover,
.swc-acc-wheel-open:focus-visible {
  background: rgba(255, 255, 255, 0.1);
}

.swc-acc-wheel-edit {
  flex-shrink: 0;
  margin-right: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.swc-acc-wheel-edit:hover,
.swc-acc-wheel-edit:focus-visible {
  background: #4f46e5;
}

.swc-acc-thumb {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.swc-acc-wheel-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.swc-acc-wheel-title {
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.swc-acc-wheel-sub {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
}

.swc-acc-empty {
  margin: 0;
  padding: 8px 6px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

.swc-acc-more,
.swc-acc-dashboard,
.swc-acc-logout {
  display: block;
  box-sizing: border-box;
  text-align: center;
  text-decoration: none;
  width: 100%;
  margin-top: 6px;
  padding: 9px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.swc-acc-more:hover,
.swc-acc-dashboard:hover,
.swc-acc-logout:hover {
  background: rgba(255, 255, 255, 0.16);
}

.swc-acc-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(8, 8, 24, 0.6);
}

.swc-acc-modal {
  position: relative;
  width: 100%;
  max-width: 380px;
  padding: 28px 24px 20px;
  border-radius: 16px;
  background: #fff;
  color: #1a1a2e;
  text-align: center;
  font-family: var(--font, system-ui, sans-serif);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.3);
}

.swc-acc-modal h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.swc-acc-lead {
  margin: 0 0 20px;
  font-size: 14px;
  color: #55556a;
}

.swc-acc-google {
  display: flex;
  justify-content: center;
  min-height: 44px;
}

.swc-acc-or {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0;
  font-size: 12px;
  color: #8a8aa0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.swc-acc-or::before,
.swc-acc-or::after {
  content: '';
  flex: 1;
  border-top: 1px solid #e4e4ee;
}

.swc-acc-email-form,
.swc-acc-code-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 280px;
  margin: 0 auto;
}

.swc-acc-input {
  box-sizing: border-box;
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #d0d0dc;
  border-radius: 999px;
  background: #fff;
  color: #1a1a2e;
  font: inherit;
  font-size: 15px;
}

.swc-acc-input:focus {
  outline: 2px solid #4f46e5;
  outline-offset: 1px;
  border-color: #4f46e5;
}

.swc-acc-code {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.3em;
}

.swc-acc-code::placeholder {
  font-size: 15px;
  font-weight: 400;
  letter-spacing: normal;
}

.swc-acc-primary {
  padding: 11px 16px;
  border: 0;
  border-radius: 999px;
  background: #4f46e5;
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.swc-acc-primary:hover {
  background: #4338ca;
}

.swc-acc-primary:disabled {
  opacity: 0.6;
  cursor: default;
}

.swc-acc-sent {
  margin: 0 0 12px;
  font-size: 14px;
  color: #55556a;
  overflow-wrap: anywhere;
}

.swc-acc-code-actions {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  max-width: 280px;
  margin: 10px auto 0;
}

.swc-acc-link {
  padding: 4px 0;
  border: 0;
  background: none;
  color: #4f46e5;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.swc-acc-link:disabled {
  color: #8a8aa0;
  cursor: default;
}

.swc-acc-status {
  min-height: 18px;
  margin: 12px 0 0;
  font-size: 13px;
  color: #55556a;
}

.swc-acc-close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: 0;
  background: none;
  font-size: 24px;
  line-height: 1;
  color: #8a8aa0;
  cursor: pointer;
}

.swc-acc-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 10001;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: calc(100vw - 32px);
  padding: 10px 12px 10px 16px;
  border-radius: 12px;
  background: #1a1a2e;
  color: #fff;
  font-family: var(--font, system-ui, sans-serif);
  font-size: 14px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
}

.swc-acc-toast button {
  flex-shrink: 0;
  padding: 6px 12px;
  border: 0;
  border-radius: 999px;
  background: #4f46e5;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 768px) {
  .swc-acc-menu {
    position: static;
    width: auto;
    margin-top: 6px;
    box-shadow: none;
  }

  .swc-acc-trigger {
    justify-content: flex-start;
    gap: 8px;
  }
}
