/* voidgen theme — handwritten, no build step. Dark by design. */
:root {
  --bg: #0b0b10;
  --bg-2: #101016;
  --panel: #15151c;
  --panel-2: #1b1b24;
  --line: #26262f;
  --line-2: #33333f;
  --text: #ecebf1;
  --muted: #8d8c9c;
  --accent: #c8ff00;
  --accent-ink: #0b0b10;
  --danger: #ff4d6d;
  --ok: #4ade80;
  --warn: #fbbf24;
  --info: #7cc4ff;
  --radius: 14px;
  --font: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --display: 'Syne', var(--font);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.55;
  min-height: 100vh; display: flex; flex-direction: column;
  background-image: radial-gradient(1200px 600px at 80% -10%, rgba(200,255,0,.06), transparent 60%), radial-gradient(800px 500px at -10% 110%, rgba(124,196,255,.05), transparent 60%);
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.02em; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: 2rem; } h2 { font-size: 1.4rem; } h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
code { background: var(--panel-2); padding: .1em .4em; border-radius: 6px; font-size: .9em; }
pre { background: var(--panel-2); padding: 12px; border-radius: 10px; overflow: auto; font-size: .85em; }
.muted { color: var(--muted); }
.small { font-size: .85em; }
.center { text-align: center; }
.inline { display: inline; }
.mt { margin-top: 16px; } .mb { margin-bottom: 16px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.row.between { justify-content: space-between; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 760px) { .grid2, .grid3 { grid-template-columns: 1fr; } }

/* top bar */
.announce { background: var(--accent); color: var(--accent-ink); text-align: center; padding: 8px 16px; font-weight: 600; font-size: .9em; }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; border-bottom: 1px solid var(--line); background: rgba(11,11,16,.7); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 20; }
.brand { font-family: var(--display); font-weight: 800; font-size: 1.25rem; color: var(--text); letter-spacing: -.03em; display: inline-flex; align-items: center; gap: 6px; }
.brand:hover { text-decoration: none; }
.brand-mark { color: var(--accent); }
.brand.big { font-size: 2.2rem; justify-content: center; }
.topbar nav { display: flex; gap: 18px; align-items: center; font-weight: 500; }
.topbar nav a { color: var(--text); }
.topbar nav a:hover { color: var(--accent); text-decoration: none; }
.pill { background: var(--accent); color: var(--accent-ink); border-radius: 999px; padding: 0 7px; font-size: .75em; font-weight: 700; }
.linklike { background: none; border: 0; color: var(--muted); cursor: pointer; font: inherit; padding: 0; }
.linklike:hover { color: var(--danger); }

.page { width: 100%; max-width: 560px; margin: 0 auto; padding: 32px 16px 48px; flex: 1; }
.page.wide { max-width: 1180px; }
.foot { text-align: center; color: var(--muted); font-size: .8em; padding: 24px; border-top: 1px solid var(--line); }
.foot a { color: var(--muted); }

/* flash */
.flash { padding: 12px 14px; border-radius: 10px; margin-bottom: 16px; border: 1px solid var(--line-2); background: var(--panel); font-size: .93em; }
.flash-success { border-color: rgba(74,222,128,.4); background: rgba(74,222,128,.08); }
.flash-error { border-color: rgba(255,77,109,.4); background: rgba(255,77,109,.08); }
.flash-info { border-color: rgba(124,196,255,.4); background: rgba(124,196,255,.08); }
.flash-warn { border-color: rgba(251,191,36,.4); background: rgba(251,191,36,.08); }

