@font-face{
  font-family: "Daydream";
  src:
    url("/fonts/Daydream.woff2") format("woff2"),
    url("/fonts/Daydream.ttf") format("truetype");
  font-display: swap;
}

@font-face{
  font-family: "Monocraft";
  src: url("/fonts/Monocraft.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root{
  --bg:#0b0c0f;
  --ink:#f2f2f2;
  --muted:#bdbdbd;
  --border: rgba(255,255,255,0.92);
  --border2: rgba(255,255,255,0.20);
  --shadow: rgba(0,0,0,0.70);
  --glow1: rgba(255,255,255,0.28);
  --glow2: rgba(255,255,255,0.18);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{ margin:0; }

body{
  color:var(--ink);
  background:
    radial-gradient(900px 520px at 20% 10%, rgba(110,180,255,0.10), transparent 60%),
    radial-gradient(750px 480px at 80% 0%, rgba(255,120,170,0.08), transparent 60%),
    linear-gradient(180deg, #07080c, var(--bg) 55%, #06070a);
  font-family: "Monocraft", ui-monospace, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 20px;
}

#particle-canvas{
  position:fixed;
  inset:0;
  z-index: 1;
  pointer-events:none;
}

.scanlines{
  pointer-events:none;
  position:fixed;
  inset:0;
  z-index: 2;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0,0,0,0.00) 0px,
    rgba(0,0,0,0.00) 2px,
    rgba(0,0,0,0.18) 3px,
    rgba(0,0,0,0.00) 5px
  );
  mix-blend-mode: multiply;
  opacity:0.6;
}

.shell{
  position:relative;
  z-index: 3;
  max-width: 980px;
  margin: 0 auto;
  padding: 22px 16px 42px;
}

/* AUTH: no scrolling, panel centered */
body.auth{ overflow:hidden; }
body.auth .shell{
  height: 100vh;
  padding: 0 16px;
  display: grid;
  place-items: center;
}
body.auth .footer{ display:none; }

/* Pixel-notched, sharp, bright border + glow */
.auth-panel{
  width: min(980px, 92%);
  max-height: calc(100vh - 32px);
  overflow: hidden;

  position: relative;
  border-radius: 0;
  border: 0;
  background: rgba(12,12,14,0.90);

  clip-path: polygon(
    0 12px, 12px 12px, 12px 0,
    calc(100% - 12px) 0, calc(100% - 12px) 12px, 100% 12px,
    100% calc(100% - 12px), calc(100% - 12px) calc(100% - 12px), calc(100% - 12px) 100%,
    12px 100%, 12px calc(100% - 12px), 0 calc(100% - 12px)
  );

  box-shadow:
    0 18px 50px var(--shadow),
    0 0 24px var(--glow1),
    0 0 72px var(--glow2);
}

.auth-panel::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  clip-path: inherit;
  border: 2px solid var(--border);
  box-shadow:
    0 0 0 2px rgba(0,0,0,0.55) inset,
    0 0 18px rgba(255,255,255,0.16);
}

.auth-panel::after{
  content:"";
  position:absolute;
  inset:8px;
  pointer-events:none;
  clip-path: polygon(
    0 10px, 10px 10px, 10px 0,
    calc(100% - 10px) 0, calc(100% - 10px) 10px, 100% 10px,
    100% calc(100% - 10px), calc(100% - 10px) calc(100% - 10px), calc(100% - 10px) 100%,
    10px 100%, 10px calc(100% - 10px), 0 calc(100% - 10px)
  );
  border: 2px solid rgba(255,255,255,0.28);
  opacity: 0.95;
}

/* Banner with native-size tile, mirrored second half, slow infinite scroll */
.auth-banner{
  position:relative;
  height: 120px;
  border-bottom: 2px solid var(--border2);
  background: rgba(0,0,0,0.35);
  overflow:hidden;
}
.auth-banner::before{
  content:"";
  position:absolute;
  inset: 8px;
  border: 2px solid rgba(255,255,255,0.35);
  pointer-events:none;
  z-index: 3;
}
.auth-banner::after{
  content:"";
  position:absolute;
  inset:0;
  background: rgba(0,0,0,0.32); /* darken */
  z-index: 2;
}

.auth-banner-bg{
  position:absolute;
  inset:0;
  width: 200%;
  display:flex;
  z-index: 1;
  animation: bannerScroll 34s linear infinite;
}

