/* ===========================================================
   4ly.uk — Stylesheet
   Glassmorphism dark + animated auroras
   =========================================================== */

/* ---- Animated angle for the conic-gradient button border ---- */
@property --angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

/* ---- Tokens --------------------------------------------------- */
:root {
  --bg-0: #07091a;
  --bg-1: #0b0d1a;
  --bg-2: #11142a;

  --fg:        #e7e9ff;
  --fg-soft:   #b3b8d6;
  --fg-mute:   #7c83a3;
  --line:      rgba(255, 255, 255, 0.08);
  --line-2:    rgba(255, 255, 255, 0.14);

  --glass:       rgba(255, 255, 255, 0.04);
  --glass-2:     rgba(255, 255, 255, 0.07);
  --glass-hover: rgba(255, 255, 255, 0.10);

  --cyan:    #22d3ee;
  --violet:  #a855f7;
  --magenta: #ec4899;
  --green:   #34d399;
  --red:     #fb7185;

  --grad: linear-gradient(135deg, var(--cyan), var(--violet));
  --grad-2: linear-gradient(135deg, var(--violet), var(--magenta));

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 12px 40px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 0 0 rgba(34, 211, 238, 0.0);

  --t-fast: 160ms;
  --t-norm: 280ms;
  --t-slow: 600ms;
  --ease: cubic-bezier(.2, .9, .25, 1);
}

/* ---- Reset --------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font: 400 15px/1.55 "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  color: var(--fg);
  background: radial-gradient(1100px 700px at 80% -10%, #1a1240 0%, transparent 60%),
              radial-gradient(900px 600px at -10% 110%, #0d3b56 0%, transparent 55%),
              var(--bg-0);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input, button, textarea { font-family: inherit; }
code, pre { font-family: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---- Aurora background -------------------------------------- */
.aurora {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  filter: blur(70px) saturate(140%);
  opacity: 0.85;
}
.aurora__blob {
  position: absolute;
  width: 60vmax; height: 60vmax;
  border-radius: 50%;
  mix-blend-mode: screen;
  will-change: transform;
}
.aurora__blob--1 {
  background: radial-gradient(circle, rgba(34,211,238,.55), transparent 60%);
  top: -20vmax; left: -10vmax;
  animation: drift1 22s ease-in-out infinite alternate;
}
.aurora__blob--2 {
  background: radial-gradient(circle, rgba(168,85,247,.55), transparent 60%);
  top: 10vmax; right: -20vmax;
  animation: drift2 26s ease-in-out infinite alternate;
}
.aurora__blob--3 {
  background: radial-gradient(circle, rgba(236,72,153,.45), transparent 60%);
  bottom: -25vmax; left: 20vmax;
  animation: drift3 30s ease-in-out infinite alternate;
}
@keyframes drift1 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(15vmax, 8vmax) scale(1.15); }
}
@keyframes drift2 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-12vmax, 14vmax) scale(1.1); }
}
@keyframes drift3 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(8vmax, -10vmax) scale(1.2); }
}

/* ---- Layout -------------------------------------------------- */
.main {
  position: relative; z-index: 1;
  flex: 1 0 auto;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px clamp(16px, 4vw, 40px) 60px;
}

