:root{
  --bg: #0b0d0f;
  --panel: #14171a;
  --panel2: #101214;
  --border: rgba(255,255,255,.10);
  --muted: rgba(255,255,255,.90);
  --text: #ffffff;
  --danger: #e03131;
}

/* App background */
.bg-app{
  background: #050607; /* solid to let geometry canvas stand out */
  color: var(--text);
}

/* Make all text high-contrast by default */
body, p, li, small, label, .form-label, .list-group-item{
  color: #fff;
}
.text-muted{ color:#fff !important; opacity: .78; }
.link-muted{ color:#fff; opacity:.85; text-decoration:none; }
.link-muted:hover{ opacity:1; text-decoration:underline; }
a{ color: inherit; }


/* Make footer sit at bottom on tall screens */
html, body { height: 100%; }
body.bg-app{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main#content{
  flex: 1 0 auto;
  width: 100%;
}

/* Full-bleed utility (for hero images inside container) */
.full-bleed{
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

/* ---- Header (logo-only + icon nav) ---- */
.hm-header{
  /* Always solid black (no scroll-based changes) */
  background-image: none;
  background-color: #000;
  border-bottom: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 10px 24px rgba(0,0,0,.45);
}
.hm-header.scrolled{
  /* Kept for compatibility; same as default */
  background-image: none;
  background-color: #000;
  border-bottom: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 10px 24px rgba(0,0,0,.45);
}
.hm-header-inner{
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
}
.hm-logo img{
  height: 38px;
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.55));
}
.hm-icons{
  display: flex;
  align-items: center;
  gap: 12px;
}
.hm-icon-btn{
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.10);
  text-decoration: none;
}
.hm-icon-btn img{
  width: 22px;
  height: 22px;
  opacity: .95;
  filter: grayscale(100%) brightness(1.35);
}
.hm-icon-btn:hover{
  background: rgba(0,0,0,.40);
  border-color: rgba(255,255,255,.16);
}
.hm-badge{
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--danger);
  color: #fff;
  font-size: 11px;
  line-height: 1;
  padding: 4px 7px;
  border-radius: 999px;
  border: 2px solid rgba(0,0,0,.55);
}

@media (max-width: 480px){
  .hm-header-inner{ height: 64px; padding: 0 12px; }
  .hm-icon-btn{ width: 40px; height: 40px; border-radius: 10px; }
  .hm-icon-btn img{ width: 20px; height: 20px; }
  .hm-logo img{ height: 34px; }
}

