/* Login page: glass card over a live particle field (matches the nightshift profile page). */
#field, .glow { display: none; }
body.auth {
  --void: #07080f;
  --deep: #0e1222;
  --glass: rgba(20, 24, 44, 0.55);
  --gline: rgba(255, 255, 255, 0.10);
  --gtext: #eef0ff;
  --muted: #9aa0c3;
  --pink: #ff5fa2;
  --peach: #ffb36b;
  --display: "Syne", "Arial Black", system-ui, sans-serif;
  --body: "Manrope", "Segoe UI", system-ui, sans-serif;
  background: var(--void);
  color: var(--gtext);
  overflow-x: hidden;
}
html:has(body.auth) { background: #07080f; }
body.auth .top, body.auth .foot, body.auth .demo-bar { display: none; }
body.auth #field { display: block; position: fixed; inset: 0; width: 100%; height: 100%; }
body.auth .glow {
  display: block; position: fixed; inset: -20%; pointer-events: none;
  background:
    radial-gradient(40% 35% at 20% 25%, rgba(255, 95, 162, 0.18), transparent 70%),
    radial-gradient(35% 30% at 85% 80%, rgba(255, 179, 107, 0.14), transparent 70%);
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate(3%, -2%) rotate(4deg); } }

body.auth main {
  position: relative; z-index: 1; max-width: none; min-height: 100vh; margin: 0;
  display: grid; place-items: center; padding: 48px 16px;
}
.auth-card {
  width: 100%; max-width: 420px;
  /* No backdrop-filter here: on a 3D-tilted element it flattens the card into a stretched image and blurs the text.
     A more solid fill keeps the glass look instead. */
  background: linear-gradient(160deg, rgba(26, 30, 54, .9), rgba(14, 17, 32, .9));
  border: 1px solid var(--gline); border-radius: 28px;
  padding: 36px 28px 24px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .08);
  display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center;
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  /* Entrance uses translate/scale (not transform) and doesn't keep running afterwards, so the tilt owns transform. */
  animation: rise .9s cubic-bezier(.2, .9, .2, 1) backwards;
}
@keyframes rise { from { translate: 0 24px; scale: .96; opacity: .3; } }

