:root {
  color-scheme: light;
  --ink: #101431;
  --muted: #202653;
  --purple: #7900f5;
  --purple-deep: #5100ce;
  --line: #d9caff;
  --panel: rgba(255,255,255,.77);
  --shadow: 0 12px 34px rgba(111,52,197,.09), inset 0 1px 0 rgba(255,255,255,.94);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-width: 320px; min-height: 100vh; overflow-x: hidden;
  color: var(--ink); font-family: "DM Sans", Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  background: radial-gradient(ellipse at 50% 0%, #fff 0%, #faf6ff 39%, #f7f3ff 100%);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
button, input { font: inherit; }
a { -webkit-tap-highlight-color: transparent; }
.ambient { position: fixed; z-index: -1; pointer-events: none; width: 43vw; height: 220px; opacity: .7; filter: blur(1px); }
.ambient-top { top: -105px; left: -8%; border-radius: 0 0 65% 45%; background: linear-gradient(130deg,#f0dfff,#b34cff 65%,#e7c8ff); transform: rotate(-8deg); }
.ambient-bottom { bottom: -115px; right: -8%; border-radius: 65% 0 0; background: linear-gradient(130deg,#e7c8ff,#a52dff); }
.page-shell { width: min(1100px, calc(100% - 64px)); margin: 0 auto; padding: 12px 0 28px; }
.brand { height: 116px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.brand-crown { width: 48px; height: 37px; fill: #7100ec; stroke: #7100ec; stroke-width: 1.7; stroke-linejoin: round; }
.brand-word { font-size: 39px; line-height: 1; font-weight: 900; letter-spacing: -2.4px; white-space: nowrap; }
.brand-word span { color: #7900ef; }
.brand-tag { margin-top: 8px; color: #171d55; font-size: 11px; font-weight: 900; letter-spacing: 2.45px; }
.top-grid { display: grid; grid-template-columns: .94fr 1.1fr; gap: 20px; align-items: stretch; }
.panel, .analytics-contact { background: var(--panel); border: 1px solid rgba(204,184,255,.76); border-radius: 25px; box-shadow: var(--shadow); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.login-panel { padding: 31px 32px 28px; }
.eyebrow { margin: 0 0 7px; color: #7800f3; font-size: 12px; line-height: 1.25; font-weight: 900; letter-spacing: 1.25px; }
.login-panel h1 { margin: 0 0 8px; font-size: clamp(27px, 2.8vw, 31px); line-height: 1.12; letter-spacing: -1.5px; font-weight: 900; }
.login-panel h1 span, .feature-heading h2 span { color: #7900ef; }
.intro { margin: 0; color: #171d4e; font-size: 14px; line-height: 1.45; }
.login-form { display: grid; gap: 12px; margin-top: 20px; }
.field { display: flex; align-items: center; gap: 12px; width: 100%; height: 45px; padding: 0 15px; border: 1px solid #cbbaff; border-radius: 14px; background: rgba(248,246,255,.78); box-shadow: inset 0 1px 2px #fff; }
.field > svg, .eye svg { width: 20px; height: 20px; flex: none; fill: none; stroke: #333a79; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.field input { width: 100%; min-width: 0; padding: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 14px; font-weight: 500; }
.field input::placeholder { color: #161b4c; opacity: 1; }
.eye { display: grid; flex: none; place-items: center; padding: 2px; border: 0; background: transparent; cursor: pointer; }
.primary-btn { display: flex; align-items: center; justify-content: center; gap: 17px; min-height: 47px; padding: 0 22px; border: 0; border-radius: 14px; color: #fff; background: linear-gradient(110deg,#a000ff 0%,#7800ed 56%,#4e00c9 100%); box-shadow: 0 7px 14px rgba(102,0,221,.28), inset 0 1px 0 rgba(255,255,255,.28); font-size: 17px; line-height: 1.2; font-weight: 800; text-decoration: none; cursor: pointer; transition: transform .2s, filter .2s; }
.primary-btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.primary-btn span { font-size: 24px; line-height: 0; }
.login-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 13px; }
.login-actions a { display: grid; place-items: center; min-height: 42px; padding: 6px 8px; border: 1px solid #9c65ff; border-radius: 13px; color: #171078; background: rgba(255,255,255,.58); font-size: 14px; font-weight: 800; text-align: center; text-decoration: none; }
.login-actions a.create-shortner-btn { display: flex; align-items: center; justify-content: center; gap: 8px; }
.shortner-link-icon { width: 17px; height: 17px; flex: 0 0 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.secure-note { margin: 16px 0 0; color: #151b51; font-size: 12px; text-align: center; }
.analytics-panel { display: flex; flex-direction: column; padding: 24px 20px 17px; }
.analytics-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 0 4px 13px; }
.analytics-head h2 { margin: 0 0 4px; font-size: 29px; line-height: 1.1; letter-spacing: -1px; font-weight: 900; }
.stats-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-content: start; gap: 11px; flex: 0 0 auto; }
.stat { display: flex; align-items: center; gap: 13px; min-width: 0; height: 63px; padding: 7px 12px; border: 1px solid #d3c2ff; border-radius: 17px; background: linear-gradient(110deg,rgba(255,255,255,.88),rgba(239,220,255,.75)); }
.stat-icon { display: grid; flex: none; place-items: center; width: 45px; height: 45px; border-radius: 50%; color: #7900e9; background: #f1dfff; }
.stat-icon svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.stat strong { display: block; font-size: 21px; line-height: 1.05; font-weight: 900; letter-spacing: -.6px; }
.stat small { display: block; margin-top: 2px; color: #141a4b; font-size: 13px; line-height: 1.2; }
.stat-blue { background: linear-gradient(110deg,#fff,#e5eaff); }
.stat-blue .stat-icon { color: #0878e9; background: #dcecff; }
.stat-blue .stat-icon svg { fill: currentColor; stroke: currentColor; }
.stat-violet .stat-icon { background: #e9d9ff; }
.stat-pink { background: linear-gradient(110deg,#fff,#ffe7f4); }
.stat-pink .stat-icon { color: #ec1687; background: #ffe0eb; }
.features-panel { margin-top: 20px; padding: 24px 20px 17px; }
.feature-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 8px 10px; }
.feature-heading h2 { margin: 0 0 5px; font-size: clamp(27px,3.2vw,36px); line-height: 1.12; letter-spacing: -1.8px; font-weight: 900; }
.feature-heading .intro { font-size: 16px; }
.link-art { position: relative; flex: 0 0 290px; width: 290px; height: 112px; margin: 5px 25px 0 0; transform: rotate(5deg); filter: drop-shadow(0 12px 12px #8c42d344); }
.link-art::before { position: absolute; inset: 20px 0 0 22px; border: 1px solid #c6aaff; border-radius: 17px; background: linear-gradient(130deg,#fff,#e9d8ff); box-shadow: inset 0 2px 4px #fff; content: ""; }
.art-crown { position: absolute; z-index: 2; top: -12px; right: 70px; display: grid; place-items: center; width: 88px; height: 48px; border-radius: 12px; background: linear-gradient(120deg,#a000ff,#5e00d6); box-shadow: 0 6px 10px #8e45d866; }
.art-crown svg { width: 48px; height: 38px; fill: #fff; stroke: #fff; stroke-width: 1.5; }
.long-url, .short-url { position: absolute; left: 52px; right: 23px; display: flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 9px; background: #fff; box-shadow: 0 3px 7px #4c1c8b17; font-size: 12px; font-weight: 700; white-space: nowrap; }
.long-url { top: 38px; }
.short-url { top: 73px; color: #fff; background: linear-gradient(100deg,#a000ff,#5600d5); font-size: 13px; }
.short-url b { display: grid; place-items: center; margin-left: auto; }
.short-url svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.art-arrow { position: absolute; top: 65px; left: 0; color: #8b00ff; font-size: 40px; transform: rotate(12deg); }
.feature-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; }
.feature { position: relative; min-width: 0; min-height: 145px; overflow: hidden; padding: 9px 20px 14px; border: 1px solid #d8c5ff; border-radius: 20px; background: linear-gradient(135deg,#fff,#f1e5ff); }
.feature::after { position: absolute; right: -15px; bottom: -30px; width: 120px; height: 55px; border-radius: 70% 0 0; background: linear-gradient(120deg,transparent,#b66bff66); content: ""; }
.feature-icon { position: relative; z-index: 1; display: grid; place-items: center; width: 51px; height: 44px; border-radius: 13px; color: #fff; background: linear-gradient(135deg,#c46aff,#6100e8); box-shadow: 0 5px 9px #7900e84a; }
.feature-icon svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.feature-purple .feature-icon svg { fill: currentColor; stroke: currentColor; }
.feature h3 { position: relative; z-index: 1; margin: 6px 0 3px; font-size: 18px; line-height: 1.15; letter-spacing: -.7px; font-weight: 900; }
.feature p { position: relative; z-index: 1; margin: 0; color: #12183e; font-size: 14px; line-height: 1.35; }
.feature-pink { border-color: #f4c7f4; background: linear-gradient(135deg,#fff,#ffe8fa); }
.feature-pink .feature-icon { background: linear-gradient(135deg,#ff6ac6,#e60092); }
.feature-blue { border-color: #c5dfff; background: linear-gradient(135deg,#fff,#e7f2ff); }
.feature-blue .feature-icon { background: linear-gradient(135deg,#73c9ff,#0069e8); }
.feature-magenta { border-color: #f2c4f4; background: linear-gradient(135deg,#fff,#ffe8fa); }
.feature-magenta .feature-icon { background: linear-gradient(135deg,#e879ce,#9d27b8); }
.analytics-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex: 0 0 auto;
  margin-top: 22px;
  padding: 14px 15px;
  min-height: 82px;
  border-radius: 18px;
}
.contact-copy { flex: 1 1 auto; min-width: 0; }
.contact-copy h2 { margin: 0 0 5px; font-size: 19px; line-height: 1.2; letter-spacing: -.65px; font-weight: 900; }
.contact-copy p { max-width: 330px; margin: 0; color: #151b4d; font-size: 12px; line-height: 1.45; }
.contact-btn { flex: 0 0 178px; width: 178px; min-width: 178px; min-height: 44px; padding-inline: 12px; gap: 9px; font-size: 13px; white-space: nowrap; }
.contact-btn span { font-size: 20px; }
.footer { position: relative; display: grid; grid-template-columns: 200px minmax(0,1fr) auto; align-items: center; gap: 20px; margin-top: 23px; padding: 44px 34px 0; }
.footer-brand { display: flex; flex-direction: column; align-items: center; text-align: center; }
.footer-crown { width: 37px; height: 29px; fill: #7800ed; stroke: #7800ed; stroke-width: 1.7; }
.footer-brand .brand-word { font-size: 29px; letter-spacing: -1.8px; }
.footer-brand small { margin-top: 6px; font-size: 9px; font-weight: 900; letter-spacing: 1.5px; }
.footer nav { display: flex; justify-content: center; flex-wrap: wrap; gap: clamp(16px,4vw,44px); }
.footer nav a { color: #111638; font-size: 14px; font-weight: 800; text-decoration: none; }
.socials { display: flex; gap: 10px; padding-left: 32px; border-left: 1px solid #bca2ff; }
.socials a { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 50%; color: #fff; background: #159ce9; }
.socials a:nth-child(2) { background: #ed1d31; }
.socials a:nth-child(3) { background: #19c978; }
.socials svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.socials a:nth-child(2) svg { fill: currentColor; stroke: none; }
.copyright { grid-column: 1 / -1; margin: 0; padding: 0 0 4px; color: #151a4a; font-size: 13px; text-align: center; }
:focus-visible { outline: 3px solid rgba(121,0,245,.45); outline-offset: 3px; }

@media (max-width: 900px) {
  .page-shell { width: min(700px,calc(100% - 36px)); }
  .top-grid { grid-template-columns: 1fr; }
  .feature-heading h2 { font-size: 31px; }
  .link-art { flex-basis: 245px; width: 245px; margin-right: 4px; transform: scale(.88) rotate(5deg); transform-origin: right center; }
  .feature-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .footer { grid-template-columns: 1fr; justify-items: center; padding-top: 30px; }
  .footer nav { gap: 18px 30px; }
  .socials { padding: 0; border: 0; }
  .copyright { grid-column: auto; }
}
@media (max-width: 560px) {
  .page-shell { width: calc(100% - 24px); padding-top: 3px; }
  .brand { height: 110px; }
  .brand-crown { width: 43px; height: 34px; }
  .brand-word { font-size: 35px; letter-spacing: -2px; }
  .brand-tag { margin-top: 7px; font-size: 9px; letter-spacing: 2px; }
  .panel, .analytics-contact { border-radius: 16px; }
  .top-grid { gap: 14px; }
  .login-panel { padding: 24px 19px; }
  .login-panel h1 { font-size: clamp(25px,7vw,29px); letter-spacing: -1.2px; }
  .intro { font-size: 13px; }
  .login-form { margin-top: 18px; gap: 11px; }
  .field { height: 46px; padding: 0 12px; }
  .field input { font-size: 13px; }
  .primary-btn { min-height: 46px; font-size: 16px; }
  .login-actions { gap: 9px; }
  .login-actions a { min-height: 42px; font-size: 12px; }
  .secure-note { font-size: 11px; }
  .analytics-panel { padding: 19px 13px 13px; }
  .analytics-head { padding: 0 2px 12px; }
  .analytics-head h2 { font-size: 26px; }
  .analytics-head .intro { max-width: 205px; font-size: 12px; }
  .stats-grid { gap: 8px; }
  .stat { height: 59px; gap: 8px; padding: 6px 8px; border-radius: 14px; }
  .stat-icon { width: 36px; height: 36px; }
  .stat-icon svg { width: 22px; height: 22px; }
  .stat strong { font-size: clamp(16px,4.7vw,19px); }
  .stat small { font-size: 10px; }
  .features-panel { margin-top: 14px; padding: 21px 13px 14px; }
  .feature-heading { padding: 0 5px 12px; }
  .feature-heading h2 { font-size: clamp(25px,7vw,29px); letter-spacing: -1.3px; }
  .feature-heading .intro { max-width: 330px; font-size: 12px; }
  .link-art { display: none; }
  .feature-grid { gap: 9px; }
  .feature { min-height: 147px; padding: 10px 11px 12px; border-radius: 16px; }
  .feature-icon { width: 42px; height: 39px; border-radius: 11px; }
  .feature-icon svg { width: 23px; height: 23px; }
  .feature h3 { margin-top: 7px; font-size: clamp(13px,3.8vw,15px); letter-spacing: -.5px; }
  .feature p { font-size: 11px; line-height: 1.35; }
  .analytics-contact { display: grid; grid-template-columns: minmax(0,1fr); gap: 11px; margin-top: 15px; padding: 13px 12px; min-height: 0; border-radius: 14px; }
  .contact-copy h2 { font-size: 17px; margin-bottom: 4px; }
  .contact-copy p { max-width: none; font-size: 11px; line-height: 1.4; }
  .contact-btn { grid-column: 1; width: 100%; min-width: 0; min-height: 42px; flex: auto; }
  .footer { gap: 18px; padding: 28px 8px 0; }
  .footer-brand .brand-word { font-size: 28px; }
  .footer nav { gap: 14px 21px; }
  .footer nav a { font-size: 12px; }
  .socials { gap: 9px; }
  .socials a { width: 34px; height: 34px; }
  .copyright { font-size: 11px; }
}
@media (max-width: 360px) {
  .login-actions { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .feature { min-height: 155px; }
  .stat { gap: 6px; padding-inline: 6px; }
  .stat-icon { width: 31px; height: 31px; }
  .stat-icon svg { width: 19px; height: 19px; }
  .stat small { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* ==========================================================
   KINGLINK SVG / ICON NORMALIZATION
   Explicit SVG paint prevents host/theme CSS from turning
   icons black or changing their intended fill and strokes.
   ========================================================== */
.brand-crown,
.footer-crown {
  display: block;
  overflow: visible;
  fill: #7100ec !important;
  stroke: #7100ec !important;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.brand-crown path,
.brand-crown circle,
.footer-crown path,
.footer-crown circle {
  fill: #7100ec !important;
  stroke: #7100ec !important;
}

/* Login fields and password visibility */
.field > svg,
.eye svg {
  display: block;
  fill: none !important;
  stroke: #333a79 !important;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.field > svg path,
.field > svg rect,
.eye svg path,
.eye svg circle {
  fill: none !important;
  stroke: #333a79 !important;
}

/* Analytics: each icon inherits its own semantic accent colour. */
.stat-icon { color: #7900e9 !important; }
.stat-purple .stat-icon { color: #7900e9 !important; }
.stat-violet .stat-icon { color: #7900e9 !important; }
.stat-blue .stat-icon { color: #0878e9 !important; }
.stat-pink .stat-icon { color: #ec1687 !important; }
.stat-icon svg {
  display: block;
  overflow: visible;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.stat-icon svg path,
.stat-icon svg circle,
.stat-icon svg rect,
.stat-icon svg line,
.stat-icon svg polyline {
  fill: none !important;
  stroke: currentColor !important;
}
/* The pointer is intentionally a solid blue glyph. */
.stat-blue .stat-icon svg path {
  fill: currentColor !important;
  stroke: currentColor !important;
}

/* Feature glyphs are white on their coloured gradient tiles. */
.feature-icon { color: #fff !important; }
.feature-icon svg {
  display: block;
  overflow: visible;
  fill: none !important;
  stroke: #fff !important;
  stroke-width: 2.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature-icon svg path,
.feature-icon svg circle,
.feature-icon svg rect,
.feature-icon svg line,
.feature-icon svg polyline {
  fill: none !important;
  stroke: #fff !important;
}
.feature-purple .feature-icon svg path {
  fill: #fff !important;
  stroke: #fff !important;
}

/* Royal crown on the floating link illustration. */
.art-crown { color: #fff !important; }
.art-crown svg {
  display: block;
  overflow: visible;
  fill: #fff !important;
  stroke: #fff !important;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.art-crown svg path { fill: #fff !important; stroke: #fff !important; }

/* Copy, contact and social symbols */
.short-url svg,
.socials svg {
  display: block;
  overflow: visible;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.short-url { color: #fff; }
.socials a { color: #fff !important; }
.socials a svg path,
.socials a svg rect,
.socials a svg circle { fill: none !important; stroke: #fff !important; }
.socials a:nth-child(2) svg path:nth-of-type(2) { fill: #fff !important; stroke: none !important; }

/* Keep SVGs crisp and prevent flex/grid stretching. */
svg { flex-shrink: 0; shape-rendering: geometricPrecision; }
