.gooood-auth-modal[hidden], .gooood-auth-toast[hidden], .gooood-auth-panel[hidden], .gooood-auth-social[hidden] { display: none !important; }
.gooood-auth-modal { align-items: flex-start; background: rgba(0,0,0,.38); display: flex; inset: 0; justify-content: center; padding: 90px 16px 24px; position: fixed; z-index: 12000; }
.gooood-auth-dialog { background: #fff; box-shadow: 0 8px 36px rgba(0,0,0,.2); max-width: 340px; padding: 30px; position: relative; width: 100%; }
.gooood-auth-dialog h2 { color: #222; font-size: 18px; font-weight: 400; margin: 0 0 28px; text-align: center; }
.gooood-auth-close { background: transparent; border: 0; color: #333; cursor: pointer; font-size: 24px; line-height: 1; opacity: .6; padding: 6px; position: absolute; right: 8px; top: 6px; }
.gooood-auth-field { display: block; margin: 0 0 14px; }
.gooood-auth-field span { display: none; }
.gooood-auth-field input, .gooood-auth-field select { background: #fff; border: 1px solid #dedede; border-radius: 0; box-sizing: border-box; font: inherit; height: 42px; padding: 0 11px; width: 100%; }
.gooood-auth-code-row { align-items: flex-start; display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr) 104px; }
.gooood-auth-code-row .gooood-auth-field { margin-bottom: 14px; }
.gooood-auth-submit, .gooood-auth-wechat, .gooood-auth-code { background: #1268b3; border: 0; color: #fff; cursor: pointer; font: inherit; min-height: 42px; width: 100%; }
.gooood-auth-code { background: #555; font-size: 13px; white-space: nowrap; }
.gooood-auth-submit:disabled, .gooood-auth-wechat:disabled { cursor: progress; opacity: .65; }
.gooood-auth-submit:disabled, .gooood-auth-wechat:disabled, .gooood-auth-code:disabled { cursor: progress; opacity: .65; }
.gooood-auth-error, .gooood-auth-feedback { font-size: 13px; line-height: 1.5; margin: 0 0 14px; }
.gooood-auth-error { color: #b42318; }
.gooood-auth-feedback { color: #1268b3; }
.gooood-auth-hint { color: #555; font-size: 13px; line-height: 1.55; margin: 0 0 14px; }
.gooood-auth-method-toggle { background: transparent; border: 0; color: #1268b3; cursor: pointer; font: inherit; font-size: 13px; margin: -2px 0 14px; padding: 0; text-align: left; }
.gooood-auth-method-toggle:hover { text-decoration: underline; }
.gooood-auth-links { align-items: center; display: flex; justify-content: space-between; margin: 13px 0 0; }
.gooood-auth-links button { background: transparent; border: 0; color: #1268b3; cursor: pointer; font: inherit; font-size: 13px; padding: 0; text-align: left; }
.gooood-auth-links button + button { color: #666; text-align: right; }
.gooood-auth-links button:hover { text-decoration: underline; }
.gooood-auth-divider { align-items: center; color: #888; display: flex; font-size: 12px; gap: 12px; margin: 22px 0 16px; }
.gooood-auth-divider::before, .gooood-auth-divider::after { background: #e8e8e8; content: ''; flex: 1; height: 1px; }
.gooood-auth-wechat-mobile-guidance { background: #f5f8fa; border-left: 2px solid #9eb9cf; color: #5d6973; font-size: 13px; line-height: 1.55; margin: 0; padding: 10px 12px; }
.gooood-auth-toast { background: rgba(20,20,20,.92); bottom: 28px; color: #fff; font-size: 14px; left: 50%; max-width: calc(100vw - 32px); padding: 11px 18px; position: fixed; transform: translateX(-50%); z-index: 12001; }
.favorite-action.is-favorited { color: #1268b3 !important; }
.favorite-action.is-pending { opacity: .55; pointer-events: none; }
body.gooood-auth-open { overflow: hidden; }

.gooood-auth-slot { align-items: center; display: inline-flex; position: relative; }
.gooood-auth-slot > a { align-items: center; color: var(--muted, #5f6f7d); cursor: pointer; display: inline-flex; min-height: 32px; }
.gooood-account { position: relative; }
.gooood-account-toggle { align-items: center; background: transparent; border: 0; color: #4f5c66; cursor: pointer; display: inline-flex; font: inherit; gap: 7px; justify-content: center; padding: 0; }
.gooood-account-avatar {
  background: #eef3f7;
  border: 1px solid rgba(0,0,0,.1);
  border-radius: 50%;
  display: block;
  flex: 0 0 auto;
  height: 32px;
  object-fit: cover;
  width: 32px;
}
.gooood-account-avatar--placeholder {
  background: radial-gradient(circle at 66% 34%, #f3d56b 0 12%, transparent 13%),
              radial-gradient(circle at 36% 38%, #78b5d8 0 18%, transparent 19%),
              radial-gradient(circle at 56% 68%, #66a96a 0 18%, transparent 19%),
              radial-gradient(circle at 70% 72%, #d06969 0 11%, transparent 12%),
              #eef6fc;
}
.gooood-account-name { display: none; }
.gooood-account-menu {
  background: #fff;
  border: 1px solid #e4e7e9;
  box-shadow: 0 10px 30px rgba(0,0,0,.14);
  display: none;
  min-width: 176px;
  padding: 7px 0;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 12100;
}
.gooood-account.is-open .gooood-account-menu { display: block; }
.gooood-account-menu a, .gooood-account-menu button {
  background: transparent;
  border: 0;
  box-sizing: border-box;
  color: #333;
  cursor: pointer;
  display: block;
  font: inherit;
  font-size: 13px;
  line-height: 1.4;
  padding: 9px 16px;
  text-align: left;
  text-decoration: none;
  white-space: nowrap;
  width: 100%;
}
.gooood-account-menu a:hover, .gooood-account-menu button:hover { background: #f4f6f7; color: #1268b3; }
.gooood-account-divider { border-top: 1px solid #e7e9eb; display: block; margin: 5px 0; }
.mobile-menu-tools [data-gooood-auth-slot="mobile"] { display: block; position: relative; }
.mobile-menu-tools [data-gooood-auth-slot="mobile"] > a { align-items: center; color: #fff; display: flex; gap: 4px; }

@media (max-width: 767px) {
  .gooood-auth-modal { background: #fff; padding: 35px 16px 20px; }
  .gooood-auth-dialog { box-shadow: none; max-width: none; }
  .gooood-auth-code-row { grid-template-columns: minmax(0, 1fr) 96px; }
  .header-actions > .gooood-auth-slot { display: none !important; }
  .gooood-account--mobile { width: 100%; }
  .gooood-account--mobile .gooood-account-toggle { color: #fff; gap: 8px; justify-content: flex-start; width: 100%; }
  .gooood-account--mobile .gooood-account-avatar { height: 30px; width: 30px; }
  .gooood-account--mobile .gooood-account-name { display: inline; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .gooood-account--mobile .gooood-account-menu { bottom: calc(100% + 8px); left: 0; right: auto; top: auto; width: min(240px, calc(100vw - 38px)); }
}
