

.surface {
  border-radius: var(--mantine-radius-md);
  background: var(--surface-bg);
  border: var(--surface-border);
  position: relative;
  overflow: hidden;
  box-shadow: var(--surface-shadow);
}

.label {
  font-size: var(--mantine-font-size-xs);
  font-weight: 700;
  position: absolute;
  bottom: 15px;
  right: 20px;
  text-transform: uppercase;
  z-index: 0;
  pointer-events: none;
}

.patternOverlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  opacity: 0.5;
}

.gridPattern {
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.03) 1px, transparent 1px);
  background-size: 20px 20px;
}

.circlePattern {
  background-color: rgba(148, 163, 184, 0.02);
  background-image: repeating-radial-gradient(circle at 0 0, transparent 0, rgba(148, 163, 184, 0.02) 10px), repeating-linear-gradient(rgba(148, 163, 184, 0.03), rgba(148, 163, 184, 0.01));
}

.cornerAccent {
  position: absolute;
  width: 20px;
  height: 20px;
  border: var(--surface-corner-accent);
}

.cornerAccentTopLeft {
  top: 8px;
  left: 8px;
  border-right: none;
  border-bottom: none;
  border-radius: 4px 0 0 0;
}

.cornerAccentTopRight {
  top: 8px;
  right: 8px;
  border-left: none;
  border-bottom: none;
  border-radius: 0 4px 0 0;
}

.cornerAccentBottomLeft {
  bottom: 8px;
  left: 8px;
  border-right: none;
  border-top: none;
  border-radius: 0 0 0 4px;
}

.cornerAccentBottomRight {
  bottom: 8px;
  right: 8px;
  border-left: none;
  border-top: none;
  border-radius: 0 0 4px 0;
}

/* Vaporwave (TRON) decorations, scoped to active theme */
:global(.theme-vaporwavetheme) .surface {
  isolation: isolate;
}

:global(.theme-vaporwavetheme) .surface::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 0, 170, 0.35), inset 0 0 24px rgba(0, 240, 255, 0.12);
  border-radius: inherit;
  opacity: 0.6;
  animation: vw-border-soft 7s ease-in-out infinite;
}

:global(.theme-vaporwavetheme) .surface::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: 0 0 18px rgba(255, 0, 170, 0.18), 0 0 22px rgba(0, 240, 255, 0.16);
  opacity: 0.35;
}

:global(.theme-vaporwavetheme) .label {
  text-shadow: 0 0 6px rgba(255, 0, 170, 0.35), 0 0 10px rgba(0, 240, 255, 0.25);
  letter-spacing: 0.06em;
}