/* ---- Cards / panels ---- */
.card-dark{
  background: linear-gradient(180deg, rgba(20,23,26,.96) 0%, rgba(16,18,20,.96) 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
}
.card-app{
  background: linear-gradient(180deg, rgba(20,23,26,.88) 0%, rgba(16,18,20,.88) 100%);
  border: 1px solid var(--border);
  border-radius: 18px;
}

/* Links */
.link-muted{ color: var(--muted); text-decoration: none; }
.link-muted:hover{ color: rgba(255,255,255,.92); text-decoration: underline; }

/* Footer */
.footer-app{ background: rgba(0,0,0,.20); }
.footer-app .link-muted{ padding: 2px 0; }


/* ---- Homepage hero (Hunter-style) ---- */
.home-hero{
  background: linear-gradient(90deg, #1b1f24 0%, #0b0d0f 100%);
  color: #ffffff;
  border-radius: 18px;
  overflow: hidden;
}

.home-hero-overlay{
  /* subtle dark overlay + vignette */
  background: radial-gradient(900px 520px at 50% 20%, rgba(0,0,0,.15) 0%, rgba(0,0,0,.45) 70%);
  min-height: clamp(420px, 62vh, 640px);
  display: flex;
  align-items: center;
}

.home-hero-content{
  padding-top: 56px;
  padding-bottom: 56px;
  text-align: center;
}
.home-hero-title{
  font-weight: 800;
  letter-spacing: .2px;
  font-size: clamp(34px, 4.8vw, 62px);
  margin-bottom: 12px;
}
.home-hero-subtitle{
  max-width: 860px;
  margin: 0 auto;
  font-size: clamp(16px, 1.5vw, 22px);
  line-height: 1.45;
  opacity: .95;
}
.home-stat-num{
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 800;
  letter-spacing: .5px;
}
.home-stat-label{
  font-size: 14px;
  opacity: .9;
}

@media (max-width: 576px){
  .home-hero-content{ padding-top: 48px; padding-bottom: 48px; }
}

/* Homepage big image buttons */
.home-image-btn{
  display: block;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(0,0,0,.25);
  transition: transform .12s ease, filter .12s ease;
}
.home-image-btn img{
  width: 100%;
  height: auto;
  display: block;
  filter: grayscale(100%) brightness(1.05);
}
.home-image-btn:hover{
  transform: translateY(-2px);
  filter: brightness(1.05);
}

/* Tables */
.table-responsive{ border-radius: 14px; overflow: hidden; border: 1px solid var(--border); }

/* Modal greyscale */
.hm-modal{
  background: linear-gradient(180deg, rgba(22,25,28,.98) 0%, rgba(16,18,20,.98) 100%);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  color: var(--text);
}
.hm-user-name{ font-size: 18px; font-weight: 700; }
.hm-mono{ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }
.hm-auth-divider{
  position: relative;
  margin: 14px 0 14px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}
.hm-auth-divider::before,
.hm-auth-divider::after{
  content: "";
  position: absolute;
  top: 50%;
  width: 42%;
  height: 1px;
  background: rgba(255,255,255,.18);
}
.hm-auth-divider::before{ left: 0; }
.hm-auth-divider::after{ right: 0; }
.hm-auth-divider span{ padding: 0 10px; }

.btn-hm{
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.92);
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 600;
}
.btn-hm:hover{ background: rgba(255,255,255,.16); color: #fff; }

/* Accordion (if you keep it elsewhere) */
.accordion-button{ background: transparent !important; color: rgba(255,255,255,.92) !important; }
.accordion-item{ border: 1px solid var(--border) !important; border-radius: 14px; }
.accordion-button:focus{ box-shadow: none; }
.accordion-body{ border-top: 1px solid var(--border); }

/* Reduce motion */
@media (prefers-reduced-motion: reduce){
  * { scroll-behavior: auto !important; transition: none !important; }
}

/* ---------------------------
   Home: carousel + workshop list
---------------------------- */
.home-hero.full-bleed{
  border-radius: 0;
  margin-bottom: 0;
}
.home-hero-overlay{
  min-height: clamp(520px, 78vh, 760px);
}
.home-hero-content{
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

/* Carousel */
.dz-carousel{
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
  box-shadow: 0 10px 28px rgba(0,0,0,.35);
}
.dz-carousel img{
  height: clamp(220px, 34vw, 420px);
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
}
.carousel-control-prev,
.carousel-control-next{
  width: 12%;
}
.carousel-control-prev-icon,
.carousel-control-next-icon{
  filter: grayscale(1) brightness(2);
}

/* Workshop list */
.section-title-row{
  display:flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.section-title{
  font-size: 16px;
  letter-spacing: .4px;
  text-transform: uppercase;
  opacity: .95;
  margin: 0;
}
.section-link{
  font-size: 13px;
  opacity: .8;
  text-decoration: none;
}
.section-link:hover{ opacity: 1; text-decoration: underline; }

.dz-list .dz-list-item{
  background: rgba(255,255,255,.03);
  border-color: rgba(255,255,255,.08);
  color: rgba(255,255,255,.92);
}
.dz-list .dz-list-item:hover{
  background: rgba(255,255,255,.05);
}

.dz-thumb{
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
  filter: none; /* keep Steam thumbs in full color */
  border: 1px solid rgba(255,255,255,.10);
  flex: 0 0 auto;
}
.dz-thumb--empty{
  background: rgba(255,255,255,.06);
}

.dz-item-title{
  font-weight: 600;
}
.dz-item-sub{
  opacity: .72;
  font-size: 13px;
}
.dz-item-open{
  opacity: .70;
  font-size: 13px;
  white-space: nowrap;
}


/* ---- Mouse-reactive geometry background (canvas) ---- */
.geo-bg{
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0; /* behind site-layer, above body background */
  pointer-events: none;
  opacity: .28; /* subtle, but visible */
}

.site-layer{
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hm-header{ z-index: 1030; } /* above canvas */

/* ---- Workshop scroller (single compact section) ---- */
.workshop-row{
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
}

.workshop-card{
  display: block;
  text-decoration: none;
  color: var(--text);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  transition: transform .12s ease, border-color .12s ease, background-color .12s ease;
  width: 220px;
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.workshop-card:hover{
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.16);
  background: rgba(255,255,255,.04);
}

.workshop-thumb{
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  filter: none; /* ensure color */
}

.workshop-card-body{
  padding: 10px 12px 12px;
}

.workshop-title{
  font-weight: 600;
  font-size: 14px;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 36px;
}

.workshop-sub{
  margin-top: 6px;
  font-size: 12px;
  opacity: .7;
}

/* Slightly smaller cards on very small phones */
@media (max-width: 420px){
  .workshop-card{ width: 190px; }
}

/* Buttons */
.btn-hm, .btn-outline-light{
  border-radius: 999px;
}
/* --- Geometry background canvas (site-wide) --- */
html, body {
  height: 100%;
}

body {
  background: #0b0b0b; /* solid dark */
  color: #fff;         /* make all text white */
}

/* Site content above canvas */
.site-shell {
  position: relative;
  z-index: 1;
}

/* Force common text colors to be readable */
a, p, span, li, label, small, h1, h2, h3, h4, h5, h6 {
  color: #fff;
}

.text-muted {
  color: rgba(255,255,255,.80) !important;
}

.list-group-item {
  background: rgba(255,255,255,.03);
  color: #fff;
  border-color: rgba(255,255,255,.08);
}

/* ==== Reactive Geometry Canvas (override static BG) ==== */

/* If you previously used a static geometry image on body/canvas, kill it */
body, .bg-app, .geo-bg {
  background-image: none !important;
}


/* Fullscreen canvas behind content */
#geo-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  /* Same tone as before, just a hair darker */
  background: #040506;
}

/* ==== Download button ribbon (client/server) ==== */
.btn-badge{
  position: relative;
  overflow: hidden;
}
.btn-badge::after{
  content: attr(data-badge);
  position: absolute;
  top: 6px;
  right: -34px;
  transform: rotate(45deg);
  font-size: 10px;
  letter-spacing: .08em;
  padding: 2px 36px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  text-transform: uppercase;
  pointer-events: none;
}

/* ==== Workshop horizontal scrollbar styling (fix white wheel) ==== */
.workshop-row{
  /* Firefox */
  scrollbar-color: rgba(160,170,180,.60) rgba(0,0,0,.30);
  scrollbar-width: thin;
}
.workshop-row::-webkit-scrollbar{
  height: 10px;
}
.workshop-row::-webkit-scrollbar-track{
  background: rgba(0,0,0,.30);
  border-radius: 999px;
}
.workshop-row::-webkit-scrollbar-thumb{
  background: rgba(150,160,170,.60);
  border-radius: 999px;
  border: 2px solid rgba(0,0,0,.35);
}
.workshop-row::-webkit-scrollbar-thumb:hover{
  background: rgba(170,180,190,.78);
}



/* ===== My Products / License cards ===== */
.license-card {
  position: relative;
  overflow: hidden;
}

.license-card.is-suspended::after {
  content: "SUSPENDED";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-45deg);
  font-weight: 800;
  letter-spacing: 0.35em;
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(220, 53, 69, 0.22);
  text-shadow: 0 2px 10px rgba(0,0,0,0.6);
  pointer-events: none;
}

.mod-thumb {
  width: 92px;
  height: 92px;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  flex: 0 0 auto;
  border: 1px solid rgba(255,255,255,0.08);
}

.mod-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mod-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,0.6);
  font-size: 0.8rem;
}

.list-group-dark .list-group-item {
  background: #111622;
  border-color: rgba(255, 255, 255, 0.08);
  color: #e6e8ef;
}

/* ===== Profile hover dropdown ===== */
.hm-profile {
  position: relative;
  display: inline-block;
}

.hm-profile-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 240px;
  background: #0f1420;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.45);
  display: none;
  z-index: 1000;
}

.hm-profile:hover .hm-profile-menu {
  display: block;
}

.hm-profile-meta {
  padding: 6px 8px 10px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  margin-bottom: 8px;
}

.hm-profile-item {
  display: block;
  padding: 8px 10px;
  border-radius: 10px;
  color: #e6e8ef;
  text-decoration: none;
}

.hm-profile-item:hover {
  background: rgba(255,255,255,0.06);
  color: #fff;
}

.hm-profile-sep {
  height: 1px;
  background: rgba(255,255,255,0.10);
  margin: 8px 0;
}
