@import url('./shared.css');

body.pc-web {
  min-height: 100vh;
}

.web-mode-banner {
  position: fixed;
  top: 12px;
  right: 14px;
  z-index: 5000;
  display: flex;
  gap: 8px;
  align-items: center;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(0, 0, 0, 0.16);
  padding: 6px 10px;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
  font-size: 12px;
}

.web-mode-banner .label {
  color: #4a4a4a;
}
.web-mode-banner .mode-btn {
  border: 1px solid rgba(0, 0, 0, 0.22);
  border-radius: 999px;
  background: #fff;
  color: #333;
  padding: 2px 8px;
  font-size: 12px;
  cursor: pointer;
}

.web-mode-banner .mode-btn.active {
  background: linear-gradient(180deg, #3464c8 0%, #1d4ea8 100%);
  color: #fff;
  border-color: #1e4b98;
}

/* Stella customization */
.contact-panel-ad .ad-content {
  height: 124px;
  background: #f5f5f5;
}

.stella-space-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  background: #f7f7f7;
}



.contact-panel-ad {
  overflow: hidden;
}

.contact-panel-ad .ad-content {
  height: 120px;
  min-height: 120px;
  max-height: 120px;
  overflow: hidden;
  display: block;
  background: #f5f5f5;
}

.stella-space-img {
  width: 100% !important;
  height: 120px !important;
  max-width: 100%;
  max-height: 120px;
  object-fit: contain !important;
  object-position: center;
  display: block;
  background: #f7f7f7;
}

#my-avatar-img,
#stella-space-img,
#qq-taskbar-avatar {
  image-rendering: auto;
}

#my-avatar-img,
#stella-space-img,
#qq-number,
#qq-user-name,
#qq-taskbar-text,
#stella-space-label {
  cursor: pointer;
}



#my-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #fff;
}

#qq-taskbar-avatar {
  object-fit: contain;
  background: #fff;
}

/* Stella panel ratio fix + remove extra vertical spacing */
.contact-panel-ad .ad-content {
  height: 136px !important;
  min-height: 136px !important;
  max-height: 136px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  background: #f5f5f5 !important;
}

#stella-space-img,
.stella-space-img {
  width: 120px !important;
  height: 120px !important;
  max-width: 120px !important;
  max-height: 120px !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  background: #fff !important;
  border: 1px solid #a8a8a8 !important;
}

/* Invite gate */
.web-mode-banner .invite-remaining {
  font-size: 12px;
  color: #1d4ea8;
  border: 1px solid rgba(29, 78, 168, 0.25);
  background: rgba(29, 78, 168, 0.08);
  border-radius: 999px;
  padding: 2px 8px;
}

.mode-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.invite-gate-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.invite-gate-card {
  width: min(420px, calc(100% - 24px));
  border: 1px solid #315a9b;
  background: linear-gradient(180deg, #f8fbff 0%, #edf2fb 100%);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  border-radius: 10px;
  padding: 18px;
}

.invite-gate-title {
  font-size: 18px;
  font-weight: 700;
  color: #123d84;
}

.invite-gate-subtitle {
  margin-top: 8px;
  font-size: 13px;
  color: #4c5f7a;
  line-height: 1.45;
}

.invite-gate-input {
  margin-top: 14px;
  width: 100%;
  height: 40px;
  border: 1px solid #8ca6d9;
  border-radius: 6px;
  padding: 0 12px;
  font-size: 14px;
  outline: none;
}

.invite-gate-input:focus {
  border-color: #2d5fbe;
  box-shadow: 0 0 0 3px rgba(57, 105, 202, 0.18);
}

.invite-gate-error {
  margin-top: 8px;
  min-height: 18px;
  color: #b3122b;
  font-size: 12px;
}

.invite-gate-submit {
  margin-top: 8px;
  width: 100%;
  height: 40px;
  border: 1px solid #1f4ea7;
  border-radius: 6px;
  background: linear-gradient(180deg, #3d72d0 0%, #1f4ea7 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.invite-gate-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