.nav {
  position: relative; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px clamp(16px, 4vw, 40px) 6px;
  box-sizing: border-box;
}
.nav__brand { display: flex; align-items: center; gap: 12px; }
.nav__logo svg { width: 32px; height: 32px; border-radius: 9px; }
.nav__name {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-weight: 700; font-size: 19px; letter-spacing: -.01em;
}
.nav__links { display: flex; align-items: center; gap: 14px; }
.nav__link {
  color: var(--fg-soft); padding: 8px 12px; border-radius: 10px;
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: var(--fg); background: var(--glass); }
.nav__user {
  color: var(--fg-mute); font-size: 13px;
  max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ---- Buttons ------------------------------------------------- */
.btn {
  --c: var(--fg);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--glass);
  color: var(--c);
  font-weight: 600; font-size: 14px;
  letter-spacing: -.005em;
  transition: transform var(--t-fast) var(--ease),
              background var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease),
              box-shadow var(--t-norm) var(--ease),
              filter var(--t-fast) var(--ease);
  position: relative; overflow: hidden;
  text-decoration: none;
}
.btn:hover  { border-color: var(--line-2); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg    { width: 18px; height: 18px; }
.btn--sm    { height: 36px; padding: 0 14px; font-size: 13px; }
.btn--block { width: 100%; }

/* Ghost: translucent dark, gets a glass background on hover */
.btn--ghost        { background: transparent; }
.btn--ghost:hover  { background: var(--glass-hover); }

/* Primary: gradient — KEEPS the gradient on hover (slightly brighter) */
.btn--primary {
  color: #0b0d1a;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  border-color: transparent;
  box-shadow: 0 6px 24px -8px rgba(168, 85, 247, .55),
              0 0 0 1px rgba(255,255,255,.08) inset;
}
.btn--primary:hover {
  background: linear-gradient(135deg, #38e0f5, #b964fa);
  border-color: transparent;
  color: #0b0d1a;
  filter: brightness(1.08);
  box-shadow: 0 12px 34px -6px rgba(168, 85, 247, .7),
              0 0 0 1px rgba(255,255,255,.18) inset;
}
.btn--primary:active {
  filter: brightness(.95);
}

.btn--glow {
  position: relative;
  isolation: isolate;
}
.btn--glow::before {
  content: "";
  position: absolute; inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(from var(--angle),
    var(--cyan), var(--violet), var(--magenta), var(--cyan));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  animation: spin 4s linear infinite;
  opacity: .9;
  z-index: -1;
}
@keyframes spin { to { --angle: 360deg; } }

/* Icon-only buttons */
.icon-btn {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
  background: var(--glass);
  color: var(--fg-soft);
  border-radius: 10px;
  transition: all var(--t-fast) var(--ease);
}
.icon-btn:hover { color: var(--fg); background: var(--glass-hover); border-color: var(--line-2); transform: translateY(-1px); }
.icon-btn--danger:hover { color: var(--red); border-color: rgba(251,113,133,.4); }
.icon-btn svg { width: 18px; height: 18px; }
.inline { display: inline; margin: 0; }

/* ---- Cards / Glass ------------------------------------------ */
.card {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 28px;
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow: var(--shadow-md);
}
.card__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; }
.card__head h2 { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.card__hint { color: var(--fg-mute); font-size: 12px; }

/* ---- Hero ---------------------------------------------------- */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 60px 0 40px;
}
@media (max-width: 880px) { .hero { grid-template-columns: 1fr; padding-top: 28px; } }

.hero__eyebrow {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--glass);
  color: var(--fg-soft);
  font-size: 12px; letter-spacing: .04em; text-transform: uppercase;
}
.hero__title {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 1.05;
  letter-spacing: -.02em;
  margin: 18px 0 18px;
  font-weight: 700;
}
.hero__sub { color: var(--fg-soft); font-size: 17px; max-width: 56ch; }
.grad {
  background: linear-gradient(135deg, var(--cyan), var(--violet) 50%, var(--magenta));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  background-size: 200% 200%;
  animation: gradShift 8s ease infinite;
}
@keyframes gradShift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

.code-inline {
  background: var(--glass);
  border: 1px solid var(--line);
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 0.92em;
}

/* ---- Shorten card ------------------------------------------- */
.card--shorten { padding: 22px; }
.card--inline { margin-bottom: 24px; padding: 18px; }

.shorten__field {
  display: flex; gap: 10px;
  align-items: stretch;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 8px;
  transition: border-color var(--t-norm) var(--ease), box-shadow var(--t-norm) var(--ease);
}
.shorten__field:focus-within {
  border-color: rgba(34, 211, 238, .5);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, .12);
}
.shorten__field input {
  flex: 1;
  height: 44px;
  background: transparent;
  border: 0; outline: 0;
  color: var(--fg);
  font-size: 16px;
  padding: 0 12px;
}
.shorten__field input::placeholder { color: var(--fg-mute); }