@keyframes bannerScroll{
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.auth-banner-tile{
  flex: 0 0 50%;
  background-image: url("/images/banner.jpg");
  background-size: auto;          /* native resolution */
  background-repeat: repeat-x;
  background-position: 0 50%;
  filter: brightness(0.48) contrast(1.10) saturate(0.55);
}

.auth-banner-tile.b{
  transform: scaleX(-1);
  background-position: 100% 50%;
}

.auth-banner-mark{
  position:absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  image-rendering: pixelated;
  opacity: 0.10;
  filter: grayscale(1) drop-shadow(0 0 14px rgba(255,255,255,0.12));
  z-index: 4;
}

.auth-banner-title{
  position:absolute;
  left:50%;
  top:50%;
  transform: translate(-50%, -50%);
  font-family: "Daydream", "Monocraft", monospace;
  font-size: clamp(28px, 6vw, 54px);
  letter-spacing: 2px;
  color: #f7f7f7;
  text-shadow:
    0 3px 0 rgba(0,0,0,0.70),
    0 0 10px rgba(255,255,255,0.38),
    0 0 26px rgba(255,255,255,0.22),
    0 0 52px rgba(255,255,255,0.14);
  z-index: 5;
}

/* Tabs */
.auth-nav{
  display:flex;
  justify-content: space-around;
  gap: 12px;
  padding: 8px 10px;
  background: rgba(0,0,0,0.55);
  border-bottom: 2px solid var(--border2);
}
.auth-tab{
  text-decoration:none;
  color: rgba(255,255,255,0.55);
  font-size: 18px;
  letter-spacing: 1px;
  padding: 10px 12px;
}
.auth-tab.active{
  color: #ffffff;
  background: rgba(255,255,255,0.08);
  outline: 2px solid rgba(255,255,255,0.18);
}

.auth-body{ padding: 12px 14px 14px; }
.muted{ color: var(--muted); margin: 0 0 10px; }

.form{ display:flex; flex-direction:column; gap:10px; margin-top: 6px; }
.label{ color: var(--muted); font-size: 16px; text-transform: lowercase; }

.input{
  padding: 10px 12px;
  border: 2px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.55);
  color: var(--ink);
  font: inherit;
  outline: none;
}
.input:focus{
  border-color: rgba(255,255,255,0.45);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.10);
}

.btn{
  margin-top: 6px;
  padding: 12px 14px;
  border: 2px solid rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.10);
  color: var(--ink);
  font: inherit;
  font-size: 18px;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 0 10px 0 rgba(0,0,0,0.35);
  transform: translateY(0);
  text-transform: lowercase;
}
.btn:active{ transform: translateY(3px); box-shadow: 0 7px 0 rgba(0,0,0,0.35); }

.alert{
  border: 2px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.06);
  color: var(--ink);
  padding: 10px 12px;
  margin: 0 0 10px;
}

.qr-wrap{ display:flex; justify-content:center; margin: 12px 0; }
.qr{
  width: 240px;
  height: 240px;
  border: 2px solid rgba(255,255,255,0.18);
  background: white;
}

.secret{
  margin: 10px 0 12px;
  padding: 12px;
  border: 2px dashed rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.35);
}
.code{
  display:block;
  font-size: 16px;
  line-height: 1.2;
  padding-top: 6px;
  user-select: all;
}

