@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&family=JetBrains+Mono:wght@400;500;700&family=Silkscreen:wght@400;700&display=swap");

:root {
  --dl-bg: #0d1117;
  --dl-bg-2: #141b23;
  --dl-bg-3: #1b232c;
  --dl-card: #161f29;
  --dl-card-2: #101820;
  --dl-ink: #e8f0e6;
  --dl-ink-2: #a8b3a5;
  --dl-ink-3: #6f7a73;
  --dl-line: rgba(255, 255, 255, 0.1);
  --dl-line-soft: rgba(255, 255, 255, 0.06);
  --dl-grass: #3b82f6;
  --dl-grass-dark: #1d4ed8;
  --dl-grass-light: #93c5fd;
  --dl-gold: #7dd3fc;
  --dl-gold-dark: #38bdf8;
  --dl-red: #d94c4c;
  --dl-cyan: #54d1c8;
  --dl-shadow: 0 0 0 1px rgba(59, 130, 246, 0.15), 0 18px 46px rgba(0, 0, 0, 0.42);
  --dl-shadow-sm: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 10px 26px rgba(0, 0, 0, 0.32);
}

html {
  scroll-behavior: smooth;
}

body.theme-donut {
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.12), transparent 28%),
    radial-gradient(circle at bottom right, rgba(14, 165, 233, 0.08), transparent 26%),
    linear-gradient(rgba(96, 165, 250, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96, 165, 250, 0.04) 1px, transparent 1px),
    var(--dl-bg);
  background-size: auto, auto, 32px 32px, 32px 32px, auto;
  color: var(--dl-ink);
  font-family: "DM Sans", system-ui, sans-serif;
}

body.theme-donut::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 18%, rgba(96, 165, 250, 0.08), transparent 18%),
    radial-gradient(circle at 82% 82%, rgba(125, 211, 252, 0.06), transparent 16%);
  z-index: 0;
}

body.theme-donut > * {
  position: relative;
  z-index: 1;
}

body.theme-donut h1,
body.theme-donut h2,
body.theme-donut h3,
body.theme-donut .pixel-heading,
body.theme-donut .pixel-label,
body.theme-donut .status-badge,
body.theme-donut .theme-pill,
body.theme-donut .theme-button,
body.theme-donut .theme-button-secondary,
body.theme-donut .theme-button-danger {
  font-family: "Silkscreen", monospace;
}

body.theme-donut code,
body.theme-donut .font-mono {
  font-family: "JetBrains Mono", ui-monospace, monospace !important;
}

body.theme-donut nav,
body.theme-donut header.theme-bar {
  background: rgba(13, 17, 23, 0.9) !important;
  border-bottom: 2px solid var(--dl-line) !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

body.theme-donut footer {
  border-top: 2px solid var(--dl-line) !important;
  background: rgba(20, 27, 35, 0.8);
}

body.theme-donut .theme-panel,
body.theme-donut .theme-card,
body.theme-donut .theme-modal,
body.theme-donut details,
body.theme-donut table,
body.theme-donut .status-badge {
  box-shadow: var(--dl-shadow-sm);
}

body.theme-donut [class*="bg-[#0b0f1a]"],
body.theme-donut [class*="bg-[#060a13]"],
body.theme-donut [class*="bg-[#05070d]"] {
  background: linear-gradient(180deg, rgba(22, 31, 41, 0.96), rgba(14, 22, 29, 0.96)) !important;
}

body.theme-donut [class*="border-gray-800"],
body.theme-donut [class*="border-gray-700"],
body.theme-donut [class*="border-gray-900"] {
  border-color: var(--dl-line) !important;
}

body.theme-donut [class*="rounded-3xl"],
body.theme-donut [class*="rounded-2xl"],
body.theme-donut [class*="rounded-xl"],
body.theme-donut [class*="rounded-lg"] {
  box-shadow: var(--dl-shadow-sm);
}

body.theme-donut button,
body.theme-donut a[href].inline-flex,
body.theme-donut a[href][class*="rounded"] {
  border-radius: 6px !important;
}

body.theme-donut button:not(.unstyled),
body.theme-donut a[href][class*="border"] {
  transition: transform 0.08s ease, box-shadow 0.08s ease, border-color 0.2s ease, background 0.2s ease;
}

body.theme-donut button:hover,
body.theme-donut a[href][class*="border"]:hover {
  border-color: rgba(140, 200, 84, 0.45) !important;
}

body.theme-donut [class*="border-cyan-400"],
body.theme-donut [class*="border-cyan-300"] {
  background: rgba(95, 165, 48, 0.14) !important;
  border-color: rgba(140, 200, 84, 0.55) !important;
  color: #d8f0c8 !important;
}

body.theme-donut [class*="border-blue-400"],
body.theme-donut [class*="border-blue-300"] {
  background: rgba(84, 209, 200, 0.1) !important;
  border-color: rgba(84, 209, 200, 0.45) !important;
}

body.theme-donut [class*="text-cyan-300"],
body.theme-donut [class*="text-cyan-400"] {
  color: var(--dl-grass-light) !important;
}

body.theme-donut [class*="text-gray-400"],
body.theme-donut [class*="text-gray-500"] {
  color: var(--dl-ink-2) !important;
}

body.theme-donut .theme-panel {
  background: linear-gradient(180deg, rgba(27, 35, 44, 0.96), rgba(16, 24, 32, 0.96)) !important;
  border: 2px solid var(--dl-line) !important;
  border-radius: 10px !important;
}

body.theme-donut .theme-card {
  background: linear-gradient(180deg, rgba(22, 31, 41, 0.98), rgba(14, 22, 29, 0.98)) !important;
  border: 2px solid var(--dl-line-soft) !important;
  border-radius: 8px !important;
}

body.theme-donut .theme-card-soft {
  background: rgba(16, 24, 32, 0.94) !important;
  border: 2px solid var(--dl-line-soft) !important;
  border-radius: 8px !important;
}

body.theme-donut .theme-grass {
  background: linear-gradient(180deg, rgba(95, 165, 48, 0.18), rgba(63, 123, 31, 0.08)) !important;
  border-color: rgba(140, 200, 84, 0.55) !important;
}

body.theme-donut .theme-gold {
  background: linear-gradient(180deg, rgba(242, 179, 61, 0.16), rgba(199, 138, 17, 0.08)) !important;
  border-color: rgba(242, 179, 61, 0.5) !important;
}

body.theme-donut .theme-danger {
  background: linear-gradient(180deg, rgba(217, 76, 76, 0.16), rgba(120, 28, 28, 0.1)) !important;
  border-color: rgba(217, 76, 76, 0.45) !important;
}

body.theme-donut .theme-button,
body.theme-donut .theme-button-secondary,
body.theme-donut .theme-button-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 6px !important;
  border: 2px solid rgba(255, 255, 255, 0.15) !important;
  box-shadow: var(--dl-shadow-sm);
  transition: transform 0.08s ease, box-shadow 0.08s ease, border-color 0.2s ease, background 0.2s ease;
  text-decoration: none;
}

