.dermacare-glass-button {
  box-sizing: border-box;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 0;
  border-radius: 14px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.dermacare-glass-button::before {
  content: '';
  position: absolute;
  inset: 1px 1px 48%;
  border-radius: inherit;
  background: linear-gradient(180deg, rgb(255 255 255 / 26%), transparent);
  pointer-events: none;
}

.dermacare-glass-button--primary {
  color: #fff;
  background: linear-gradient(135deg, rgb(91 156 255 / 96%), rgb(59 130 246 / 96%) 52%, rgb(37 99 235 / 94%));
  box-shadow:
    0 15px 28px -14px rgb(37 99 235 / 55%),
    inset 0 1px 0 rgb(255 255 255 / 40%),
    inset 0 -2px 2px rgb(20 68 174 / 18%);
}

.dermacare-glass-button--secondary {
  color: #374151;
  background: linear-gradient(115deg, rgb(255 255 255 / 78%), rgb(219 234 254 / 59%) 50%, rgb(221 214 254 / 53%));
  box-shadow:
    0 15px 28px -16px rgb(37 99 235 / 25%),
    inset 0 1px 0 rgb(255 255 255 / 88%),
    inset 0 -1px 2px rgb(96 165 250 / 12%);
}

.dermacare-glass-button--primary:hover {
  color: #fff;
  background: linear-gradient(135deg, rgb(105 169 255 / 98%), rgb(59 130 246 / 98%) 48%, rgb(37 99 235 / 96%));
  box-shadow: 0 18px 32px -13px rgb(37 99 235 / 58%), inset 0 1px 0 rgb(255 255 255 / 46%);
  transform: translateY(-2px);
}

.dermacare-glass-button--secondary:hover {
  color: #1f2937;
  background: linear-gradient(115deg, rgb(255 255 255 / 90%), rgb(219 234 254 / 72%) 50%, rgb(221 214 254 / 66%));
  box-shadow: 0 18px 32px -16px rgb(37 99 235 / 30%), inset 0 1px 0 rgb(255 255 255 / 95%);
  transform: translateY(-2px);
}

.dermacare-glass-button:active {
  transform: translateY(1px) scale(0.99);
}

.dermacare-glass-button:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 3px;
}

.dermacare-glass-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .dermacare-glass-button { transition: none; }
  .dermacare-glass-button:hover,
  .dermacare-glass-button:active { transform: none; }
}