.shorten__note {
  color: var(--fg-mute);
  font-size: 13px;
  margin: 12px 4px 4px;
}
.shorten__note a {
  color: var(--cyan);
  border-bottom: 1px dashed rgba(34, 211, 238, .4);
}

.result {
  margin-top: 16px;
  padding: 18px;
  background: rgba(34, 211, 238, .05);
  border: 1px solid rgba(34, 211, 238, .25);
  border-radius: 16px;
  animation: pop var(--t-slow) var(--ease);
}
@keyframes pop {
  from { opacity: 0; transform: translateY(8px) scale(.98); }
  to   { opacity: 1; transform: none; }
}
.result__row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.result__label { color: var(--fg-mute); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.result__url {
  display: block;
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 700;
  letter-spacing: -.01em;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  word-break: break-all;
}
.result__meta { margin-top: 6px; color: var(--fg-mute); font-size: 13px; }
.result__original { word-break: break-all; }

/* Typewriter caret */
.caret::after {
  content: "▍";
  margin-left: 2px;
  color: var(--cyan);
  animation: blink 1s steps(1, end) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* Particle burst on copy */
.particle {
  position: fixed;
  width: 6px; height: 6px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 999;
  animation: particle-fly .8s ease-out forwards;
}
@keyframes particle-fly {
  to { transform: translate(var(--dx), var(--dy)) scale(.4); opacity: 0; }
}

/* ---- Features grid ------------------------------------------ */
.features {
  margin-top: 36px;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.feature {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px;
  backdrop-filter: blur(18px) saturate(140%);
  transition: transform var(--t-norm) var(--ease), border-color var(--t-norm) var(--ease);
}
.feature:hover { transform: translateY(-3px); border-color: var(--line-2); }
.feature__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--grad);
  font-size: 22px;
  margin-bottom: 10px;
  filter: drop-shadow(0 4px 14px rgba(168, 85, 247, .35));
}
.feature h3 { margin: 6px 0 4px; font-size: 16px; }
.feature p  { color: var(--fg-soft); margin: 0; font-size: 14px; }

/* ---- Auth (register / login / verify) ----------------------- */
.auth {
  min-height: 70vh;
  display: grid;
  place-items: center;
  padding: 40px 0;
}
.card--auth { width: min(420px, 100%); }
.auth__title {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 28px;
  margin: 0 0 8px;
  letter-spacing: -.02em;
}
.auth__sub { color: var(--fg-soft); margin: 0 0 22px; font-size: 14px; }
.auth__err {
  background: rgba(251, 113, 133, .12);
  border: 1px solid rgba(251, 113, 133, .35);
  color: #ffd1d8;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
  margin-bottom: 16px;
}
.auth__form { display: grid; gap: 14px; }
.auth__switch {
  margin: 22px 0 0;
  text-align: center;
  color: var(--fg-mute);
  font-size: 13px;
}
.auth__switch a { color: var(--cyan); }

.field { display: grid; gap: 6px; }
.field__label { color: var(--fg-soft); font-size: 13px; }
.field__hint  { color: var(--fg-mute); font-size: 12px; }
.field input {
  height: 44px;
  padding: 0 14px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--fg);
  font-size: 15px;
  outline: none;
  transition: border-color var(--t-norm) var(--ease), box-shadow var(--t-norm) var(--ease);
}
.field input:focus {
  border-color: rgba(34, 211, 238, .5);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, .12);
}

/* ---- Flash messages ---------------------------------------- */
.flash {
  position: relative; z-index: 1;
  width: calc(100% - 32px);
  max-width: 1180px;
  margin: 8px auto 0;
  padding: 12px 18px;
  border-radius: 14px;
  font-size: 14px;
  backdrop-filter: blur(12px);
  animation: pop var(--t-slow) var(--ease);
  box-sizing: border-box;
}
.flash--error {
  background: rgba(251, 113, 133, .12);
  border: 1px solid rgba(251, 113, 133, .35);
  color: #ffd1d8;
}
.flash--success {
  background: rgba(52, 211, 153, .12);
  border: 1px solid rgba(52, 211, 153, .35);
  color: #c6f6e0;
}

