:root {
  --gh-bg: #0f172a;
  --gh-panel: rgba(15, 23, 42, 0.72);
  --gh-card: rgba(30, 41, 59, 0.88);
  --gh-card-hover: rgba(51, 65, 85, 0.96);
  --gh-border: rgba(148, 163, 184, 0.18);
  --gh-border-hover: rgba(56, 189, 248, 0.7);
  --gh-text: #f8fafc;
  --gh-muted: #94a3b8;
  --gh-accent: #38bdf8;
}

/* Main background */
body {
  background:
    radial-gradient(circle at 12% 0%, rgba(56, 189, 248, 0.18), transparent 28rem),
    radial-gradient(circle at 88% 10%, rgba(99, 102, 241, 0.14), transparent 30rem),
    linear-gradient(135deg, #020617 0%, #0f172a 45%, #111827 100%) !important;
  color: var(--gh-text) !important;
}

/* Main page container */
#__next {
  min-height: 100vh;
}

/* Reduce excessive empty vertical space */
main {
  max-width: 1500px !important;
  margin: 0 auto !important;
  padding: 24px 28px 56px !important;
}

/* Top widgets/search area */
main > div:first-child {
  border: 1px solid var(--gh-border) !important;
  border-radius: 20px !important;
  background: var(--gh-panel) !important;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28) !important;
  backdrop-filter: blur(14px);
}

/* Section titles */
h2 {
  margin-top: 28px !important;
  margin-bottom: 12px !important;
  color: #e0f2fe !important;
  font-size: 1.2rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
}

/* All service cards */
a[href^="http"] {
  border: 1px solid var(--gh-border) !important;
  border-radius: 18px !important;
  background: var(--gh-card) !important;
  box-shadow: 0 8px 22px rgba(2, 6, 23, 0.22) !important;
  transition:
    transform 150ms ease,
    border-color 150ms ease,
    background 150ms ease,
    box-shadow 150ms ease !important;
}

/* Card hover */
a[href^="http"]:hover,
a[href^="http"]:focus {
  transform: translateY(-3px);
  border-color: var(--gh-border-hover) !important;
  background: var(--gh-card-hover) !important;
  box-shadow: 0 16px 38px rgba(2, 6, 23, 0.42) !important;
}

/* Card title text */
a[href^="http"] div,
a[href^="http"] span {
  color: var(--gh-text) !important;
}

/* Card descriptions */
a[href^="http"] p,
a[href^="http"] small {
  color: var(--gh-muted) !important;
}

/* Icons */
img {
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.32));
}

/* Search box */
input {
  border-radius: 14px !important;
  border: 1px solid var(--gh-border) !important;
  background: rgba(15, 23, 42, 0.72) !important;
  color: var(--gh-text) !important;
}

/* Buttons */
button {
  border-radius: 14px !important;
}

/* Footer/version */
footer,
footer * {
  color: rgba(148, 163, 184, 0.65) !important;
}

/* Public homepage: remove empty top search/widget block */
main > div:first-child {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
}

/* Public homepage: tighten top spacing after hiding widget block */
main {
  padding-top: 32px !important;
}
