.ach-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(10, 25, 15, 0.96);
  border: 1px solid rgba(0, 220, 80, 0.45);
  border-radius: 10px;
  box-shadow:
    0 0 18px rgba(0, 200, 70, 0.22),
    0 8px 32px rgba(0, 0, 0, 0.75);
  min-width: 260px;
  max-width: 340px;
  cursor: default;
  transform: translateX(calc(100% + 32px));
  opacity: 0;
  transition:
    transform 0.4s cubic-bezier(0.34, 1.36, 0.64, 1),
    opacity 0.35s ease;
  font-family: var(--screen-font-family, monospace);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.ach-toast--visible {
  transform: translateX(0);
  opacity: 1;
}

.ach-toast-icon {
  width: 58px;
  height: 58px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.3);
  padding: 4px;
}
.ach-toast-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}
.ach-toast-header {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: rgba(0, 220, 80, 0.9);
  font-weight: 700;
}
.ach-toast-title {
  font-size: 0.95rem;
  color: var(--screen-text-color, #cfe);
  font-weight: 600;
  line-height: 1.2;
}
.ach-toast-label {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.5);
}
.ach-toast-close {
  align-self: flex-start;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0 0 4px;
  flex-shrink: 0;
  transition: color 0.15s;
}
.ach-toast-close:hover {
  color: rgba(255, 255, 255, 0.85);
}

.ach-grid {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 6px 2px 2px;
}

.ach-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  filter: grayscale(100%);
  opacity: 0.35;
  transition: filter 0.25s, opacity 0.25s;
  cursor: default;
}
.ach-row--earned {
  filter: none;
  opacity: 1;
  border-color: rgba(0, 220, 80, 0.28);
  background: rgba(0, 30, 15, 0.45);
  box-shadow: 0 0 8px rgba(0, 180, 60, 0.08);
}
.ach-row:hover {
  opacity: 0.55;
}
.ach-row--earned:hover {
  opacity: 1;
}
.ach-row-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}
.ach-row-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.ach-row-name {
  font-size: 0.72rem;
  font-weight: bold;
  letter-spacing: 0.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ach-row--earned .ach-row-name {
  color: #7dffad;
}
.ach-row-desc {
  font-size: 0.62rem;
  opacity: 0.65;
  line-height: 1.3;
}

.ach-profile-section {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2px;
  padding-top: 8px;
  margin-bottom: 14px;
}
.profile-view-body .ach-profile-section {
  width: 100%;
}
.ach-toggle-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 8px 10px;
  background: rgba(0, 220, 80, 0.06);
  border: 1px solid rgba(0, 220, 80, 0.18);
  border-radius: 6px;
  color: var(--screen-text-color, #cfe);
  font-family: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s, border-color 0.2s;
}
.ach-toggle-btn:hover {
  background: rgba(0, 220, 80, 0.13);
  border-color: rgba(0, 220, 80, 0.32);
}
.ach-toggle-arrow {
  font-size: 0.65rem;
  opacity: 0.7;
  transition: transform 0.3s ease;
  display: inline-block;
}
.ach-toggle-btn.ach-toggle-btn--open .ach-toggle-arrow {
  transform: rotate(180deg);
}

.ach-grid-wrapper {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.ach-grid-wrapper--open {
  max-height: 440px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 200, 70, 0.3) transparent;
}
.ach-grid-wrapper--open::-webkit-scrollbar {
  width: 4px;
}
.ach-grid-wrapper--open::-webkit-scrollbar-track {
  background: transparent;
}
.ach-grid-wrapper--open::-webkit-scrollbar-thumb {
  background: rgba(0, 200, 70, 0.35);
  border-radius: 2px;
}

.ach-public-section {
  width: 100%;
  margin-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 10px;
}
.ach-section-title {
  text-align: center;
  font-size: 0.82rem;
  opacity: 0.8;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}
.ach-public-section .ach-grid {
  grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
}