/* Nuclearphobia – simple static site
   Palette: ember / ash / steel
*/
:root{
  --bg0:#070707;
  --bg1:#0b0b0e;
  --card: rgba(20,20,24,.72);
  --card2: rgba(10,10,12,.6);
  --stroke: rgba(255,255,255,.09);
  --text:#e8e8ea;
  --muted:#b7b7bf;
  --brand:#ff5a1f;   /* nuclear ember */
  --brand2:#ffcc66;  /* warning glow */
  --good:#43ff9b;
  --shadow: 0 18px 60px rgba(0,0,0,.55);
  --radius: 18px;
  --radius2: 26px;
  --max: 1160px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

/* Optional web fonts (safe to fail) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&family=Press+Start+2P&display=swap');

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: Inter, var(--sans);
  color: var(--text);

  /* Unified, more vivid background (no visible horizontal “cut” line) */
  background-color: #050506;
  background-image:
    radial-gradient(1200px 720px at 72% -18%, rgba(255,90,31,.22), transparent 62%),
    radial-gradient(880px 520px at 14% 8%, rgba(255,204,102,.10), transparent 60%),
    radial-gradient(1100px 760px at 78% 68%, rgba(255,90,31,.16), transparent 65%),
    radial-gradient(920px 700px at 18% 86%, rgba(255,204,102,.08), transparent 68%),
    radial-gradient(900px 650px at 55% 120%, rgba(255,90,31,.12), transparent 70%),
    linear-gradient(180deg,
      #050506 0%,
      #070709 30%,
      #0b0b10 55%,
      #0a0708 75%,
      #050506 100%
    );
  background-repeat: no-repeat;
  /* Keep the background locked to the viewport to avoid visible bands when scrolling */
  background-attachment: fixed;
  background-position: center top;
  overflow-x:hidden;
}

a{ color: inherit; text-decoration:none; }
a:hover{ color: var(--brand2); }
p{ line-height:1.65; color: var(--muted); margin: 0 0 14px; }
h1,h2,h3{ margin:0 0 12px; letter-spacing:.2px; color: var(--text); }
h2{ font-size: 24px; }
h3{ font-size: 18px; color: var(--text); }

.container{ width:min(var(--max), calc(100% - 40px)); margin:0 auto; }

.skip{
  position:absolute; left:-9999px; top:10px;
  background: var(--brand); color:#111; padding:10px 12px; border-radius:10px;
}
.skip:focus{ left: 12px; z-index: 9999; }

.topbar{
  position: sticky; top:0; z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(6,6,8,.65);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.nav{
  display:flex; align-items:center; justify-content:flex-start;
  padding: 14px 0;
  gap: 16px;
}
.brand{
  display:flex; align-items:center; gap: 12px;
  min-width: 190px;
}
.brandMark{
  width: 38px; height: 38px; border-radius: 12px;
  background:
    radial-gradient(circle at 40% 40%, rgba(255,204,102,.9), rgba(255,90,31,.6) 40%, rgba(20,20,24,.3) 65%),
    radial-gradient(circle at 55% 55%, rgba(255,255,255,.25), transparent 55%);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 10px 30px rgba(255,90,31,.12);
  position:relative;
}
.brandMark:after{
  content:"";
  position:absolute; inset: 9px;
  border-radius: 999px;
  border: 2px solid rgba(0,0,0,.35);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.12);
}
.brandText{
  display:flex; flex-direction:column; line-height:1.05;
}
.brandText strong{
  font-family: "Press Start 2P", var(--mono);
  font-size: 13px;
  letter-spacing: .8px;
}
.brandText span{ color: var(--muted); font-size: 12px; }

.navLinks{
  display:flex; align-items:center; gap: 10px;
  margin-left:auto;
}
.navLinks a{
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: .2px;
}
.navLinks a[aria-current="page"]{
  color: var(--text);
  border-color: rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}
.navLinks a:hover{
  border-color: rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  color: var(--text);
}

.navCta{
  display:flex; align-items:center; gap: 10px;
}

.langSwitch{
  display:flex;
  align-items:center;
  gap: 6px;
  padding: 6px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  box-shadow: 0 12px 40px rgba(0,0,0,.24);
}
.langBtn{
  width: 36px;
  height: 36px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  font-size: 18px;
  line-height: 1;
  color: var(--text);
}
.langBtn:hover{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.14);
  color: var(--text);
}
.langBtn.isActive,
.langBtn[aria-current="true"]{
  background: rgba(255,90,31,.10);
  border-color: rgba(255,204,102,.55);
}


