:root {
  --ll-bg: #0b1020;
  --ll-bg-soft: #11182d;
  --ll-panel: #161e35;
  --ll-panel-strong: #1b2440;
  --ll-cyan: #32e6ff;
  --ll-purple: #8e44ff;
  --ll-orange: #ff8b3d;
  --ll-magenta: #ff2f92;
  --ll-dark: #f6f8ff;
  --ll-muted: #a7afc5;
  --ll-line: rgba(255, 255, 255, 0.12);
  --ll-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  --ll-radius: 24px;
  --ll-body-font: "Inter", "Segoe UI", system-ui, sans-serif;
  --ll-headline-font: "Saira Stencil One", "Inter", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--ll-body-font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ll-dark);
  background:
    radial-gradient(circle at 12% 8%, rgba(50, 230, 255, 0.16), transparent 42%),
    radial-gradient(circle at 88% 92%, rgba(255, 47, 146, 0.18), transparent 46%),
    var(--ll-bg);
}

a {
  color: inherit;
  text-decoration: none;
}

.ll-links-bg {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.ll-links-bg .orb {
  position: absolute;
  width: 38vw;
  height: 38vw;
  border-radius: 999px;
  filter: blur(42px);
  opacity: 0.22;
}

.ll-links-bg .orb-a {
  left: -12vw;
  top: -8vw;
  background: var(--ll-cyan);
}

.ll-links-bg .orb-b {
  right: -16vw;
  bottom: -10vw;
  background: var(--ll-magenta);
}

.ll-links-bg .grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--ll-line) 1px, transparent 1px), linear-gradient(90deg, var(--ll-line) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.2;
}

.ll-shell {
  width: min(1100px, calc(100% - 32px));
  margin: 28px auto 40px;
}

.ll-hero-card,
.ll-admin-card,
.ll-link-card,
.ll-empty-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent 44%), var(--ll-panel);
  border: 1px solid var(--ll-line);
  border-radius: var(--ll-radius);
  box-shadow: var(--ll-shadow);
}

.ll-hero-card {
  padding: clamp(22px, 4vw, 36px);
  margin-bottom: 22px;
}

.ll-kicker {
  display: inline-flex;
  margin: 0 0 10px;
  padding: 6px 11px;
  border: 1px solid rgba(50, 230, 255, 0.35);
  border-radius: 999px;
  color: var(--ll-cyan);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.2;
}

h1 {
  font-family: var(--ll-headline-font);
  font-size: clamp(1.9rem, 3vw + 0.6rem, 3.4rem);
  margin-bottom: 12px;
}

.ll-hero-card p {
  margin: 0;
  color: rgba(246, 248, 255, 0.9);
  max-width: 68ch;
}

.ll-links-section {
  margin-top: 10px;
}

.ll-link-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ll-link-card {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ll-link-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ll-link-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: var(--ll-panel-strong);
  font-weight: 800;
}

.ll-link-head h2 {
  font-size: 1.05rem;
}

.ll-link-category {
  margin: 3px 0 0;
  color: var(--ll-muted);
  font-size: 0.82rem;
}

.ll-link-description {
  margin: 0;
  color: rgba(246, 248, 255, 0.86);
  font-size: 0.94rem;
}

.ll-code-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px dashed rgba(255, 139, 61, 0.42);
  color: var(--ll-orange);
  background: rgba(255, 139, 61, 0.08);
}

.ll-code-chip strong {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
}

.ll-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ll-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--ll-line);
  background: var(--ll-panel-strong);
  color: var(--ll-dark);
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9rem;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.ll-btn:hover,
.ll-btn:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.3);
}

.ll-btn-primary {
  background: linear-gradient(135deg, var(--ll-magenta), var(--ll-purple));
  border-color: rgba(255, 47, 146, 0.6);
  color: #fff;
}

.ll-btn-ghost {
  background: rgba(255, 255, 255, 0.04);
}

.ll-btn-danger {
  border-color: rgba(255, 47, 146, 0.4);
  background: rgba(255, 47, 146, 0.16);
}

.ll-share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  font-size: 0.86rem;
}

.ll-share-row a {
  color: var(--ll-cyan);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ll-footer {
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--ll-muted);
  font-size: 0.9rem;
}

.ll-footer a {
  color: var(--ll-cyan);
}

.ll-empty-card {
  padding: 24px;
}

.ll-empty-card p {
  margin: 8px 0 16px;
  color: var(--ll-muted);
}

.ll-auth-zone {
  display: grid;
  gap: 18px;
}

.ll-admin-shell {
  padding-bottom: 34px;
}

.ll-admin-card {
  padding: 18px;
  margin-bottom: 18px;
}

.ll-admin-card h2,
.ll-admin-card h3 {
  margin-bottom: 10px;
}

.ll-admin-card p {
  margin: 0 0 12px;
  color: var(--ll-muted);
}

.ll-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ll-form-grid label {
  display: grid;
  gap: 6px;
  font-size: 0.86rem;
  color: var(--ll-muted);
}

