.so-glass-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  max-width: 700px;
  margin: 24px auto;
  padding: 0 16px;
  box-sizing: border-box;
  font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
}

.so-glass-wrap.so-glass-single {
  max-width: 600px;
  grid-template-columns: 1fr;
}

.so-glass-card {
  position: relative;
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;

  background: linear-gradient(135deg, #0f3460 0%, #1f8ac0 55%, #4fd3e8 100%);

  box-shadow:
    0 4px 12px rgba(15, 52, 96, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(6px);

  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.so-glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.so-glass-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 18px rgba(15, 52, 96, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.so-glass-text {
  position: relative;
  z-index: 1;
  color: #ffffff;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 500;
  margin: 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  flex: 1;
}

.so-glass-copy {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}

.so-glass-copy::before {
  content: "";
  width: 14px;
  height: 14px;
  display: inline-block;
  background-color: #ffffff;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.so-glass-copy:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.04);
}

.so-glass-copy:active {
  transform: scale(0.97);
}

.so-glass-copy.so-copied::before {
  background-color: #ffffff;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.so-toast {
  position: absolute;
  top: -10px;
  right: 14px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.95);
  color: #0f3460;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.so-toast.so-show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 480px) {
  .so-glass-wrap {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 0 12px;
  }
  .so-glass-card {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 14px;
  }
  .so-glass-copy {
    align-self: flex-end;
  }
  .so-glass-text {
    font-size: 14px;
  }
}