.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: var(--text);
  font-weight: 700;
  box-shadow: 0 12px 40px rgba(0,0,0,.3);
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.btn:hover{ transform: translateY(-1px); border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.06); }
.btnPrimary{
  border-color: rgba(255,90,31,.45);
  background: linear-gradient(180deg, rgba(255,90,31,.26), rgba(255,90,31,.08));
}
.btnPrimary:hover{ border-color: rgba(255,204,102,.55); }

.btnDanger{
  border-color: rgba(255,68,68,.45);
  background: linear-gradient(180deg, rgba(255,68,68,.22), rgba(255,68,68,.06));
}
.btnDanger:hover{ border-color: rgba(255,150,150,.55); }


.burger{
  display:none;
  width: 44px; height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}
.burger span{
  display:block; width: 20px; height: 2px; background: rgba(255,255,255,.8);
  margin: 6px auto;
  border-radius: 2px;
}

/* Hero */
.hero{
  position: relative;
  padding: 44px 0 26px;
}
.heroWrap{
  position: relative;
  border-radius: var(--radius2);
  overflow:hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.06);
  background: rgba(0,0,0,.25);
}
.heroMedia{
  position:absolute; inset:0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.05) contrast(1.05);
  transform: scale(1.02);
}
.heroMedia::after{
  /* Soft blend to remove visible cut line on the hero background image */
  content:"";
  position:absolute; inset:0;
  pointer-events:none;
  background: linear-gradient(
    to bottom,
    rgba(7,7,7,0) 58%,
    rgba(11,11,14,.55) 82%,
    rgba(11,11,14,1) 100%
  );
}
.heroShade{
  position:absolute; inset:0;
  background:
    radial-gradient(900px 500px at 60% 20%, rgba(0,0,0,.10), rgba(0,0,0,.55) 60%),
    linear-gradient(180deg, rgba(0,0,0,.2), rgba(0,0,0,.72));
}
.heroNoise{
  position:absolute; inset:0;
  opacity:.18;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.05), transparent 25%),
    radial-gradient(circle at 65% 70%, rgba(255,255,255,.04), transparent 26%),
    radial-gradient(circle at 80% 25%, rgba(255,255,255,.03), transparent 22%);
  mix-blend-mode: overlay;
}
.heroScanlines{
  position:absolute; inset:-10px;
  opacity:.20;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,.03),
    rgba(255,255,255,.03) 1px,
    transparent 1px,
    transparent 4px
  );
  pointer-events:none;
}
.heroInner{
  position: relative;
  padding: 34px 28px;
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 26px;
  align-items:center;
}
.kicker{
  display:inline-flex; align-items:center; gap:10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing:.8px;
  color: rgba(255,255,255,.75);
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.22);
  width: fit-content;
}
.kicker i{
  width:10px; height:10px; border-radius:999px;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(255,90,31,.14), 0 0 22px rgba(255,90,31,.35);
  display:inline-block;
}
.title{
  font-family: "Press Start 2P", var(--mono);
  font-size: clamp(24px, 4vw, 42px);
  letter-spacing: 2px;
  line-height: 1.12;
  margin: 14px 0 10px;
  text-shadow: 0 10px 40px rgba(0,0,0,.65);
}
.subtitle{
  font-size: 16px;
  color: rgba(255,255,255,.78);
  margin-bottom: 18px;
}
.heroActions{ display:flex; flex-wrap:wrap; gap: 10px; }
.badges{
  display:flex; gap: 10px; flex-wrap:wrap;
  margin-top: 14px;
}
.badge{
  display:inline-flex; align-items:center; gap:8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.22);
  color: rgba(255,255,255,.78);
  font-size: 12px;
}
.badge svg{ opacity:.9; }

.capsule{
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  overflow:hidden;
  box-shadow: 0 14px 50px rgba(0,0,0,.5);
}
.capsule img{ display:block; width: 100%; height:auto; }
.capsuleCaption{
  padding: 10px 12px 12px;
  color: rgba(255,255,255,.72);
  font-size: 12px;
  border-top: 1px solid rgba(255,255,255,.06);
  background: rgba(0,0,0,.24);
}