/* non-auth footer (unchanged) */
.footer{
  max-width: 980px;
  margin: 0 auto;
  padding: 18px 16px 40px;
  color: rgba(255,255,255,0.55);
  display:flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.footer-links a{ color: rgba(255,255,255,0.65); text-decoration:none; }
.footer-links a:hover{ text-decoration: underline; }
.dot{ margin: 0 10px; opacity: 0.6; }

/* === overrides: brighter continuous border + more glow === */
.auth-panel{
  box-shadow:
    0 18px 50px rgba(0,0,0,0.75),
    0 0 30px rgba(220,220,220,0.30),
    0 0 90px rgba(220,220,220,0.20);
}

.auth-panel::before{
  border: 2px solid rgba(210,210,210,1);
  box-shadow:
    0 0 0 2px rgba(0,0,0,0.55) inset,
    0 0 22px rgba(220,220,220,0.35),
    0 0 60px rgba(220,220,220,0.18);
}

/* more glow on logo/text */
.auth-banner-title{
  text-shadow:
    0 3px 0 rgba(0,0,0,0.70),
    0 0 14px rgba(255,255,255,0.55),
    0 0 34px rgba(255,255,255,0.32),
    0 0 78px rgba(255,255,255,0.18);
  filter:
    drop-shadow(0 0 10px rgba(255,255,255,0.25))
    drop-shadow(0 0 26px rgba(255,255,255,0.16));
}

.auth-banner-mark{
  opacity: 0.14;
  filter:
    grayscale(1)
    drop-shadow(0 0 14px rgba(255,255,255,0.18))
    drop-shadow(0 0 40px rgba(255,255,255,0.12));
}

/* === Make ONE continuous outer frame around banner+tabs+form === */
.auth-panel{
  isolation: isolate; /* ensures ::before can sit above children cleanly */
}

/* strong outer border ABOVE all content */
.auth-panel::before{
  z-index: 999;
  border: 2px solid rgba(245,245,245,0.98);
  box-shadow:
    0 0 0 2px rgba(0,0,0,0.60) inset,
    0 0 22px rgba(255,255,255,0.40),
    0 0 70px rgba(255,255,255,0.24),
    0 0 140px rgba(255,255,255,0.12);
}

/* remove extra inner frame so the outer border reads as the main one */
.auth-panel::after{
  display: none !important;
}

/* remove banner’s inner rectangle (it competes with the outer frame) */
.auth-banner::before{
  display: none !important;
}

/* keep separators subtle */
.auth-banner{ border-bottom: 2px solid rgba(255,255,255,0.14) !important; }
.auth-nav{ border-bottom: 2px solid rgba(255,255,255,0.12) !important; }


/* === Outer frame: thicker, brighter, with full square corners === */
.auth-panel{
  clip-path: none !important;      /* bring back corners */
  border-radius: 0 !important;
  box-shadow:
    0 18px 50px rgba(0,0,0,0.78),
    0 0 38px rgba(255,255,255,0.38),
    0 0 120px rgba(255,255,255,0.20) !important;
}

.auth-panel::before{
  clip-path: none !important;      /* corners on the border too */
  border-radius: 0 !important;

  border: 4px solid rgba(250,250,250,0.98) !important;  /* thicker + brighter */
  box-shadow:
    0 0 0 3px rgba(0,0,0,0.62) inset,
    0 0 26px rgba(255,255,255,0.55),
    0 0 80px rgba(255,255,255,0.28),
    0 0 160px rgba(255,255,255,0.14) !important;
}

/* keep inner frame disabled so the outer frame reads clean */
.auth-panel::after{ display:none !important; }


/* === BRIGHTER / MORE GLOW (final override) === */
.auth-panel{
  box-shadow:
    0 18px 50px rgba(0,0,0,0.80),
    0 0 55px rgba(255,255,255,0.55),
    0 0 150px rgba(255,255,255,0.28) !important;
}

.auth-panel::before{
  border: 5px solid rgba(255,255,255,1) !important;
  box-shadow:
    0 0 0 4px rgba(0,0,0,0.62) inset,
    0 0 35px rgba(255,255,255,0.75),
    0 0 110px rgba(255,255,255,0.40),
    0 0 220px rgba(255,255,255,0.18) !important;
}


/* === DARKER + LESS GLOW (override) === */
.auth-panel{
  background: rgba(6,6,7,0.92) !important;  /* darker panel */
  box-shadow:
    0 18px 50px rgba(0,0,0,0.85),
    0 0 14px rgba(255,255,255,0.18),
    0 0 40px rgba(255,255,255,0.10) !important;
}

.auth-panel::before{
  border: 4px solid rgba(235,235,235,0.95) !important; /* slightly less harsh white */
  box-shadow:
    0 0 0 3px rgba(0,0,0,0.70) inset,
    0 0 10px rgba(255,255,255,0.18),
    0 0 28px rgba(255,255,255,0.10) !important;
}

/* darken banner a bit more */
.auth-banner::after{
  background: rgba(0,0,0,0.45) !important;
}

/* reduce logo/title glow */
.auth-banner-title{
  text-shadow:
    0 3px 0 rgba(0,0,0,0.75),
    0 0 10px rgba(255,255,255,0.22),
    0 0 26px rgba(255,255,255,0.12) !important;
  filter: none !important;
}

.auth-banner-mark{
  opacity: 0.10 !important;
  filter: grayscale(1) !important;
}


/* === DARKER OUTER BORDER === */
.auth-panel::before{
  border: 4px solid rgba(140,140,140,0.85) !important;
  box-shadow:
    0 0 0 3px rgba(0,0,0,0.82) inset,
    0 0 8px rgba(255,255,255,0.08) !important;
}

/* === Tabs: remove boxes around login/register === */
.auth-nav{
  background: transparent !important;
  border-bottom: 0 !important;
  padding: 10px 14px 0 !important;
  justify-content: flex-start !important;
  gap: 16px !important;
}
.auth-tab{
  padding: 0 !important;
  background: none !important;
  outline: none !important;
}
.auth-tab.active{
  background: none !important;
  outline: none !important;
  border-bottom: 2px solid rgba(255,255,255,0.35) !important;
  padding-bottom: 4px !important;
}

/* === Buttons: darker === */
.btn{
  background: rgba(0,0,0,0.68) !important;
  border-color: rgba(170,170,170,0.35) !important;
  box-shadow: 0 8px 0 rgba(0,0,0,0.55) !important;
}

/* === Outer border: a little thinner + darker === */
.auth-panel::before{
  border: 3px solid rgba(120,120,120,0.85) !important;
  box-shadow:
    0 0 0 3px rgba(0,0,0,0.78) inset,
    0 0 8px rgba(255,255,255,0.08) !important;
}


/* === Restore boxed login/register tabs (like before) === */
.auth-nav{
  background: rgba(0,0,0,0.55) !important;
  border-bottom: 2px solid rgba(255,255,255,0.12) !important;
  padding: 8px 10px !important;
  display:flex !important;
  justify-content: space-around !important;
  gap: 12px !important;
}

.auth-tab{
  padding: 10px 12px !important;
  background: transparent !important;
  outline: none !important;
  border-bottom: none !important;
  color: rgba(255,255,255,0.55) !important;
}

.auth-tab.active{
  color: #ffffff !important;
  background: rgba(255,255,255,0.08) !important;
  outline: 2px solid rgba(255,255,255,0.18) !important;
  border-bottom: none !important;
  padding-bottom: 10px !important;
}

/* === Tabs: keep same layout, remove the "button boxes" === */
.auth-nav{
  /* keep your bar layout (background + spacing) */
  display:flex !important;
  justify-content: space-around !important;
  gap: 12px !important;
}

.auth-tab{
  background: transparent !important;
  outline: none !important;
  border: none !important;
  box-shadow: none !important;      /* removes box look */
}

.auth-tab.active{
  background: transparent !important;
  outline: none !important;
  border: none !important;

  color: rgba(255,255,255,0.95) !important;
  /* subtle active indicator WITHOUT a box */
  box-shadow: inset 0 -2px rgba(255,255,255,0.28) !important;
  text-shadow: 0 1px 0 rgba(0,0,0,0.6) !important;
}


/* === Dashboard styling (same vibe as auth) === */
body.dash .shell{
  padding: 22px 16px 42px;
}

.dash-panel{
  width: min(1100px, 96vw);
  margin: 0 auto;
  background: rgba(6,6,7,0.92);
  border: 0;
  position: relative;
  overflow: hidden;
}

/* reuse outer frame */
.dash-panel::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  border: 3px solid rgba(120,120,120,0.85);
  box-shadow:
    0 0 0 3px rgba(0,0,0,0.78) inset,
    0 0 8px rgba(255,255,255,0.08);
  z-index: 10;
}

