:root {
  --paper: #e8e6e1;
  --ink: #0d0d0c;
  --ink-2: #151513;
  --soft: #9b9993;
  --rule: rgba(232, 230, 225, 0.16);
  --rule-2: rgba(232, 230, 225, 0.3);
  --bad: #e07a6a;
  --good: #9fc29a;
  --serif: "Manrope", system-ui, sans-serif;
  --sans: "Manrope", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--ink); color: var(--paper); font-family: var(--sans); -webkit-font-smoothing: antialiased; min-height: 100vh; }
a { color: inherit; text-underline-offset: 3px; }
button { font: inherit; color: inherit; cursor: pointer; }
.hidden { display: none !important; }
::selection { background: var(--paper); color: var(--ink); }

.wordmark { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.04em; text-decoration: none; }
.mark {
  display: inline-block; width: 28px; height: 28px; flex: none; border-radius: 8px;
  background: #f2f2f2 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M7 11l3.2 10 3-7.5 2.8 7.5 2.8-7.5 3 7.5L25 11' fill='none' stroke='%23000' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.mark.lg { width: 54px; height: 54px; border-radius: 15px; transform: rotate(-6deg); }
.label { font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--soft); }

/* simple-icons mask */
.si { display: inline-block; width: 18px; height: 18px; flex: none; background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }

/* ---------- form controls ---------- */
.field { display: block; margin-top: 18px; }
.field > span { display: block; margin-bottom: 6px; }
input[type=text], input[type=url], input:not([type]), textarea {
  width: 100%; padding: 11px 12px;
  background: transparent; color: var(--paper);
  border: 1px solid var(--rule-2); border-radius: 10px;
  font: 0.95rem var(--sans); outline: none;
}
input:focus, textarea:focus { border-color: var(--paper); }
textarea { resize: vertical; min-height: 80px; line-height: 1.5; }
input.code { font-family: var(--mono); letter-spacing: 0.25em; text-transform: uppercase; font-size: 1.1rem; text-align: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 20px; border: 1px solid var(--paper); border-radius: 11px;
  background: transparent; font-size: 0.92rem; font-weight: 600; text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.btn:hover:not(:disabled) { background: var(--paper); color: var(--ink); }
.btn.solid { background: var(--paper); color: var(--ink); }
.btn.solid:hover:not(:disabled) { background: #fff; }
.btn.quiet { border-color: var(--rule-2); }
.btn.danger { border-color: var(--bad); color: var(--bad); }
.btn.danger:hover { background: var(--bad); color: var(--ink); }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn.wide { width: 100%; }
.msg { margin-top: 12px; font-size: 0.88rem; min-height: 1.2em; }
.msg.bad { color: var(--bad); }
.msg.good { color: var(--good); }

#toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 99;
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  padding: 11px 18px; background: var(--paper); color: var(--ink); font-size: 0.9rem;
  transition: 0.25s; max-width: calc(100% - 32px);
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- auth page ---------- */
.auth {
  position: relative; isolation: isolate; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 96px 16px 40px;
}
.auth-bg { position: fixed; inset: -3%; z-index: -2; background: url("../forest.png") center 45% / cover; filter: grayscale(1) brightness(0.5); }
.auth::before { content: ""; position: fixed; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, rgba(6, 6, 6, 0.25), rgba(6, 6, 6, 0.9)); }
.auth-top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 5;
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px clamp(16px, 4vw, 40px);
}
.auth-top a.back { font-size: 0.88rem; color: #bdbdbd; text-decoration: none; }
.auth-top a.back:hover { color: #fff; }
.auth-card {
  width: 100%; max-width: 410px; text-align: center;
  padding: 36px 28px 28px; border-radius: 24px;
  background: rgba(12, 12, 12, 0.72); border: 1px solid rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.65);
  animation: cardin 0.7s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes cardin { from { opacity: 0; transform: translateY(14px) scale(0.98); } }
.auth-card .mark.lg { margin-bottom: 20px; }
.auth-card h1 { font-weight: 800; font-size: 1.95rem; letter-spacing: -0.055em; line-height: 1.05; }
.auth-card .sub { color: var(--soft); margin: 10px 0 26px; line-height: 1.5; font-size: 0.95rem; }
.auth-card form { text-align: left; }
.oauth { display: grid; gap: 10px; }
.oauth .btn { height: 50px; border-radius: 12px; font-weight: 700; font-size: 0.95rem; }
.oauth .si { width: 18px; height: 18px; }
.btn.google { background: #f2f2f2; border-color: #f2f2f2; color: #111; }
.btn.google:hover:not(:disabled) { background: #fff; }
.btn.discord { background: #5865f2; border-color: #5865f2; color: #fff; }
.btn.discord:hover:not(:disabled) { background: #4752c4; border-color: #4752c4; color: #fff; }
.or { display: flex; align-items: center; gap: 12px; margin: 24px 0 14px; color: #6f6f6f; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.steps-mini { list-style: none; display: grid; gap: 8px; text-align: left; font-size: 0.85rem; color: #a5a5a5; }
.steps-mini li { display: flex; gap: 10px; align-items: baseline; }
.steps-mini span { font-family: var(--mono); font-size: 0.72rem; color: #6a6a6a; }
.auth-foot { margin-top: 22px; font-size: 0.8rem; color: var(--soft); }
.auth-legal { margin-top: 26px; font-size: 0.75rem; color: #6e6e6e; }
.prefixed { display: flex; border: 1px solid var(--rule-2); border-radius: 10px; }
.prefixed:focus-within { border-color: var(--paper); }
.prefixed span { padding: 11px 0 11px 12px; font-family: var(--mono); font-size: 0.9rem; color: var(--soft); }
.prefixed input { border: 0; font-family: var(--mono); padding-left: 2px; }
.notice { padding: 14px 16px; border: 1px dashed var(--rule-2); border-radius: 12px; color: #b5b5b5; font-size: 0.88rem; line-height: 1.55; text-align: left; }
.notice code { font-family: var(--mono); font-size: 0.82rem; color: #fff; }
.spinner { width: 26px; height: 26px; margin: 10px auto; border-radius: 50%; border: 2px solid var(--rule); border-top-color: var(--paper); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- dashboard ---------- */
.dash-top {
  display: flex; align-items: center; gap: 20px;
  padding: 20px clamp(16px, 4vw, 48px);
  border-bottom: 1px solid var(--rule);
  position: sticky; top: 0; background: rgba(13, 13, 12, 0.92); backdrop-filter: blur(8px); z-index: 10;
}
.dash-top .right { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.dash-top .who { font-family: var(--mono); font-size: 0.85rem; color: var(--soft); }
.dash { max-width: 1080px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px) 120px; }
.block { display: grid; grid-template-columns: 240px 1fr; gap: 40px; padding: 48px 0; border-bottom: 1px solid var(--rule); }
.block > header h2 { font-weight: 800; font-size: 1.8rem; letter-spacing: -0.05em; line-height: 1.05; }
.block > header p { color: var(--soft); font-size: 0.88rem; line-height: 1.5; margin-top: 8px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.media-row { display: flex; gap: 16px; align-items: center; margin-top: 18px; padding: 14px; border: 1px solid var(--rule); }
.media-row .thumb { width: 64px; height: 64px; flex: none; background: var(--ink-2) center / cover; border: 1px solid var(--rule); display: grid; place-items: center; font-family: var(--mono); font-size: 0.7rem; color: var(--soft); overflow: hidden; }
.media-row .thumb.round { border-radius: 50%; }
.media-row .meta { flex: 1; min-width: 0; }
.media-row .meta b { display: block; font-weight: 500; }
.media-row .meta small { color: var(--soft); font-size: 0.8rem; word-break: break-all; }
.media-row .acts { display: flex; gap: 8px; }
.media-row .btn { padding: 8px 12px; font-size: 0.82rem; }
.color-row { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.color-row input[type=color] { width: 46px; height: 46px; padding: 0; border: 1px solid var(--rule-2); background: none; cursor: pointer; }
.links-list { margin-top: 10px; }
.link-row { display: grid; grid-template-columns: 24px 160px 1fr 34px; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--rule); }
.link-row .si { color: var(--soft); }
.link-row .x { width: 34px; height: 34px; border: 1px solid var(--rule); background: none; color: var(--soft); }
.link-row .x:hover { border-color: var(--bad); color: var(--bad); }
.save-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; justify-content: center; gap: 14px; align-items: center;
  padding: 14px; background: var(--paper); color: var(--ink);
  transform: translateY(100%); transition: transform 0.25s;
}
.save-bar.show { transform: none; }
.save-bar .btn { border-color: var(--ink); }
.save-bar .btn.solid { background: var(--ink); color: var(--paper); }
.qr { display: flex; gap: 20px; align-items: flex-start; margin-top: 18px; flex-wrap: wrap; }
.qr img { width: 180px; height: 180px; background: #fff; padding: 8px; }
.qr code { display: inline-block; margin-top: 6px; font-family: var(--mono); font-size: 0.8rem; word-break: break-all; color: var(--soft); }
table.codes { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: 0.88rem; }
table.codes th { text-align: left; font-weight: 400; padding: 8px 6px; border-bottom: 1px solid var(--rule-2); }
table.codes td { padding: 10px 6px; border-bottom: 1px solid var(--rule); }
table.codes td.c { font-family: var(--mono); letter-spacing: 0.08em; }
table.codes .used { color: var(--soft); text-decoration: line-through; }
table.codes button { background: none; border: 0; color: var(--soft); text-decoration: underline; font-size: 0.82rem; }
.inline { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 18px; }
.inline input { width: 90px; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--soft); }
.status.on i { background: var(--good); }

/* ---------- public profile ---------- */
.p-bg { position: fixed; inset: 0; z-index: -2; overflow: hidden; }
.p-bg img, .p-bg video { width: 100%; height: 100%; object-fit: cover; filter: grayscale(var(--gs, 1)) brightness(0.55); }
.p-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 30%, rgba(13, 13, 12, 0.75) 100%); }
.p-grain { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.12; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.enter {
  position: fixed; inset: 0; z-index: 30; display: grid; place-items: center;
  background: rgba(13, 13, 12, 0.6); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  font-family: var(--mono); font-size: 0.95rem; letter-spacing: 0.08em; cursor: pointer;
  transition: opacity 0.8s, visibility 0.8s;
}
.enter.gone { opacity: 0; visibility: hidden; }
.profile {
  min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 60px 16px; text-align: center;
}
.p-card { width: 100%; max-width: 440px; }
.p-avatar { width: 108px; height: 108px; border-radius: 50%; object-fit: cover; border: 1px solid var(--rule-2); background: var(--ink-2); margin-bottom: 20px; }
.p-avatar.letter { display: inline-grid; place-items: center; font-family: var(--serif); font-size: 3rem; }
.p-name { font-weight: 800; font-size: clamp(2.4rem, 8vw, 3.2rem); line-height: 1; letter-spacing: -0.06em; }
.p-handle { font-family: var(--mono); font-size: 0.85rem; color: var(--soft); margin-top: 8px; }
.p-badges { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.p-badges:not(.icons) > span { font-family: var(--mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; padding: 4px 8px; border: 1px solid var(--rule-2); }
.p-bio { margin: 18px auto 0; max-width: 360px; line-height: 1.55; color: #d8d5ce; white-space: pre-line; }
.p-links { list-style: none; margin-top: 30px; border-top: 1px solid var(--rule-2); text-align: left; }
.p-links a {
  display: flex; align-items: center; gap: 14px;
  padding: 15px 4px; border-bottom: 1px solid var(--rule-2);
  text-decoration: none; transition: padding 0.2s, color 0.2s;
}
.p-links a::after { content: "↗"; margin-left: auto; color: var(--soft); transition: color 0.2s; }
.p-links a:hover { padding-left: 12px; color: var(--accent, #fff); }
.p-links a:hover::after { color: var(--accent, #fff); }
.p-foot { margin-top: 36px; display: flex; justify-content: center; gap: 18px; font-family: var(--mono); font-size: 0.75rem; color: var(--soft); }
.p-foot a { text-decoration: none; }
.p-foot a:hover { color: var(--paper); }
.mute { position: fixed; right: 18px; bottom: 18px; z-index: 5; padding: 8px 12px; border: 1px solid var(--rule-2); background: rgba(13, 13, 12, 0.5); font-family: var(--mono); font-size: 0.75rem; }
.mute:hover { border-color: var(--paper); }

@media (max-width: 820px) {
  .auth-card { padding: 30px 20px 22px; }
  .block { grid-template-columns: 1fr; gap: 20px; }
  .grid-2 { grid-template-columns: 1fr; }
  .link-row { grid-template-columns: 24px 1fr 34px; }
  .link-row input.url { grid-column: 2 / 3; }
  .link-row .x { grid-row: 1 / span 2; grid-column: 3; }
  .dash-top .who { display: none; }
}

/* =====================================================================
   Dashboard (sidebar layout)
   ===================================================================== */
.dash-body { height: 100vh; overflow: hidden; display: flex; flex-direction: column; background: #070707; }
.dash-body .dash-top { position: relative; flex: none; padding: 12px 20px; }
.btn.sm { padding: 8px 14px; font-size: 0.85rem; border-radius: 10px; }
.me { display: flex; align-items: center; gap: 8px; padding-left: 6px; }
.me-av { width: 32px; height: 32px; border-radius: 50%; background: #1c1c1c center / cover; display: grid; place-items: center; font-weight: 800; font-size: 0.9rem; border: 1px solid var(--rule); }
.me-name { font-family: var(--mono); font-size: 0.82rem; color: var(--soft); }
.loading-screen { flex: 1; display: grid; place-items: center; }

.shell { flex: 1; min-height: 0; display: grid; grid-template-columns: 220px 1fr 360px; }
.side { display: flex; flex-direction: column; gap: 2px; padding: 18px 12px; border-right: 1px solid var(--rule); overflow-y: auto; }
.side button {
  display: flex; align-items: center; gap: 11px; width: 100%;
  padding: 10px 12px; border: 0; border-radius: 10px; background: none;
  color: #a3a3a3; font-size: 0.92rem; font-weight: 600; text-align: left;
  transition: background 0.15s, color 0.15s;
}
.side button svg { width: 17px; height: 17px; fill: currentColor; flex: none; }
.side button:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }
.side button.on { background: rgba(255, 255, 255, 0.09); color: #fff; }
.side .signout { margin-top: auto; color: #7d7d7d; }

.main { overflow-y: auto; padding: 34px clamp(16px, 4vw, 48px) 120px; }
.tab { max-width: 760px; animation: tabin 0.35s ease both; }
@keyframes tabin { from { opacity: 0; transform: translateY(6px); } }
.tab-title { font-size: 2rem; font-weight: 800; letter-spacing: -0.055em; }
.tab-sub { color: var(--soft); margin: 6px 0 24px; }
.box { padding: 22px; margin-bottom: 14px; border-radius: 18px; background: #0e0e0e; border: 1px solid var(--rule); }
.box-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.box-head h3 { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; font-weight: 700; letter-spacing: -0.02em; }
.box > .field:first-child { margin-top: 0; }
.box .media-row { border-radius: 12px; }
.box .media-row:first-child { margin-top: 0; }
.box.soon { opacity: 0.6; }
.box.danger-zone { border-color: rgba(224, 122, 106, 0.35); }
.hint { color: var(--soft); font-size: 0.86rem; line-height: 1.5; margin-top: 6px; }
.count { float: right; font-style: normal; text-transform: none; letter-spacing: 0; }
.cols { display: grid; grid-template-columns: 1.3fr 1fr; gap: 14px; }
.cols .box { margin: 0; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.stat { padding: 18px; border-radius: 16px; background: #0e0e0e; border: 1px solid var(--rule); }
.stat b { display: block; margin-top: 8px; font-size: 1.9rem; font-weight: 800; letter-spacing: -0.05em; }

.progress { height: 6px; margin: 14px 0 10px; border-radius: 6px; background: #1d1d1d; overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: var(--paper); border-radius: 6px; transition: width 0.6s ease; }
.checklist { list-style: none; }
.checklist li button {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 0; border: 0; background: none; color: var(--paper); font-size: 0.92rem; text-align: left;
}
.checklist li button::before {
  content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%;
  border: 1.5px solid #4a4a4a;
}
.checklist li.ok button { color: #777; text-decoration: line-through; }
.checklist li.ok button::before {
  border-color: var(--good); background: var(--good) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 70% no-repeat;
}
.checklist li:not(.ok) button:hover { color: #fff; }
.share-url { margin: 12px 0 4px; padding: 12px 14px; border-radius: 10px; background: #070707; border: 1px solid var(--rule); font-family: var(--mono); font-size: 0.9rem; word-break: break-all; }
.qr-box { margin-top: 14px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.qr-box svg { width: 180px; height: 180px; background: #fff; border-radius: 10px; }

/* links editor */
.lrow { display: grid; grid-template-columns: 22px 150px 1fr auto 30px 30px 30px; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--rule); }
.lrow .si { color: var(--soft); }
.lrow input { padding: 9px 10px; }
.lrow .clicks { font-family: var(--mono); font-size: 0.72rem; color: var(--soft); white-space: nowrap; }
.mini { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--rule); background: none; color: var(--soft); }
.mini:hover:not(:disabled) { border-color: var(--rule-2); color: #fff; }
.mini:disabled { opacity: 0.3; cursor: default; }
.mini.x:hover { border-color: var(--bad); color: var(--bad); }

/* appearance controls */
.opt { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--rule); flex-wrap: wrap; }
.opt:last-child { border-bottom: 0; padding-bottom: 0; }
.opt:first-child { padding-top: 0; }
.opt-label { font-weight: 600; font-size: 0.92rem; }
.opt > input { max-width: 260px; }
.seg { display: inline-flex; padding: 3px; border-radius: 11px; background: #070707; border: 1px solid var(--rule); flex-wrap: wrap; }
.seg button { padding: 7px 13px; border: 0; border-radius: 8px; background: none; color: #9a9a9a; font-size: 0.85rem; font-weight: 600; }
.seg button:hover { color: #fff; }
.seg button.on { background: var(--paper); color: var(--ink); }
.switch { position: relative; width: 44px; height: 26px; border-radius: 999px; border: 0; background: #2a2a2a; transition: background 0.2s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #bbb; transition: transform 0.2s, background 0.2s; }
.switch.on { background: var(--good); }
.switch.on::after { transform: translateX(18px); background: #fff; }
.range { display: flex; align-items: center; gap: 12px; }
.range input { width: 200px; accent-color: var(--paper); }
.color-row { margin-top: 0; }
.color-row input[type=color] { border-radius: 10px; }
.mini-audio { display: block; margin-top: 8px; height: 32px; width: 100%; max-width: 260px; }

/* widgets */
.howto { margin: 14px 0 4px 18px; color: #c4c4c4; font-size: 0.9rem; line-height: 1.8; }
.dc-test { margin-top: 10px; font-family: var(--mono); font-size: 0.8rem; color: var(--soft); min-height: 1.2em; }

/* analytics chart */
.chart { display: flex; align-items: flex-end; gap: 6px; height: 200px; margin-top: 18px; }
.chart .col { flex: 1; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; }
.chart .bar { width: 100%; max-width: 34px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #e8e6e1, #8a8a8a); transition: height 0.6s ease; }
.chart .v { font-family: var(--mono); font-size: 0.66rem; color: var(--soft); min-height: 1em; }
.chart .d { font-family: var(--mono); font-size: 0.66rem; color: #6a6a6a; }

/* security */
.id-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.id-row:last-child { border-bottom: 0; }
.id-row .si { width: 20px; height: 20px; }
.id-info { flex: 1; min-width: 0; }
.id-info b { display: block; font-size: 0.92rem; }
.id-info small { color: var(--soft); font-size: 0.8rem; }

/* admin */
.badge-input { padding: 6px 8px !important; font-size: 0.8rem !important; min-width: 160px; }
table.codes td a { text-underline-offset: 3px; }

/* live preview */
.preview { border-left: 1px solid var(--rule); padding: 18px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.preview-head { display: flex; justify-content: space-between; align-items: center; }
.link-btn { border: 0; background: none; color: var(--soft); font-size: 0.82rem; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: #fff; }
.phone-frame { flex: 1; min-height: 0; border-radius: 28px; overflow: hidden; border: 6px solid #1a1a1a; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5); background: #000; }
.phone-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

.dash-body .save-bar { border-radius: 14px; left: 50%; right: auto; bottom: 18px; width: max-content; max-width: calc(100% - 24px); transform: translate(-50%, 140%); }
.dash-body .save-bar.show { transform: translate(-50%, 0); }
.dash-body .save-bar .btn { border-radius: 10px; }

@media (max-width: 1200px) {
  .shell { grid-template-columns: 200px 1fr; }
  .preview { display: none; }
}
@media (max-width: 760px) {
  .dash-body { height: auto; overflow: auto; }
  .shell { display: block; }
  .side { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--rule); padding: 10px; position: sticky; top: 0; background: #070707; z-index: 5; }
  .side button { width: auto; white-space: nowrap; }
  .side .signout { margin-top: 0; }
  .main { overflow: visible; padding-top: 24px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .cols { grid-template-columns: 1fr; }
  .lrow { grid-template-columns: 22px 1fr 30px 30px 30px; }
  .lrow input.url { grid-column: 2 / 6; grid-row: 2; }
  .lrow .clicks { display: none; }
  .me-name, #copy-link { display: none; }
  .range input { width: 140px; }
}

/* =====================================================================
   Public profile: appearance options
   ===================================================================== */
.pbody .p-card { transition: opacity 0.6s ease, transform 0.6s ease; }
.pbody:not(.in) .p-card { opacity: 0; transform: translateY(10px); }
.pbody .p-bg img, .pbody .p-bg video { transition: filter 0.3s; }

/* fonts */
.font-serif .p-name { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; letter-spacing: -0.01em; font-size: clamp(2.8rem, 9vw, 3.8rem); }
.font-serif .p-bio, .font-serif .p-links a { font-family: "Instrument Serif", Georgia, serif; font-size: 1.15rem; }
.font-mono .p-card, .font-mono .p-name { font-family: var(--mono); }
.font-mono .p-name { letter-spacing: -0.04em; font-weight: 700; }

/* alignment */
.align-left .profile { align-items: center; }
.align-left .p-card { text-align: left; }
.align-left .p-badges, .align-left .p-foot { justify-content: flex-start; }
.align-left .p-bio { margin-left: 0; }

/* avatar shape */
.av-rounded .p-avatar { border-radius: 24px; }
.av-square .p-avatar { border-radius: 4px; }

/* name effects */
.name-glow .p-name { text-shadow: 0 0 18px var(--accent), 0 0 42px color-mix(in srgb, var(--accent) 50%, transparent); }
.name-shimmer .p-name {
  background: linear-gradient(100deg, var(--paper) 30%, var(--accent) 50%, var(--paper) 70%) 0 0 / 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 3.5s linear infinite;
}
@keyframes shimmer { to { background-position: -250% 0; } }

/* card behind content */
.with-panel .p-card {
  padding: 34px 28px 24px; border-radius: 26px;
  background: rgba(10, 10, 10, 0.55); border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
}

/* link styles */
.btn-filled .p-links, .btn-glass .p-links { border-top: 0; display: grid; gap: 9px; }
.btn-filled .p-links a, .btn-glass .p-links a {
  justify-content: center; padding: 14px 18px; border-radius: 14px; border-bottom: 0; font-weight: 700;
}
.btn-filled .p-links a::after, .btn-glass .p-links a::after { content: none; }
.btn-filled .p-links a { background: var(--accent); color: #0b0b0b; }
.btn-filled .p-links a:hover { padding-left: 18px; color: #0b0b0b; filter: brightness(1.08); transform: translateY(-2px); }
.btn-glass .p-links a { background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.12); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-glass .p-links a:hover { padding-left: 18px; background: rgba(255, 255, 255, 0.13); color: var(--paper); transform: translateY(-2px); }
.align-left.btn-filled .p-links a, .align-left.btn-glass .p-links a { justify-content: flex-start; }
.p-links a { transition: padding 0.2s, color 0.2s, transform 0.2s, background 0.2s; }

/* typewriter caret */
.p-bio.typing::after { content: "|"; margin-left: 2px; color: var(--accent); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

/* location */
.p-loc { margin-top: 10px; font-size: 0.85rem; color: var(--soft); }
.p-loc::before { content: "⌖ "; }

/* discord status */
.p-discord {
  display: flex; align-items: center; gap: 12px; margin-top: 22px; padding: 12px 14px;
  border-radius: 16px; background: rgba(10, 10, 10, 0.5); border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.dc-pic { position: relative; flex: none; width: 44px; height: 44px; }
.dc-pic img { width: 100%; height: 100%; border-radius: 50%; }
.dc-dot { position: absolute; right: -2px; bottom: -2px; width: 14px; height: 14px; border-radius: 50%; border: 3px solid #111; background: #80848e; }
.dc-dot.online { background: #23a55a; }
.dc-dot.idle { background: #f0b232; }
.dc-dot.dnd { background: #f23f43; }
.dc-info { min-width: 0; }
.dc-info b { display: block; font-size: 0.95rem; }
.dc-info small { display: block; font-size: 0.8rem; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* =====================================================================
   Dashboard v2 (sidebar layout, black & white)
   ===================================================================== */
.gd { background: #050505; min-height: 100vh; }
.gd svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gd svg.fill { fill: currentColor; stroke: none; }
.gd-loading { position: fixed; inset: 0; display: grid; place-items: center; }
.gd-mtop { display: none; }
.gd-shell { display: grid; grid-template-columns: 290px 1fr; min-height: 100vh; }

/* ---------- sidebar ---------- */
.gd-side {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column; gap: 10px;
  padding: 22px 16px 16px; margin: 0;
  background: #0b0b0b; border-right: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0 26px 26px 0;
}
.gd-logo { padding: 2px 8px 6px; font-size: 1.3rem; }
.gd-search {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 11px 12px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.07);
  background: #111; color: #b5b5b5; font-size: 0.9rem; text-align: left;
}
.gd-search span { flex: 1; }
.gd-search kbd { font-family: var(--mono); font-size: 0.65rem; padding: 2px 6px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, 0.12); color: #888; }
.gd-search:hover { border-color: rgba(255, 255, 255, 0.18); color: #fff; }
.gd-nav { display: flex; flex-direction: column; gap: 4px; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, 0.06); margin-top: 4px; }
.gd-item, .gd-group-head {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 11px 14px; border-radius: 14px; border: 0; background: none;
  color: #e9e9e9; font-size: 1rem; font-weight: 600; text-decoration: none; text-align: left;
  transition: background 0.15s;
}
.gd-item:hover, .gd-group-head:hover { background: rgba(255, 255, 255, 0.05); }
.gd-item.on { background: rgba(255, 255, 255, 0.1); }
.gd-group.open > .gd-group-head { background: rgba(255, 255, 255, 0.08); }
.gd-group-head .chev { margin-left: auto; width: 9px; height: 9px; border-right: 2px solid #aaa; border-bottom: 2px solid #aaa; transform: rotate(45deg); transition: transform 0.2s; margin-top: -4px; }
.gd-group.open .chev { transform: rotate(-135deg); margin-top: 4px; }
.gd-sub { display: none; flex-direction: column; padding: 6px 0 6px 44px; gap: 2px; }
.gd-group.open .gd-sub { display: flex; }
.gd-sub a { padding: 5px 0; font-size: 0.9rem; color: #8d8d8d; text-decoration: none; }
.gd-sub a:hover { color: #fff; }
.gd-sub a.on { color: #fff; font-weight: 600; }
.gd-side-box { margin-top: auto; padding: 16px; border-radius: 18px; background: #111; border: 1px solid rgba(255, 255, 255, 0.06); }
.gd-side-box p { font-size: 0.9rem; color: #cfcfcf; margin-bottom: 10px; }
.gd-me { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 18px; background: #111; border: 1px solid rgba(255, 255, 255, 0.06); }
.gd-me-av { width: 42px; height: 42px; border-radius: 50%; flex: none; background: #1d1d1d center / cover; display: grid; place-items: center; font-weight: 800; }
.gd-me-info { flex: 1; min-width: 0; }
.gd-me-info b { display: block; font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gd-me-info small { font-size: 0.78rem; color: #8a8a8a; }
.gd-me-more { border: 0; background: none; color: #aaa; letter-spacing: 1px; padding: 6px; }
.gd-menu { position: absolute; bottom: calc(100% + 8px); right: 0; left: 0; z-index: 20; display: flex; flex-direction: column; padding: 6px; border-radius: 14px; background: #161616; border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6); }
.gd-menu a, .gd-menu button { padding: 10px 12px; border-radius: 10px; border: 0; background: none; color: #ddd; text-align: left; font-size: 0.9rem; text-decoration: none; }
.gd-menu a:hover, .gd-menu button:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }

/* ---------- buttons ---------- */
.gd-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 11px 18px; border-radius: 13px; border: 1px solid rgba(255, 255, 255, 0.14);
  background: #151515; color: #f0f0f0; font-size: 0.92rem; font-weight: 600; text-decoration: none;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}
.gd-btn:hover:not(:disabled) { background: #1d1d1d; border-color: rgba(255, 255, 255, 0.28); }
.gd-btn:active:not(:disabled) { transform: translateY(1px); }
.gd-btn:disabled { opacity: 0.5; }
.gd-btn.wide { width: 100%; }
.gd-btn.sm { padding: 8px 14px; font-size: 0.85rem; border-radius: 11px; }
.gd-btn.solid { background: #f2f2f2; color: #0a0a0a; border-color: #f2f2f2; }
.gd-btn.solid:hover:not(:disabled) { background: #fff; }
.gd-btn.danger-fill { background: #3a1212; border-color: #6b2222; color: #ffd9d9; }
.gd-btn.danger-fill:hover { background: #4a1616; border-color: #8a2b2b; }
.gd-chip { padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.18); background: #161616; color: #eee; font-size: 0.8rem; font-weight: 600; }
.gd-chip:not(.static):hover { background: #222; }
.gd-chip.static { cursor: default; }
.gd-icon-btn { border: 0; background: none; color: #999; padding: 4px; }
.gd-icon-btn:hover { color: #fff; }
.gd-link-btn { display: block; margin-top: 4px; border: 0; background: none; color: #9a9a9a; font-size: 0.75rem; text-decoration: underline; text-underline-offset: 3px; padding: 0; }

/* ---------- main ---------- */
.gd-main { padding: 34px clamp(16px, 3.5vw, 52px) 140px; min-width: 0; }
.gd-page { animation: tabin 0.3s ease both; }
.gd-h { font-size: 1.35rem; font-weight: 600; letter-spacing: -0.02em; margin: 6px 0 18px; }
.gd-h2 { display: flex; align-items: center; gap: 10px; font-size: 1.4rem; font-weight: 600; letter-spacing: -0.02em; }
.gd-h-row { display: flex; align-items: center; gap: 12px; margin-top: 34px; }
.gd-h-row .gd-h { margin: 0; }
.gd-h-row.tight { margin: 0 0 12px; justify-content: space-between; }
.gd-muted { color: #8f8f8f; font-size: 0.92rem; margin-top: 4px; }
.gd-hint { display: block; color: #858585; font-size: 0.82rem; line-height: 1.5; margin-top: 6px; }
.gd-hint a { color: #ccc; }
.gd-panel { padding: 22px; border-radius: 20px; background: #0e0e0e; border: 1px solid rgba(255, 255, 255, 0.06); margin-bottom: 16px; }
.gd-panel h3 { font-size: 1.08rem; font-weight: 700; letter-spacing: -0.01em; }
.gd-hero h2 { display: flex; align-items: center; gap: 10px; font-size: 1.5rem; font-weight: 600; }

/* stat cards */
.gd-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 30px; }
.gd-card {
  display: flex; flex-direction: column; gap: 4px; text-align: left;
  padding: 20px 22px; border-radius: 20px; color: #f2f2f2;
  background: linear-gradient(180deg, #161616, #101010); border: 1px solid rgba(255, 255, 255, 0.12);
  transition: border-color 0.15s, transform 0.15s;
}
button.gd-card:hover { border-color: rgba(255, 255, 255, 0.3); transform: translateY(-2px); }
.gd-card-top { display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 0.98rem; margin-bottom: 8px; }
.gd-card-top svg { width: 20px; height: 20px; color: #d9d9d9; }
.gd-card b { font-size: 1.8rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.gd-card small { color: #9a9a9a; font-size: 0.85rem; }

.gd-split { display: grid; grid-template-columns: 1.55fr 1fr; gap: 16px; }
.gd-split.wide-left { grid-template-columns: 1.6fr 1fr; }
.gd-split > .gd-panel { margin-bottom: 0; }

/* completion */
.gd-progress-row { display: flex; align-items: center; gap: 16px; margin: 18px 0; }
.gd-progress { flex: 1; height: 14px; border-radius: 99px; background: #1a1a1a; border: 1px solid rgba(255, 255, 255, 0.08); overflow: hidden; }
.gd-progress span { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, #8a8a8a, #f2f2f2); transition: width 0.8s ease; }
#comp-pct { color: #9a9a9a; font-size: 0.88rem; white-space: nowrap; }
.gd-alert { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 16px; background: #131313; border: 1px solid rgba(255, 255, 255, 0.08); margin-bottom: 16px; }
.gd-alert i { width: 22px; height: 22px; flex: none; border-radius: 50%; background: #f2f2f2; color: #000; display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 0.8rem; }
.gd-alert b { display: block; font-size: 1.02rem; }
.gd-alert small { color: #9a9a9a; font-size: 0.86rem; }
.gd-pills { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.gd-pill { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 999px; background: #131313; border: 1px solid rgba(255, 255, 255, 0.08); color: #eee; font-weight: 600; font-size: 0.92rem; text-align: left; }
.gd-pill span { flex: 1; }
.gd-pill em { font-style: normal; color: #777; font-size: 1.2rem; line-height: 1; }
.gd-pill .dot { width: 18px; height: 18px; border-radius: 50%; border: 1.5px dashed #666; flex: none; }
.gd-pill .gd-svg.ok svg { width: 20px; height: 20px; color: #0a0a0a; background: #f2f2f2; border-radius: 50%; padding: 3px; }
.gd-pill.ok { color: #9d9d9d; }
.gd-pill:not(.ok):hover { border-color: rgba(255, 255, 255, 0.25); }
.gd-stack { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.gd-stack-gap { display: flex; flex-direction: column; gap: 12px; }
.gd-stack-gap > .gd-panel { margin: 0; }
.gd-row-btn { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 13px; border: 1px solid rgba(255, 255, 255, 0.06); background: #171717; color: #f0f0f0; font-weight: 600; font-size: 0.92rem; text-align: left; }
.gd-row-btn:hover { background: #1e1e1e; border-color: rgba(255, 255, 255, 0.16); }
.gd-row-btn.ok { background: #121212; }
.gd-row-btn .si { width: 18px; height: 18px; }

/* chart */
.gd-chart { display: grid; grid-template-columns: auto 1fr; gap: 8px; height: 220px; }
.gd-chart.tall { height: 300px; margin-top: 14px; }
.gd-chart-y { display: flex; flex-direction: column; justify-content: space-between; padding-bottom: 22px; font-family: var(--mono); font-size: 0.68rem; color: #6d6d6d; text-align: right; }
.gd-chart-plot { display: flex; flex-direction: column; min-width: 0; }
.gd-chart-plot svg { flex: 1; width: 100%; height: 100%; min-height: 0; border-left: 1px solid rgba(255, 255, 255, 0.08); border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.gd-chart-x { display: flex; justify-content: space-between; padding-top: 6px; font-family: var(--mono); font-size: 0.68rem; color: #6d6d6d; }
.gd-list { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.gd-list-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 13px; background: #151515; }
.gd-list-row span:not(.si) { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gd-list-row b { font-size: 0.85rem; color: #bbb; font-weight: 600; }
.gd-empty { text-align: center; padding: 40px 10px; }
.gd-empty b { display: block; font-size: 1.05rem; }
.gd-empty small { color: #8a8a8a; }

/* selects / inputs */
.gd-select, .gd-input {
  width: 100%; padding: 12px 14px; border-radius: 13px;
  background: #141414; border: 1px solid rgba(255, 255, 255, 0.07); color: #eee;
  font: 500 0.92rem var(--sans); outline: none;
}
.gd-select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 10l4-4 4 4M8 14l4 4 4-4' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 38px; cursor: pointer; }
.gd-select option { background: #141414; }
.gd-input:focus, .gd-select:focus { border-color: rgba(255, 255, 255, 0.3); }
textarea.gd-input { resize: vertical; min-height: 46px; line-height: 1.45; }
.gd-label { display: block; font-size: 0.92rem; font-weight: 600; margin-bottom: 8px; color: #eaeaea; }
.gd-field { display: flex; flex-direction: column; min-width: 0; }
.gd-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px 24px; }
.gd-grid.two { grid-template-columns: 1fr 1fr; }
.gd-grid.three { grid-template-columns: repeat(3, 1fr); }
.gd-split-in { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.gd-range { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.gd-range input { flex: 1; accent-color: #f2f2f2; }
.gd-range span { font-family: var(--mono); font-size: 0.75rem; color: #9a9a9a; min-width: 42px; text-align: right; }
.gd-glows { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gd-glows > div:last-child { grid-column: 1 / -1; }
.gd-glow { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 10px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.12); background: #141414; color: #bbb; font-weight: 600; font-size: 0.9rem; }
.gd-glow.on { background: #f2f2f2; color: #0a0a0a; border-color: #f2f2f2; box-shadow: 0 0 18px rgba(255, 255, 255, 0.25); }
.gd-bigtoggle { width: 100%; padding: 13px; border-radius: 13px; border: 1px solid rgba(255, 255, 255, 0.14); background: #141414; color: #eee; font-weight: 600; }
.gd-bigtoggle.on { background: #f2f2f2; color: #0a0a0a; }
.gd-color { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 13px; background: #141414; border: 1px solid rgba(255, 255, 255, 0.07); }
.gd-color input[type=color] { width: 26px; height: 26px; border: 0; border-radius: 50%; padding: 0; background: none; cursor: pointer; overflow: hidden; }
.gd-color input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
.gd-color input[type=color]::-webkit-color-swatch { border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 50%; }
.gd-hex { flex: 1; min-width: 0; border: 0 !important; background: none !important; padding: 4px 0 !important; color: #eee; font-family: var(--mono); font-size: 0.88rem; outline: none; }
.gd-svg.dim svg { width: 15px; height: 15px; color: #777; }
.gd .switch { width: 54px; height: 30px; }
.gd .switch::after { width: 22px; height: 22px; top: 4px; left: 4px; }
.gd .switch.on { background: #f2f2f2; }
.gd .switch.on::after { background: #0a0a0a; transform: translateX(24px); }

/* assets */
.gd-assets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.gd-asset { display: flex; flex-direction: column; min-width: 0; }
.gd-asset-title { font-size: 1.02rem; font-weight: 600; margin-bottom: 12px; }
.gd-asset-tile {
  position: relative; height: 150px; border-radius: 14px; overflow: hidden; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: #131313; border: 1px solid rgba(255, 255, 255, 0.08); color: #8a8a8a; text-align: center; padding: 10px;
  transition: border-color 0.15s;
}
.gd-asset-tile:hover { border-color: rgba(255, 255, 255, 0.25); }
.gd-asset-tile svg { width: 28px; height: 28px; color: #ddd; }
.gd-asset-tile small { font-size: 0.82rem; }
.gd-asset-tile img, .gd-asset-tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gd-asset-tile img.contain { object-fit: contain; padding: 22px; }
.gd-asset-tile audio { width: 92%; height: 34px; position: relative; z-index: 1; }
.gd-asset-note { position: relative; z-index: 1; color: #ddd; font-size: 0.85rem; max-width: 92%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gd-asset-tag { position: absolute; top: 10px; right: 46px; padding: 4px 8px; border-radius: 8px; background: rgba(0, 0, 0, 0.7); color: #fff; font-size: 0.72rem; font-weight: 700; }
.gd-asset-x { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 8px; border: 0; background: rgba(0, 0, 0, 0.7); color: #ff8080; font-size: 0.85rem; }
.gd-asset-x:hover { background: #000; }
.gd-asset-tile.busy::after { content: "Uploading…"; position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, 0.75); color: #fff; font-size: 0.85rem; }
.gd-asset-tile.off { cursor: default; opacity: 0.6; }

/* links */
.gd-platforms { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.gd-plat { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, 0.06); background: #151515; transition: transform 0.15s, background 0.15s, border-color 0.15s; }
.gd-plat .si { width: 26px; height: 26px; }
.gd-plat:hover { transform: translateY(-3px); background: #1c1c1c; border-color: rgba(255, 255, 255, 0.2); }
.gd-plat.custom { width: auto; height: 58px; display: flex; align-items: center; gap: 12px; padding: 0 18px; text-align: left; color: #ddd; }
.gd-plat.custom svg { width: 26px; height: 26px; }
.gd-plat.custom b { display: block; font-size: 0.92rem; }
.gd-plat.custom small { color: #888; font-size: 0.78rem; }
.gd-linkgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.gd-link { display: flex; gap: 10px; padding: 14px 16px 16px 10px; border-radius: 18px; background: #0e0e0e; border: 1px solid rgba(255, 255, 255, 0.07); transition: border-color 0.15s, opacity 0.15s; }
.gd-link.off { opacity: 0.55; }
.gd-link.over { border-color: rgba(255, 255, 255, 0.4); }
.gd-link.dragging { opacity: 0.4; }
.gd-grip { align-self: center; color: #555; cursor: grab; letter-spacing: -2px; font-size: 0.9rem; user-select: none; }
.gd-link-main { flex: 1; min-width: 0; }
.gd-link-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.gd-link-head b { font-weight: 600; }
.gd-link-tools { display: flex; gap: 4px; }
.gd-link-tools button { width: 30px; height: 30px; border-radius: 9px; border: 0; background: #181818; color: #aaa; display: grid; place-items: center; }
.gd-link-tools button svg { width: 15px; height: 15px; }
.gd-link-tools button:hover { color: #fff; background: #222; }
.gd-link-tools button.del { color: #e07a6a; }
.gd-link-body { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 12px; background: #141414; font-size: 0.9rem; }
.gd-link-body span:not(.si) { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gd-link-body em { font-style: normal; font-family: var(--mono); font-size: 0.7rem; color: #888; }
.gd-link-edit { display: grid; gap: 8px; margin-top: 10px; }
.gd-link-edit .gd-btn { justify-self: end; }

/* badges */
.gd-badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }
.gd-badge { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 18px; background: #0e0e0e; border: 1px solid rgba(255, 255, 255, 0.07); }
.gd-badge.owned { border-color: rgba(255, 255, 255, 0.16); background: #121212; }
.gd-badge-text { flex: 1; min-width: 0; }
.gd-badge-text b { display: block; font-size: 1.05rem; font-weight: 600; }
.gd-badge-text small { color: #8f8f8f; font-size: 0.86rem; line-height: 1.4; }
.gd-badge-act { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.gd-badge-act .gd-hint { margin: 0; font-size: 0.72rem; }
.bdg-ic { display: inline-grid; place-items: center; width: 24px; height: 24px; flex: none; }
.bdg-ic svg { width: 100%; height: 100%; fill: currentColor; stroke: none; }
.gd-tag { padding: 6px 12px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.1); color: #8c8c8c; font-size: 0.8rem; font-weight: 600; white-space: nowrap; }
.gd-tag.live { color: #0a0a0a; background: #f2f2f2; border-color: #f2f2f2; }
.gd-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.badge-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 8px 6px 10px; }
.badge-chip .bdg-ic { width: 18px; height: 18px; }
.badge-chip button { border: 0; background: none; color: #999; padding: 0 4px; }
.badge-chip button:hover { color: #ff8080; }

/* admin combos */
.gd-combo { position: relative; }
.gd-pick { display: flex; align-items: center; gap: 10px; text-align: left; cursor: pointer; }
.gd-pick .bdg-ic { width: 20px; height: 20px; }
.gd-drop { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 30; max-height: 330px; overflow-y: auto; padding: 6px; border-radius: 14px; background: #161616; border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7); }
.gd-drop-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px; border-radius: 10px; border: 0; background: none; color: #eee; text-align: left; }
.gd-drop-item:hover, .gd-drop-item.on { background: rgba(255, 255, 255, 0.07); }
.gd-drop-av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #252525; font-weight: 800; font-size: 0.85rem; flex: none; }
.gd-drop-text { min-width: 0; }
.gd-drop-text b { display: block; font-size: 0.92rem; }
.gd-drop-text small { color: #888; font-size: 0.78rem; }
.gd-drop-empty { padding: 12px; color: #888; font-size: 0.85rem; }
.gd-current { margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.07); }
.gd-window-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.gd-window .inline { margin-top: 14px; }
.gd-table-wrap { overflow-x: auto; }

/* settings */
.gd-narrow { max-width: 660px; margin: 0 auto; }
.gd-title { text-align: center; font-size: 2.1rem; font-weight: 600; letter-spacing: -0.03em; margin: 20px 0 40px; }
.gd-sh { font-size: 1.2rem; font-weight: 600; margin: 34px 0 14px; }
.gd-narrow .gd-panel > div + div { margin-top: 18px; }
.gd-input-row { display: flex; align-items: center; gap: 12px; padding: 6px 6px 6px 14px; border-radius: 14px; background: #161616; border: 1px solid rgba(255, 255, 255, 0.06); min-height: 50px; }
.gd-input-row svg { color: #8a8a8a; }
.gd-input-row input { flex: 1; min-width: 0; border: 0; background: none; color: #eee; font: 500 0.95rem var(--sans); outline: none; padding: 8px 0; }
.gd-email { flex: 1; min-width: 0; font-size: 0.95rem; color: #ddd; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gd-toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.gd-toggle-row b { display: block; font-size: 1.08rem; font-weight: 600; }
.gd-toggle-row small { color: #8f8f8f; font-size: 0.86rem; }
.gd-stack-gap > .gd-toggle-row { margin: 0; }
#set-sessions .gd-btn { margin-top: 14px; }
.gd-delete { display: grid; gap: 10px; margin-top: 12px; }
.gd-delete input { width: 100%; padding: 12px 14px; border-radius: 13px; background: #141414; border: 1px solid rgba(255, 255, 255, 0.07); color: #eee; }
#logout { margin-top: 12px; }
.flash { animation: flash 1.6s ease; border-radius: 16px; }
@keyframes flash { 0%, 60% { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5); } 100% { box-shadow: 0 0 0 2px transparent; } }

/* modals */
.gd-modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: start center; padding: 12vh 16px 16px; background: rgba(0, 0, 0, 0.65); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.gd-modal-box { width: 100%; max-width: 540px; padding: 16px; border-radius: 20px; background: #101010; border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7); display: grid; gap: 12px; }
.gd-results { display: flex; flex-direction: column; gap: 2px; max-height: 50vh; overflow-y: auto; }
.gd-results button { padding: 11px 14px; border-radius: 11px; border: 0; background: none; color: #ddd; text-align: left; font-size: 0.92rem; }
.gd-results button:hover, .gd-results button.on { background: rgba(255, 255, 255, 0.08); color: #fff; }
.gd-qr { display: grid; place-items: center; }
.gd-qr svg { width: 200px; height: 200px; background: #fff; border-radius: 14px; padding: 6px; }

.gd .save-bar { border-radius: 16px; left: 50%; right: auto; bottom: 18px; width: max-content; max-width: calc(100% - 24px); transform: translate(-50%, 160%); background: #f2f2f2; z-index: 80; }
.gd .save-bar.show { transform: translate(-50%, 0); }
.gd .save-bar .btn { border-radius: 11px; }

/* responsive */
@media (max-width: 1280px) {
  .gd-cards { grid-template-columns: repeat(2, 1fr); }
  .gd-grid { grid-template-columns: repeat(2, 1fr); }
  .gd-assets { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1000px) {
  .gd-split, .gd-split.wide-left, .gd-split-in { grid-template-columns: 1fr; }
  .gd-grid.three { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .gd-shell { grid-template-columns: 1fr; }
  .gd-mtop { display: flex; align-items: center; gap: 14px; position: sticky; top: 0; z-index: 60; padding: 12px 16px; background: rgba(5, 5, 5, 0.9); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
  .gd-burger { border: 0; background: none; color: #fff; padding: 4px; }
  .gd-side { position: fixed; z-index: 70; left: 0; top: 0; width: 290px; max-width: 86vw; transform: translateX(-105%); transition: transform 0.25s ease; box-shadow: 30px 0 80px rgba(0, 0, 0, 0.6); }
  body.side-open .gd-side { transform: none; }
  .gd-main { padding-top: 20px; }
}
@media (max-width: 560px) {
  .gd-cards, .gd-grid, .gd-grid.two, .gd-grid.three, .gd-assets { grid-template-columns: 1fr; }
  .gd-linkgrid, .gd-badges { grid-template-columns: 1fr; }
  .gd-badge { flex-wrap: wrap; }
  .gd-card b { font-size: 1.5rem; }
}

/* =====================================================================
   Public profile: v2 options
   ===================================================================== */
.pbody { color: var(--ptext, var(--paper)); background: var(--pbg, var(--ink)); }
.pbody .p-handle, .pbody .p-loc, .pbody .p-foot { color: color-mix(in srgb, var(--ptext, #e8e6e1) 62%, transparent); }
.pbody .p-bio { color: color-mix(in srgb, var(--ptext, #e8e6e1) 88%, transparent); }
.pbody .p-links .si { color: var(--picon, currentColor); }
.with-panel .p-card {
  background: rgba(10, 10, 10, var(--pop, 0.55));
  backdrop-filter: blur(var(--pblur, 16px)); -webkit-backdrop-filter: blur(var(--pblur, 16px));
  border-radius: var(--prad, 26px);
}
.with-panel.no-border .p-card { border-color: transparent; }
.with-panel.grad .p-card { background: linear-gradient(145deg, color-mix(in srgb, var(--g1) calc(var(--pop, .55) * 30%), transparent), color-mix(in srgb, var(--g2) calc(var(--pop, .55) * 60%), rgba(10, 10, 10, var(--pop, .55)))); }
.with-panel.grad.border-on .p-card { border-color: color-mix(in srgb, var(--g1) 40%, transparent); }
.av-rounded .p-avatar { border-radius: calc(var(--prad, 26px) * 0.9); }

/* badges with icons */
.p-badges.icons { gap: 6px; }
.p-badges.icons .p-bdg { position: relative; display: inline-grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 9px; background: rgba(0, 0, 0, 0.35); }
.p-bdg .bdg-ic { width: 20px; height: 20px; }
.p-bdg::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(4px);
  padding: 5px 9px; border-radius: 8px; background: #f2f2f2; color: #0a0a0a; font-family: var(--sans); font-size: 0.72rem; font-weight: 700;
  white-space: nowrap; letter-spacing: 0; text-transform: none; opacity: 0; pointer-events: none; transition: 0.15s;
}
.p-bdg:hover::after { opacity: 1; transform: translateX(-50%); }
.glow-badges .p-bdg .bdg-ic { filter: drop-shadow(0 0 6px currentColor); }
.glow-name .p-name { text-shadow: 0 0 16px var(--accent), 0 0 34px color-mix(in srgb, var(--accent) 50%, transparent); }
.glow-socials .p-links .si { filter: drop-shadow(0 0 6px var(--picon, currentColor)); }
.name-rainbow .p-name {
  background: linear-gradient(90deg, #ff6b6b, #ffd93d, #6bcb77, #4d96ff, #c77dff, #ff6b6b) 0 0 / 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 6s linear infinite;
}

/* icons-only link style */
.btn-icons .p-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; border-top: 0; margin-top: 24px; }
.btn-icons .p-links a { padding: 6px; border: 0; }
.btn-icons .p-links a::after { content: none; }
.btn-icons .p-links a span:not(.si) { display: none; }
.btn-icons .p-links .si { width: 28px; height: 28px; }
.btn-icons .p-links a:hover { padding: 6px; transform: translateY(-3px); }
.align-left.btn-icons .p-links { justify-content: flex-start; }

/* background effects + cursor canvas */
.p-fx { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.p-cursor-fx { position: fixed; inset: 0; z-index: 40; pointer-events: none; }
.p-volume { position: fixed; right: 18px; bottom: 18px; z-index: 5; display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--rule-2); background: rgba(13, 13, 12, 0.55); backdrop-filter: blur(8px); }
.p-volume button { border: 0; background: none; color: inherit; font-size: 1rem; width: 22px; }
.p-volume input { width: 100px; accent-color: var(--accent); }

/* =====================================================================
   Profile v3: modern two-column layout, enter screen, badge cards
   ===================================================================== */
.p-bg.plain { background: var(--pbg, #000); }
.pbody { background: var(--pbg, #000); }

/* custom link icon images */
.si-img { width: 18px; height: 18px; flex: none; object-fit: contain; border-radius: 4px; }
.btn-icons .p-links .si-img { width: 28px; height: 28px; }

/* badge pill + white hover cards */
.p-badges.icons {
  display: inline-flex; flex-wrap: wrap; gap: 4px; margin-top: 14px;
  padding: 6px 8px; border-radius: 999px; background: #0d0d0d; border: 1px solid #1f1f1f;
}
.p-badges.icons .p-bdg { width: 28px; height: 28px; border-radius: 50%; background: none; outline: none; }
.p-badges.icons .p-bdg .bdg-ic { width: 20px; height: 20px; }
.p-bdg::after { content: none !important; }
.p-tip {
  position: absolute; bottom: calc(100% + 12px); left: 50%; z-index: 20;
  transform: translate(-50%, 4px); width: max-content; max-width: 230px;
  padding: 10px 14px; border-radius: 11px; background: #fff; color: #111; text-align: center;
  font-family: var(--sans); line-height: 1.3; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  opacity: 0; pointer-events: none; transition: opacity 0.15s, transform 0.15s;
}
.p-tip b { display: block; font-size: 0.88rem; font-weight: 800; }
.p-tip small { display: block; font-size: 0.78rem; color: #333; margin-top: 2px; }
.p-tip:empty { display: none; }
.p-tip::after { content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 7px solid transparent; border-top-color: #fff; }
.p-bdg:hover .p-tip, .p-bdg:focus .p-tip { opacity: 1; transform: translate(-50%, 0); }

/* heavy font */
.font-heavy .p-name { font-family: "Archivo Black", var(--sans); font-weight: 400; letter-spacing: -0.03em; }

/* ---------- modern layout ---------- */
.layout-split .p-grain { opacity: 0.05; }
.layout-split .profile { padding: 60px 20px; }
.sp-grid { display: grid; grid-template-columns: 320px 1px 290px; gap: 30px; align-items: center; }
.sp-grid.solo { grid-template-columns: 340px; }
.sp-grid.solo .sp-div, .sp-grid.solo .sp-right { display: none; }
.sp-div { align-self: stretch; min-height: 300px; background: rgba(255, 255, 255, 0.1); }
.layout-split .p-card { width: 100%; max-width: none; text-align: left; }
.layout-split .p-avatar { width: 104px; height: 104px; margin: 0 0 16px; display: block; }
.layout-split .p-avatar.letter { display: grid; place-items: center; font-size: 2.6rem; font-family: var(--sans); font-weight: 800; }
.layout-split .p-name { font-size: 2.5rem; line-height: 1; color: color-mix(in srgb, var(--ptext, #e8e6e1) 82%, #000); }
.layout-split .p-handle { font-family: var(--sans); font-size: 1.05rem; color: var(--ptext, #e8e6e1); margin-top: 6px; }
.layout-split .p-badges, .layout-split .p-foot { justify-content: flex-start; }
.layout-split .p-bio { margin: 26px 0 0; max-width: none; line-height: 1.85; }
.layout-split .p-bio span {
  font-family: var(--mono); font-size: 0.82rem; color: var(--ptext, #e8e6e1);
  background: #1c1c1c; padding: 3px 6px; border-radius: 3px;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.layout-split .p-bio.typing::after { content: none; }
.layout-split .p-bio.typing span::after { content: "|"; margin-left: 1px; color: var(--accent); animation: caret 1s steps(1) infinite; }
.p-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 14px; font-size: 0.85rem; color: color-mix(in srgb, var(--ptext, #e8e6e1) 62%, transparent); }
.layout-classic .p-meta { justify-content: center; }
.align-left.layout-classic .p-meta { justify-content: flex-start; }
.p-meta .p-loc { margin: 0; }
.p-joined::before { content: "◷ "; }
.layout-split .btn-icons .p-links, .layout-split.btn-icons .p-links { justify-content: flex-start; margin-top: 22px; gap: 10px; }
.layout-split.btn-icons .p-links a { padding: 4px; }
.layout-split.btn-icons .p-links .si, .layout-split.btn-icons .p-links .si-img { width: 24px; height: 24px; }
.layout-split .p-links { margin-top: 22px; }
.p-views { display: flex; align-items: center; gap: 7px; margin-top: 44px; font-weight: 600; font-size: 0.95rem; color: var(--ptext, #e8e6e1); }
.p-views svg { width: 16px; height: 16px; fill: currentColor; }

/* right column cards */
.sp-right { display: flex; flex-direction: column; gap: 12px; transition: opacity 0.6s ease 0.1s, transform 0.6s ease 0.1s; }
.pbody:not(.in) .sp-right, .pbody:not(.in) .sp-div { opacity: 0; }
.sp-card {
  padding: 16px; border-radius: 16px; background: #0a0a0a; border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.04); color: var(--ptext, #e8e6e1); text-align: left;
}
.with-panel .sp-card { background: rgba(10, 10, 10, var(--pop, 0.55)); backdrop-filter: blur(var(--pblur, 16px)); -webkit-backdrop-filter: blur(var(--pblur, 16px)); }
.sp-city { font-size: 1.15rem; font-weight: 500; }
.sp-tz { font-size: 0.8rem; font-weight: 500; margin-bottom: 6px; }
.sp-time { font-size: 1.45rem; font-weight: 800; letter-spacing: -0.01em; }
.sp-off { color: #8a8a8a; }
.sp-row { display: flex; gap: 12px; align-items: center; }
.sp-pic { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; background: #1a1a1a; flex: none; }
.sp-name { font-size: 1.1rem; font-weight: 500; }
.sp-handle { font-size: 0.8rem; font-weight: 500; margin-bottom: 2px; }
.sp-stat { font-size: 0.8rem; font-weight: 500; line-height: 1.4; }
.sp-stat b { font-weight: 800; }
.sp-btn { display: inline-block; margin-top: 6px; padding: 2px 10px; border-radius: 999px; background: #fff; color: #000; font-size: 0.78rem; font-weight: 600; text-decoration: none; }
.sp-btn:hover { background: #ddd; }
.sp-foot { margin-top: 10px; font-size: 0.9rem; font-weight: 500; }
.sp-card.p-discord { margin: 0; display: flex; }

/* ---------- enter screen ---------- */
.enter { background: var(--pbg, #000); backdrop-filter: none; -webkit-backdrop-filter: none; font-family: var(--sans); letter-spacing: 0; }
.enter-inner { text-align: center; padding: 16px; animation: rise 0.9s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.enter-av { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; margin: 0 auto 22px; display: block; background: #1a1a1a; }
.enter-av.letter { display: grid; place-items: center; font-weight: 800; font-size: 1.8rem; color: var(--ptext, #e8e6e1); }
.enter-title { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 800; letter-spacing: -0.045em; line-height: 1; color: var(--ptext, #f2f2f2); margin-bottom: 28px; }
.enter-btn { border: 0; background: none; color: var(--ptext, #f2f2f2); font: 500 1rem var(--sans); padding: 0 0 2px; border-bottom: 1px solid currentColor; opacity: 0.85; cursor: pointer; }
.enter-btn:hover { opacity: 1; }

@media (max-width: 760px) {
  .sp-grid, .sp-grid.solo { grid-template-columns: 1fr; width: 100%; max-width: 360px; gap: 26px; }
  .sp-div { min-height: 1px; height: 1px; }
  .p-views { margin-top: 26px; }
}

/* dashboard: enter preview, info card editor, custom link icons */
.gd .bdg-ic svg, .pbody .bdg-ic svg { width: 100%; height: 100%; fill: currentColor; stroke: none; }
.gd-enter-preview {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  min-height: 220px; padding: 20px; border-radius: 16px; background: #000; border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center; transition: opacity 0.2s;
}
.ep-av { width: 48px; height: 48px; border-radius: 50%; background: #1a1a1a center / cover; display: grid; place-items: center; font-weight: 800; }
.gd-enter-preview b { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.045em; line-height: 1; word-break: break-word; }
.gd-enter-preview u { font-size: 0.85rem; text-underline-offset: 4px; color: #ddd; }
.gd-card-edit { display: flex; gap: 16px; align-items: flex-end; }
.gd-card-img {
  position: relative; width: 74px; height: 74px; flex: none; border-radius: 14px; cursor: pointer;
  display: grid; place-items: center; background: #141414 center / cover; border: 1px dashed rgba(255, 255, 255, 0.2); color: #aaa;
}
.gd-card-img:hover { border-color: rgba(255, 255, 255, 0.45); }
.gd-card-img .gd-asset-x { top: -8px; right: -8px; width: 24px; height: 24px; border-radius: 50%; font-size: 0.7rem; }
.gd-icon-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.gd-icon-prev { width: 38px; height: 38px; border-radius: 10px; background: #141414; display: grid; place-items: center; }
.gd-icon-prev .si, .gd-icon-prev .si-img { width: 22px; height: 22px; }
.gd-link-body .si-img { width: 18px; height: 18px; }
@media (max-width: 560px) { .gd-card-edit { flex-direction: column; align-items: stretch; } }

/* =====================================================================
   Premium: animations, fonts, border, player, second tab
   ===================================================================== */
/* text font */
.tfont-serif .p-card, .tfont-serif .sp-right { font-family: "Instrument Serif", Georgia, serif; }
.tfont-mono .p-card, .tfont-mono .sp-right { font-family: var(--mono); }
.tfont-system .p-card, .tfont-system .sp-right { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; }
.layout-split:not(.tfont-manrope) .p-bio span { font-family: inherit; }

/* opening animations */
.anim-none .p-card, .anim-none .sp-right, .anim-none .sp-div { transition: none !important; }
.anim-unfold.in .sp-grid, .anim-unfold.in.layout-classic .p-card { animation: p-unfold 1s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes p-unfold { from { clip-path: inset(0 50% 0 50%); opacity: 0.2; } to { clip-path: inset(0 0 0 0); opacity: 1; } }
.anim-slide.in .p-card, .anim-slide.in .sp-right { animation: p-slide 0.8s ease both; }
.anim-slide.in .sp-right { animation-delay: 0.12s; }
@keyframes p-slide { from { transform: translateY(40px); opacity: 0; } }
.anim-zoom.in .p-card, .anim-zoom.in .sp-right { animation: p-zoom 0.7s ease both; }
@keyframes p-zoom { from { transform: scale(0.92); opacity: 0; } }

/* profile border */
.framed .sp-grid, .framed.layout-classic .p-card {
  padding: 34px; border-radius: var(--prad, 26px);
  border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(10, 10, 10, 0.35);
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.05), inset 0 0 30px rgba(255, 255, 255, 0.02);
}
.parallax { transition: transform 0.12s ease-out; will-change: transform; }

/* social links alignment (modern layout) */
.links-center.layout-split .p-links { justify-content: center; }
.links-right.layout-split .p-links { justify-content: flex-end; }

/* music player */
.p-player { display: flex; flex-direction: column; gap: 8px; }
.p-player.floating { position: fixed; left: 18px; bottom: 18px; z-index: 6; width: 290px; }
.pl-row { display: flex; align-items: center; gap: 12px; }
.pl-art { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: #1a1a1a; flex: none; }
.pl-art.letter { display: grid; place-items: center; font-weight: 800; }
.pl-info { min-width: 0; }
.pl-info b { display: block; font-size: 0.92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-info small { font-size: 0.75rem; color: #8a8a8a; }
.pl-bar { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.12); overflow: hidden; cursor: pointer; margin-top: 4px; }
.pl-bar span { display: block; height: 100%; width: 0; background: var(--ptext, #e8e6e1); }
.pl-times { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 0.66rem; color: #8a8a8a; }
.pl-ctr { display: flex; justify-content: center; align-items: center; gap: 22px; }
.pl-ctr button { border: 0; background: none; color: var(--ptext, #e8e6e1); padding: 4px; cursor: pointer; display: grid; place-items: center; }
.pl-ctr button:disabled { opacity: 0.3; cursor: default; }
.pl-ctr svg { width: 14px; height: 14px; fill: currentColor; }
.pl-ctr .pp { width: 36px; height: 36px; border-radius: 50%; background: var(--ptext, #f2f2f2); color: #000; }
.pl-ctr .pp svg { width: 15px; height: 15px; }

/* second tab */
.has-tab2 .profile { position: relative; }
.p-tab2 { min-height: 100vh; padding: 70px 20px 90px; }
.p-tab2-title { text-align: center; font-size: 1.8rem; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 24px; color: var(--ptext, #f2f2f2); }
.p-tab2-grid { max-width: 960px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.p-tab2-item {
  position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1); background: linear-gradient(135deg, #1b1b1b, #0b0b0b); text-decoration: none; color: #fff;
}
.p-tab2-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
a.p-tab2-item:hover img { transform: scale(1.05); }
.p-tab2-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent 45%); }
.p-tab2-label { position: absolute; left: 18px; bottom: 14px; z-index: 1; display: flex; align-items: center; gap: 6px; font-size: 1.2rem; font-weight: 800; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6); }
.p-tab2-label svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.p-scroll-hint { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); width: 22px; height: 34px; border: 2px solid #bbb; border-radius: 12px; display: flex; justify-content: center; }
.p-scroll-hint span { width: 2px; height: 6px; margin-top: 7px; border-radius: 2px; background: #bbb; animation: p-wheel 1.6s ease-in-out infinite; }
@keyframes p-wheel { 60% { transform: translateY(8px); opacity: 0; } 100% { opacity: 0; } }
.p-dots { position: fixed; right: 20px; top: 50%; transform: translateY(-50%); z-index: 10; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.p-dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 999px; background: #555; cursor: pointer; transition: height 0.3s, background 0.3s; }
.p-dots button.on { height: 20px; background: #fff; }
@media (max-width: 700px) { .p-tab2-grid { grid-template-columns: 1fr; } .p-dots { right: 8px; } .p-player.floating { left: 12px; right: 12px; width: auto; } }

/* ---------- dashboard: audio manager, second tab editor, metadata ---------- */
.gd-audios { display: flex; flex-direction: column; gap: 8px; max-height: 320px; overflow-y: auto; }
.gd-audio { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 14px; background: #151515; border: 1px solid rgba(255, 255, 255, 0.07); cursor: pointer; }
.gd-audio:hover { border-color: rgba(255, 255, 255, 0.2); }
.gd-audio.active { border-color: rgba(255, 255, 255, 0.45); }
.gd-audio-ic { width: 46px; height: 46px; flex: none; border-radius: 12px; background: #1f1f1f; display: grid; place-items: center; font-size: 1.3rem; }
.gd-audio-info { flex: 1; min-width: 0; }
.gd-audio-info b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gd-audio-info small { color: #8a8a8a; font-size: 0.8rem; }
.gd-audio-tools { display: flex; align-items: center; gap: 6px; align-self: flex-start; }
.gd-audio-tools button { width: 28px; height: 28px; border-radius: 8px; border: 0; background: #202020; color: #aaa; display: grid; place-items: center; }
.gd-audio-tools button svg { width: 14px; height: 14px; }
.gd-audio-tools button:hover { color: #fff; }
.gd-audio-tools button.del { color: #e07a6a; }
.gd-active { padding: 3px 8px; border-radius: 999px; background: #f2f2f2; color: #000; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.04em; }
.gd-check-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; border-radius: 14px; background: #151515; border: 1px solid rgba(255, 255, 255, 0.07); }
.gd-check-row b { display: block; }
.gd-check-row small { color: #8a8a8a; font-size: 0.82rem; }
.gd-check { width: 24px; height: 24px; flex: none; border-radius: 7px; border: 2px solid #555; background: none; display: grid; place-items: center; }
.gd-check.on { background: #f2f2f2; border-color: #f2f2f2; }
.gd-check.on::after { content: ""; width: 6px; height: 11px; border: solid #000; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translate(-1px, -1px); }
.gd-inline-ctl { display: flex; gap: 8px; align-items: center; }
.gd-tab2-list { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.gd-tab2-item { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 14px; background: #131313; border: 1px solid rgba(255, 255, 255, 0.06); }
.gd-tab2-img { width: 120px; aspect-ratio: 16 / 9; flex: none; border-radius: 10px; background: #1a1a1a center / cover; display: grid; place-items: center; cursor: pointer; border: 1px dashed rgba(255, 255, 255, 0.18); color: #999; }
.gd-tab2-fields { flex: 1; min-width: 0; display: grid; gap: 8px; }
.gd-tab2-tools { display: flex; flex-direction: column; gap: 4px; }
.gd-meta-prev b { font-size: 0.98rem; }
.gd-embed { margin-top: 14px; padding: 14px 16px; border-left: 4px solid #3a3a3a; border-radius: 6px; background: #121212; }
.gd-embed a { color: #6cb6ff; font-weight: 700; font-size: 1.1rem; }
.gd-embed p { color: #bbb; font-size: 0.86rem; margin: 6px 0 12px; min-height: 1em; }
.gd-embed-img { position: relative; aspect-ratio: 1.91 / 1; border-radius: 10px; background: #1a1a1a center / cover; overflow: hidden; }
.gd-embed-img.empty::before { content: "No image yet"; position: absolute; inset: 0; display: grid; place-items: center; color: #666; font-size: 0.85rem; }
.gd-embed-ov { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding-bottom: 12%; background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent 60%); }
.gd-embed-ov b { font-size: 2rem; font-weight: 600; }
.gd-embed-ov span { color: #ddd; }
#meta-image, #meta-favicon { height: 130px; }
@media (max-width: 560px) { .gd-tab2-item { flex-wrap: wrap; } .gd-tab2-img { width: 100%; } .gd-tab2-tools { flex-direction: row; } }

/* =====================================================================
   Volume (top left), player bar, Discord + Roblox cards
   ===================================================================== */
.p-vol {
  position: fixed; top: 16px; left: 16px; z-index: 20;
  display: flex; align-items: center; gap: 0; height: 58px; padding: 0 14px;
  border-radius: 14px; background: rgba(120, 120, 120, 0.22); border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: gap 0.25s ease;
}
.p-vol button { width: 30px; height: 30px; border: 0; background: none; color: #f2f2f2; display: grid; place-items: center; cursor: pointer; padding: 0; }
.p-vol button svg { width: 26px; height: 26px; fill: currentColor; }
.p-vol input[type=range] {
  -webkit-appearance: none; appearance: none; width: 0; opacity: 0; height: 8px; margin: 0; border-radius: 99px; cursor: pointer;
  background: linear-gradient(90deg, #fff var(--v, 35%), rgba(255, 255, 255, 0.25) var(--v, 35%));
  transition: width 0.25s ease, opacity 0.2s ease;
}
.p-vol input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 0; height: 0; }
.p-vol input[type=range]::-moz-range-thumb { width: 0; height: 0; border: 0; }
.p-vol:hover, .p-vol:focus-within { gap: 14px; }
.p-vol:hover input[type=range], .p-vol:focus-within input[type=range] { width: 114px; opacity: 1; }
@media (pointer: coarse) { .p-vol { gap: 12px; } .p-vol input[type=range] { width: 90px; opacity: 1; } }

/* slim player bar */
.p-player.bar {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 15;
  width: min(700px, calc(100% - 24px)); display: flex; align-items: center; gap: 18px;
  padding: 0; background: none; border: 0; box-shadow: none;
  color: #e9e9e9; font-family: var(--mono);
}
.pl-art2 { width: 62px; height: 62px; flex: none; border-radius: 12px; display: grid; place-items: center; background: rgba(120, 120, 120, 0.4); backdrop-filter: blur(8px); }
.pl-art2 svg { width: 34px; height: 34px; fill: #fff; }
.pl-mid { flex: 1; min-width: 0; }
.pl-mid b { display: block; font-size: 0.9rem; font-weight: 700; margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-line { display: flex; align-items: center; gap: 10px; font-size: 0.8rem; color: #ddd; }
.p-player.bar .pl-bar { flex: 1; height: 3px; margin: 0; background: rgba(255, 255, 255, 0.35); }
.p-player.bar .pl-bar span { background: #fff; }
.p-player.bar .pl-ctr { gap: 16px; }
.p-player.bar .pl-ctr button { color: #f2f2f2; }
.p-player.bar .pl-ctr svg { width: 14px; height: 14px; opacity: 0.85; }
.p-player.bar .pl-ctr .pp { width: auto; height: auto; background: none; color: #fff; }
.p-player.bar .pl-ctr .pp svg { width: 22px; height: 22px; opacity: 1; }
.has-player .p-tab2 { padding-bottom: 130px; }
.has-player .p-scroll-hint { bottom: 110px; }
@media (max-width: 560px) { .p-player.bar { gap: 12px; } .pl-art2 { width: 48px; height: 48px; } }

/* Discord + Roblox cards (glass) */
.p-conn { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 24px; }
.p-conn:has(> .hidden + .hidden) { display: none; }
.p-conn .p-discord, .p-conn .p-rbx { margin: 0; }
.p-discord, .p-rbx {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 16px 18px; min-height: 92px;
  border-radius: 18px; background: rgba(150, 150, 150, 0.14); border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); text-align: left; color: var(--ptext, #f2f2f2);
}
.p-discord.hidden, .p-rbx.hidden { display: none; }
.dc-pic { width: 60px; height: 60px; }
.dc-dot { width: 18px; height: 18px; border-width: 3px; }
.dc-info b, .rbx-info b { font-family: var(--mono); font-size: 1rem; font-weight: 700; }
.dc-info small, .rbx-info small { font-family: var(--mono); }
.rbx-pic { width: 60px; height: 60px; flex: none; border-radius: 12px; overflow: hidden; background: rgba(0, 0, 0, 0.3); }
.rbx-pic img { width: 100%; height: 100%; object-fit: cover; }
.rbx-info { min-width: 0; flex: 1; }
.rbx-info b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rbx-info small { display: block; font-size: 0.75rem; color: color-mix(in srgb, var(--ptext, #e8e6e1) 60%, transparent); }
.rbx-stats { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 4px 0 6px; font-family: var(--mono); font-size: 0.75rem; color: color-mix(in srgb, var(--ptext, #e8e6e1) 75%, transparent); }
.rbx-btn { display: inline-block; padding: 2px 10px; border-radius: 6px; background: #2bb46a; color: #fff; font-family: var(--mono); font-size: 0.75rem; font-weight: 700; text-decoration: none; }
.rbx-btn:hover { background: #33c977; }
.rbx-tag { position: absolute; top: 10px; right: 12px; display: flex; align-items: center; gap: 4px; font-size: 0.72rem; color: rgba(255, 255, 255, 0.45); }
.rbx-tag .si { width: 12px; height: 12px; }

/* =====================================================================
   Dashboard v3: top bar, page headers, icon rail, switcher, badges, admin
   ===================================================================== */
.gd-top {
  position: sticky; top: 12px; z-index: 30;
  display: flex; align-items: center; gap: 12px; margin-bottom: 18px;
  padding: 10px 14px; border-radius: 18px;
  background: rgba(14, 14, 14, 0.85); border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.gd-crumbs { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; color: #9a9a9a; min-width: 0; }
.gd-crumbs i { font-style: normal; color: #555; }
.gd-crumbs b { color: #f2f2f2; font-weight: 600; white-space: nowrap; }
.gd-crumbs span:empty, .gd-crumbs span:empty + i { display: none; }
.gd-top-acts { margin-left: auto; display: flex; gap: 8px; }
.gd-top-btn {
  display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px; border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.1); background: #121212; color: #cfcfcf; font-size: 0.85rem; text-decoration: none; cursor: pointer;
}
.gd-top-btn.icon { width: 36px; padding: 0; justify-content: center; }
.gd-top-btn:hover { color: #fff; border-color: rgba(255, 255, 255, 0.25); }
.gd-top-btn svg { width: 16px; height: 16px; }
.gd-announce {
  display: flex; align-items: center; justify-content: center; gap: 12px; margin: -6px 0 18px;
  padding: 10px 14px; border-radius: 14px; background: #f2f2f2; color: #0a0a0a; font-weight: 600; font-size: 0.9rem; text-align: center;
}
.gd-announce a { color: inherit; }
.gd-announce button { border: 0; background: none; color: #0a0a0a; opacity: 0.6; cursor: pointer; }
.gd-pagehead { margin: 6px 0 26px; }
.gd-eyebrow { font-family: var(--mono); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.28em; color: #bdbdbd; }
.gd-ph-title { font-size: 2.2rem; font-weight: 300; font-style: italic; letter-spacing: -0.03em; margin-top: 2px; }
.gd-pagehead .gd-muted { margin-top: 6px; }

/* icon rail */
.gd-logo-row { display: flex; align-items: center; }
body.rail .gd-shell { grid-template-columns: 84px 1fr; }
body.rail .gd-side { padding: 22px 12px 16px; align-items: center; }
body.rail .gd-hide-rail, body.rail .gd-search span, body.rail .gd-search kbd, body.rail .gd-sub,
body.rail .gd-side-box, body.rail .gd-me-info, body.rail .gd-me-more, body.rail #share-open { display: none !important; }
body.rail .gd-search { width: 46px; justify-content: center; padding: 11px 0; }
body.rail .gd-item, body.rail .gd-group-head { font-size: 0; width: 52px; justify-content: center; padding: 12px 0; gap: 0; }
body.rail .gd-group-head .chev { display: none; }
body.rail .gd-item svg, body.rail .gd-group-head svg { width: 20px; height: 20px; }
body.rail .gd-me { padding: 6px; background: none; border: 0; }

/* switch profile menu */
.gd-menu-sub { display: flex !important; justify-content: space-between; }
.gd-menu-sub i { font-style: normal; color: #777; }
.gd-menu .danger { color: #ff8a80 !important; }
.gd-accounts { display: flex; flex-direction: column; gap: 2px; padding: 4px; margin: 2px 4px 6px; border-radius: 12px; background: #0e0e0e; border: 1px solid rgba(255, 255, 255, 0.06); }
.gd-acc { display: flex !important; align-items: center; gap: 10px; }
.gd-acc-av { width: 28px; height: 28px; flex: none; border-radius: 50%; background: #262626 center / cover; display: grid; place-items: center; font-weight: 800; font-size: 0.8rem; }
.gd-acc-text { min-width: 0; flex: 1; }
.gd-acc-text b { display: block; font-size: 0.85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gd-acc-text small { display: block; font-size: 0.72rem; color: #808080; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gd-acc em { font-style: normal; color: #bbb; }
.gd-acc.on { background: rgba(255, 255, 255, 0.06) !important; }

/* badges page */
.gd-badge.locked { border-style: dashed; }
.gd-badge.locked .bdg-ic { filter: grayscale(0.85); opacity: 0.55; }
.gd-rar { display: block; font-size: 0.75rem; font-weight: 700; margin: 1px 0 2px; }
.gd-badge-prog { margin-top: 8px; }
.gd-badge-prog .gd-progress { height: 5px; margin: 0 0 4px; }
.gd-badge-prog .gd-hint { margin: 0; font-size: 0.75rem; }
.gd-collection { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.gd-collection > div:first-child { flex: 1; min-width: 240px; }
.gd-collection b#col-count { display: inline-block; font-size: 2.2rem; font-weight: 800; letter-spacing: -0.04em; margin-right: 8px; }
.gd-collection small { display: inline; }
.gd-rarities { display: flex; flex-wrap: wrap; gap: 6px; }
.gd-rar-chip { padding: 4px 10px; border-radius: 999px; border: 1px solid; font-size: 0.75rem; font-weight: 700; }
.gd-warn { color: #facc15; font-size: 0.9rem; }
.code-in { font-family: var(--mono); letter-spacing: 0.12em; text-transform: uppercase; }
.gd-verify-form .gd-input { width: 100%; }

/* admin */
.gd-count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 6px; border-radius: 999px; background: #f2f2f2; color: #000; font-style: normal; font-size: 0.68rem; font-weight: 800; }
.gd-rank { font-style: normal; font-family: var(--mono); font-size: 0.75rem; color: #777; width: 26px; }
a.gd-list-row { text-decoration: none; color: inherit; }
a.gd-list-row:hover { background: #1b1b1b; }
.gd-vr { margin: 0; }
.gd-vr-info { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; font-size: 0.9rem; }
.gd-vr-info a { color: #9ecbff; word-break: break-all; }
.gd-vr .inline { margin-top: 12px; }
table.codes td .bdg-ic { width: 16px; height: 16px; vertical-align: -3px; }

/* decoration preview */
.gd-deco-row { display: flex; gap: 20px; align-items: center; }
.gd-deco-prev { position: relative; width: 110px; height: 110px; flex: none; display: grid; place-items: center; }
.gd-deco-av { width: 80px; height: 80px; border-radius: 50%; background: #1d1d1d center / cover; display: grid; place-items: center; font-weight: 800; font-size: 1.8rem; }
.gd-deco-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }

@media (max-width: 860px) {
  .gd-top { top: 64px; }
  .gd-top-btn span { display: none; }
  .gd-ph-title { font-size: 1.8rem; }
}

/* =====================================================================
   Profile: avatar decoration
   ===================================================================== */
.p-av-wrap { position: relative; display: inline-block; margin-bottom: 20px; }
.p-av-wrap .p-avatar { margin: 0 !important; display: block; }
.layout-split .p-av-wrap { display: block; width: fit-content; margin-bottom: 16px; }
.p-deco { position: absolute; left: 50%; top: 50%; width: 122%; height: 122%; transform: translate(-50%, -50%); pointer-events: none; object-fit: contain; }

/* =====================================================================
   Badges box v2: glass box that wraps neatly, beside the name
   ===================================================================== */
.p-namerow { display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; }
.layout-classic .p-namerow { justify-content: center; }
.p-badges.icons {
  display: inline-flex; flex-wrap: wrap; justify-content: center; align-content: center;
  gap: 2px 4px; max-width: 300px; margin-top: 14px; padding: 7px 10px;
  border-radius: 20px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}
.p-badges.icons.many { max-width: 270px; }
.p-namerow.with-badges .p-badges.icons { margin-top: 0; }
.p-badges.icons .p-bdg { width: 30px; height: 30px; border-radius: 9px; transition: transform 0.15s, background 0.15s; }
.p-badges.icons .p-bdg:hover { transform: translateY(-2px); background: rgba(255, 255, 255, 0.08); }
.p-badges.icons .p-bdg .bdg-ic { width: 19px; height: 19px; }
.layout-classic .p-badges.icons { margin-left: auto; margin-right: auto; }
@media (max-width: 760px) { .p-namerow { gap: 10px; } .p-badges.icons { max-width: 100%; } }