/* ---- Dashboard ---------------------------------------------- */
.dash { padding-top: 28px; }
.dash__head {
  display: flex; align-items: end; justify-content: space-between;
  gap: 18px; margin-bottom: 20px;
}
.dash__title {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: clamp(28px, 4vw, 38px);
  margin: 0; letter-spacing: -.02em;
}
.dash__sub { color: var(--fg-mute); margin: 4px 0 0; font-size: 14px; }

.dash__search {
  position: relative;
  margin: 8px 0 18px;
}
.dash__search svg {
  position: absolute; top: 50%; left: 14px;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  color: var(--fg-mute);
}
.dash__search input {
  width: 100%;
  height: 46px;
  padding: 0 16px 0 42px;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--fg);
  font-size: 15px;
  outline: none;
  backdrop-filter: blur(10px);
  transition: border-color var(--t-norm) var(--ease);
}
.dash__search input:focus { border-color: rgba(34, 211, 238, .45); }

.empty {
  text-align: center;
  padding: 60px 20px;
  border: 1px dashed var(--line-2);
  border-radius: var(--r-xl);
  background: var(--glass);
  backdrop-filter: blur(12px);
}
.empty__art { font-size: 40px; margin-bottom: 4px; }
.empty h3 { margin: 6px 0 4px; }
.empty p  { color: var(--fg-mute); margin: 0; }

.links { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }

/* Link card with 3D tilt */
.link-card {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px;
  backdrop-filter: blur(18px) saturate(140%);
  transition: transform var(--t-norm) var(--ease),
              border-color var(--t-norm) var(--ease),
              background var(--t-norm) var(--ease);
  transform-style: preserve-3d;
}
.link-card:hover { background: var(--glass-2); border-color: var(--line-2); }
.link-card[data-active="0"] { opacity: .65; }

.link-card__top {
  display: flex; gap: 10px; align-items: center; justify-content: space-between;
}
.link-card__short {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-weight: 700; font-size: 18px;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  letter-spacing: -.01em;
}
.link-card__actions { display: flex; gap: 6px; }
.link-card__url {
  display: block;
  margin: 8px 0 12px;
  color: var(--fg-soft);
  font-size: 13px;
  text-decoration: none;
  word-break: break-all;
  border-bottom: 1px dashed transparent;
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.link-card__url:hover { color: var(--fg); border-color: var(--line-2); }

.link-card__foot {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font-size: 13px;
}
.link-card__date { color: var(--fg-mute); }
.link-card__more { margin-left: auto; color: var(--cyan); }
.link-card__more:hover { text-decoration: underline; }

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 99px;
  background: rgba(34, 211, 238, .12);
  border: 1px solid rgba(34, 211, 238, .3);
  color: #b5f0fb;
  font-size: 12px;
  font-weight: 600;
}
.badge--off {
  background: rgba(124, 131, 163, .12);
  border-color: rgba(124, 131, 163, .35);
  color: var(--fg-mute);
}
.badge--ok {
  background: rgba(52, 211, 153, .12);
  border-color: rgba(52, 211, 153, .35);
  color: #b6f3d6;
}
.badge--code {
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  font-size: 13px;
  background: rgba(168, 85, 247, .14);
  border-color: rgba(168, 85, 247, .35);
  color: #e0c8ff;
  letter-spacing: .04em;
}

/* ---- Detail page -------------------------------------------- */
.detail { padding-top: 16px; }
.back {
  display: inline-block;
  color: var(--fg-mute);
  margin-bottom: 18px;
  font-size: 13px;
  transition: color var(--t-fast) var(--ease);
}
.back:hover { color: var(--fg); }

.detail__head {
  display: flex; align-items: start; justify-content: space-between;
  gap: 24px; margin-bottom: 22px; flex-wrap: wrap;
}
.detail__short {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: clamp(22px, 4vw, 32px);
  margin: 10px 0 6px;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  letter-spacing: -.01em;
  word-break: break-all;
}
.detail__original {
  display: block;
  color: var(--fg-soft); font-size: 14px;
  word-break: break-all;
}
.detail__big { display: flex; gap: 14px; }