.dash-banner{
  position: relative;
  height: 150px; /* wider/taller than login */
  overflow: hidden;
  border-bottom: 2px solid rgba(255,255,255,0.12);
}

.dash-banner-title{
  position:absolute;
  left: 18px;
  bottom: 14px;
  z-index: 6;
  display:flex;
  flex-direction:column;
  gap: 4px;
}

.dash-banner-title .brand{
  font-family: "Daydream", "Monocraft", monospace;
  font-size: 44px;
  letter-spacing: 2px;
  color: #f2f2f2;
  text-shadow:
    0 2px 0 rgba(0,0,0,0.75),
    0 0 10px rgba(255,255,255,0.18);
}

.dash-banner-title .sub{
  font-family: "Monocraft", monospace;
  font-size: 16px;
  color: rgba(240,240,240,0.70);
}

.dash-top{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 2px solid rgba(255,255,255,0.10);
}

.svc-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  padding: 14px 16px 16px;
}

.svc-card{
  text-decoration:none;
  color: var(--ink);
  border: 2px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.45);
  padding: 14px;
  transition: transform 120ms ease, border-color 120ms ease;
}
.svc-card:hover{
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.28);
}
.svc-title{
  font-size: 18px;
  margin-bottom: 8px;
}
.svc-desc{
  color: rgba(255,255,255,0.65);
  margin-bottom: 10px;
  font-size: 14px;
}
.svc-href{
  color: rgba(255,255,255,0.45);
  font-size: 13px;
  word-break: break-all;
}

.btn.ghost{
  background: rgba(0,0,0,0.55);
  border: 2px solid rgba(255,255,255,0.18);
}

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

.file{
  color: rgba(255,255,255,0.75);
}

.block{
  padding: 14px 16px 16px;
  border-bottom: 2px solid rgba(255,255,255,0.08);
}
.block-title{
  margin-bottom: 10px;
  color: rgba(255,255,255,0.85);
}

.filelist{
  display:flex;
  flex-direction:column;
  gap: 10px;
}

.fileitem{
  display:flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 2px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.40);
}

.filename{ color: rgba(255,255,255,0.92); font-size: 15px; }

.fileactions{
  display:flex;
  gap: 10px;
  align-items:flex-start;
  flex-wrap: wrap;
  justify-content:flex-end;
}

.public{
  display:flex;
  flex-direction:column;
  gap: 6px;
  min-width: 260px;
}

.pub{
  width: 100%;
  padding: 8px 10px;
  background: rgba(0,0,0,0.55);
  border: 2px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.82);
  font: inherit;
}

.small{ font-size: 13px; }
.btn.danger{
  background: rgba(0,0,0,0.68);
  border-color: rgba(255,120,120,0.40);
}