/* Screenshot gallery (Home) */
.shotGallery{ width: 100%; }
.shotStage{ position: relative; }
.shotMain{
  display:block;
  width: 100%;
  border: 0;
  padding: 0;
  background: none;
  cursor: zoom-in;
  position: relative;
}
.shotMain:focus-visible{ outline: 2px solid rgba(255,129,35,.55); outline-offset: 3px; border-radius: 16px; }
.shotZoom{
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.35);
  color: rgba(255,255,255,.85);
  box-shadow: 0 10px 30px rgba(0,0,0,.55);
  pointer-events: none;
}
.shotNav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 56px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.30);
  color: rgba(255,255,255,.9);
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 2;
}
.shotNav:hover{ background: rgba(0,0,0,.45); }
.shotNav:focus-visible{ outline: 2px solid rgba(255,129,35,.55); outline-offset: 2px; }
.shotPrev{ left: 10px; }
.shotNext{ right: 10px; }
.shotNav span{ font-size: 28px; line-height: 1; }

.shotThumbs{
  display:flex;
  gap: 10px;
  padding: 10px 12px;
  border-top: 1px solid rgba(255,255,255,.06);
  background: rgba(0,0,0,.20);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.shotThumb{
  flex: 0 0 auto;
  width: 96px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.20);
  padding: 0;
  cursor: pointer;
}
.shotThumb img{ display:block; width: 100%; height: auto; }
.shotThumb:hover{ border-color: rgba(255,255,255,.22); }
.shotThumb.isActive{
  border-color: rgba(255,129,35,.45);
  box-shadow: 0 0 0 2px rgba(255,129,35,.18);
}
.shotThumb:focus-visible{ outline: 2px solid rgba(255,129,35,.55); outline-offset: 2px; }

@media (max-width: 640px){
  .shotNav{ width: 34px; height: 50px; border-radius: 12px; }
  .shotThumb{ width: 82px; }
}

/* Lightbox (full-size screenshots) */
.npLightbox{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.npLightbox.isOpen{ display: flex; }
.npLightboxBackdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.78);
}
.npLightboxPanel{
  position: relative;
  z-index: 1;
  width: min(1200px, 96vw);
  max-height: 92vh;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(10,10,10,.65);
  box-shadow: 0 25px 90px rgba(0,0,0,.65);
  overflow: hidden;
  backdrop-filter: blur(8px);
}
.npLightboxTop{
  display:flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.35);
}
.npLightboxTop small{ color: rgba(255,255,255,.70); font-family: var(--mono); }
.npLightboxClose{
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.20);
  color: rgba(255,255,255,.9);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.npLightboxClose:hover{ background: rgba(0,0,0,.35); }
.npLightboxClose:focus-visible{ outline: 2px solid rgba(255,129,35,.55); outline-offset: 2px; }
.npLightboxBody{ position: relative; padding: 8px; }
.npLightboxImg{
  display:block;
  width: 100%;
  max-height: calc(92vh - 72px);
  object-fit: contain;
  border-radius: 12px;
  background: rgba(0,0,0,.55);
}
.npLightboxNav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 64px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.30);
  color: rgba(255,255,255,.9);
  cursor: pointer;
  display:grid;
  place-items: center;
}
.npLightboxNav:hover{ background: rgba(0,0,0,.45); }
.npLightboxNav:focus-visible{ outline: 2px solid rgba(255,129,35,.55); outline-offset: 2px; }
.npLightboxNavPrev{ left: 10px; }
.npLightboxNavNext{ right: 10px; }
.npLightboxNav span{ font-size: 30px; line-height: 1; }

/* Layout blocks */
.grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
  padding: 14px 0 36px;
}
.card{
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  box-shadow: 0 18px 60px rgba(0,0,0,.35);
  overflow:hidden;
}
.cardInner{ padding: 22px; }
.cardTitleRow{
  display:flex; align-items:flex-end; justify-content:flex-start; gap: 14px;
  margin-bottom: 14px;
}
.cardTitleRow small{ color: rgba(255,255,255,.58); font-family: var(--mono); }
.hr{
  height: 1px;
  background: rgba(255,255,255,.08);
  margin: 16px 0;
}
.pillRow{ display:flex; flex-wrap:wrap; gap: 10px; }
.pill{
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.20);
  color: rgba(255,255,255,.78);
  font-weight: 600;
}
.pill span{ color: var(--muted); font-weight: 500; }