.ll-form-grid input,
.ll-form-grid textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--ll-line);
  background: var(--ll-bg-soft);
  color: var(--ll-dark);
  padding: 10px 12px;
  font: inherit;
}

.ll-form-grid input:focus,
.ll-form-grid textarea:focus {
  outline: 2px solid rgba(50, 230, 255, 0.4);
  outline-offset: 1px;
}

.ll-wide {
  grid-column: 1 / -1;
}

.ll-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ll-dark);
}

.ll-checkbox input {
  width: auto;
}

.ll-form-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.ll-form-subtitle {
  margin: 8px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--ll-line);
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  color: var(--ll-dark);
}

.ll-inline-form {
  grid-template-columns: 1fr auto;
  align-items: end;
}

.ll-admin-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.ll-toolbar-actions {
  display: flex;
  gap: 8px;
}

.ll-stats-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ll-stat-card {
  border-radius: 14px;
  border: 1px solid var(--ll-line);
  background: rgba(255, 255, 255, 0.02);
  padding: 12px;
  display: grid;
  gap: 6px;
}

.ll-stat-card span {
  color: var(--ll-muted);
  font-size: 0.8rem;
}

.ll-stat-card strong {
  font-size: clamp(1.1rem, 1.2vw + 0.8rem, 1.7rem);
  color: var(--ll-dark);
  line-height: 1;
}

.ll-table-wrap {
  margin-top: 12px;
  overflow: auto;
  border-radius: 14px;
  border: 1px solid var(--ll-line);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

th,
td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--ll-line);
  font-size: 0.88rem;
}

th {
  background: rgba(255, 255, 255, 0.03);
  color: var(--ll-muted);
  font-weight: 700;
}

tr:last-child td {
  border-bottom: 0;
}

.ll-table-actions {
  display: flex;
  gap: 8px;
}

.ll-pill {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  border: 1px solid var(--ll-line);
}

.ll-pill.is-active {
  border-color: rgba(50, 230, 255, 0.5);
  color: var(--ll-cyan);
}

.ll-pill.is-inactive {
  border-color: rgba(255, 47, 146, 0.4);
  color: var(--ll-magenta);
}

.ll-divider {
  position: relative;
  height: 1px;
  background: var(--ll-line);
  margin: 16px 0;
}

.ll-divider span {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: var(--ll-panel);
  padding: 0 9px;
  color: var(--ll-muted);
  font-size: 0.82rem;
}

.ll-mono {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.84rem;
  color: rgba(246, 248, 255, 0.85);
}

.ll-dialog {
  border: 0;
  padding: 0;
  background: transparent;
}

.ll-dialog::backdrop {
  background: rgba(3, 8, 20, 0.74);
}

.ll-dialog-card {
  width: min(440px, calc(100vw - 24px));
  border-radius: 16px;
  border: 1px solid var(--ll-line);
  background: var(--ll-panel);
  color: var(--ll-dark);
  box-shadow: var(--ll-shadow);
  padding: 14px;
}

.ll-dialog-card header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ll-dialog-card h3 {
  font-size: 1.1rem;
}

.ll-close {
  border: 1px solid var(--ll-line);
  background: var(--ll-panel-strong);
  color: var(--ll-dark);
  border-radius: 8px;
  width: 32px;
  height: 32px;
  cursor: pointer;
}

.ll-dialog-body {
  margin-top: 12px;
  text-align: center;
}

#ll-qr-image {
  width: min(260px, 100%);
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--ll-line);
}

#ll-qr-url {
  margin-top: 10px;
  font-size: 0.84rem;
  color: var(--ll-muted);
  word-break: break-all;
}

.ll-toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  min-width: 220px;
  max-width: 420px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(50, 230, 255, 0.38);
  background: rgba(11, 16, 32, 0.96);
  box-shadow: var(--ll-shadow);
  color: var(--ll-dark);
  transform: translateY(140%);
  opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
  z-index: 40;
}

.ll-toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

body.ll-links-public {
  color: #f4f5f8;
  background:
    radial-gradient(circle at 12% 8%, rgba(20, 24, 32, 0.12), transparent 46%),
    radial-gradient(circle at 88% 84%, rgba(20, 24, 32, 0.1), transparent 44%),
    #e6e6e8;
}

body.ll-links-public .ll-links-bg .orb {
  filter: blur(70px);
  opacity: 0.16;
}

body.ll-links-public .ll-links-bg .orb-a {
  background: #a6adbb;
}

body.ll-links-public .ll-links-bg .orb-b {
  background: #c7ccd7;
}

body.ll-links-public .ll-links-bg .grid {
  opacity: 0.08;
  background-size: 30px 30px;
}

.ll-bio-layout {
  width: min(1120px, calc(100% - 40px));
  min-height: calc(100vh - 56px);
  margin: 28px auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: clamp(18px, 4vw, 48px);
  align-items: center;
}

.ll-bio-side {
  color: #1b202b;
}

