:root.theme-glass,
.theme-glass {
  --bg-dark: #0a0a0a;
  --bg-mid: #171717;
  --bg-light: #1f1f1f;
  --card-bg: rgba(2, 2, 2, 0.40);
  --card-border: rgba(255, 255, 255, 0.22);
  --card-border-strong: rgba(255, 255, 255, 0.30);
  --text-primary: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.65);
  --text-subtle: rgba(255, 255, 255, 0.40);
  --button-bg: rgba(255, 255, 255, 0.16);
  --button-border: rgba(255, 255, 255, 0.22);
  --button-hover-bg: rgba(255, 255, 255, 0.20);
  --button-active-bg: rgba(255, 255, 255, 0.24);
  --shadow-soft: rgba(0, 0, 0, 0.3);
  --shadow-strong: rgba(0, 0, 0, 0.6);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --accent: rgba(255, 255, 255, 0.4);
  --accent-soft: rgba(255, 255, 255, 0.05);
  color-scheme: dark;
}

.theme-glass body {
  background:
    linear-gradient(135deg,
      var(--bg-light) 0%,
      var(--bg-dark) 100%),
    radial-gradient(ellipse at top right,
      rgba(255, 255, 255, 0.02) 0%,
      transparent 50%);
  background-attachment: fixed;
}

.theme-glass body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom right,
    transparent 48%,
    rgba(255, 255, 255, 0.03) 49%,
    rgba(255, 255, 255, 0.03) 51%,
    transparent 52%
  );
  pointer-events: none;
  z-index: 0;
}

.theme-glass .sb-card-shell {
  border-radius: 16px;
  box-shadow:
    0 10px 28px rgba(15, 10, 5, 0.08),
    0 2px 4px rgba(15, 10, 5, 0.04);
}

.theme-glass .sb-card {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.20),
    inset 0 -1px 0 rgba(255, 255, 255, 0.06);
}

.theme-glass .sb-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center,
      rgba(0, 0, 0, 0.3) 0%,
      rgba(0, 0, 0, 0.5) 100%),
    var(--card-bg);
  border-radius: 16px;
  z-index: -1;
}

@supports (backdrop-filter: blur(20px)) {
  .theme-glass .sb-card::before {
    backdrop-filter: blur(56px) saturate(260%);
    -webkit-backdrop-filter: blur(56px) saturate(260%);
  }
}

.theme-glass .sb-button:hover {
  border-color: var(--card-border-strong);
}