.columns{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.list{
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}
.list li{ margin: 8px 0; line-height: 1.5; }

.mediaGrid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.linkCard{
  display:flex; align-items:center; justify-content:flex-start; gap: 12px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.20);
}
.linkCard strong{ font-weight: 800; }
.linkCard small{ color: var(--muted); display:block; margin-top:4px; }
.linkCard .arrow{
  width: 36px; height: 36px; border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  display:grid; place-items:center;
}

.footer{
  position: relative;
  padding: 26px 0 34px;
  border-top: none;
  /* Smooth transition into the footer (no hard cut line) */
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,.16) 18%,
    rgba(0,0,0,.22) 100%
  );
}
.footer::before{
  /* Feather the page background into the footer */
  content:"";
  position:absolute;
  left:0; right:0;
  top:-80px;
  height:80px;
  pointer-events:none;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,.18) 100%
  );
  z-index: 0;
}
.footer > .container{ position: relative; z-index: 1; }
.footerRow{
  display:flex; align-items:flex-start; justify-content:flex-start; gap: 16px;
  flex-wrap:wrap;
}
.footer small{ color: rgba(255,255,255,.58); }
.footer a{ color: rgba(255,255,255,.72); }
.footer a:hover{ color: var(--brand2); }

.footerLinks{
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
  align-items:flex-start;
}
.btn.btnFooter{
  /* ~30% smaller footer buttons to keep counters aligned across languages */
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 12px;
  gap: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,.28);
}

.footerCounters{
  margin-left: auto;
  display:flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: flex-end;
  padding: 8px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.18);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  min-width: 0;
}
.counterItem{
  display:flex;
  gap: 10px;
  align-items: baseline;
  justify-content: flex-end;
  font-size: 12px;
  color: rgba(255,255,255,.72);
  white-space: nowrap;
}
.counterLabel{
  font-family: var(--mono);
  letter-spacing: .3px;
}
.counterValue{
  font-family: var(--mono);
  font-weight: 800;
  color: rgba(255,204,102,.92);
  text-shadow: 0 0 12px rgba(255,204,102,.22);
}

@media (max-width: 820px){
  .footerCounters{
    margin-left: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 6px;
  }
  .counterItem{ justify-content: space-between; width: 100%; }
}



/* Footer newsletter (Netlify Forms-ready) */
.footerNewsletter{
  flex: 1 1 360px;
  max-width: 460px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.20);
}
.footerNewsletterTitle{
  font-family: var(--mono);
  font-weight: 800;
  letter-spacing: .8px;
  font-size: 12px;
  color: rgba(255,255,255,.82);
  margin-bottom: 6px;
  text-transform: uppercase;
}
.footerNewsletterText{
  margin: 0 0 10px;
  font-size: 13px;
  color: rgba(255,255,255,.62);
}
.footerNewsletterRow{
  display:flex;
  gap: 10px;
  align-items:center;
}
.footerNewsletterInput{
  flex: 1;
  min-width: 190px;
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  color: var(--text);
  box-shadow: 0 12px 40px rgba(0,0,0,.28);
}
.footerNewsletterInput::placeholder{ color: rgba(255,255,255,.42); }
.footerNewsletterInput:focus{
  outline: none;
  border-color: rgba(255,204,102,.55);
  background: rgba(255,255,255,.05);
}
.footerNewsletterConsent{
  display:flex;
  gap: 10px;
  align-items:flex-start;
  margin-top: 10px;
  color: rgba(255,255,255,.64);
  font-size: 12px;
  line-height: 1.4;
}
.footerNewsletterConsent input{ margin-top: 2px; }

.footerNewsletterCount{
  margin-top: 10px;
  font-size: 12px;
  color: rgba(255,255,255,.58);
  text-align: center;
  width: 100%;
  display: block;
}
.footerNewsletterCount strong{
  color: rgba(255,255,255,.86);
  font-weight: 700;
}
.footerNewsletterStatus{
  margin-top: 10px;
  min-height: 18px;
  font-size: 12px;
  font-family: var(--mono);
  color: rgba(255,255,255,.82);

  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.35);

  opacity: 0;
  transform: translateY(-2px);
  transition: opacity .18s ease, transform .18s ease, border-color .18s ease, background-color .18s ease;
}
.footerNewsletterStatus:not(:empty){
  opacity: 1;
  transform: translateY(0);
}
.footerNewsletterStatus.isGood{
  color: var(--good);
  border-color: rgba(0,255,140,.25);
  background: rgba(0,255,140,.10);
}
.footerNewsletterStatus.isBad{
  color: var(--brand2);
  border-color: rgba(255,120,0,.25);
  background: rgba(255,120,0,.10);
}
.honeypot{ display:none; }