.svc-title .ext{ opacity:0.6; padding-left:6px; }

/* Files UI */
.dash-body{ padding-bottom: 10px; }

.dropzone{
  border: 3px dashed rgba(255,255,255,0.22);
  background: rgba(0,0,0,0.40);
  padding: 22px;
  min-height: 160px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap: 8px;
  cursor:pointer;
  user-select:none;
}
.dropzone.hot{
  border-color: rgba(255,255,255,0.45);
  background: rgba(0,0,0,0.52);
}
.file-hidden{ display:none; }
.dz-title{ font-size: 18px; }
.picked{ margin-top: 6px; }

.opts{
  display:flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.opt{ color: rgba(255,255,255,0.78); font-size: 14px; }

.opts2{ margin-top: 12px; display:flex; flex-direction:column; gap:10px; }
.row{ display:flex; align-items:center; gap:10px; flex-wrap: wrap; }
.label2{ width: 120px; color: rgba(255,255,255,0.70); font-size: 14px; }

.input2{
  padding: 8px 10px;
  border: 2px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.55);
  color: rgba(255,255,255,0.85);
  font: inherit;
  width: 140px;
}
.select2{
  padding: 8px 10px;
  border: 2px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.55);
  color: rgba(255,255,255,0.85);
  font: inherit;
}

.uploadbar{
  margin-top: 12px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.pub-actions{ display:flex; gap:10px; align-items:center; flex-wrap: wrap; }

.statslist{ margin-top: 10px; display:flex; flex-direction:column; gap:8px; }
.statsrow{
  padding: 10px;
  border: 2px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.40);
  display:flex;
  gap: 12px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.imgprev{
  max-width: 100%;
  height: auto;
  border: 2px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.35);
  display:block;
}


/* Cleaner file list layout */
.filelist.clean{ gap: 12px; }

.fileitem.clean{
  display: grid;
  grid-template-columns: 72px 1fr auto;
  align-items: center;
  gap: 14px;
}

.thumbwrap{ width: 72px; height: 54px; display:flex; align-items:center; justify-content:center; }
.thumb{
  width: 72px;
  height: 54px;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.35);
  image-rendering: pixelated;
}
.thumb.ph{
  width: 72px;
  height: 54px;
  border: 2px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.45);
  display:flex;
  align-items:center;
  justify-content:center;
  color: rgba(255,255,255,0.55);
  font-size: 14px;
}

.filemeta.clean .filename{
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 56vw;
}

.fileactions.clean{
  display:flex;
  gap: 10px;
  align-items:center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* Smaller button variant for modal */
.btn.sm{
  padding: 8px 10px !important;
  font-size: 14px !important;
}

/* Modal */
.modal{ position: fixed; inset: 0; z-index: 9999; }
.modal-backdrop{
  position:absolute; inset:0;
  background: rgba(0,0,0,0.55);
}
.modal-box{
  position: relative;
  width: min(720px, 92vw);
  margin: 12vh auto 0;
  background: rgba(6,6,7,0.95);
  border: 3px solid rgba(120,120,120,0.85);
  box-shadow: 0 0 0 3px rgba(0,0,0,0.78) inset, 0 0 18px rgba(255,255,255,0.08);
  padding: 14px;
}

.modal-head{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(255,255,255,0.10);
}
.modal-title{ color: rgba(255,255,255,0.85); }

.modal-body{ padding-top: 12px; display:flex; flex-direction:column; gap: 12px; }

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

.modal-actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content:flex-start;
}


/* Cleaner file list layout */
.filelist.clean{ gap: 12px; }
.fileitem.clean{
  display: grid;
  grid-template-columns: 72px 1fr auto;
  align-items: center;
  gap: 14px;
}
.thumbwrap{ width: 72px; height: 54px; display:flex; align-items:center; justify-content:center; }
.thumb{
  width: 72px; height: 54px;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.35);
  image-rendering: pixelated;
}
.thumb.ph{
  width: 72px; height: 54px;
  border: 2px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.45);
  display:flex; align-items:center; justify-content:center;
  color: rgba(255,255,255,0.55);
  font-size: 14px;
}
.filemeta.clean .filename{
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 56vw;
}
.fileactions.clean{
  display:flex;
  gap: 10px;
  align-items:center;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.btn.sm{ padding: 8px 10px !important; font-size: 14px !important; }

/* Modal */
.modal{ position: fixed; inset: 0; z-index: 9999; }
.modal-backdrop{ position:absolute; inset:0; background: rgba(0,0,0,0.55); }
.modal-box{
  position: relative;
  width: min(720px, 92vw);
  margin: 12vh auto 0;
  background: rgba(6,6,7,0.95);
  border: 3px solid rgba(120,120,120,0.85);
  box-shadow: 0 0 0 3px rgba(0,0,0,0.78) inset, 0 0 18px rgba(255,255,255,0.08);
  padding: 14px;
}
.modal-head{
  display:flex; align-items:center; justify-content: space-between;
  gap: 12px; padding-bottom: 10px;
  border-bottom: 2px solid rgba(255,255,255,0.10);
}
.modal-title{ color: rgba(255,255,255,0.85); }
.modal-body{ padding-top: 12px; display:flex; flex-direction:column; gap: 12px; }
.copyrow{ display:flex; gap: 10px; align-items:center; flex-wrap: wrap; }
.modal-actions{ display:flex; gap: 10px; flex-wrap: wrap; justify-content:flex-start; }

.auth-banner-mark{ display:none !important; }

/* === Dash top bar (nav left, user right) === */
.dashbar{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 2px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.35);
}