.big-stat {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 14px 22px;
  text-align: right;
  min-width: 140px;
  backdrop-filter: blur(12px);
}
.big-stat__num {
  display: block;
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 36px; font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  letter-spacing: -.02em;
}
.big-stat__lbl { color: var(--fg-mute); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }

.grid--detail {
  display: grid;
  gap: 18px;
  grid-template-columns: 1.4fr 1fr;
}
.card--chart { grid-column: 1 / 2; }
.card--qr    { grid-column: 2 / 3; grid-row: 1 / 3; }
.card--browsers { grid-column: 1 / 2; }
.card--info     { grid-column: 1 / 2; }
@media (max-width: 880px) {
  .grid--detail { grid-template-columns: 1fr; }
  .card--chart, .card--qr, .card--browsers, .card--info { grid-column: 1; grid-row: auto; }
}

.chart-wrap {
  position: relative;
  width: 100%;
  height: 220px;
}
.chart {
  width: 100%; height: 100%;
}
.chart__bar {
  fill: url(#barGrad);
  transition: opacity var(--t-fast) var(--ease);
}
.chart__bar:hover { opacity: .8; }
.chart__axis { stroke: var(--line); stroke-width: 1; }
.chart__label { fill: var(--fg-mute); font-size: 10px; font-family: "Inter", sans-serif; }
.chart__tooltip {
  position: absolute;
  pointer-events: none;
  background: rgba(11, 13, 26, .92);
  border: 1px solid var(--line-2);
  color: var(--fg);
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 8px;
  transform: translate(-50%, -110%);
  white-space: nowrap;
  opacity: 0;
  transition: opacity var(--t-fast) var(--ease);
}
.chart__tooltip.is-on { opacity: 1; }

/* QR */
.qr {
  display: grid; place-items: center;
  padding: 14px;
  background: rgba(255, 255, 255, .05);
  border-radius: var(--r-lg);
  margin-bottom: 14px;
  position: relative;
}
.qr img {
  width: 100%; max-width: 280px;
  border-radius: 12px;
  background: #fff;
  padding: 10px;
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .4);
  transition: transform var(--t-norm) var(--ease);
}
.qr img:hover { transform: scale(1.02) rotate(-1deg); }

/* Bars */
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.bars li {
  display: grid;
  grid-template-columns: 80px 1fr 50px;
  gap: 12px; align-items: center;
}
.bars__lbl { color: var(--fg-soft); font-size: 13px; }
.bars__num { color: var(--fg-mute); font-size: 12px; text-align: right; }
.bars__track {
  position: relative;
  height: 8px;
  background: var(--glass);
  border-radius: 99px;
  overflow: hidden;
}
.bars__fill {
  display: block;
  height: 100%;
  width: var(--w, 0%);
  background: var(--grad);
  border-radius: 99px;
  animation: barfill 1.2s var(--ease);
}
@keyframes barfill { from { width: 0; } }

/* Info dl */
.info {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 8px 16px;
  margin: 0;
}
.info dt { color: var(--fg-mute); font-size: 13px; }
.info dd { margin: 0; font-size: 14px; }
.info code {
  background: var(--glass);
  border: 1px solid var(--line);
  padding: 2px 8px; border-radius: 6px;
  font-size: 13px;
}
.muted { color: var(--fg-mute); margin: 0; font-size: 14px; }

/* ---- Footer ------------------------------------------------- */
.footer {
  position: relative; z-index: 1;
  flex-shrink: 0;
  border-top: 1px solid var(--line);
  padding: 28px 16px;
  margin-top: auto;
  text-align: center;
  color: var(--fg-mute);
  font-size: 13px;
  background: rgba(11, 13, 26, .35);
  backdrop-filter: blur(10px);
}
.footer__inner { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.footer__dot { color: var(--line-2); }

/* ---- Page transitions (View Transitions API) ---------------- */
@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 280ms;
  animation-timing-function: cubic-bezier(.2,.9,.25,1);
}

/* ---- Reduced motion ----------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .aurora { display: none; }
}