/* cards & forms */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 16px; }
.card h2:first-child, .card h1:first-child { margin-top: 0; }
label { display: block; font-size: .85em; font-weight: 600; color: var(--muted); margin: 14px 0 6px; }
label:first-child { margin-top: 0; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=number], input[type=search], input[type=datetime-local], select, textarea {
  width: 100%; background: var(--bg-2); border: 1px solid var(--line-2); color: var(--text); padding: 11px 12px; border-radius: 10px; font: inherit; outline: none; transition: border-color .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
input[type=color] { width: 44px; height: 36px; padding: 2px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--bg-2); cursor: pointer; }
input[type=range] { width: 100%; accent-color: var(--accent); }
input[type=file] { color: var(--muted); font-size: .9em; }
input[type=checkbox] { accent-color: var(--accent); width: 16px; height: 16px; }
textarea { min-height: 90px; resize: vertical; }
.hint { font-size: .8em; color: var(--muted); margin-top: 5px; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 500; color: var(--text); margin: 10px 0; font-size: .93em; }
.check input { margin: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 10px; padding: 11px 18px; font: inherit; font-weight: 700; cursor: pointer; transition: transform .1s, filter .15s; text-decoration: none; }
.btn:hover { filter: brightness(1.08); text-decoration: none; transform: translateY(-1px); }
.btn.block { width: 100%; }
.btn.ghost { background: transparent; border: 1px solid var(--line-2); color: var(--text); }
.btn.ghost:hover { border-color: var(--accent); }
.btn.danger { background: var(--danger); color: #fff; }
.btn.sm { padding: 6px 11px; font-size: .85em; border-radius: 8px; }
.btn.xs { padding: 3px 8px; font-size: .78em; border-radius: 7px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.honey { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.avail { font-size: .8em; margin-top: 5px; min-height: 1.2em; }
.avail.ok { color: var(--ok); } .avail.bad { color: var(--danger); }

/* landing */
.hero { text-align: center; padding: 56px 0 32px; }
.hero h1 { font-size: clamp(2.4rem, 7vw, 4rem); margin-bottom: 12px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { color: var(--muted); font-size: 1.1em; max-width: 440px; margin: 0 auto 28px; }
.hero .actions { justify-content: center; }
.hero-url { display: inline-block; font-family: 'JetBrains Mono', monospace; background: var(--panel); border: 1px solid var(--line); padding: 8px 14px; border-radius: 999px; color: var(--muted); font-size: .9em; margin-bottom: 24px; }
.hero-url b { color: var(--accent); font-weight: 600; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 32px; }
.features div { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px; font-size: .9em; }
.features b { display: block; margin-bottom: 4px; color: var(--text); }
.features span { color: var(--muted); }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }
.topmini { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.topmini a { display: flex; align-items: center; gap: 8px; background: var(--panel); border: 1px solid var(--line); padding: 6px 12px 6px 6px; border-radius: 999px; color: var(--text); font-size: .9em; }
.topmini a:hover { border-color: var(--accent); text-decoration: none; }
.topmini img, .topmini .ava { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; background: var(--panel-2); display: inline-grid; place-items: center; font-size: .7em; }

/* tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs a, .tabs button { padding: 10px 14px; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; background: none; border-top: 0; border-left: 0; border-right: 0; font: inherit; cursor: pointer; }
.tabs a.active, .tabs button.active { color: var(--text); border-bottom-color: var(--accent); }
.tabs a:hover { text-decoration: none; color: var(--text); }
.tabs .count { background: var(--panel-2); border-radius: 999px; padding: 0 7px; font-size: .78em; margin-left: 4px; }
.tabpanel { display: none; } .tabpanel.active { display: block; }

/* tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9em; }
th, td { text-align: left; padding: 10px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: .82em; text-transform: uppercase; letter-spacing: .04em; }
tr:hover td { background: rgba(255,255,255,.015); }
td .btn { margin: 1px; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .78em; font-weight: 600; background: var(--panel-2); color: var(--muted); border: 1px solid var(--line-2); }
.tag.ok { color: var(--ok); border-color: rgba(74,222,128,.4); }
.tag.bad { color: var(--danger); border-color: rgba(255,77,109,.4); }
.tag.warn { color: var(--warn); border-color: rgba(251,191,36,.4); }
.tag.info { color: var(--info); border-color: rgba(124,196,255,.4); }
.tag.accent { color: var(--accent); border-color: rgba(200,255,0,.4); }
.pagination { display: flex; gap: 4px; margin-top: 16px; flex-wrap: wrap; }
.pagination a { padding: 6px 11px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); font-size: .9em; }
.pagination a.active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 6px 14px; font-size: .92em; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; word-break: break-word; }
.flags { display: flex; gap: 6px; flex-wrap: wrap; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.stat b { display: block; font-family: var(--display); font-size: 1.8rem; line-height: 1; margin-bottom: 4px; }
.stat span { color: var(--muted); font-size: .85em; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 90px; margin-top: 10px; }
.bars div { flex: 1; background: var(--accent); opacity: .8; border-radius: 3px 3px 0 0; min-height: 2px; position: relative; }
.bars div:hover { opacity: 1; }
.bars div::after { content: attr(data-l); position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); font-size: .7em; color: var(--muted); white-space: nowrap; opacity: 0; }
.bars div:hover::after { opacity: 1; }

/* admin layout */
.admin { display: grid; grid-template-columns: 220px 1fr; gap: 24px; }
.admin-nav { position: sticky; top: 80px; align-self: start; display: flex; flex-direction: column; gap: 2px; }
.admin-nav a { padding: 8px 12px; border-radius: 8px; color: var(--muted); font-weight: 500; display: flex; justify-content: space-between; align-items: center; }
.admin-nav a.active, .admin-nav a:hover { background: var(--panel); color: var(--text); text-decoration: none; }
.admin-nav .sep { font-size: .72em; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 14px 12px 4px; opacity: .7; }
@media (max-width: 900px) { .admin { grid-template-columns: 1fr; } .admin-nav { position: static; flex-direction: row; flex-wrap: wrap; } .admin-nav .sep { display: none; } }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.toolbar input, .toolbar select { width: auto; padding: 7px 10px; }
.bulkbar { display: none; gap: 8px; align-items: center; padding: 10px; background: var(--panel-2); border-radius: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.bulkbar.show { display: flex; }
.filebox { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.filebox figure { margin: 0; background: var(--panel-2); border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.filebox img, .filebox video { width: 100%; height: 110px; object-fit: cover; display: block; background: #000; }
.filebox figcaption { padding: 8px; font-size: .75em; color: var(--muted); }
.gallery-audio { height: 110px; display: grid; place-items: center; color: var(--muted); }

/* dashboard */
.dash { display: grid; grid-template-columns: 1fr 380px; gap: 24px; align-items: start; }
@media (max-width: 1000px) { .dash { grid-template-columns: 1fr; } .dash-preview { order: -1; } }
.dash-preview { position: sticky; top: 80px; }
.preview-frame { border-radius: 24px; overflow: hidden; border: 1px solid var(--line-2); aspect-ratio: 9/16; max-height: 70vh; position: relative; background: #000; }
.preview-frame .vg-profile { position: absolute; inset: 0; min-height: 0; transform-origin: top left; }
.preview-label { font-size: .8em; color: var(--muted); margin-bottom: 8px; display: flex; justify-content: space-between; }
.link-item { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; background: var(--bg-2); }
.link-item .ico { width: 24px; height: 24px; display: grid; place-items: center; color: var(--muted); }
.link-item .ico img, .link-item .ico svg { width: 20px; height: 20px; }
.link-item small { color: var(--muted); display: block; word-break: break-all; }
.link-item .ops { display: flex; gap: 4px; }
.quota { height: 6px; background: var(--panel-2); border-radius: 999px; overflow: hidden; margin: 6px 0; }
.quota i { display: block; height: 100%; background: var(--accent); }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatches label { margin: 0; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; font-size: .78em; }
.thumb { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; border: 1px solid var(--line-2); background: var(--bg-2); }
.thumb.round { border-radius: 50%; }
.filerow { display: flex; gap: 12px; align-items: center; }
.badge-pick { display: flex; gap: 8px; flex-wrap: wrap; }
.badge-pick label { margin: 0; display: inline-flex; gap: 6px; align-items: center; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 12px; font-weight: 500; color: var(--text); }

/* leaderboard */
.lb-top { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
@media (max-width: 600px) { .lb-top { grid-template-columns: 1fr; } }
.lb-top a { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 20px 12px; text-align: center; color: var(--text); display: block; position: relative; }
.lb-top a:hover { border-color: var(--accent); text-decoration: none; }
.lb-top a.first { border-color: #ffd166; background: linear-gradient(180deg, rgba(255,209,102,.08), var(--panel)); }
.lb-top .pos { position: absolute; top: 10px; left: 12px; font-family: var(--display); font-weight: 800; color: var(--muted); }
.lb-top img, .lb-top .ava { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; margin: 0 auto 8px; display: grid; place-items: center; background: var(--panel-2); font-family: var(--display); font-size: 1.6rem; }
.lb-top b { display: block; font-size: 1.05em; }
.lb-top span { color: var(--muted); font-size: .85em; }
.lb-row { display: grid; grid-template-columns: 40px 44px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; color: var(--text); background: var(--panel); }
.lb-row:hover { border-color: var(--accent); text-decoration: none; }
.lb-row .pos { font-family: var(--display); font-weight: 800; color: var(--muted); }
.lb-row img, .lb-row .ava { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--panel-2); display: grid; place-items: center; }
.lb-row small { color: var(--muted); display: block; }
.lb-row .views { color: var(--muted); font-weight: 600; }
.vg-badges-inline { display: inline-flex; gap: 3px; vertical-align: middle; margin-left: 4px; }
.vg-badges-inline .vg-badge { width: 18px; height: 18px; font-size: 11px; }

/* maintenance */
.maint { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 20px; }
.maint p { color: var(--muted); max-width: 400px; }

/* tooltip */
[data-tip] { position: relative; }
[data-tip]:hover::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); background: #000; color: #fff; padding: 6px 10px; border-radius: 8px; font-size: 12px; white-space: nowrap; z-index: 50; font-family: var(--font); font-weight: 500; pointer-events: none; }

/* modal */
.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: none; place-items: center; z-index: 100; padding: 16px; }
.modal-bg.show { display: grid; }
.modal { background: var(--panel); border: 1px solid var(--line-2); border-radius: 16px; padding: 24px; width: 100%; max-width: 460px; max-height: 90vh; overflow: auto; }

/* ============ PUBLIC PROFILE ============ */
.vg-profile {
  --vg-accent: #c8ff00; --vg-text: #f2f2f5; --vg-card: #141419; --vg-card-op: .85; --vg-radius: 24px; --vg-font: 'Inter'; --vg-bg: #0b0b10; --vg-bg2: #1a1030;
  position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 16px 60px; color: var(--vg-text);
  font-family: var(--vg-font), var(--font); overflow: hidden; background: var(--vg-bg);
}
body.profile-body { display: block; background-image: none; }
.vg-bg { position: absolute; inset: 0; z-index: 0; background: var(--vg-bg); }
.vg-profile[data-bgtype=gradient] .vg-bg { background: linear-gradient(160deg, var(--vg-bg), var(--vg-bg2)); }
.vg-bg img, .vg-bg video { width: 100%; height: 100%; object-fit: cover; display: block; }
.vg-profile[data-bgtype=color] .vg-bg img, .vg-profile[data-bgtype=color] .vg-bg video,
.vg-profile[data-bgtype=gradient] .vg-bg img, .vg-profile[data-bgtype=gradient] .vg-bg video { display: none; }
.vg-card {
  position: relative; z-index: 1; width: 100%; max-width: 440px; text-align: center; padding: 32px 24px 28px;
  border-radius: var(--vg-radius); background: color-mix(in srgb, var(--vg-card) calc(var(--vg-card-op) * 100%), transparent);
  border: 1px solid color-mix(in srgb, var(--vg-text) 10%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
}
@supports not (background: color-mix(in srgb, red 50%, blue)) { .vg-card { background: var(--vg-card); opacity: .97; } }
.vg-avatar-wrap { display: flex; justify-content: center; margin-bottom: 14px; }
.vg-avatar { width: 108px; height: 108px; border-radius: 50%; object-fit: cover; border: 3px solid var(--vg-accent); box-shadow: 0 0 0 6px color-mix(in srgb, var(--vg-accent) 18%, transparent); background: #000; }
.vg-avatar-empty { display: grid; place-items: center; font-size: 2.4rem; font-weight: 800; color: var(--vg-accent); background: color-mix(in srgb, var(--vg-accent) 12%, #000); }
.vg-name { font-family: inherit; font-size: 1.7rem; font-weight: 800; margin: 0; display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; letter-spacing: -.02em; }
.vg-badges { display: inline-flex; gap: 4px; }
.vg-badge { width: 24px; height: 24px; border-radius: 7px; display: inline-grid; place-items: center; font-size: 14px; background: color-mix(in srgb, var(--b, #fff) 18%, transparent); border: 1px solid color-mix(in srgb, var(--b, #fff) 45%, transparent); cursor: default; line-height: 1; }
.vg-badge img { width: 16px; height: 16px; }
.vg-handle { color: var(--vg-accent); font-weight: 600; opacity: .9; margin-top: 2px; font-size: .95em; }
.vg-bio { margin: 12px 0 0; opacity: .85; white-space: pre-line; font-size: .97em; }
.vg-bio:empty { display: none; }
.vg-links { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.vg-link {
  display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: calc(var(--vg-radius) * .6); color: var(--vg-text); font-weight: 600; text-decoration: none;
  background: color-mix(in srgb, var(--vg-text) 7%, transparent); border: 1px solid color-mix(in srgb, var(--vg-text) 12%, transparent); transition: transform .12s, background .15s, border-color .15s;
}
.vg-link:hover { transform: translateY(-2px); background: color-mix(in srgb, var(--vg-accent) 16%, transparent); border-color: var(--vg-accent); text-decoration: none; }
.vg-link-ico { width: 24px; height: 24px; display: grid; place-items: center; flex-shrink: 0; }
.vg-link-ico img, .vg-link-ico svg { width: 22px; height: 22px; }
.vg-link-title { flex: 1; text-align: left; }
.vg-meta { display: flex; gap: 14px; justify-content: center; margin-top: 22px; font-size: .85em; opacity: .7; }
.vg-meta span { display: inline-flex; align-items: center; gap: 5px; }
.vg-meta svg { width: 16px; height: 16px; }
.vg-brand { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 1; font-size: .78em; color: var(--vg-text); opacity: .45; font-weight: 600; letter-spacing: .04em; }
.vg-brand:hover { opacity: 1; text-decoration: none; }
.vg-profile.is-preview { min-height: 100%; padding: 24px 12px 40px; }
.vg-profile.is-preview .vg-card { max-width: 100%; padding: 24px 16px; }
.vg-profile.is-preview .vg-avatar { width: 80px; height: 80px; }
.vg-profile.is-preview .vg-name { font-size: 1.3rem; }
.vg-unavailable { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 20px; }
.vg-unavailable h1 { font-size: 3rem; }

/* ============ PHASE 2: EFFECTS ============ */
.vg-bg canvas.vg-particles { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.vg-dim { position: absolute; inset: 0; background: #000; opacity: var(--vg-dim, 0); pointer-events: none; }
.vg-bg img, .vg-bg video { filter: blur(var(--vg-blur, 0px)); transform: scale(calc(1 + var(--vg-blur, 0px) / 200)); }
.vg-card { transform-style: preserve-3d; transition: transform .15s ease-out; will-change: transform; }

/* glow */
.fx-glow-a .vg-avatar { box-shadow: 0 0 calc(10px * var(--vg-glow, 2)) var(--vg-accent), 0 0 0 6px color-mix(in srgb, var(--vg-accent) 18%, transparent); }
.fx-glow-n #vg-name { text-shadow: 0 0 calc(6px * var(--vg-glow, 2)) var(--vg-accent), 0 0 calc(18px * var(--vg-glow, 2)) color-mix(in srgb, var(--vg-accent) 60%, transparent); }
.fx-glow-l .vg-link, .fx-glow-l .vg-social-link { box-shadow: 0 0 calc(8px * var(--vg-glow, 2)) color-mix(in srgb, var(--vg-accent) 55%, transparent); border-color: color-mix(in srgb, var(--vg-accent) 60%, transparent); }

/* link styles */
.fx-links-filled .vg-link { background: var(--vg-accent); color: var(--vg-card); border-color: transparent; }
.fx-links-filled .vg-link:hover { filter: brightness(1.1); background: var(--vg-accent); }
.fx-links-outline .vg-link { background: transparent; border: 2px solid var(--vg-accent); }
.fx-links-outline .vg-link:hover { background: color-mix(in srgb, var(--vg-accent) 14%, transparent); }
.fx-links-pill .vg-link { border-radius: 999px; justify-content: center; }
.fx-links-pill .vg-link .vg-link-title { flex: 0 1 auto; text-align: center; }
.fx-links-minimal .vg-link { background: transparent; border-color: transparent; border-bottom: 1px solid color-mix(in srgb, var(--vg-text) 18%, transparent); border-radius: 0; padding-left: 4px; padding-right: 4px; }
.fx-links-minimal .vg-link:hover { transform: none; border-bottom-color: var(--vg-accent); background: transparent; }

/* social icon row */
.vg-social { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 16px; }
.vg-social-link { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--vg-text); background: color-mix(in srgb, var(--vg-text) 8%, transparent); border: 1px solid color-mix(in srgb, var(--vg-text) 14%, transparent); transition: transform .12s, background .15s, color .15s; }
.vg-social-link svg { width: 20px; height: 20px; }
.vg-social-link:hover { transform: translateY(-3px) scale(1.06); background: var(--vg-accent); color: var(--vg-card); border-color: var(--vg-accent); text-decoration: none; }
.vg-social + .vg-links { margin-top: 18px; }

/* card entrance */
@keyframes vg-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes vg-rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes vg-zoom { from { opacity: 0; transform: scale(.88); } to { opacity: 1; transform: none; } }
@keyframes vg-flip { from { opacity: 0; transform: perspective(900px) rotateY(-40deg); } to { opacity: 1; transform: none; } }
.fx-anim-fade .vg-card { animation: vg-fade .7s ease backwards; }
.fx-anim-rise .vg-card { animation: vg-rise .7s cubic-bezier(.2,.8,.2,1) backwards; }
.fx-anim-zoom .vg-card { animation: vg-zoom .6s cubic-bezier(.2,.8,.2,1) backwards; }
.fx-anim-flip .vg-card { animation: vg-flip .8s cubic-bezier(.2,.8,.2,1) backwards; }

/* name effects */
.vg-name-text { display: inline-block; position: relative; }
.fx-name-typewriter #vg-name::after { content: '▍'; color: var(--vg-accent); animation: vg-blink 1s steps(2) infinite; margin-left: 2px; }
@keyframes vg-blink { 50% { opacity: 0; } }
.fx-name-gradient #vg-name { background: linear-gradient(90deg, var(--vg-accent), var(--vg-text), var(--vg-accent)); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: vg-gradient 3s linear infinite; }
@keyframes vg-gradient { to { background-position: 200% 0; } }
.fx-name-wave #vg-name span { display: inline-block; animation: vg-wave 1.6s ease-in-out infinite; }
@keyframes vg-wave { 0%, 100% { transform: translateY(0); } 30% { transform: translateY(-7px); } }
.fx-name-pulse #vg-name { animation: vg-pulse 1.4s ease-in-out infinite; }
@keyframes vg-pulse { 50% { transform: scale(1.06); } }
.fx-name-shake #vg-name { animation: vg-shake .5s linear infinite; }
@keyframes vg-shake { 0% { transform: translate(0,0); } 25% { transform: translate(1px,-1px); } 50% { transform: translate(-1px,1px); } 75% { transform: translate(1px,1px); } 100% { transform: translate(0,0); } }
.fx-name-neon #vg-name { color: var(--vg-accent); text-shadow: 0 0 6px var(--vg-accent), 0 0 20px var(--vg-accent); animation: vg-neon 3s infinite; }
@keyframes vg-neon { 0%, 18%, 22%, 25%, 53%, 57%, 100% { opacity: 1; } 20%, 24%, 55% { opacity: .35; text-shadow: none; } }
.fx-name-glitch #vg-name::before, .fx-name-glitch #vg-name::after { content: attr(data-text); position: absolute; left: 0; top: 0; width: 100%; overflow: hidden; color: inherit; }
.fx-name-glitch #vg-name::before { left: 2px; text-shadow: -2px 0 #ff3b6b; clip-path: inset(10% 0 60% 0); animation: vg-glitch1 2.5s infinite linear alternate-reverse; }
.fx-name-glitch #vg-name::after { left: -2px; text-shadow: 2px 0 #3bd4ff; clip-path: inset(55% 0 15% 0); animation: vg-glitch2 2.1s infinite linear alternate-reverse; }
@keyframes vg-glitch1 { 0% { clip-path: inset(10% 0 60% 0); } 20% { clip-path: inset(80% 0 5% 0); } 40% { clip-path: inset(30% 0 40% 0); } 60% { clip-path: inset(5% 0 85% 0); } 80% { clip-path: inset(60% 0 20% 0); } 100% { clip-path: inset(40% 0 35% 0); } }
@keyframes vg-glitch2 { 0% { clip-path: inset(70% 0 10% 0); } 20% { clip-path: inset(15% 0 70% 0); } 40% { clip-path: inset(50% 0 30% 0); } 60% { clip-path: inset(90% 0 2% 0); } 80% { clip-path: inset(25% 0 55% 0); } 100% { clip-path: inset(5% 0 80% 0); } }

/* cursors (SVG data URLs, 24px so every browser accepts them) */
.fx-cursor-dot, .fx-cursor-dot * { cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24'><circle cx='12' cy='12' r='6' fill='white' stroke='black' stroke-width='1.5'/></svg>") 12 12, auto !important; }
.fx-cursor-ring, .fx-cursor-ring * { cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='28' height='28'><circle cx='14' cy='14' r='10' fill='none' stroke='white' stroke-width='2'/><circle cx='14' cy='14' r='2' fill='white'/></svg>") 14 14, auto !important; }
.fx-cursor-cross, .fx-cursor-cross * { cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24'><path d='M12 2v20M2 12h20' stroke='white' stroke-width='2'/><path d='M12 2v20M2 12h20' stroke='black' stroke-width='.6'/></svg>") 12 12, crosshair !important; }
.fx-cursor-star, .fx-cursor-star * { cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24'><path d='M12 2l3 7 7 .6-5.3 4.7 1.7 7L12 17.5 5.6 21.3l1.7-7L2 9.6 9 9z' fill='%23ffd166' stroke='black' stroke-width='1'/></svg>") 12 12, auto !important; }
.fx-cursor-heart, .fx-cursor-heart * { cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24'><path d='M12 21s-7-4.6-9.3-9.2C1 8 3 4 6.7 4c2 0 3.7 1.2 5.3 3 1.6-1.8 3.3-3 5.3-3C21 4 23 8 21.3 11.8 19 16.4 12 21 12 21z' fill='%23ff6fae' stroke='black' stroke-width='1'/></svg>") 12 12, auto !important; }
.fx-cursor-none, .fx-cursor-none * { cursor: none !important; }

/* enter overlay */
.vg-enter { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(0,0,0,.72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); cursor: pointer; color: var(--vg-text); font-family: var(--vg-font), var(--font); transition: opacity .6s ease; }
.vg-enter-text { font-size: clamp(1.1rem, 3vw, 1.6rem); font-weight: 600; letter-spacing: .12em; text-transform: lowercase; animation: vg-enter-pulse 2s ease-in-out infinite; text-shadow: 0 0 20px color-mix(in srgb, var(--vg-accent) 60%, transparent); }
@keyframes vg-enter-pulse { 50% { opacity: .55; transform: scale(.97); } }
.vg-enter.is-hidden { opacity: 0; pointer-events: none; }
body.vg-locked { overflow: hidden; }

/* player */
.vg-player { position: fixed; left: 16px; bottom: 16px; z-index: 5; display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; border-radius: 999px; color: var(--vg-text); background: color-mix(in srgb, var(--vg-card) 80%, transparent); border: 1px solid color-mix(in srgb, var(--vg-text) 14%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font-family: var(--vg-font), var(--font); max-width: calc(100vw - 32px); }
.vg-play { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--vg-accent); color: var(--vg-card); display: grid; place-items: center; cursor: pointer; flex-shrink: 0; }
.vg-play svg { width: 18px; height: 18px; }
.vg-play .i-pause, .vg-player.playing .i-play { display: none; }
.vg-player.playing .i-pause { display: block; }
.vg-track { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.vg-track-title { font-size: .82em; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; }
.vg-track-time { font-size: .7em; opacity: .6; font-variant-numeric: tabular-nums; }
.vg-player .vg-vol { width: 70px; accent-color: var(--vg-accent); }
.vg-player.playing .vg-play { animation: vg-playpulse 1.6s ease-in-out infinite; }
@keyframes vg-playpulse { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--vg-accent) 25%, transparent); } }
.vg-profile.is-preview .vg-player { position: absolute; left: 10px; bottom: 10px; transform: scale(.85); transform-origin: bottom left; }
.vg-profile.is-preview .vg-enter { display: none; }
@media (max-width: 480px) { .vg-vol { display: none; } .vg-track-title { max-width: 110px; } }
@media (prefers-reduced-motion: reduce) { .vg-card, #vg-name, #vg-name span, .vg-enter-text { animation: none !important; } }

/* theme cards + stats in the dashboard */
.themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.theme-card { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--panel); }
.theme-card .tp { height: 92px; display: grid; place-items: center; position: relative; }
.theme-card .tp .tc { width: 70%; height: 56px; border-radius: 10px; display: flex; align-items: center; gap: 8px; padding: 8px; }
.theme-card .tp .ta { width: 26px; height: 26px; border-radius: 50%; }
.theme-card .tp .tl { flex: 1; height: 8px; border-radius: 4px; }
.theme-card .tb { padding: 10px 12px; }
.theme-card b { display: block; }
.theme-card small { color: var(--muted); display: block; margin-bottom: 8px; min-height: 2.4em; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 700px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }
.fx-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 760px) { .fx-grid { grid-template-columns: 1fr; } }
