:root {
  color-scheme: light;
  --ink: #14131a;
  --muted: #6d6a78;
  --line: #dedce7;
  --paper: #f8f7fb;
  --white: #fff;
  --violet: #6c4cff;
  --violet-dark: #4d2fe0;
  --violet-soft: #ece8ff;
  --lime: #d9ff66;
  --red: #dc3347;
  --green: #169260;
  --orange: #d77b18;
  --shadow: 0 24px 70px rgb(26 20 64 / 12%);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .72; }
:focus-visible { outline: 3px solid rgb(108 76 255 / 34%); outline-offset: 3px; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.honeypot { position: fixed !important; left: -10000px !important; top: -10000px !important; opacity: 0 !important; pointer-events: none !important; }

.site-shell {
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 10%, rgb(217 255 102 / 24%), transparent 21rem),
    radial-gradient(circle at 12% 25%, rgb(108 76 255 / 9%), transparent 28rem),
    var(--paper);
}
.topbar { height: 90px; display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 5; }
.logo { display: inline-flex; align-items: baseline; font-size: 31px; line-height: 1; font-weight: 850; letter-spacing: -2.5px; }
.logo b { color: var(--violet); font-weight: 900; }
.logo i { color: var(--lime); font-style: normal; text-shadow: 0 1px 0 #9cbe36; }
.topbar nav { display: flex; align-items: center; gap: 34px; font-size: 14px; font-weight: 650; }
.topbar nav a { transition: color .2s ease; }
.topbar nav a:hover { color: var(--violet); }

.hero { padding-top: 76px; padding-bottom: 104px; position: relative; }
.hero::before, .hero::after {
  content: ""; position: absolute; z-index: 0; border-radius: 50%; pointer-events: none;
}
.hero::before { width: 10px; height: 10px; background: var(--violet); top: 85px; right: 12%; box-shadow: 55px 80px 0 -2px var(--lime), -34px 184px 0 -3px var(--violet); }
.hero::after { width: 130px; height: 130px; border: 1px solid rgb(108 76 255 / 16%); right: -80px; top: 290px; }
.hero-copy { max-width: 850px; margin: 0 auto 46px; text-align: center; position: relative; z-index: 1; }
.eyebrow, .section-kicker {
  display: inline-flex; align-items: center; gap: 9px; color: var(--violet-dark);
  font-size: 12px; line-height: 1; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
}
.eyebrow { padding: 9px 13px; border-radius: 99px; background: var(--violet-soft); }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #3bc97e; box-shadow: 0 0 0 4px rgb(59 201 126 / 14%); }
.hero h1 { margin: 25px 0 22px; font-size: clamp(54px, 7.4vw, 102px); line-height: .93; letter-spacing: -.065em; font-weight: 820; }
.hero h1 em { color: var(--violet); font-style: normal; position: relative; display: inline-block; }
.hero h1 em::after { content: ""; position: absolute; height: 9px; left: 4%; right: 2%; bottom: -10px; background: var(--lime); border-radius: 50%; transform: rotate(-1deg); z-index: -1; }
.hero-lead { max-width: 580px; margin: 0 auto; color: var(--muted); font-size: 19px; line-height: 1.65; }

.shortener-card {
  position: relative; z-index: 2; max-width: 930px; margin: 0 auto;
  padding: 28px; border: 1px solid rgb(108 76 255 / 20%); border-radius: 28px;
  background: rgb(255 255 255 / 88%); box-shadow: var(--shadow); backdrop-filter: blur(16px);
}
.card-glow { position: absolute; inset: 5px 10% auto; height: 50px; background: var(--violet); filter: blur(50px); opacity: .12; pointer-events: none; }
.shortener-card form { position: relative; }
.shortener-card form > label { display: block; margin: 0 0 10px 4px; font-size: 13px; font-weight: 750; }
.url-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.url-field { height: 64px; display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 16px; background: #fbfafe; padding: 0 18px; transition: border .2s, box-shadow .2s, background .2s; }
.url-field:focus-within { background: #fff; border-color: var(--violet); box-shadow: 0 0 0 4px rgb(108 76 255 / 10%); }
.url-field svg { width: 22px; flex: 0 0 auto; fill: none; stroke: var(--violet); stroke-width: 1.8; stroke-linecap: round; }
.url-field input { width: 100%; height: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 16px; }
.url-field input::placeholder { color: #aaa6b8; }
.primary-button, .outline-button, .danger-button {
  display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 8px;
  border-radius: 13px; padding: 0 19px; border: 0; font-weight: 760; transition: transform .16s, box-shadow .16s, background .16s;
}
.primary-button { color: #fff; background: var(--violet); box-shadow: 0 9px 24px rgb(108 76 255 / 25%); }
.primary-button:hover { background: var(--violet-dark); transform: translateY(-1px); box-shadow: 0 12px 30px rgb(108 76 255 / 32%); }
.primary-button svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.url-row > .primary-button { min-width: 162px; border-radius: 16px; }
.primary-button.loading svg { animation: drift 1s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translateX(4px); } }
.outline-button { border: 1px solid var(--line); background: #fff; color: var(--ink); }
.outline-button:hover { border-color: var(--violet); color: var(--violet); }
.danger-button { color: #fff; background: var(--red); }
.danger-button:hover { background: #b91f34; }
.form-hint { margin: 10px 4px 0; color: #8a8794; font-size: 12px; }
.form-message { min-height: 0; margin: 0 4px; color: var(--muted); font-size: 13px; font-weight: 650; }
.form-message.error { min-height: 22px; margin-top: 9px; color: var(--red); }
.result-panel {
  display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center;
  margin-top: 18px; padding: 17px; border-radius: 17px; background: #f2fcea; border: 1px solid #ceebb9;
}
.result-panel[hidden] { display: none; }
.result-check { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: #fff; background: var(--green); font-weight: 900; }
.result-main { min-width: 0; display: flex; flex-direction: column; }
.result-main > span { color: #55704a; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.result-main strong { overflow: hidden; text-overflow: ellipsis; color: #164b35; font-size: 21px; letter-spacing: -.02em; }
.result-main small { color: #71836b; }
.copy-button { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px; border: 1px solid #b9ddaa; border-radius: 11px; background: #fff; color: #255f43; font-size: 13px; font-weight: 750; }
.copy-button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.copy-button.copied { color: #fff; background: var(--green); border-color: var(--green); }

.trust-strip { max-width: 720px; display: grid; grid-template-columns: repeat(3, 1fr); margin: 42px auto 0; }
.trust-strip div { display: flex; justify-content: center; align-items: baseline; gap: 7px; padding: 0 20px; border-right: 1px solid var(--line); }
.trust-strip div:last-child { border: 0; }
.trust-strip strong { font-size: 19px; color: var(--violet); }
.trust-strip span { color: var(--muted); font-size: 12px; }

.how-section { background: #17161d; color: #fff; padding: 112px 0 124px; position: relative; overflow: hidden; }
.how-section::before { content: ""; position: absolute; inset: 0; opacity: .07; background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(to right, transparent, #000, transparent); }
.section-heading { position: relative; display: flex; align-items: flex-start; gap: 30px; margin-bottom: 58px; }
.section-heading > span { color: var(--lime); border: 1px solid #4b4953; border-radius: 999px; padding: 7px 12px; font-size: 11px; font-weight: 800; }
.section-heading h2 { margin: -8px 0 5px; font-size: clamp(36px, 4.2vw, 58px); line-height: 1.05; letter-spacing: -.045em; }
.section-heading p { margin: 0; color: #aaa7b2; font-size: 17px; }
.steps-grid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid #38363f; border-radius: 24px; overflow: hidden; }
.steps-grid article { min-height: 320px; position: relative; padding: 30px; border-right: 1px solid #38363f; background: rgb(255 255 255 / 1.5%); }
.steps-grid article:last-child { border: 0; }
.steps-grid article > b { position: absolute; right: 25px; top: 22px; color: #55525d; font-size: 13px; }
.step-icon { width: 74px; height: 74px; display: grid; place-items: center; margin: 30px 0 45px; border-radius: 20px; background: var(--violet); color: var(--lime); font-size: 32px; font-weight: 300; transform: rotate(-3deg); }
.steps-grid article:nth-child(2) .step-icon { color: #17161d; background: var(--lime); transform: rotate(4deg); }
.steps-grid article:nth-child(3) .step-icon { color: #fff; background: #33313a; transform: rotate(-2deg); }
.paste-icon::before { content: ""; width: 25px; height: 30px; border: 2px solid currentColor; border-radius: 5px; box-shadow: 8px 8px 0 -2px #17161d, 8px 8px 0 0 currentColor; }
.steps-grid h3 { margin: 0 0 10px; font-size: 24px; }
.steps-grid p { max-width: 255px; margin: 0; color: #aaa7b2; font-size: 14px; line-height: 1.65; }

.final-cta { display: flex; align-items: center; justify-content: space-between; margin: clamp(96px, 8vw, 120px) auto; padding: 42px 48px; border-radius: 24px; background: var(--violet); color: #fff; }
.final-cta p { margin: 0; font-size: clamp(26px, 3vw, 42px); font-weight: 780; letter-spacing: -.04em; }
.final-cta a { display: inline-flex; gap: 11px; align-items: center; padding: 14px 18px; border-radius: 12px; background: var(--lime); color: #24221d; font-weight: 780; }
.footer { min-height: 110px; display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.footer .logo { color: var(--ink); font-size: 25px; }
.footer p { margin: 0; }
.footer nav { display: flex; gap: 20px; }
.footer nav a:hover { color: var(--violet); }

.legal, .narrow-page { padding: 80px 0 120px; }
.legal { width: min(760px, calc(100% - 40px)); }
.legal h1, .narrow-page h1 { margin: 16px 0 22px; font-size: clamp(42px, 6vw, 72px); line-height: 1; letter-spacing: -.055em; }
.legal-lead { color: var(--muted); font-size: 20px; }
.legal section { padding: 28px 0; border-top: 1px solid var(--line); }
.legal h2 { margin: 0 0 9px; font-size: 21px; }
.legal p { margin: 0; color: #565361; line-height: 1.75; }
.legal code, .narrow-page code { padding: 2px 7px; border-radius: 6px; background: var(--violet-soft); color: var(--violet-dark); }
.text-link, .back-link { display: inline-block; margin-top: 30px; color: var(--violet); font-weight: 750; }
.narrow-page { width: min(610px, calc(100% - 40px)); margin-inline: auto; }
.narrow-page > p { color: var(--muted); }

.stack-form { display: grid; gap: 18px; margin-top: 26px; }
.stack-form label, .danger-form label { display: grid; gap: 7px; color: #44414d; font-size: 13px; font-weight: 730; }
.stack-form label > span, .danger-form label > span { color: var(--muted); font-size: 11px; font-weight: 500; }
.stack-form input, .stack-form select, .stack-form textarea, .danger-form input, .filter-row input, .filter-row select {
  width: 100%; min-height: 49px; border: 1px solid var(--line); border-radius: 11px; background: #fff; color: var(--ink); padding: 10px 13px; outline: none;
}
.stack-form textarea { resize: vertical; min-height: 120px; }
.stack-form input:focus, .stack-form select:focus, .stack-form textarea:focus, .danger-form input:focus, .filter-row input:focus, .filter-row select:focus { border-color: var(--violet); box-shadow: 0 0 0 4px rgb(108 76 255 / 9%); }
.stack-form > .primary-button { min-height: 52px; }
.notice { padding: 13px 15px; border-radius: 10px; font-size: 13px; }
.notice.error { color: #922437; background: #fff0f2; border: 1px solid #f4c4cb; }
.notice.success { color: #12633f; background: #effbea; border: 1px solid #c9eabd; }

.error-body { min-height: 100vh; background: #17161d; color: #fff; }
.error-page { min-height: 100vh; width: min(600px, calc(100% - 40px)); margin: auto; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.error-page .logo { color: #fff; }
.error-logo { margin-bottom: 45px; }
.error-code { color: var(--lime); font-size: 12px; font-weight: 900; letter-spacing: .2em; }
.error-page h1 { margin: 13px 0; font-size: clamp(40px, 7vw, 72px); line-height: 1; letter-spacing: -.05em; }
.error-page p { max-width: 450px; margin: 0 0 30px; color: #aaa7b2; }
.error-page .primary-button { padding-inline: 24px; }

/* Admin */
.admin-body { min-height: 100vh; background: #f1f0f6; }
.admin-layout { min-height: 100vh; display: grid; grid-template-columns: 245px 1fr; }
.admin-sidebar { position: fixed; inset: 0 auto 0 0; width: 245px; display: flex; flex-direction: column; padding: 28px 20px 20px; background: #17161d; color: #fff; }
.admin-sidebar > .logo { margin-left: 11px; color: #fff; }
.admin-label { margin: 46px 12px 12px; color: #716e79; font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.admin-sidebar nav { display: grid; gap: 4px; }
.admin-sidebar nav a { display: flex; align-items: center; gap: 13px; height: 46px; padding: 0 12px; border-radius: 10px; color: #aaa7b2; font-size: 13px; font-weight: 650; }
.admin-sidebar nav a i { width: 23px; color: #77747f; font-style: normal; font-size: 19px; text-align: center; }
.admin-sidebar nav a:hover { background: #24232a; color: #fff; }
.admin-sidebar nav a.active { background: var(--violet); color: #fff; box-shadow: 0 8px 26px rgb(108 76 255 / 22%); }
.admin-sidebar nav a.active i { color: var(--lime); }
.admin-user { display: flex; gap: 11px; align-items: center; margin-top: auto; padding: 15px 10px; border-top: 1px solid #302e36; }
.admin-user > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: #201f25; background: var(--lime); font-weight: 900; }
.admin-user div { display: flex; flex-direction: column; min-width: 0; }
.admin-user b { overflow: hidden; text-overflow: ellipsis; font-size: 12px; }
.admin-user small { color: #77747f; font-size: 10px; }
.admin-sidebar form button { width: 100%; display: flex; justify-content: space-between; border: 0; padding: 9px 11px; background: transparent; color: #77747f; font-size: 12px; }
.admin-sidebar form button:hover { color: #fff; }
.admin-main { grid-column: 2; min-width: 0; padding: 42px 44px 70px; }
.admin-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 25px; margin-bottom: 31px; }
.admin-header h1 { margin: 8px 0 3px; font-size: 33px; line-height: 1.1; letter-spacing: -.04em; }
.admin-header p { margin: 0; color: var(--muted); font-size: 13px; }
.admin-header .outline-button { min-height: 42px; font-size: 12px; }
.admin-header.compact { align-items: center; }
.admin-header.compact h1 { font-size: 38px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.metric-grid article { min-height: 135px; display: flex; flex-direction: column; padding: 20px; border: 1px solid #e3e1e9; border-radius: 16px; background: #fff; box-shadow: 0 6px 20px rgb(34 28 62 / 3%); }
.metric-grid article > span { color: var(--muted); font-size: 11px; font-weight: 700; }
.metric-grid article strong { margin: auto 0 0; font-size: 31px; letter-spacing: -.04em; }
.metric-grid article small { color: #898592; font-size: 10px; }
.metric-grid article.accent { background: var(--violet); color: #fff; border-color: var(--violet); }
.metric-grid article.accent > span, .metric-grid article.accent small { color: #d6d0ff; }
.metric-grid article.warning { background: #fff8e8; border-color: #f3dba3; }
.metric-grid article.warning strong { color: var(--orange); }
.admin-panel { border: 1px solid #e1dfe7; border-radius: 16px; background: #fff; box-shadow: 0 8px 26px rgb(34 28 62 / 3%); overflow: hidden; }
.panel-head { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 17px 20px; border-bottom: 1px solid #eceaf0; }
.panel-head h2 { margin: 0; font-size: 15px; }
.panel-head p { margin: 2px 0 0; color: #918e99; font-size: 10px; }
.panel-head > a { color: var(--violet); font-size: 11px; font-weight: 750; }
.chart-panel { margin-bottom: 18px; }
.legend { color: var(--muted); font-size: 10px; }
.legend i { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: var(--violet); }
.analytics-chart { display: block; width: calc(100% - 40px); height: 210px; margin: 8px 20px 0; overflow: visible; }
.analytics-chart line { stroke: #eeecf2; stroke-width: 1; }
.analytics-chart polyline { fill: none; stroke: var(--violet); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.chart-dates { display: flex; justify-content: space-between; padding: 0 20px 14px; color: #9b98a3; font-size: 9px; }
.empty-chart { height: 210px; display: grid; place-items: center; color: #aaa7b2; font-size: 12px; }
.admin-columns { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(240px, .9fr); gap: 18px; }
.admin-columns.two { grid-template-columns: 1fr 1fr; margin-top: 18px; }
.reports-panel ul { list-style: none; padding: 5px 20px 15px; margin: 0; }
.reports-panel li { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; padding: 11px 0; border-bottom: 1px solid #eeecf2; }
.reports-panel li:last-child { border: 0; }
.reports-panel li > span { padding: 2px 6px; border-radius: 5px; background: #fff0f2; color: var(--red); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.reports-panel li a { color: var(--violet); font-size: 12px; font-weight: 750; }
.reports-panel li p { grid-column: 1 / -1; margin: 5px 0 0; color: #77737f; font-size: 10px; line-height: 1.45; }
.reports-panel li time { grid-column: 2; color: #9995a1; font-size: 9px; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 11px; }
th { height: 39px; padding: 0 16px; background: #faf9fc; color: #8d8996; font-size: 9px; font-weight: 780; letter-spacing: .04em; text-align: left; text-transform: uppercase; white-space: nowrap; }
td { height: 57px; padding: 8px 16px; border-top: 1px solid #eeecf2; color: #55515e; vertical-align: middle; }
.code-link { color: var(--violet); font-weight: 800; font-size: 12px; }
.host-cell { display: block; max-width: 240px; overflow: hidden; text-overflow: ellipsis; color: var(--ink); font-weight: 650; white-space: nowrap; }
.url-preview { display: block; max-width: 360px; overflow: hidden; text-overflow: ellipsis; color: #9995a1; white-space: nowrap; }
.number-cell { color: var(--ink); font-weight: 740; font-variant-numeric: tabular-nums; }
.empty-cell { color: #9995a1; text-align: center; padding: 28px !important; }
.status-badge { display: inline-flex; align-items: center; gap: 5px; border-radius: 99px; padding: 4px 8px; background: #f0eff4; color: #6e6b75; font-size: 8px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; }
.status-badge i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-badge.active { background: #eaf8ef; color: var(--green); }
.status-badge.blocked { background: #fff0f2; color: var(--red); }
.filter-row { display: grid; grid-template-columns: minmax(220px, 1fr) 180px auto; gap: 10px; padding: 18px; }
.filter-row input, .filter-row select { min-height: 43px; font-size: 12px; }
.search-field { position: relative; }
.search-field > span { position: absolute; z-index: 1; left: 13px; top: 9px; color: #9a96a1; font-size: 18px; }
.search-field input { padding-left: 39px; }
.filter-row .outline-button { min-height: 43px; font-size: 11px; }
.back-link { margin: 0 0 18px; font-size: 12px; }
.detail-grid { display: grid; grid-template-columns: 1.7fr .8fr; gap: 18px; margin-bottom: 18px; }
.link-overview { padding-bottom: 20px; }
.link-overview .panel-head { margin-bottom: 18px; }
.link-overview > code { display: block; margin: 0 20px 14px; padding: 12px; border-radius: 9px; background: #f6f5f9; color: #57535f; overflow-wrap: anywhere; font-size: 11px; }
.link-overview > .outline-button { margin-left: 20px; min-height: 38px; font-size: 10px; }
.link-overview dl { display: grid; grid-template-columns: repeat(3, 1fr); margin: 20px 20px 0; padding: 16px 0; border-block: 1px solid #eceaf0; }
.link-overview dl div { padding: 0 12px; border-right: 1px solid #eceaf0; }
.link-overview dl div:last-child { border: 0; }
.link-overview dt { color: #9995a1; font-size: 9px; }
.link-overview dd { margin: 3px 0 0; color: var(--ink); font-size: 11px; font-weight: 720; }
.danger-form { display: flex; align-items: end; gap: 10px; margin: 18px 20px 0; }
.danger-form label { flex: 1 1 180px; }
.danger-form input { min-height: 42px; font-size: 11px; }
.danger-form button { min-height: 42px; font-size: 10px; }
.link-metrics { display: grid; grid-template-columns: 1fr; }
.link-metrics article { display: flex; flex-direction: column; justify-content: center; padding: 24px; border-bottom: 1px solid #eceaf0; }
.link-metrics article:last-child { border: 0; }
.link-metrics span { color: var(--muted); font-size: 11px; }
.link-metrics strong { margin-top: 5px; font-size: 31px; }
.breakdown { list-style: none; padding: 17px 20px 22px; margin: 0; }
.breakdown li { margin-bottom: 14px; }
.breakdown li:last-child { margin: 0; }
.breakdown li > div { display: flex; justify-content: space-between; margin-bottom: 5px; font-size: 10px; }
.breakdown progress { display: block; width: 100%; height: 5px; border: 0; border-radius: 99px; overflow: hidden; appearance: none; }
.breakdown progress::-webkit-progress-bar { background: #eeecf2; }
.breakdown progress::-webkit-progress-value { background: var(--violet); border-radius: 99px; }
.breakdown progress::-moz-progress-bar { background: var(--violet); border-radius: 99px; }
.security-card { max-width: 620px; padding: 25px; }
.security-card h2 { margin: 0; }
.security-card .stack-form { margin-top: 20px; }

.login-body { min-height: 100vh; background: #17161d; }
.login-page { min-height: 100vh; width: min(430px, calc(100% - 36px)); margin: auto; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 35px 0; }
.login-page > .logo { margin-bottom: 28px; color: #fff; }
.login-card { width: 100%; padding: 34px; border: 1px solid #393740; border-radius: 22px; background: #211f27; color: #fff; box-shadow: 0 28px 75px rgb(0 0 0 / 30%); }
.login-card h1 { margin: 12px 0 5px; font-size: 32px; letter-spacing: -.04em; }
.login-card > p { margin: 0; color: #928f9a; font-size: 12px; }
.login-card .stack-form label { color: #bbb8c1; }
.login-card .stack-form input { border-color: #3f3c46; background: #19181d; color: #fff; }
.login-page > small { margin-top: 18px; color: #65626d; }

@media (max-width: 1050px) {
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-columns { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
  .container { width: min(100% - 28px, 680px); }
  .topbar { height: 72px; }
  .topbar nav { display: none; }
  .hero { padding-top: 48px; padding-bottom: 75px; }
  .hero h1 { margin-top: 20px; font-size: clamp(48px, 15vw, 74px); }
  .hero-lead { font-size: 16px; }
  .shortener-card { padding: 17px; border-radius: 21px; }
  .url-row { grid-template-columns: 1fr; }
  .url-field { height: 58px; }
  .url-row > .primary-button { min-height: 54px; }
  .result-panel { grid-template-columns: auto 1fr; }
  .copy-button { grid-column: 1 / -1; justify-content: center; }
  .trust-strip { grid-template-columns: 1fr; gap: 10px; margin-top: 30px; }
  .trust-strip div { border: 0; }
  .how-section { padding: 75px 0; }
  .section-heading { gap: 14px; margin-bottom: 35px; }
  .steps-grid { grid-template-columns: 1fr; }
  .steps-grid article { min-height: 245px; border-right: 0; border-bottom: 1px solid #38363f; }
  .step-icon { margin: 15px 0 30px; }
  .final-cta { display: grid; gap: 22px; padding: 28px; margin: 80px auto; }
  .final-cta a { justify-content: center; }
  .footer { grid-template-columns: 1fr auto; gap: 13px; padding: 25px 0; }
  .footer p { display: none; }
  .footer nav { grid-row: 2; grid-column: 1 / -1; flex-wrap: wrap; }
  .legal, .narrow-page { padding-top: 45px; }

  .admin-layout { display: block; padding-bottom: 68px; }
  .admin-sidebar { z-index: 20; inset: auto 0 0; width: 100%; height: 65px; display: block; padding: 6px 10px; border-top: 1px solid #34323a; }
  .admin-sidebar > .logo, .admin-label, .admin-user, .admin-sidebar > form { display: none; }
  .admin-sidebar nav { height: 100%; grid-template-columns: repeat(4, 1fr); gap: 3px; }
  .admin-sidebar nav a { height: 100%; flex-direction: column; justify-content: center; gap: 1px; padding: 0; font-size: 9px; }
  .admin-sidebar nav a i { height: 20px; font-size: 17px; }
  .admin-main { padding: 28px 14px 45px; }
  .admin-header { align-items: center; }
  .admin-header h1 { font-size: 27px; }
  .admin-header .outline-button { display: none; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .metric-grid article { min-height: 115px; padding: 15px; }
  .metric-grid article strong { font-size: 26px; }
  .analytics-chart { height: 160px; }
  .filter-row { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .link-overview dl { grid-template-columns: 1fr; gap: 12px; }
  .link-overview dl div { border: 0; }
  .danger-form { grid-template-columns: 1fr; }
  .link-metrics { grid-template-columns: 1fr 1fr; }
  .link-metrics article { border-bottom: 0; border-right: 1px solid #eceaf0; }
  .admin-columns.two { grid-template-columns: 1fr; }
}

@media (max-width: 430px) {
  .hero h1 { font-size: 45px; }
  .eyebrow { font-size: 10px; }
  .shortener-card { margin-inline: -2px; }
  .result-main strong { font-size: 17px; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric-grid article > span { min-height: 32px; }
  .login-card { padding: 25px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