.ll-bio-side h1 {
  font-family: "Trebuchet MS", "Avenir Next", "Segoe UI", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: clamp(2rem, 4vw, 4rem);
  margin: 0 0 12px;
}

.ll-bio-side p {
  max-width: 48ch;
  margin: 0;
  color: #3e4452;
}

.ll-bio-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  margin-bottom: 20px;
  background: #31c5ca;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ll-bio-features {
  margin: 18px 0 0;
  padding-left: 20px;
  color: #4b5160;
}

.ll-bio-features li + li {
  margin-top: 6px;
}

.ll-bio-stage {
  display: flex;
  justify-content: center;
  align-items: center;
}

.ll-bio-phone {
  width: min(390px, 100%);
  background: linear-gradient(180deg, #2c2f37 0%, #1f2127 100%);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 36px;
  overflow: hidden;
  box-shadow:
    0 38px 85px rgba(15, 17, 23, 0.46),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  position: relative;
}

.ll-bio-notch {
  width: 42%;
  height: 16px;
  border-radius: 0 0 12px 12px;
  background: #17181d;
  margin: 0 auto;
}

.ll-bio-cover {
  position: relative;
  overflow: hidden;
  height: 148px;
  background:
    radial-gradient(circle at 82% 22%, rgba(255, 255, 255, 0.18), transparent 35%),
    linear-gradient(125deg, #50566a 0%, #2f3442 46%, #1f222c 100%);
}

.ll-bio-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ll-bio-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.24), rgba(10, 10, 10, 0.64));
}

.ll-bio-profile {
  text-align: center;
  margin-top: -36px;
  padding: 0 20px 8px;
}

.ll-bio-avatar {
  position: relative;
  overflow: hidden;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  margin: 0 auto 10px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  font-weight: 800;
  color: #f8fbff;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.45), transparent 48%),
    linear-gradient(160deg, #7d8798 0%, #4b5263 55%, #373c48 100%);
  border: 3px solid rgba(246, 248, 255, 0.9);
  z-index: 1;
}

.ll-bio-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ll-bio-profile h2 {
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ll-bio-profile p {
  margin: 6px auto 0;
  max-width: 30ch;
  font-size: 0.8rem;
  color: rgba(236, 240, 248, 0.82);
}

.ll-bio-links {
  padding: 10px 20px 0;
}

.ll-bio-link-row + .ll-bio-link-row {
  margin-top: 12px;
}

.ll-bio-link-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1.4px solid rgba(255, 255, 255, 0.86);
  color: #fbfdff;
  background: rgba(255, 255, 255, 0.02);
  letter-spacing: 0.03em;
  font-weight: 700;
  transition: transform 0.16s ease, background 0.16s ease;
}

.ll-bio-link-btn:hover,
.ll-bio-link-btn:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.12);
}

.ll-bio-link-meta {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  font-size: 0.72rem;
  color: rgba(218, 223, 235, 0.84);
}

.ll-bio-code {
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 139, 61, 0.16);
  border: 1px solid rgba(255, 139, 61, 0.4);
  color: #ffbe95;
  font-weight: 700;
}

.ll-bio-tools {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}

.ll-bio-tool {
  min-width: 44px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.06);
  color: #f5f7fc;
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease;
}

.ll-bio-tool:hover,
.ll-bio-tool:focus-visible {
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.18);
}

.ll-bio-connect {
  padding: 16px 20px 22px;
  text-align: center;
}

.ll-bio-connect p {
  margin: 0 0 8px;
  font-size: 0.8rem;
  color: rgba(236, 240, 248, 0.74);
  letter-spacing: 0.08em;
}

.ll-bio-social {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
}

.ll-bio-social a {
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.06);
}

.ll-bio-connect small {
  color: rgba(208, 214, 227, 0.66);
  font-size: 0.7rem;
}

body.ll-links-public .ll-empty-card {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
}

body.ll-links-public .ll-empty-card h3 {
  margin: 0 0 8px;
}

body.ll-links-public .ll-empty-card p {
  font-size: 0.84rem;
}

@media (max-width: 1100px) {
  .ll-link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ll-form-grid {
    grid-template-columns: 1fr;
  }

  .ll-inline-form {
    grid-template-columns: 1fr;
  }

  .ll-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .ll-shell {
    width: min(1100px, calc(100% - 18px));
    margin: 16px auto 26px;
  }

  .ll-link-grid {
    grid-template-columns: 1fr;
  }

  .ll-admin-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .ll-toolbar-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .ll-toolbar-actions .ll-btn {
    flex: 1;
  }

  .ll-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .ll-actions .ll-btn {
    flex: 1;
  }

  .ll-stats-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .ll-bio-layout {
    grid-template-columns: 1fr;
    width: min(520px, calc(100% - 24px));
    min-height: unset;
    gap: 16px;
  }

  .ll-bio-side {
    order: 2;
    text-align: center;
  }

  .ll-bio-side p {
    margin: 0 auto;
  }

  .ll-bio-features {
    display: inline-block;
    text-align: left;
  }

  .ll-bio-stage {
    order: 1;
  }
}