.dashnav{ display:flex; gap: 14px; flex-wrap: wrap; }
.navlink{
  color: rgba(255,255,255,0.70);
  text-decoration:none;
  padding: 6px 2px;
}
.navlink:hover{ color: rgba(255,255,255,0.92); }
.navlink.active{
  color: rgba(255,255,255,0.95);
  box-shadow: inset 0 -2px rgba(255,255,255,0.28);
}

.userbox{ position: relative; }
.userbtn{
  display:flex; align-items:center; gap: 10px;
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.85);
  font: inherit;
  cursor:pointer;
  padding: 6px 8px;
}
.userbtn:hover{ background: rgba(255,255,255,0.06); }

.avatar{
  width: 28px; height: 28px;
  border: 2px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.40);
  image-rendering: pixelated;
}
.uname{ max-width: 220px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.caret{ opacity: 0.7; }

.usermenu{
  position:absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 180px;
  background: rgba(6,6,7,0.96);
  border: 2px solid rgba(120,120,120,0.85);
  box-shadow: 0 0 0 3px rgba(0,0,0,0.78) inset, 0 0 18px rgba(255,255,255,0.08);
  padding: 8px;
  z-index: 9999;
}

.menulink, .menubtn{
  display:block;
  width: 100%;
  text-align:left;
  padding: 8px 10px;
  color: rgba(255,255,255,0.80);
  background: transparent;
  border: none;
  font: inherit;
  cursor:pointer;
  text-decoration:none;
}
.menulink:hover, .menubtn:hover{ background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.95); }
.menudiv{ height: 2px; background: rgba(255,255,255,0.10); margin: 6px 0; }

/* keep main content panel centered */
.dash-panel{ margin: 0 auto !important; }


/* === Hard center the main panel === */
.dash-panel{
  width: min(1100px, 92vw);
  margin-left: auto !important;
  margin-right: auto !important;
}

/* === Center the banner title === */
.dash-banner{
  position: relative;
}
.dash-banner-title{
  position: absolute;
  inset: 0;
  display:flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
}


/* === Brand glow (logo text) === */
.dash-banner-title .brand,
.authbox .logo { /* covers dash + login if you use .logo there */
  text-shadow:
    0 0 6px rgba(255,255,255,0.25),
    0 0 14px rgba(255,255,255,0.12);
}


/* === Force banner title centered everywhere === */
.dash-banner { position: relative; }
.dash-banner-title{
  position: absolute;
  inset: 0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  pointer-events:none;
}


/* === Center services grid/cards === */
.svc-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 320px));
  justify-content: center;
  gap: 14px;
}

.svc-card{
  width: 100%;
  margin: 0 auto;
}


/* === Footer directly under panel + centered === */
body.dash, body.auth{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;     /* horizontal centering */
  justify-content: flex-start; /* no big gap to footer */
}

.site-footer{
  width: min(1100px, 92vw);
  margin: 10px auto 0 auto !important;
  padding: 0 0 14px 0;
}

.footer-inline{
  display:flex;
  gap: 10px;
  align-items:center;
  justify-content:center;
  color: rgba(255,255,255,0.65);
  font-size: 13px;
}
.footer-inline a{ color: rgba(255,255,255,0.70); text-decoration:none; }
.footer-inline a:hover{ color: rgba(255,255,255,0.92); }
.footer-inline .copy{ color: rgba(255,255,255,0.55); }
.footer-inline .dot{ opacity: 0.5; }


/* === Force dash panel centered everywhere === */
body.dash .dash-panel{
  width: min(1100px, 92vw) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-top: 28px !important;
}

/* If any page has a full-width wrapper, keep it from pushing things */
body.dash section, body.dash main{ width: 100%; }


/* === HARD CENTER FIX (avoid vw scrollbar offset) === */
html, body{
  margin:0 !important;
  padding:0 !important;
  overflow-x:hidden !important;
}

/* Make scrollbar behavior consistent so pages don't shift */
html{ overflow-y: scroll; }