@media (max-width: 520px){
  .footerNewsletterRow{ flex-direction: column; align-items: stretch; }
  .footerNewsletterRow .btn{ width: 100%; }
  .footerNewsletterInput{ width: 100%; }
}


/* Page header (non-home) */
.pageHeader{
  padding: 34px 0 8px;
}
.pageTitle{
  font-family: "Press Start 2P", var(--mono);
  letter-spacing: 2px;
  font-size: 26px;
}

/* Responsive */
@media (max-width: 900px){
  .heroInner{ grid-template-columns: 1fr; }
  .grid{ grid-template-columns: 1fr; }
  .columns{ grid-template-columns: 1fr; }
  .mediaGrid{ grid-template-columns: 1fr; }
  .brand{ min-width: auto; }
}

@media (max-width: 760px){
  /* Prevent horizontal overflow in the header on small screens */
  .nav{
    position: relative;
    flex-wrap: wrap;
    align-items: center;
  }
  .brand{
    min-width: 0;
    flex: 1 1 100%;
    order: 1;
  }
  .brandText{ min-width: 0; }

  .navLinks{
    position: absolute;
    left: 0; right: 0;
    top: calc(100% + 10px);
    display:none;
    flex-direction:column;
    padding: 12px;
    border-radius: 18px;
    background: rgba(6,6,8,.86);
    border: 1px solid rgba(255,255,255,.08);
    backdrop-filter: blur(10px);
  }
  .navLinks.isOpen{ display:flex; }
  .navCta{ display:none; }
  /* Burger goes to the 2nd row under the logo */
  .burger{ display:inline-block; order: 2; margin-left: 0; }

  /* Compact language switch */
  /* Languages align to the right of the burger */
  .langSwitch{ order: 3; margin-left: auto; padding: 4px; border-radius: 12px; }
  .langBtn{ width: 32px; height: 32px; font-size: 16px; border-radius: 11px; }

  /* Auth buttons sit to the right of languages */
  .authSlot{
    order: 4;
    width: auto;
    flex-basis: auto;
    margin-left: 10px;
    justify-content: flex-end;
  }
  .authSlot .btn{
    padding: 8px 10px;
    border-radius: 12px;
  }
}

@media (max-width: 520px){
  html, body{ overflow-x: hidden; }
  .nav{ gap: 10px; padding: 10px 0; }
  /* Keep the logo text visible on phones (no more "missing logo") */
  .brandText span{ display:none; }
  .brandText strong{
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 70vw;
  }
  .burger{ width: 40px; height: 40px; border-radius: 12px; }
  .langSwitch{ margin-left: 0; }
  .langBtn{ width: 30px; height: 30px; font-size: 15px; }
  .authSlot{ margin-left: 8px; gap: 8px; }
  .authSlot .btn{ padding: 8px 10px; }
}


/* Accessibility: reduce motion */
@media (prefers-reduced-motion: reduce){
  .btn{ transition:none; }
  .heroMedia{ transform:none; }
}


/* --- User Access + Admin UI additions (2026-01-08) --- */
.authSlot{
  display:flex;
  align-items:center;
  gap:10px;
  margin-left: 10px;
}
@media (max-width: 920px){
  .authSlot{ margin-left: 0; }
}

.notice{
  margin: 12px 0;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.22);
  color: rgba(255,255,255,.88);
}
.noticeOk{
  border-color: rgba(34,197,94,.35);
  background: rgba(34,197,94,.08);
}
.noticeWarn{
  border-color: rgba(245,158,11,.35);
  background: rgba(245,158,11,.08);
}
.noticeError{
  border-color: rgba(239,68,68,.35);
  background: rgba(239,68,68,.08);
}

.formStack{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.formLabel{
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.72);
  margin-top: 6px;
}
.input{
  width:100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.25);
  color: #fff;
  outline: none;
}