body.theme-donut .theme-button {
  background: var(--dl-grass) !important;
  color: #fff !important;
  border-color: rgba(140, 200, 84, 0.5) !important;
}

body.theme-donut .theme-button-secondary {
  background: var(--dl-bg-2) !important;
  color: var(--dl-ink) !important;
}

body.theme-donut .theme-button-danger {
  background: rgba(217, 76, 76, 0.15) !important;
  color: #ffd9d9 !important;
  border-color: rgba(217, 76, 76, 0.45) !important;
}

body.theme-donut .theme-button:active,
body.theme-donut .theme-button-secondary:active,
body.theme-donut .theme-button-danger:active {
  transform: translateY(3px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
}

body.theme-donut .theme-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid rgba(140, 200, 84, 0.35);
  background: rgba(95, 165, 48, 0.08);
  border-radius: 999px;
  color: var(--dl-grass-light);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.theme-donut .theme-input,
body.theme-donut input[type="text"],
body.theme-donut input[type="password"],
body.theme-donut input[type="email"],
body.theme-donut input[type="search"],
body.theme-donut input[type="number"] {
  background: var(--dl-card-2) !important;
  border: 2px solid rgba(255, 255, 255, 0.1) !important;
  color: var(--dl-ink) !important;
  border-radius: 6px !important;
}

body.theme-donut input:focus,
body.theme-donut button:focus,
body.theme-donut a:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(140, 200, 84, 0.18);
}

body.theme-donut details {
  background: rgba(16, 24, 32, 0.95) !important;
  border: 2px solid var(--dl-line-soft) !important;
  border-radius: 8px !important;
}

body.theme-donut summary {
  list-style: none;
}

body.theme-donut summary::-webkit-details-marker {
  display: none;
}

body.theme-donut table {
  border-collapse: separate;
  border-spacing: 0;
  background: rgba(16, 24, 32, 0.94);
  border: 2px solid var(--dl-line);
  border-radius: 10px;
  overflow: hidden;
}

body.theme-donut thead tr {
  background: rgba(27, 35, 44, 0.96);
}

body.theme-donut tbody tr:hover {
  background: rgba(95, 165, 48, 0.06) !important;
}

body.theme-donut .status-badge {
  border-radius: 6px !important;
}

body.theme-donut .product-art {
  background:
    linear-gradient(180deg, rgba(95, 165, 48, 0.18) 0 14px, rgba(63, 123, 31, 0.2) 14px 20px, rgba(122, 77, 36, 0.32) 20px 100%),
    rgba(16, 24, 32, 0.9);
  border-bottom: 2px solid rgba(255, 255, 255, 0.08);
}

body.theme-donut .theme-hero-title,
body.theme-donut .theme-title {
  text-shadow: 0 0 24px rgba(95, 165, 48, 0.22);
}

body.theme-donut .theme-muted {
  color: var(--dl-ink-2) !important;
}

body.theme-donut .theme-subtle {
  color: var(--dl-ink-3) !important;
}

body.theme-donut .theme-link {
  color: var(--dl-grass-light) !important;
}

body.theme-donut .theme-link:hover {
  color: #d8f0c8 !important;
}

body.theme-donut .theme-divider {
  border-color: var(--dl-line) !important;
}

body.theme-donut .theme-block-note {
  background: rgba(95, 165, 48, 0.08);
  border: 1px dashed rgba(140, 200, 84, 0.45);
}

@media (max-width: 760px) {
  body.theme-donut .theme-mobile-stack {
    grid-template-columns: 1fr !important;
  }
}