/* Panels: use % not vw so centering is exact */
body.dash .dash-panel,
body.auth .authbox,
body.auth .auth-panel{
  width: min(1100px, 92%) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* If some pages set extra left padding/margins, neutralize */
body.dash, body.auth{
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Banner title stays perfectly centered */
.dash-banner-title{
  position: absolute !important;
  inset: 0 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  text-align:center !important;
  pointer-events:none !important;
}

/* Footer directly under the panel */
.site-footer{
  width: min(1100px, 92%) !important;
  margin: 6px auto 0 auto !important;
  padding: 0 0 10px 0 !important;
}


/* Firefox-only: slightly wider panels (keeps Chrome unchanged) */
@supports (-moz-appearance: none) {
  body.auth .authbox,
  body.auth .auth-panel { width: min(980px, 96%) !important; }
}


/* === Firefox width parity (scrollbar eats layout width) === */
/* Don't force a permanent scrollbar */
html { overflow-y: auto !important; }

/* Firefox only: make scrollbar thin so layout matches Chrome's overlay-ish feel */
@supports (-moz-appearance: none) {
  html { scrollbar-width: thin; }
}


/* === Fix Firefox slimness: never let the page create a vertical scrollbar === */
body.auth, body.dash{
  height: 100vh !important;
  overflow: hidden !important;     /* no page scrollbar => same width in FF/Chrome */
}

/* Keep panel fully visible */
body.auth .authbox,
body.dash .dash-panel{
  max-height: calc(100vh - 24px) !important;
}

/* If a dash page grows (admin/users, lots of uploads), scroll INSIDE the panel */
body.dash .dash-panel{
  display: flex;
  flex-direction: column;
}
body.dash .dash-body{
  overflow: auto;
  min-height: 0;                  /* critical for flex scroll */
}


/* === FINAL: width overrides (no vw, no body-class dependency) === */
.authbox, .auth-panel, section.authbox, section.auth-panel{
  width: min(980px, calc(100% - 64px)) !important; /* 32px gutter each side */
  max-width: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
}


/* === FINAL: wider dash panels === */
.dash-panel{
  width: min(1320px, calc(100% - 64px)) !important;
  max-width: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
}


/* === FINAL WIDTHS (Firefox/Chrome parity, no min()/vw) === */
.authbox, .auth-panel{
  box-sizing: border-box !important;
  width: 96% !important;
  max-width: 980px !important;     /* login/register */
  margin-left: auto !important;
  margin-right: auto !important;
}

.dash-panel{
  box-sizing: border-box !important;
  width: 96% !important;
  max-width: 1360px !important;    /* dashboard a bit wider */
  margin-left: auto !important;
  margin-right: auto !important;
}

/* footer matches panel width */
.site-footer{
  width: 96% !important;
  max-width: 1360px !important;
}


/* === FINAL WIDTH OVERRIDES (Firefox/Chromium parity) === */
body.dash .shell{
  width: 100% !important;
  max-width: 1360px !important;  /* dashboard overall width */
}

/* login/register */
body.auth .auth-panel,
body.auth .authbox{
  width: 96% !important;
  max-width: 980px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* dashboard panel */
body.dash .dash-panel{
  width: 96% !important;
  max-width: 1360px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* === FINAL TWEAK: fix Firefox auth width + slightly narrower dashboard === */

/* Prevent flex cross-axis shrink-to-fit differences (FF vs Chromium) */
body.auth, body.dash{
  align-items: stretch !important;
}

/* Ensure the main wrapper actually has a width to work with */
.shell{
  width: 100% !important;
}

/* login/register */
body.auth .auth-panel,
body.auth .authbox{
  width: 96% !important;
  max-width: 980px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* dashboard: in-between size */
body.dash .shell{
  max-width: 1240px !important;
}
body.dash .dash-panel{
  width: 96% !important;
  max-width: 1240px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
.site-footer{
  width: 96% !important;
  max-width: 1240px !important;
}

/* Firefox-specific safety override (in case older @supports rule still applies) */
@supports (-moz-appearance: none){
  body.auth .auth-panel,
  body.auth .authbox{
    width: 96% !important;
    max-width: 980px !important;
  }
}

/* === AUTH: make login/register panel narrower === */
body.auth .auth-panel,
body.auth .authbox{
  max-width: 600px !important; /* tweak: try 600px or 680px if you want */
}

@supports (-moz-appearance: none){
  body.auth .auth-panel,
  body.auth .authbox{
    max-width: 600px !important;
  }
}

/* === Banner-driven theme + glow (site-wide) === */
:root{
  /* JS will overwrite these based on /images/banner.jpg */
  --banner1: 110,180,255;
  --banner2: 255,120,170;
}

/* background colors now follow banner tones */
body{
  background:
    radial-gradient(900px 520px at 20% 10%, rgba(var(--banner1),0.12), transparent 60%),
    radial-gradient(750px 480px at 80% 0%, rgba(var(--banner2),0.10), transparent 60%),
    linear-gradient(180deg, #07080c, var(--bg) 55%, #06070a) !important;
}

/* prevent visible "reset" jump: start paused, JS sets correct phase + runs it */
.auth-banner-bg{
  animation-play-state: paused;
}

/* White glow for the Daydream logo text (auth + dash) */
.auth-banner-title,
.dash-banner-title .brand{
  color: #ffffff !important;
  text-shadow:
    0 0 8px rgba(255,255,255,0.70),
    0 0 22px rgba(255,255,255,0.40),
    0 0 60px rgba(255,255,255,0.22),
    0 3px 0 rgba(0,0,0,0.75) !important;
}

/* === shwtf:style-pass BEGIN === */

/* stop browser blue/purple */
a, a:visited{ color: rgba(255,255,255,0.75) !important; text-decoration:none !important; }
a:hover{ color: rgba(255,255,255,0.92) !important; }
a:focus-visible{ outline:2px solid rgba(255,255,255,0.35); outline-offset:2px; }

/* active underline */
.navlink.active{ box-shadow: inset 0 -2px rgba(255,255,255,0.28); color: rgba(255,255,255,0.95) !important; }

/* bell (tight + centered) */
.notifbtn{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width: 34px;
  height: 30px;
  padding: 0;
  margin: 0;
  border:2px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.18);
  border-radius:0 !important;
  box-sizing:border-box;
}
.notifbtn:hover{ border-color: rgba(255,255,255,0.22); background: rgba(0,0,0,0.26); }
.notifbtn img{
  display:block;
  width:16px;
  height:16px;
  image-rendering: pixelated;
}
.notifdot{
  position:absolute;
  top: 5px;
  right: 5px;
  width: 10px;
  height: 6px;
  background: rgba(220,70,70,0.95);
  border:1px solid rgba(0,0,0,0.60);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.10) inset;
  display:none;
}
.notifbtn.has-unread .notifdot{ display:block; }

/* dropdown hard edges */
.userbox{ position:relative; }
.userbtn{
  display:inline-flex; align-items:center; gap:8px;
  padding:6px 8px;
  border:2px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.18);
  color: rgba(255,255,255,0.85);
  border-radius:0 !important;
}
.userbtn:hover{ border-color: rgba(255,255,255,0.22); background: rgba(0,0,0,0.26); }
.userbtn .avatar{ width:18px; height:18px; border-radius:0 !important; }

.usermenu{
  position:absolute; right:0; top: calc(100% + 6px);
  min-width: 190px;
  border:2px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.92);
  border-radius:0 !important;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.35) inset;
  padding:4px;
  z-index:50;
}
.menulink{ display:block; padding:6px 8px; color: rgba(255,255,255,0.78) !important; }
.menulink:hover{ background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.92) !important; }
.menudiv{ height:1px; background: rgba(255,255,255,0.10); margin:4px 0; }
.menubtn{
  width:100%; text-align:left; padding:6px 8px;
  border:0; background:transparent; color: rgba(255,255,255,0.78);
  border-radius:0 !important;
}
.menubtn:hover{ background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.92); }

