#screen-account-manager {
  background: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.account-manager-container {
  width: 100%;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  animation: accountManagerIn 0.5s cubic-bezier(0.34,1.56,0.64,1) both;
  will-change: transform, opacity;
}
@keyframes accountManagerIn {
  from { opacity: 0; transform: translateY(30px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.account-manager-header {
  text-align: center;
  animation: accountHeaderIn 0.6s 0.1s cubic-bezier(0.22,1,0.36,1) both;
}
@keyframes accountHeaderIn {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.account-manager-title {
  font-size: 36px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}
.account-manager-subtitle {
  font-size: 12px;
  color: #444;
  text-transform: uppercase;
  letter-spacing: 4px;
}
.account-list-wrap {
  max-height: 480px;
  overflow-y: auto;
  padding: 4px;
  scrollbar-width: thin;
  scrollbar-color: #222 transparent;
}
.account-list-wrap::-webkit-scrollbar {
  width: 6px;
}
.account-list-wrap::-webkit-scrollbar-thumb {
  background: #222;
  border-radius: 3px;
}
.account-list-wrap::-webkit-scrollbar-thumb:hover {
  background: #333;
}
.account-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.account-card {
  background: #111;
  border: 2px solid #1e1e1e;
  border-radius: 16px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34,1.56,0.64,1);
  animation: accountCardIn 0.4s cubic-bezier(0.34,1.56,0.64,1) both;
  position: relative;
  overflow: visible;
  will-change: transform;
}
@keyframes accountCardIn {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}
.account-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(37,99,235,0.05) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
}
.account-card:hover {
  border-color: #2563eb;
  transform: translateX(8px) scale(1.02);
  box-shadow: 0 8px 32px rgba(37,99,235,0.25);
}
.account-card:hover::before {
  opacity: 1;
}
.account-card:active {
  transform: translateX(6px) scale(0.99);
  transition: all 0.1s;
}
.account-avatar-wrap {
  position: relative;
  width: 72px;
  height: 72px;
  flex-shrink: 0;
}
.account-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #2563eb;
  box-shadow: 0 0 20px rgba(37,99,235,0.4);
  transition: all 0.3s;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}
.account-card:hover .account-avatar {
  box-shadow: 0 0 30px rgba(37,99,235,0.7);
  transform: scale(1.08);
}
.account-avatar-placeholder {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e3a8a, #1e40af);
  border: 3px solid #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 900;
  color: #60a5fa;
  box-shadow: 0 0 20px rgba(37,99,235,0.4);
  transition: all 0.3s;
}
.account-card:hover .account-avatar-placeholder {
  box-shadow: 0 0 30px rgba(37,99,235,0.7);
  transform: scale(1.08);
}
.account-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.account-name {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.account-rating {
  font-size: 13px;
  color: #666;
  font-weight: 600;
}
.account-rating span {
  color: #fbbf24;
  font-weight: 800;
}
.account-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex-shrink: 0;
  position: relative;
  z-index: 10;
}
.account-auto-login {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #666;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 6px;
  transition: all 0.15s;
  user-select: none;
  position: relative;
  z-index: 11;
}
.account-auto-login:hover {
  background: #1a1a1a;
  color: #aaa;
}
.account-auto-login input[type="checkbox"],
.account-auto-login input[type="radio"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #2563eb;
  position: relative;
  z-index: 12;
}
.account-remove-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: transparent;
  border: 1px solid #2a1515;
  color: #7a3030;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s cubic-bezier(0.34,1.56,0.64,1);
  position: relative;
  z-index: 11;
}
.account-remove-btn:hover {
  background: #1a0808;
  border-color: #7a2020;
  color: #f87171;
  transform: scale(1.15) rotate(90deg);
}
.account-remove-btn:active {
  transform: scale(0.95) rotate(90deg);
}
.account-add-btn {
  width: 100%;
  padding: 16px;
  background: #0d0d0d;
  border: 2px dashed #222;
  border-radius: 12px;
  color: #666;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.25s cubic-bezier(0.34,1.56,0.64,1);
  animation: accountAddBtnIn 0.5s 0.2s cubic-bezier(0.22,1,0.36,1) both;
}
@keyframes accountAddBtnIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.account-add-btn:hover {
  background: #111;
  border-color: #2563eb;
  color: #60a5fa;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37,99,235,0.2);
}
.account-add-btn:active {
  transform: translateY(0);
}
.account-add-icon {
  font-size: 24px;
  font-weight: 300;
}
.account-login-overlay {
  position: fixed;
  inset: 0;
  top: 32px;
  z-index: 600;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: accountLoginOverlayIn 0.25s ease both;
}
@keyframes accountLoginOverlayIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.account-login-prompt {
  background: #111;
  border: 2px solid #222;
  border-radius: 18px;
  padding: 40px 48px;
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: accountLoginPromptIn 0.35s cubic-bezier(0.34,1.56,0.64,1) both;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
@keyframes accountLoginPromptIn {
  from { opacity: 0; transform: translateY(-40px) scale(0.9); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.account-login-title {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  text-align: center;
  letter-spacing: 0.5px;
}
.account-login-subtitle {
  font-size: 14px;
  color: #60a5fa;
  text-align: center;
  font-weight: 600;
}
.account-login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.account-login-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #666;
  font-weight: 700;
}
.account-login-input {
  background: #0d0d0d;
  border: 2px solid #222;
  border-radius: 10px;
  color: #fff;
  font-size: 16px;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.15s ease;
  width: 100%;
  contain: layout style;
}
.account-login-input:focus {
  border-color: #2563eb;
}
.account-login-input::placeholder {
  color: #333;
}
.account-login-error {
  font-size: 13px;
  color: #f87171;
  text-align: center;
  min-height: 18px;
  opacity: 0;
  transition: opacity 0.2s;
}
.account-login-buttons {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}
.account-login-btn {
  flex: 1;
  padding: 14px;
  background: #2563eb;
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.34,1.56,0.64,1);
}
.account-login-btn:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37,99,235,0.4);
}
.account-login-btn:active {
  transform: translateY(0);
}
.account-login-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.account-login-cancel {
  flex: 1;
  padding: 14px;
  background: #151515;
  border: 2px solid #222;
  border-radius: 10px;
  color: #aaa;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.34,1.56,0.64,1);
}
.account-login-cancel:hover {
  background: #1e1e1e;
  border-color: #333;
  transform: translateY(-2px);
}
.account-login-cancel:active {
  transform: translateY(0);
}
.theme-light #screen-account-manager {
  background: #f4f6fb;
}
.theme-light .account-manager-title {
  color: #1a1a40;
}
.theme-light .account-manager-subtitle {
  color: #8896b0;
}
.theme-light .account-list-wrap {
  scrollbar-color: #d0ddf0 transparent;
}
.theme-light .account-card {
  background: #fff;
  border-color: #e0e8f0;
}
.theme-light .account-card:hover {
  border-color: #2563eb;
  box-shadow: 0 8px 32px rgba(37,99,235,0.15);
}
.theme-light .account-name {
  color: #1a1a40;
}
.theme-light .account-rating {
  color: #8896b0;
}
.theme-light .account-auto-login {
  color: #8896b0;
}
.theme-light .account-auto-login:hover {
  background: #f0f4ff;
  color: #4060a0;
}
.theme-light .account-remove-btn {
  border-color: #f0c0c0;
  color: #cc3030;
}
.theme-light .account-remove-btn:hover {
  background: #fff0f0;
  border-color: #e0a0a0;
  color: #aa2020;
}
.theme-light .account-add-btn {
  background: #f8faff;
  border-color: #d0ddf0;
  color: #8896b0;
}
.theme-light .account-add-btn:hover {
  background: #fff;
  border-color: #2563eb;
  color: #2563eb;
  box-shadow: 0 6px 20px rgba(37,99,235,0.1);
}
.theme-light .account-login-overlay {
  background: rgba(180,190,220,0.85);
}
.theme-light .account-login-prompt {
  background: #fff;
  border-color: #d0ddf0;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.theme-light .account-login-title {
  color: #1a1a40;
}
.theme-light .account-login-subtitle {
  color: #2563eb;
}
.theme-light .account-login-label {
  color: #8896b0;
}
.theme-light .account-login-input {
  background: #f8faff;
  border-color: #d0d8f0;
  color: #1a1a40;
}
.theme-light .account-login-input:focus {
  border-color: #2563eb;
}
.theme-light .account-login-input::placeholder {
  color: #b0b8cc;
}
.theme-light .account-login-error {
  color: #cc2020;
}
.theme-light .account-login-cancel {
  background: #f0f4ff;
  border-color: #c8d0f0;
  color: #4060a0;
}
.theme-light .account-login-cancel:hover {
  background: #e0e8ff;
  border-color: #b0c0e0;
}