.auth-logo { position: relative; width: 96px; height: 96px; }
.auth-logo::before {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--pink), var(--peach), var(--pink));
  animation: spin 6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.auth-logo span {
  position: relative; display: grid; place-items: center; width: 100%; height: 100%;
  border-radius: 50%; border: 4px solid var(--deep); background: var(--deep);
  font-size: 44px; line-height: 1;
}
.auth-logo span i {
  font-style: normal;
  background: linear-gradient(135deg, var(--pink), var(--peach));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.auth-title {
  font: 800 clamp(2rem, 8vw, 2.6rem)/1 var(--display); margin: 0; letter-spacing: -0.01em;
  background: linear-gradient(90deg, var(--gtext), var(--pink) 50%, var(--peach), var(--gtext));
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 7s linear infinite;
}
@keyframes sheen { to { background-position: 300% 0; } }
.auth-sub { font: 400 .85rem var(--mono); color: var(--muted); margin-top: -10px; }
.auth-sub .caret { display: inline-block; width: 2px; height: 1.05em; background: var(--pink); vertical-align: -2px; margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.auth-tabs { display: flex; gap: 6px; padding: 4px; border-radius: 999px; border: 1px solid var(--gline); background: rgba(255, 255, 255, .04); }
.auth-tabs button {
  font: 600 .7rem var(--mono); letter-spacing: .08em; text-transform: uppercase;
  padding: 7px 14px; border-radius: 999px; border: 0; background: none; color: var(--muted); cursor: pointer;
  transition: background .18s, color .18s;
}
.auth-tabs button.on { background: linear-gradient(135deg, var(--pink), var(--peach)); color: var(--void); }

.auth-form { width: 100%; display: flex; flex-direction: column; gap: 10px; text-align: left; }
.auth-field {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: 14px;
  border: 1px solid var(--gline); background: rgba(255, 255, 255, .035);
  transition: border-color .18s, background .18s, transform .18s;
}
.auth-field:focus-within { border-color: var(--pink); background: rgba(255, 95, 162, .08); }
.auth-field .ico {
  flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  font: 800 .95rem var(--display); color: var(--void);
  background: linear-gradient(135deg, var(--pink), var(--peach));
}
.auth-field label { flex: 1; min-width: 0; display: flex; flex-direction: column; cursor: text; }
.auth-field .plat { font: 600 .68rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
body.auth .auth-field input {
  width: 100%; background: none; border: 0; padding: 2px 0 0; border-radius: 0;
  font: 700 .95rem var(--body); color: var(--gtext); outline: none;
}
.auth-field input::placeholder { color: rgba(154, 160, 195, .5); font-weight: 500; }

.auth-go {
  margin-top: 6px; width: 100%; padding: 13px; border: 0; border-radius: 14px; cursor: pointer;
  font: 800 1rem var(--display); letter-spacing: .02em; color: var(--void);
  background: linear-gradient(135deg, var(--pink), var(--peach));
  box-shadow: 0 10px 30px -10px rgba(255, 95, 162, .6);
  transition: transform .18s, filter .18s;
}
.auth-go:hover { transform: translateY(-2px); filter: brightness(1.06); }
.auth-go:disabled { opacity: .6; transform: none; cursor: default; }
.auth-err { width: 100%; font: 400 .8rem var(--body); color: #ff9db0; background: rgba(255, 95, 120, .1); border: 1px solid rgba(255, 95, 120, .3); border-radius: 12px; padding: 10px 12px; }
.auth-forgot {
  align-self: flex-end; margin: -2px 2px 0; padding: 0; border: 0; background: none; cursor: pointer;
  font: 600 .75rem var(--body); color: var(--muted); transition: color .18s;
}
.auth-forgot:hover { color: var(--peach); }
.auth-help { margin: -4px 0 0; font: 500 .85rem/1.5 var(--body); color: #c6c9de; max-width: 320px; }
.auth-ok {
  width: 100%; text-align: left; font: 500 .88rem/1.55 var(--body); color: #bdf5d6;
  background: rgba(62, 224, 143, .08); border: 1px solid rgba(62, 224, 143, .3); border-radius: 14px; padding: 14px 16px;
}
.auth-ok b { color: #fff; }
button.auth-guest { cursor: pointer; }

/* QR login */
.auth-qr-btn {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer;
  padding: 11px 14px; border-radius: 14px; border: 1px solid var(--gline); background: rgba(255, 255, 255, .035);
  font: 700 .88rem var(--body); color: var(--gtext); transition: border-color .18s, background .18s;
}
.auth-qr-btn:hover { border-color: var(--peach); background: rgba(255, 179, 107, .08); }
.qr-ico {
  width: 16px; height: 16px; flex: none;
  background:
    linear-gradient(var(--peach), var(--peach)) 0 0 / 6px 6px no-repeat,
    linear-gradient(var(--peach), var(--peach)) 100% 0 / 6px 6px no-repeat,
    linear-gradient(var(--peach), var(--peach)) 0 100% / 6px 6px no-repeat,
    linear-gradient(var(--pink), var(--pink)) 10px 10px / 4px 4px no-repeat;
}
.qr-box {
  width: 232px; height: 232px; padding: 16px; border-radius: 22px; background: #fff;
  display: grid; place-items: center; box-shadow: 0 0 0 4px rgba(255, 95, 162, .25), 0 20px 50px -15px rgba(255, 95, 162, .5);
  transition: filter .3s, opacity .3s;
}
.qr-box img, .qr-box canvas { display: block; width: 200px !important; height: 200px !important; }
.qr-box.expired { filter: blur(4px) grayscale(1); opacity: .4; }
.qr-wait { font: 600 .8rem var(--body); color: #555; text-align: center; padding: 0 10px; }
.qr-steps { margin: 0; padding-left: 20px; text-align: left; font: 500 .84rem/1.6 var(--body); color: #c6c9de; align-self: stretch; }
.qr-steps b { color: var(--gtext); }
.qr-status { min-height: 1.4em; font: 600 .8rem var(--mono); color: var(--muted); }
.qr-status .ok { color: #7fe0a8; }
.qr-status .bad { color: #ff9db0; }
.link-btn { border: 0; background: none; padding: 0; cursor: pointer; font: inherit; color: var(--peach); text-decoration: underline; }
.qr-ask { width: 100%; display: flex; flex-direction: column; gap: 8px; }
.qr-ask-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--gline); background: rgba(255, 255, 255, .035); }
.qr-ask-row span { font: 600 .66rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.qr-ask-row b { font: 700 .88rem var(--body); color: var(--gtext); text-align: right; overflow-wrap: anywhere; }
.qr-warn { margin: 0; text-align: left; font: 500 .8rem/1.55 var(--body); color: #ffd3a8; background: rgba(255, 179, 107, .08); border: 1px solid rgba(255, 179, 107, .3); border-radius: 12px; padding: 10px 12px; }
/* phone camera scanner */
.scan-box { position: relative; width: 100%; max-width: 320px; aspect-ratio: 1; border-radius: 22px; overflow: hidden; background: #000; box-shadow: 0 0 0 4px rgba(255, 95, 162, .25); }
.scan-box video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scan-frame { position: absolute; inset: 18%; border-radius: 18px; box-shadow: 0 0 0 999px rgba(7, 8, 15, .45); outline: 3px solid var(--peach); animation: scan-pulse 1.6s ease-in-out infinite; }
@keyframes scan-pulse { 50% { outline-color: var(--pink); } }
/* computer: "log in on your phone" on the profile page */
.pair { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.pair .qr-steps { max-width: 420px; }
.pair .qr-status { text-align: center; }
.pair-ask { display: flex; flex-direction: column; gap: 10px; align-items: stretch; max-width: 420px; text-align: left; font-family: var(--body); }
.pair-ask .btns { justify-content: flex-end; }
body.glass .pair .qr-steps, body.glass .pair .qr-status { font-family: var(--body); }
.qr-actions { width: 100%; display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }
.qr-actions .auth-go { margin: 0; }
.qr-actions .auth-guest { width: 100%; display: grid; place-items: center; font-size: .9rem; }
.auth-note { font: 400 .7rem var(--mono); color: var(--muted); opacity: .8; margin: 0; }
.auth-guest {
  font: 600 .8rem var(--body); color: var(--muted); padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--gline); background: rgba(255, 255, 255, .03); transition: color .18s, border-color .18s;
}
.auth-guest:hover { color: var(--gtext); border-color: var(--peach); text-decoration: none; }
.auth-foot { font: 400 .68rem var(--mono); color: var(--muted); letter-spacing: .1em; opacity: .7; }
.auth-foot a { color: var(--muted); }
.auth-foot a:hover { color: var(--gtext); }

/* ---------- glass pages (recent): login-screen look, but the nav stays ---------- */
html:has(body.glass) { background: #07080f; }
body.glass {
  --void: #07080f; --gline: rgba(255, 255, 255, .09); --gtext: #eef0ff; --muted: #9aa0c3;
  --pink: #ff5fa2; --peach: #ffb36b;
  --display: "Syne", "Arial Black", system-ui, sans-serif;
  --body: "Manrope", "Segoe UI", system-ui, sans-serif;
  background: var(--void); color: var(--gtext);
}
body.glass #field { display: block; position: fixed; inset: 0; width: 100%; height: 100%; }
body.glass .glow {
  display: block; position: fixed; inset: -20%; pointer-events: none;
  background:
    radial-gradient(40% 35% at 20% 25%, rgba(255, 95, 162, 0.18), transparent 70%),
    radial-gradient(35% 30% at 85% 80%, rgba(255, 179, 107, 0.14), transparent 70%);
  animation: drift 18s ease-in-out infinite alternate;
}
body.glass .top {
  position: relative; z-index: 2;
  background: rgba(10, 12, 22, .72); border-bottom-color: var(--gline);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
body.glass .logo-mark { color: var(--pink); }
body.glass #nav a.on::before { color: var(--pink); }
body.glass .demo-bar { position: relative; z-index: 2; background: rgba(40, 30, 20, .6); }
body.glass main, body.glass .foot { position: relative; z-index: 1; }
body.glass .foot { border-top-color: var(--gline); background: rgba(10, 12, 22, .5); padding: 10px 16px; font-size: .7rem; }
body.glass .rule-one { margin: 4px 0 0; font: 600 1.05rem/1.6 var(--body); color: var(--gtext); }

.g-head { text-align: center; margin: 24px 0 28px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.g-kicker { font: 600 .68rem var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.g-title {
  margin: 0; font: 800 clamp(2.2rem, 6vw, 3.4rem)/1 var(--display); letter-spacing: -.01em; color: transparent;
  background: linear-gradient(90deg, var(--gtext), var(--pink) 50%, var(--peach), var(--gtext));
  background-size: 300% 100%; -webkit-background-clip: text; background-clip: text;
  animation: sheen 7s linear infinite;
}
.g-sub { margin: 0; font: 400 .8rem var(--mono); color: var(--muted); }
/* ===== site-wide glass components ===== */
body.glass { font-family: var(--body); font-size: 14px; }
body.glass #nav a { font: 600 .82rem var(--body); letter-spacing: .01em; }
body.glass .logo { font-family: var(--display); font-weight: 800; letter-spacing: 0; }
body.glass .demo-bar { font: 500 .78rem var(--body); }
body.glass .foot { font: 500 .78rem var(--body); }
body.glass a { color: var(--peach); }
body.glass #nav a, body.glass .foot a { color: var(--muted); }
body.glass #nav a:hover, body.glass #nav a.on, body.glass .foot a:hover { color: var(--gtext); }
body.glass h1, body.glass h2 { font-family: var(--display); font-weight: 800; color: var(--gtext); letter-spacing: -.01em; }
body.glass h2 { font-size: 1.25rem; }
body.glass .dim, body.glass .note { color: var(--muted); }
body.glass .faint, body.glass .empty { color: rgba(154, 160, 195, .6); }
body.glass .label, body.glass .g-label { font: 600 .66rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

body.glass .box, .g-card {
  border-radius: 22px; padding: 20px;
  border: 1px solid var(--gline);
  background: linear-gradient(160deg, rgba(26, 30, 54, .78), rgba(14, 17, 32, .82));
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .07);
}
body.glass .box + .box { margin-top: 18px; }
body.glass .err { background: rgba(255, 95, 120, .1); border-color: rgba(255, 95, 120, .35); color: #ff9db0; }
body.glass .grid-new > form, body.glass .grid-new > .side > .box { animation: rise .8s cubic-bezier(.2, .9, .2, 1) backwards; }
body.glass .grid-new > .side > .box { animation-delay: .08s; }

/* inputs */
body.glass input[type=text], body.glass input[type=email], body.glass input[type=password], body.glass select, body.glass textarea {
  background: rgba(255, 255, 255, .035); border: 1px solid var(--gline); border-radius: 14px;
  padding: 11px 14px; color: var(--gtext); font: 500 .92rem var(--body);
  transition: border-color .18s, background .18s, box-shadow .18s;
}
body.glass textarea { font: 400 .86rem/1.6 var(--mono); padding: 14px 16px; }
body.glass input::placeholder, body.glass textarea::placeholder { color: rgba(154, 160, 195, .55); }
body.glass input:focus, body.glass select:focus, body.glass textarea:focus {
  border-color: var(--pink); background: rgba(255, 95, 162, .06); box-shadow: 0 0 0 4px rgba(255, 95, 162, .12);
}
body.glass select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%239aa0c3' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
body.glass select option { background: #14162a; color: var(--gtext); }

/* custom dropdown (js/select.js) */
.sel { position: relative; }
.sel-native { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0; pointer-events: none; }
.sel-btn {
  width: 100%; display: block; text-align: left; cursor: pointer; position: relative;
  padding: 11px 38px 11px 14px; border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .09); background: rgba(255, 255, 255, .035);
  color: #eef0ff; font: 500 .92rem "Manrope", system-ui, sans-serif;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: border-color .18s, background .18s, box-shadow .18s;
}
.sel-btn::after {
  content: ""; position: absolute; right: 15px; top: 50%; width: 7px; height: 7px; margin-top: -6px;
  border-right: 1.6px solid #9aa0c3; border-bottom: 1.6px solid #9aa0c3; transform: rotate(45deg);
  transition: transform .2s, margin-top .2s, border-color .2s;
}
.sel-btn:hover { border-color: rgba(255, 95, 162, .5); }
.sel-btn:focus-visible, .sel.open .sel-btn {
  outline: none; border-color: #ff5fa2; background: rgba(255, 95, 162, .06); box-shadow: 0 0 0 4px rgba(255, 95, 162, .12);
}
.sel.open .sel-btn::after { transform: rotate(-135deg); margin-top: -2px; border-color: #ff5fa2; }
.sel-list {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 50;
  margin: 0; padding: 6px; list-style: none; max-height: 280px; overflow-y: auto;
  border-radius: 16px; border: 1px solid rgba(255, 255, 255, .1);
  background: linear-gradient(160deg, rgba(28, 32, 58, .97), rgba(15, 18, 34, .97));
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .06);
  animation: sel-pop .16s ease-out;
  scrollbar-width: thin; scrollbar-color: rgba(255, 95, 162, .4) transparent;
}
.sel.up .sel-list { top: auto; bottom: calc(100% + 8px); animation-name: sel-pop-up; }
@keyframes sel-pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
@keyframes sel-pop-up { from { opacity: 0; transform: translateY(6px) scale(.98); } }
.sel-list li {
  position: relative; padding: 9px 34px 9px 12px; border-radius: 10px; cursor: pointer;
  font: 500 .9rem "Manrope", system-ui, sans-serif; color: #c6c9de;
  transition: background .12s, color .12s;
}
.sel-list li.active { background: rgba(255, 95, 162, .14); color: #eef0ff; }
.sel-list li[aria-selected="true"] { color: #ffb36b; font-weight: 700; }
.sel-list li[aria-selected="true"]::after {
  content: ""; position: absolute; right: 14px; top: 50%; width: 5px; height: 10px; margin-top: -7px;
  border-right: 2px solid #ffb36b; border-bottom: 2px solid #ffb36b; transform: rotate(45deg);
}
@media (prefers-reduced-motion: reduce) { .sel-list { animation: none; } }
body.glass .check { font: 500 .85rem var(--body); color: var(--muted); }
body.glass .check input { accent-color: var(--pink); width: 16px; height: 16px; }

/* buttons */
body.glass .btn {
  border-radius: 999px; padding: 9px 18px; font: 700 .85rem var(--body);
  border: 1px solid var(--gline); background: rgba(255, 255, 255, .05); color: var(--gtext);
  transition: transform .18s, border-color .18s, background .18s, box-shadow .18s;
}
body.glass .btn:hover { border-color: var(--pink); background: rgba(255, 95, 162, .1); transform: translateY(-1px); }
body.glass .btn.primary {
  border: 0; color: var(--void); font-family: var(--display); font-weight: 800; letter-spacing: .01em; padding: 11px 24px;
  background: linear-gradient(135deg, var(--pink), var(--peach));
  box-shadow: 0 10px 30px -10px rgba(255, 95, 162, .6);
}
body.glass .btn.primary:hover { filter: brightness(1.06); box-shadow: 0 14px 36px -10px rgba(255, 95, 162, .75); }
body.glass .btn.danger { color: #ff8fa3; }
body.glass .btn.danger:hover { border-color: #ff5f7a; background: rgba(255, 95, 120, .12); }

/* sidebar lists */
body.glass .list li { border-bottom: 1px solid rgba(255, 255, 255, .05); padding: 10px 0; }
body.glass .list .t { font: 700 .9rem var(--body); color: var(--gtext); }
body.glass .list .t:hover { color: var(--pink); text-decoration: none; }
body.glass .list .m { font: 400 .72rem var(--mono); color: var(--muted); }

/* tables (recent, most viewed, profile pages) */
body.glass table.pastes th { font: 600 .66rem var(--mono); letter-spacing: .12em; color: var(--muted); border-bottom: 1px solid var(--gline); padding: 12px; }
body.glass table.pastes td { border-bottom: 1px solid rgba(255, 255, 255, .05); padding: 13px 12px; }
body.glass table.pastes tr:last-child td { border-bottom: 0; }
body.glass table.pastes tbody tr { transition: background .18s; }
[data-href] { cursor: pointer; }
body.glass .list li[data-href] { margin: 0 -10px; padding-left: 10px; padding-right: 10px; border-radius: 10px; transition: background .15s; }
body.glass .list li[data-href]:hover { background: rgba(255, 95, 162, .08); }
body.glass .list li[data-href]:hover .t { color: var(--pink); }
body.glass table.pastes tr:hover td { background: rgba(255, 95, 162, .07); }
body.glass table.pastes tr:hover td:first-child { box-shadow: inset 2px 0 0 var(--pink); }
body.glass td.title a { font: 700 .95rem var(--body); color: var(--gtext); }
body.glass td.title a:hover { color: var(--pink); text-decoration: none; }
body.glass .who, body.glass .who a { font: 500 .85rem var(--body); color: #c6c9de; }
body.glass .who a:hover { color: var(--peach); text-decoration: none; }
body.glass .av { border-radius: 50%; }
body.glass td.n { font: 400 .78rem var(--mono); color: var(--muted); }
body.glass .most-table td.rank { font: 700 .85rem var(--display); color: var(--muted); }
body.glass .most-table tr:nth-child(-n+3) td.rank { color: var(--peach); }
body.glass .most-table .bar { background: rgba(255, 255, 255, .08); }
body.glass .most-table .bar i { background: linear-gradient(90deg, var(--pink), var(--peach)); }
body.glass .most-table .vn { font: 700 .85rem var(--body); }
body.glass .most-head .dim { font: 500 .8rem var(--body); }

/* paste view */
body.glass .paste-head h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin-bottom: 10px; }
body.glass .meta { font: 500 .78rem var(--body); color: var(--muted); }
body.glass .share input { color: var(--peach); font: 500 .85rem var(--mono); max-width: 380px; }
body.glass .code { border-radius: 18px; border: 1px solid var(--gline); background: rgba(12, 14, 26, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
body.glass .gutter { background: rgba(255, 255, 255, .025); border-right-color: var(--gline); color: rgba(154, 160, 195, .5); }
body.glass .code pre { font: 400 .86rem/1.6 var(--mono); }
body.glass .toast { background: rgba(20, 24, 44, .9); border: 1px solid var(--gline); border-radius: 999px; font: 600 .82rem var(--body); backdrop-filter: blur(12px); }

/* profiles grid + profile page */
body.glass .head-card {
  border-radius: 20px; padding: 20px 14px; border: 1px solid var(--gline); color: var(--gtext);
  background: linear-gradient(160deg, rgba(26, 30, 54, .78), rgba(14, 17, 32, .82));
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  transition: transform .18s, border-color .18s;
}
body.glass .head-card:hover { transform: translateY(-3px); border-color: var(--pink); }
body.glass .head-card .h { font: 800 1rem var(--display); }
body.glass .head-card .hh { font: 500 .75rem var(--mono); color: var(--muted); margin: -2px 0 4px; }
body.glass .p-handle { font: 500 .85rem var(--mono); color: var(--muted); margin: -6px 0 8px; }
body.glass .head-card .b { font: 500 .78rem var(--body); color: var(--muted); }
body.glass .head-card .av, body.glass .profile > .av { box-shadow: 0 0 0 3px #14162a, 0 0 0 5px var(--pink); }
body.glass .profile .bio { font: 500 .95rem/1.6 var(--body); }

/* admin dashboard */
body.glass #nav a.nav-admin { color: var(--peach); }
body.glass #nav a.nav-admin:hover, body.glass #nav a.nav-admin.on { color: var(--gtext); }
.adm-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
@media (max-width: 700px) { .adm-stats { grid-template-columns: repeat(2, 1fr); } }
.adm-stat {
  border-radius: 18px; padding: 16px 18px; border: 1px solid var(--gline);
  background: linear-gradient(160deg, rgba(26, 30, 54, .78), rgba(14, 17, 32, .82));
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  display: flex; flex-direction: column; gap: 2px; animation: rise .7s cubic-bezier(.2, .9, .2, 1) backwards;
}
.adm-stat b {
  font: 800 2rem/1.1 var(--display); color: transparent;
  background: linear-gradient(90deg, var(--pink), var(--peach)); -webkit-background-clip: text; background-clip: text;
}
.adm-stat span { font: 600 .66rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.adm-tabs { display: inline-flex; gap: 6px; padding: 4px; border-radius: 999px; border: 1px solid var(--gline); background: rgba(255, 255, 255, .04); margin-bottom: 16px; }
.adm-tabs button { border: 0; background: none; cursor: pointer; padding: 8px 16px; border-radius: 999px; font: 700 .82rem var(--body); color: var(--muted); }
.adm-tabs button span { font: 600 .7rem var(--mono); opacity: .7; margin-left: 4px; }
.adm-tabs button.on { background: linear-gradient(135deg, var(--pink), var(--peach)); color: var(--void); }
.adm-card { padding: 6px 14px 10px; }
.adm-table td { vertical-align: middle; }
.adm-table td.mono { font-family: var(--mono); }
.adm-user { display: inline-flex; flex-direction: column; line-height: 1.25; }
.adm-user a { font-weight: 700; color: var(--gtext) !important; }
.adm-user small { font: 400 .7rem var(--mono); color: var(--muted); }
.adm-tag { display: inline-block; font: 700 .6rem var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--gline); background: rgba(255, 255, 255, .05); color: var(--muted); margin-left: 6px; vertical-align: middle; }
.adm-tag.ok { color: #7fe0a8; border-color: rgba(62, 224, 143, .3); background: rgba(62, 224, 143, .08); margin: 0; }
.adm-tag.bad { color: #ff8fa3; border-color: rgba(255, 95, 120, .35); background: rgba(255, 95, 120, .1); margin: 0; }
.adm-tag.owner { color: var(--void); border-color: transparent; background: linear-gradient(135deg, var(--pink), var(--peach)); }
body.glass .btn.good { color: #7fe0a8; }
body.glass .btn.good:hover { border-color: #3ee08f; background: rgba(62, 224, 143, .1); }
.adm-tag.warn { color: var(--peach); border-color: rgba(255, 179, 107, .35); background: rgba(255, 179, 107, .1); }
.adm-actions { white-space: nowrap; text-align: right; }
[data-acct] { cursor: pointer; }
body.glass table.pastes tr.sel-row td { background: rgba(255, 179, 107, .08); }
body.glass table.pastes tr.sel-row td:first-child { box-shadow: inset 2px 0 0 var(--peach); }
.adm-detail { padding: 18px 22px 22px; animation: rise .5s cubic-bezier(.2, .9, .2, 1) backwards; }
.adm-detail-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.adm-profile { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.adm-profile .av { box-shadow: 0 0 0 3px #14162a, 0 0 0 5px var(--pink); }
.adm-profile h2 { margin: 0 0 2px; font-size: 1.6rem; }
.adm-profile .mono-sm { font: 500 .8rem var(--mono); color: var(--muted); margin-right: 8px; }
.adm-profile .adm-tag.ok, .adm-profile .adm-tag.bad { margin-left: 0; }
.adm-infos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 22px; }
@media (max-width: 760px) { .adm-infos { grid-template-columns: repeat(2, 1fr); } }
.adm-info { padding: 12px 14px; border-radius: 14px; border: 1px solid var(--gline); background: rgba(255, 255, 255, .03); min-width: 0; }
.adm-info span { display: block; font: 600 .62rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.adm-info b { display: block; font: 700 .92rem var(--body); color: var(--gtext); overflow-wrap: anywhere; margin-top: 2px; }
.adm-sub { font: 800 1rem var(--display); color: var(--gtext); margin: 22px 0 6px; }
.adm-sub span { font: 600 .72rem var(--mono); color: var(--peach); margin-left: 6px; }
body.glass .btn.sm { padding: 5px 12px; font-size: .75rem; }
body.glass .btn.sm + .btn.sm { margin-left: 6px; }
body.glass .btn.warn { color: var(--peach); }
body.glass .btn.warn:hover { border-color: var(--peach); background: rgba(255, 179, 107, .1); }

/* Paste page */
.pv { max-width: 1100px; margin: 8px auto 0; display: flex; flex-direction: column; gap: 16px; }
.pv-head {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; gap: 14px; padding: 26px 28px;
  border-radius: 24px; border: 1px solid var(--gline);
  background: linear-gradient(160deg, rgba(30, 30, 58, .82), rgba(14, 17, 32, .86));
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 30px 80px -24px rgba(0, 0, 0, .75), inset 0 1px 0 rgba(255, 255, 255, .07);
  animation: rise .6s cubic-bezier(.2, .9, .2, 1) backwards;
}
.pv-head::before {
  content: ""; position: absolute; z-index: -1; right: -80px; top: -120px; width: 360px; height: 280px;
  background: radial-gradient(closest-side, rgba(255, 95, 162, .22), transparent), radial-gradient(closest-side at 70% 60%, rgba(255, 179, 107, .16), transparent);
  filter: blur(8px);
}
body.glass .pv-title {
  margin: 0; font: 800 clamp(1.8rem, 5vw, 2.8rem)/1.1 var(--display); letter-spacing: -.01em; overflow-wrap: anywhere;
  background: linear-gradient(90deg, var(--gtext), var(--pink) 55%, var(--peach)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
body.glass .pv-title.untitled { background: none; color: var(--muted); -webkit-text-fill-color: currentColor; font-style: italic; }
.pv-author { display: flex; align-items: center; gap: 12px; }
.pv-author .av { box-shadow: 0 0 0 2px #14162a, 0 0 0 4px var(--pink); }
.pv-author div { display: flex; flex-direction: column; line-height: 1.3; }
.pv-author a, .pv-author b { font: 700 .95rem var(--body); color: var(--gtext); }
.pv-author a:hover { color: var(--peach); text-decoration: none; }
.pv-author small { font: 500 .75rem var(--mono); color: var(--muted); }
.pv-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pv-chip {
  display: inline-flex; flex-direction: column; gap: 1px; padding: 7px 13px; border-radius: 12px;
  border: 1px solid var(--gline); background: rgba(255, 255, 255, .04); font: 700 .85rem var(--body); color: var(--gtext);
}
.pv-chip small { font: 600 .58rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pv-chip.warn { border-color: rgba(255, 179, 107, .35); background: rgba(255, 179, 107, .08); color: var(--peach); }

.pv-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; animation: rise .6s .06s cubic-bezier(.2, .9, .2, 1) backwards; }
.pv-link {
  flex: 1 1 340px; max-width: 520px; display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px;
  border-radius: 999px; border: 1px solid var(--gline); background: rgba(12, 14, 26, .7);
}
.pv-link-ico { color: var(--peach); font-weight: 700; }
body.glass .pv-link input { flex: 1; min-width: 0; border: 0; background: none; box-shadow: none; padding: 6px 0; font: 600 .85rem var(--mono); color: var(--peach); }
body.glass .pv-link input:focus { background: none; box-shadow: none; }
.pv-tools { display: flex; flex-wrap: wrap; gap: 8px; }
body.glass .pv-tools .btn.danger { margin-left: 6px; }

.pv-code {
  border-radius: 20px; overflow: hidden; border: 1px solid var(--gline);
  background: rgba(10, 12, 22, .88); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8);
  animation: rise .6s .12s cubic-bezier(.2, .9, .2, 1) backwards;
}
.pv-code-top { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--gline); background: rgba(255, 255, 255, .03); }
.pv-dots { display: inline-flex; gap: 6px; }
.pv-dots i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f7a; }
.pv-dots i:nth-child(2) { background: var(--peach); }
.pv-dots i:nth-child(3) { background: #7fe0a8; }
.pv-file { flex: 1; min-width: 0; font: 600 .78rem var(--mono); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-code-lang { font: 700 .62rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--void); background: linear-gradient(135deg, var(--pink), var(--peach)); padding: 4px 10px; border-radius: 999px; }
body.glass .pv-code .code { border: 0; border-radius: 0; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; min-height: 120px; }
body.glass .pv-code .gutter { padding: 16px 14px !important; }
body.glass .pv-code .code-body pre { padding: 16px 18px; }
@media (max-width: 600px) { .pv-head { padding: 20px; } .pv-link { max-width: none; } }

/* Role badges */
.role-list { display: flex; flex-wrap: wrap; gap: 6px; justify-content: inherit; align-items: center; }
.head-card .role-list, .hall-card .role-list { justify-content: center; margin: 2px 0; }
.profile .role-list { margin: 2px 0 10px; }
.role-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font: 700 .62rem var(--mono); letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; color: var(--rc, #9aa0c3);
  border: 1px solid color-mix(in srgb, var(--rc, #9aa0c3) 45%, transparent);
  background: color-mix(in srgb, var(--rc, #9aa0c3) 12%, transparent);
}
.role-x { border: 0; background: none; padding: 0 0 0 2px; cursor: pointer; font: 700 .85rem var(--body); line-height: 1; color: inherit; opacity: .7; }
.role-x:hover { opacity: 1; }
.role-give { display: flex; gap: 8px; align-items: center; min-width: 220px; }
.role-give .sel { flex: 1; }
body.glass .role-give .sel-btn { padding: 7px 34px 7px 12px; font-size: .82rem; border-radius: 10px; }
.roles-table td { vertical-align: middle; }
.role-create { padding: 6px 0 16px; border-bottom: 1px solid var(--gline); }
.role-create-form { display: grid; grid-template-columns: 1.4fr auto 1fr auto; gap: 12px; align-items: end; margin-bottom: 14px; }
.role-create-form .field { margin: 0; }
@media (max-width: 760px) { .role-create-form { grid-template-columns: 1fr; } }
body.glass input[type=color] {
  width: 64px; height: 42px; padding: 4px; cursor: pointer; border-radius: 12px;
  border: 1px solid var(--gline); background: rgba(255, 255, 255, .035);
}
#role-preview { min-height: 42px; display: flex; align-items: center; }
.role-defs { gap: 10px; }
.role-def { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.role-def small { font: 500 .66rem var(--mono); color: var(--muted); padding-left: 4px; }

/* Hall Of Fame */
.hall-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.hall-card {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px;
  padding: 26px 18px 22px; border-radius: 22px; color: var(--gtext); text-decoration: none;
  border: 1px solid var(--gline);
  background: linear-gradient(165deg, rgba(34, 30, 60, .85), rgba(14, 17, 32, .88));
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .06);
  transition: transform .2s, border-color .2s, box-shadow .2s;
  animation: rise .7s cubic-bezier(.2, .9, .2, 1) backwards;
}
.hall-card:hover { transform: translateY(-4px); border-color: var(--peach); box-shadow: 0 30px 70px -24px rgba(255, 179, 107, .35); text-decoration: none; }
.hall-rank { position: absolute; top: 12px; left: 14px; font: 800 .8rem var(--display); color: var(--peach); }
.hall-av { position: relative; width: 92px; height: 92px; display: grid; place-items: center; }
.hall-av::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, var(--peach), var(--pink), var(--peach)); animation: spin 6s linear infinite; }
.hall-av .av { position: relative; border-radius: 50%; border: 4px solid #14162a; box-sizing: content-box; }
.hall-name { font: 800 1.2rem var(--display); margin-top: 4px; }
.hall-handle { font: 500 .75rem var(--mono); color: var(--muted); margin-top: -4px; }
.hall-note { margin: 4px 0 0; font: 500 .85rem/1.5 var(--body); color: #e9dcc6; }
.hall-form { display: grid; grid-template-columns: 1fr 1.6fr auto; gap: 12px; align-items: end; margin: 8px 0 6px; }
.hall-form .field { margin: 0; }
@media (max-width: 760px) { .hall-form { grid-template-columns: 1fr; } }

/* home title sits a little tighter */
.g-head-home { margin: 8px 0 26px; }

.g-card {
  border-radius: 24px; padding: 10px 18px 14px;
  border: 1px solid var(--gline);
  background: linear-gradient(160deg, rgba(26, 30, 54, .78), rgba(14, 17, 32, .82));
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .07);
  animation: rise .8s cubic-bezier(.2, .9, .2, 1) backwards;
  overflow-x: auto;
}
.g-card table.pastes th { font: 600 .66rem var(--mono); letter-spacing: .12em; color: var(--muted); border-bottom-color: var(--gline); padding: 14px 12px; }
.g-card table.pastes td { border-bottom-color: rgba(255, 255, 255, .05); padding: 13px 12px; }
.g-card table.pastes tr:last-child td { border-bottom: 0; }
.g-card table.pastes tbody tr { transition: background .18s; }
.g-card table.pastes tr:hover td { background: rgba(255, 95, 162, .07); }
.g-card table.pastes tr:hover td:first-child { box-shadow: inset 2px 0 0 var(--pink); }
.g-card td.title a { font: 700 .95rem var(--body); color: var(--gtext); }
.g-card td.title a:hover { color: var(--pink); text-decoration: none; }
.g-card .who, .g-card .who a { font: 500 .85rem var(--body); color: #c6c9de; }
.g-card .who a:hover { color: var(--peach); text-decoration: none; }
.g-card .av { border-radius: 50%; }
.g-card td.n { font: 400 .78rem var(--mono); color: var(--muted); }
.g-card .empty { color: var(--muted); }

/* ---------- team page (pyramid) ---------- */
body.team main { display: block; padding: 0 16px; }
.team { max-width: 1120px; margin: 0 auto; }
.team-hero { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; padding: 56px 0 96px; position: relative; }
.team-title { text-align: center; display: flex; flex-direction: column; gap: 6px; }
.team-title h1 {
  margin: 0; font: 800 clamp(2.4rem, 7vw, 3.6rem)/1 var(--display); letter-spacing: -.01em;
  background: linear-gradient(90deg, var(--gtext), var(--pink) 50%, var(--peach), var(--gtext));
  background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 7s linear infinite;
}
.pyramid { width: 100%; display: flex; flex-direction: column; align-items: center; }
.pyramid .owner-card { width: 290px; animation: rise .9s cubic-bezier(.2, .9, .2, 1) backwards; }
.pyr-top .owner-card { box-shadow: 0 0 0 1px rgba(255, 95, 162, .25), 0 30px 90px -20px rgba(255, 95, 162, .35); }
.pyr-row { display: flex; gap: 40px; justify-content: center; flex-wrap: wrap; }
.pyr-row .owner-card:nth-child(1) { animation-delay: .15s; }
.pyr-row .owner-card:nth-child(2) { animation-delay: .25s; }
.pyr-row .owner-card:nth-child(3) { animation-delay: .35s; }
.pyr-row .owner-card:nth-child(4) { animation-delay: .45s; }
/* connector: a line down from the owner, then out to the outer cards below (and straight down to a middle one) */
.pyr-lines { position: relative; width: calc((var(--n, 2) - 1) * (290px + 40px)); min-width: 2px; height: 44px; }
.pyr-lines i { position: absolute; left: 50%; top: 22px; height: 22px; width: 1px; background: rgba(255, 179, 107, .7); }
.oc-blurb a { color: #aab1ff; font-weight: 700; word-break: break-all; }
.oc-blurb a:hover { color: #fff; text-decoration: underline; }
.pyr-lines::before { content: ""; position: absolute; left: 50%; top: 0; height: 22px; width: 1px; background: linear-gradient(var(--pink), var(--peach)); }
.pyr-lines::after {
  content: ""; position: absolute; left: 0; right: 0; top: 22px; height: 22px;
  border: 1px solid rgba(255, 179, 107, .7); border-bottom: 0; border-radius: 12px 12px 0 0;
}
@media (max-width: 1080px) { .pyr-lines { display: none; } .pyr-row { margin-top: 28px; } }
@media (max-width: 700px) {
  .pyr-lines { display: none; }
  .pyr-row { flex-direction: column; align-items: center; gap: 20px; margin-top: 20px; }
}

.scroll-hint { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--muted); font: 600 .66rem var(--mono); letter-spacing: .2em; text-transform: uppercase; }
.scroll-hint:hover { color: var(--gtext); text-decoration: none; }
.scroll-hint i { width: 18px; height: 28px; border: 1.5px solid currentColor; border-radius: 10px; position: relative; }
.scroll-hint i::after { content: ""; position: absolute; left: 50%; top: 6px; width: 3px; height: 6px; margin-left: -1.5px; border-radius: 2px; background: var(--pink); animation: wheel 1.6s ease-in-out infinite; }
@keyframes wheel { 60% { transform: translateY(8px); opacity: 0; } 100% { opacity: 0; } }

.team-continue { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding-bottom: 80px; }
.continue-btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 20px 40px; border-radius: 999px;
  font: 800 clamp(1.2rem, 4vw, 1.7rem) var(--display); color: var(--void);
  background: linear-gradient(135deg, var(--pink), var(--peach));
  box-shadow: 0 20px 60px -15px rgba(255, 95, 162, .7);
  transition: transform .2s, box-shadow .2s;
}
.continue-btn span { transition: transform .2s; }
.continue-btn:hover { transform: translateY(-3px); box-shadow: 0 26px 70px -15px rgba(255, 95, 162, .85); text-decoration: none; }
.continue-btn:hover span { transform: translateX(5px); }

@media (prefers-reduced-motion: reduce) {
  body.auth *, body.auth *::before, body.auth *::after { animation: none !important; transition: none !important; }
}