/* hard edge for thumbs/avatars across site */
.thumb, .avatar, .thumbwrap img{ border-radius:0 !important; }

/* ---- Steam-inspired profile layout (hard edges, your style) ---- */
.phead{
  display:flex;
  gap:14px;
  align-items:flex-start;
}
.pavatar{
  width: 168px;
  height: 168px;
  object-fit: cover;
  border:2px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.25);
  border-radius:0 !important;
}
.phead-main{ flex: 1 1 auto; min-width: 260px; }
.pname{ font-size: 20px; color: rgba(255,255,255,0.96); }
.phandle{ margin-top:2px; font-size:12px; opacity:0.75; }
.pmeta{ margin-top:10px; display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.pactions{ margin-top:10px; display:flex; gap:8px; flex-wrap:wrap; }

.phead-stats{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:flex-start;
  justify-content:flex-end;
  min-width: 240px;
}
.pstat{
  border:1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.18);
  padding:8px 10px;
  min-width: 110px;
}
.pstat .k{ font-size:11px; opacity:0.70; text-transform:uppercase; letter-spacing:0.5px; }
.pstat .v{ font-size:18px; margin-top:3px; color: rgba(255,255,255,0.92); }

.pgrid{
  display:grid;
  grid-template-columns: 320px 1fr;
  gap: 12px;
  margin-top: 12px;
  align-items:start;
}
@media (max-width: 980px){
  .pgrid{ grid-template-columns: 1fr; }
  .phead{ flex-direction:column; }
  .phead-stats{ justify-content:flex-start; min-width: 0; }
}

/* comment textarea a little more steam-like */
.pcommentbox textarea{ min-height: 90px; }

/* === shwtf:style-pass END === */