/* Native select dropdown should match the dark UI (avoid the default light/gray list). */
select.input{
  color-scheme: dark;
}
select.input option,
select.input optgroup{
  background-color: #0b0d10;
  color: #e8ecf1;
}
.input:focus{
  border-color: rgba(216,106,31,.55);
  box-shadow: 0 0 0 3px rgba(216,106,31,.18);
}
textarea.input{ resize: vertical; min-height: 160px; }

.captchaRow{ display:flex; align-items:center; gap:10px; margin-top: 10px; flex-wrap:wrap; }
.captchaImg{
  flex: 0 0 auto;
  width: 140px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.28);
}
.captchaRefresh{
  padding: 10px 12px;
  border-radius: 14px;
}

.tabsRow{
  display:flex;
  gap: 10px;
  align-items:center;
  margin: 12px 0 6px;
}
.tabBtn{
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
  color: rgba(255,255,255,.86);
  text-decoration:none;
  font-weight: 700;
}
.tabBtn.isActive{
  border-color: rgba(216,106,31,.55);
  box-shadow: 0 0 0 3px rgba(216,106,31,.16);
}

.grid2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 820px){
  .grid2{ grid-template-columns: 1fr; }
}

.tableWrap{ overflow-x:auto; }
.table{
  width: 100%;
  border-collapse: collapse;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  overflow:hidden;
}
.table th, .table td{
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  text-align:left;
  font-size: 13px;
  color: rgba(255,255,255,.86);
}
.table th{
  background: rgba(255,255,255,.05);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.68);
}
.table tr:last-child td{ border-bottom:none; }

.pillGood{ border-color: rgba(34,197,94,.35) !important; background: rgba(34,197,94,.08) !important; color: rgba(255,255,255,.9) !important; }
.pillWarn{ border-color: rgba(245,158,11,.35) !important; background: rgba(245,158,11,.08) !important; color: rgba(255,255,255,.9) !important; }





/* --- Register form UX helpers --- */
.inputGroup{ position: relative; }
.inputGroup .input{ padding-right: 50px; }

/* Hide built‑in password reveal/clear buttons (Edge/IE). We provide our own toggle. */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear{
  display: none;
}


/* Detect browser autofill so we can auto-check "Remember password" only when credentials were autofilled */
@keyframes npAutofillStart { from { } to { } }
input[data-autofill-watch]:-webkit-autofill { animation-name: npAutofillStart; animation-duration: 0.01s; animation-iteration-count: 1; }
input[data-autofill-watch]:-moz-autofill { animation-name: npAutofillStart; animation-duration: 0.01s; animation-iteration-count: 1; }


.pwToggle{
  position:absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.22);
  color: rgba(255,255,255,.85);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}
.pwToggle:hover{
  border-color: rgba(216,106,31,.35);
}
.pwToggle:focus{
  outline:none;
  box-shadow: 0 0 0 3px rgba(216,106,31,.18);
}
.pwToggle svg{ width: 18px; height: 18px; display:block; }

.fieldError{
  min-height: 18px;
  font-size: 12px;
  color: rgba(239,68,68,.92);
  margin-top: -6px;
}
.inputInvalid{
  border-color: rgba(239,68,68,.45) !important;
  box-shadow: 0 0 0 3px rgba(239,68,68,.12);
}





/* --- Cookie consent banner --- */
.cookieBanner{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  padding: 12px;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.cookieBanner.isOpen{ pointer-events: auto; }

.cookieCard{
  width: min(1100px, 100%);
  background: rgba(12,12,14,.96);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  box-shadow: 0 16px 60px rgba(0,0,0,.55);
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  transform: translateY(14px);
  opacity: 0;
  transition: transform .22s ease, opacity .22s ease;
}
.cookieBanner.isOpen .cookieCard{
  transform: translateY(0);
  opacity: 1;
}

.cookieBody{ flex: 1; min-width: 0; }
.cookieTitle{
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.78);
  font-weight: 800;
}
.cookieMsg{
  font-size: 13px;
  color: rgba(255,255,255,.78);
  line-height: 1.4;
  margin-top: 6px;
}
.cookieMore{
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  color: rgba(216,106,31,.95);
  text-decoration: none;
}
.cookieMore:hover{ text-decoration: underline; }

.cookieActions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

@media (max-width: 640px){
  .cookieCard{ flex-direction: column; align-items: stretch; }
  .cookieActions{ justify-content: stretch; }
  .cookieActions .btn{ width: 100%; }
}
