:root {
  --ink: #17151d;
  --muted: #696570;
  --line: #e7e3ec;
  --soft: #f6f4f8;
  --paper: #fff;
  --purple: #6d3df5;
  --purple-dark: #5627df;
  --lime: #d7ff74;
  --danger: #d44444;
  --shadow: 0 24px 70px rgba(38, 24, 75, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
svg { display: block; width: 1.15em; height: 1.15em; }
button { color: inherit; }

.shell { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 22px;
  font-weight: 820;
  letter-spacing: -0.7px;
}
.brand-mark {
  position: relative;
  width: 31px;
  height: 31px;
  display: inline-block;
  transform: rotate(-10deg);
}
.brand-mark span {
  position: absolute;
  width: 20px;
  height: 11px;
  border: 3px solid var(--ink);
  border-radius: 20px;
}
.brand-mark span:first-child { left: 0; top: 3px; transform: rotate(-38deg); }
.brand-mark span:last-child { right: 0; bottom: 3px; transform: rotate(-38deg); }
.brand-compact { font-size: 20px; }
.brand-compact .brand-mark { width: 28px; height: 28px; }

.button {
  min-height: 48px;
  border: 0;
  border-radius: 14px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button:disabled { cursor: wait; opacity: .62; transform: none; }
.button-small { min-height: 42px; border-radius: 12px; padding-inline: 17px; }
.button-dark { background: var(--ink); color: #fff; box-shadow: 0 8px 22px rgba(23, 21, 29, .16); }
.button-dark:hover { background: #2a2731; }
.button-primary { background: var(--purple); color: #fff; box-shadow: 0 12px 28px rgba(109, 61, 245, .24); }
.button-primary:hover { background: var(--purple-dark); }
.button-soft { background: #f0eafe; color: #5d34ce; }
.button-ghost { background: transparent; border: 1px solid var(--line); }
.button-outline { background: #fff; border: 1px solid #d9d3e2; min-height: 42px; }

/* Landing */
.landing {
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 0, rgba(109, 61, 245, .08), transparent 30%),
    #fbfafc;
}
.landing-nav {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.landing-nav-actions { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 650; }
.hero {
  min-height: 660px;
  padding: 58px 0 88px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 70px;
}
.hero-copy { position: relative; z-index: 2; }
.eyebrow-pill {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border: 1px solid #e0d9ea;
  background: rgba(255, 255, 255, .74);
  border-radius: 999px;
  color: #5d5766;
  font-size: 12px;
  font-weight: 760;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.eyebrow-pill span { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(215, 255, 116, .28); }
.hero h1 {
  margin: 25px 0 24px;
  font-size: clamp(60px, 6.3vw, 88px);
  line-height: .94;
  letter-spacing: -5.5px;
  font-weight: 850;
}
.hero h1 span { color: var(--purple); }
.hero-copy > p { max-width: 560px; margin: 0; color: var(--muted); font-size: 19px; line-height: 1.65; }
.hero-actions { margin-top: 34px; display: flex; align-items: center; gap: 19px; }
.hero-actions > span { color: #8a8491; font-size: 12px; }
.hero-visual { min-height: 560px; display: grid; place-items: center; position: relative; }
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 5% 1% 3%;
  border-radius: 50%;
  background: linear-gradient(135deg, #e7dfff, #f6f2ff 55%, #d7ff74);
  filter: blur(1px);
}
.hero-orbit { position: absolute; z-index: 1; border: 1px dashed rgba(61, 47, 85, .2); border-radius: 50%; }
.hero-orbit-one { width: 500px; height: 390px; transform: rotate(24deg); }
.hero-orbit-two { width: 390px; height: 510px; transform: rotate(-30deg); }
.hero-note {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 17px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .93);
  box-shadow: 0 12px 34px rgba(44, 31, 72, .16);
  font-size: 12px;
  font-weight: 750;
  backdrop-filter: blur(10px);
}
.hero-note svg { color: var(--purple); }
.hero-note-top { right: -4px; top: 122px; transform: rotate(4deg); }
.hero-note-bottom { left: -20px; bottom: 88px; transform: rotate(-3deg); }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #3ac57a; box-shadow: 0 0 0 4px rgba(58, 197, 122, .16); }

.feature-strip { background: var(--ink); color: #fff; padding: 62px 0; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.feature-grid article { position: relative; min-height: 190px; padding: 8px 42px; border-right: 1px solid rgba(255, 255, 255, .13); }
.feature-grid article:first-child { padding-left: 0; }
.feature-grid article:last-child { border: 0; padding-right: 0; }
.feature-number { position: absolute; right: 28px; top: 0; color: rgba(255, 255, 255, .28); font-size: 12px; font-weight: 750; }
.feature-icon { width: 45px; height: 45px; display: grid; place-items: center; border-radius: 14px; background: var(--lime); color: var(--ink); }
.feature-icon svg { width: 22px; height: 22px; }
.feature-grid h2 { font-size: 21px; margin: 24px 0 10px; letter-spacing: -.5px; }
.feature-grid p { margin: 0; color: rgba(255, 255, 255, .58); font-size: 14px; line-height: 1.6; max-width: 260px; }
.feature-grid strong { color: rgba(255, 255, 255, .85); }

/* Profile card */
.profile-card {
  --profile-accent: #6d3df5;
  --profile-bg: #efe9ff;
  width: min(100%, 390px);
  min-height: 660px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 76px 28px 28px;
  border-radius: 38px;
  background-color: var(--profile-bg);
  background-size: cover;
  background-position: center;
  box-shadow: 0 26px 70px rgba(32, 21, 61, .25);
}
.hero-visual .profile-card { width: 315px; min-height: 530px; padding: 56px 22px 22px; border-radius: 32px; z-index: 3; transform: rotate(-3.5deg); }
.profile-card-glow {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(circle at 80% 3%, color-mix(in srgb, var(--profile-accent) 55%, transparent), transparent 35%),
    linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.65));
}
.profile-card-content { display: flex; flex-direction: column; align-items: center; text-align: center; min-height: 100%; }
.profile-avatar {
  width: 102px;
  height: 102px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, .9);
  background: var(--profile-accent);
  color: #fff;
  box-shadow: 0 13px 35px rgba(33, 23, 54, .2);
  font-size: 36px;
  font-weight: 820;
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual .profile-avatar { width: 78px; height: 78px; font-size: 28px; }
.profile-eyebrow { margin: 17px 0 5px; font-size: 11px; font-weight: 750; color: rgba(23, 21, 29, .56); }
.profile-card h1 { margin: 0; font-size: 29px; line-height: 1.1; letter-spacing: -1px; }
.hero-visual .profile-card h1 { font-size: 23px; }
.profile-headline { margin: 9px auto 0; max-width: 290px; font-size: 13px; line-height: 1.45; font-weight: 690; }
.profile-description { margin: 9px auto 21px; max-width: 300px; color: rgba(23, 21, 29, .62); font-size: 12px; line-height: 1.55; }
.profile-links { width: 100%; display: grid; gap: 10px; }
.profile-links a, .profile-link-placeholder {
  min-height: 58px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 16px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 8px 24px rgba(38, 27, 63, .08);
  color: var(--ink);
  font-size: 13px;
  font-weight: 740;
  text-align: left;
  backdrop-filter: blur(15px);
  transition: transform .2s ease, background .2s ease;
}
.profile-links a:hover { transform: translateY(-2px) scale(1.01); background: #fff; }
.profile-links svg, .profile-link-placeholder svg { color: var(--profile-accent); flex: 0 0 auto; }
.hero-visual .profile-links a { min-height: 47px; border-radius: 13px; font-size: 11px; }
.profile-link-placeholder { opacity: .6; }
.public-profile-page {
  min-height: 100svh;
  padding: 34px 20px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  background-image: radial-gradient(circle at 15% 10%, rgba(255,255,255,.65), transparent 38%);
}
.public-profile-page::before, .public-profile-page::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  filter: blur(1px);
  pointer-events: none;
}
.public-profile-page::before { width: 380px; height: 380px; left: -180px; top: -170px; border: 1px solid rgba(255,255,255,.45); }
.public-profile-page::after { width: 300px; height: 300px; right: -130px; bottom: -120px; border: 1px dashed rgba(23,21,29,.18); }
.public-profile-page .profile-card { min-height: min(720px, calc(100svh - 68px)); }
.share-button {
  position: fixed;
  z-index: 10;
  top: 22px;
  right: 24px;
  min-width: 84px;
  height: 40px;
  padding: 0 15px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 999px;
  background: rgba(255,255,255,.74);
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
  backdrop-filter: blur(12px);
}

/* Dashboard */
.admin-layout { min-height: 100vh; display: grid; grid-template-columns: 250px minmax(0, 1fr); background: #f7f6f9; }
.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 29px 22px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: #fff;
}
.admin-sidebar > .brand { padding-inline: 7px; margin-bottom: 34px; }
.sidebar-workspace {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 10px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 13px;
}
.workspace-avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: #eee8ff; color: var(--purple); font-weight: 800; }
.sidebar-workspace strong, .sidebar-workspace small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-workspace strong { font-size: 12px; }
.sidebar-workspace small { margin-top: 3px; color: #928c99; font-size: 10px; }
.sidebar-workspace > svg { width: 15px; color: #99939e; transform: rotate(90deg); }
.sidebar-nav { margin-top: 26px; display: grid; gap: 5px; }
.sidebar-nav a { min-height: 46px; padding: 0 13px; display: flex; align-items: center; gap: 11px; border-radius: 11px; color: #736e79; font-size: 13px; font-weight: 650; }
.sidebar-nav a span { width: 21px; font-size: 18px; text-align: center; }
.sidebar-nav a:hover, .sidebar-nav a.active { background: #f1edff; color: #5e33dc; }
.sidebar-help { margin-top: auto; padding: 17px; border-radius: 14px; background: #f1edff; }
.sidebar-help span { color: var(--purple); font-size: 10px; font-weight: 820; text-transform: uppercase; letter-spacing: .08em; }
.sidebar-help p { margin: 8px 0 0; color: #6f6588; font-size: 11px; line-height: 1.5; }
.sidebar-home-link { margin-top: 18px; padding: 0 10px; color: #918b98; font-size: 11px; font-weight: 650; }
.admin-main { padding: 36px 48px 80px; min-width: 0; }
.admin-topbar { max-width: 1160px; margin: 0 auto 32px; display: flex; align-items: center; justify-content: space-between; }
.admin-topbar p { margin: 0 0 5px; color: #98929e; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; }
.admin-topbar h1 { margin: 0; font-size: 31px; letter-spacing: -1.2px; }
.admin-user { display: flex; align-items: center; gap: 12px; }
.admin-user > div { text-align: right; }
.admin-user strong, .admin-user small { max-width: 220px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-user strong { font-size: 12px; }
.admin-user small { margin-top: 3px; color: #99939f; font-size: 10px; }
.admin-user > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 780; }
.create-page-card {
  max-width: 1160px;
  margin: 0 auto;
  padding: 35px 38px;
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 50px;
  align-items: end;
  border-radius: 24px;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 18px 46px rgba(23, 21, 29, .13);
}
.section-kicker { color: var(--lime); font-size: 10px; font-weight: 820; letter-spacing: .14em; }
.create-page-card h2 { margin: 10px 0 10px; font-size: 25px; letter-spacing: -.8px; }
.create-page-card > div p { max-width: 430px; margin: 0; color: rgba(255,255,255,.5); font-size: 12px; line-height: 1.55; }
.create-page-card form > label { display: block; margin-bottom: 9px; color: rgba(255,255,255,.64); font-size: 11px; font-weight: 690; }
.slug-input { min-height: 58px; padding: 5px; display: flex; align-items: center; border: 1px solid rgba(255,255,255,.15); border-radius: 15px; background: rgba(255,255,255,.09); }
.slug-input.has-error { border-color: #e96c6c; }
.slug-input > span { padding-left: 14px; color: rgba(255,255,255,.4); font-size: 13px; }
.slug-input input { width: 100%; min-width: 90px; border: 0; outline: 0; padding: 0 8px 0 1px; color: #fff; background: transparent; font-size: 13px; font-weight: 700; }
.slug-input input::placeholder { color: rgba(255,255,255,.25); }
.slug-input .button { min-height: 46px; flex: 0 0 auto; }
.form-error { margin: 8px 0 0; color: #ff9797; font-size: 11px; }
.pages-section { max-width: 1160px; margin: 38px auto 0; }
.section-heading { margin-bottom: 17px; display: flex; align-items: center; justify-content: space-between; }
.section-heading > div { display: flex; align-items: baseline; gap: 10px; }
.section-heading h2 { margin: 0; font-size: 18px; letter-spacing: -.4px; }
.section-heading span { color: #9c96a2; font-size: 11px; }
.page-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.page-tile { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fff; transition: transform .2s ease, box-shadow .2s ease; }
.page-tile:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(48, 36, 69, .1); }
.page-tile-cover { height: 132px; position: relative; display: grid; place-items: center; background-image: radial-gradient(circle at 50% 10%, rgba(255,255,255,.6), transparent 62%); }
.status-badge { width: fit-content; height: 27px; padding: 0 10px; display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; font-size: 9px; font-weight: 790; }
.status-badge i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-badge.published { background: #e9faef; color: #258951; }
.status-badge.draft { background: #f0edf2; color: #77717d; }
.page-tile-cover .status-badge { position: absolute; top: 11px; right: 11px; box-shadow: 0 5px 14px rgba(0,0,0,.05); }
.page-tile-avatar { width: 62px; height: 62px; overflow: hidden; display: grid; place-items: center; border: 3px solid rgba(255,255,255,.92); border-radius: 50%; background: var(--purple); color: #fff; box-shadow: 0 9px 22px rgba(38, 26, 63, .18); font-size: 22px; font-weight: 800; }
.page-tile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.page-tile-body { padding: 17px 18px 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.page-tile-body h3 { margin: 0 0 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.page-tile-body p { margin: 0; color: #928c99; font-size: 11px; }
.tile-action { width: 31px; height: 31px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 9px; color: #79737e; }
.tile-action svg { width: 15px; }
.page-tile-footer { min-height: 38px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #f0edf2; color: #aaa4ae; font-size: 9px; }
.page-tile-footer svg { width: 13px; color: #78727d; }
.page-click-count { color: var(--purple); font-size: 9px; font-weight: 790; }
.page-tile-new { min-height: 240px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-style: dashed; color: #97919c; }
.page-tile-new > span { width: 44px; height: 44px; margin-bottom: 13px; display: grid; place-items: center; border-radius: 50%; background: #f0ecfd; color: var(--purple); }
.page-tile-new strong { color: #5f5a64; font-size: 13px; }
.page-tile-new small { margin-top: 5px; font-size: 10px; }
.empty-state { padding: 72px 24px; display: flex; flex-direction: column; align-items: center; text-align: center; border: 1px dashed #d8d2dd; border-radius: 20px; background: rgba(255,255,255,.6); }
.empty-state > div { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 16px; background: #eee9ff; color: var(--purple); }
.empty-state h3 { margin: 19px 0 7px; font-size: 18px; }
.empty-state p { margin: 0 0 21px; color: #8e8894; font-size: 12px; }

/* Editor */
.editor-layout { min-height: 100vh; background: #f7f6f9; }
.editor-topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  height: 76px;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 220px 1fr auto;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(15px);
}
.editor-breadcrumb { display: flex; align-items: center; gap: 9px; color: #9a949f; font-size: 11px; }
.editor-breadcrumb a:hover { color: var(--purple); }
.editor-breadcrumb strong { color: #5f5964; }
.editor-actions { display: flex; gap: 9px; }
.editor-actions .button { min-height: 43px; padding-inline: 16px; border-radius: 11px; font-size: 12px; }
.editor-main { display: grid; grid-template-columns: minmax(0, 1fr) 430px; min-height: calc(100vh - 76px); }
.editor-form-panel { min-width: 0; padding: 38px max(38px, 5vw) 90px; }
.mobile-editor-heading { display: none; }
.analytics-summary {
  max-width: 780px;
  margin: 0 auto 25px;
  padding: 18px 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 160px)) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  border: 1px solid #ddd5f5;
  border-radius: 18px;
  background: linear-gradient(135deg, #f3efff, #fff);
}
.analytics-summary div { display: grid; gap: 3px; }
.analytics-summary span { color: #81798c; font-size: 9px; font-weight: 730; text-transform: uppercase; letter-spacing: .06em; }
.analytics-summary strong { color: var(--purple); font-size: 25px; letter-spacing: -.8px; }
.analytics-summary p { margin: 0; color: #8d8793; font-size: 10px; line-height: 1.5; }
.editor-section { max-width: 780px; margin: 0 auto 25px; padding: 29px 31px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.editor-section-title { margin-bottom: 25px; display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: start; }
.editor-section-title > span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: #eee9ff; color: var(--purple); font-size: 10px; font-weight: 820; }
.editor-section-title h2 { margin: 0 0 4px; font-size: 17px; letter-spacing: -.4px; }
.editor-section-title p { margin: 0; color: #938d99; font-size: 11px; line-height: 1.4; }
.editor-section-title.links-title { grid-template-columns: 38px 1fr auto; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 17px; }
.field { display: grid; gap: 8px; }
.field-full { grid-column: 1 / -1; }
.field > span { display: flex; justify-content: space-between; color: #5f5964; font-size: 10px; font-weight: 730; }
.field > span small { color: #aaa4ae; font-weight: 500; }
.field input, .field textarea, .link-row-fields input {
  width: 100%;
  border: 1px solid #ded9e2;
  border-radius: 11px;
  outline: 0;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  transition: border .15s ease, box-shadow .15s ease;
}
.field input, .link-row-fields input { height: 45px; padding: 0 13px; }
.field textarea { min-height: 105px; padding: 12px 13px; line-height: 1.55; resize: vertical; }
.field input:focus, .field textarea:focus, .link-row-fields input:focus { border-color: #9376eb; box-shadow: 0 0 0 3px rgba(109,61,245,.09); }
.prefix-field { height: 45px; display: flex; align-items: center; border: 1px solid #ded9e2; border-radius: 11px; overflow: hidden; }
.prefix-field:focus-within { border-color: #9376eb; box-shadow: 0 0 0 3px rgba(109,61,245,.09); }
.prefix-field em { height: 100%; padding: 0 12px; display: flex; align-items: center; border-right: 1px solid #e5e1e8; background: #f7f5f8; color: #96909c; font-size: 11px; font-style: normal; }
.prefix-field input { border: 0; box-shadow: none !important; }
.upload-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.upload-card { min-width: 0; padding: 13px; display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; border: 1px solid #e0dbe4; border-radius: 14px; cursor: pointer; }
.upload-card:hover { border-color: #a895dd; background: #fcfbff; }
.upload-card input { display: none; }
.upload-thumb { width: 64px; height: 64px; overflow: hidden; display: grid; place-items: center; border-radius: 12px; background-color: #eee9ff; background-size: cover; background-position: center; color: var(--purple); }
.profile-upload-thumb { border-radius: 50%; }
.upload-thumb svg { width: 23px; height: 23px; }
.upload-card strong, .upload-card span, .upload-card em { display: block; }
.upload-card strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.upload-card span { margin: 4px 0 7px; color: #9b95a0; font-size: 8.5px; line-height: 1.35; }
.upload-card em { width: fit-content; color: var(--purple); font-size: 9px; font-weight: 750; font-style: normal; }
.color-grid { margin-top: 16px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.color-field > div { height: 45px; padding: 5px 10px 5px 6px; display: flex; align-items: center; gap: 9px; border: 1px solid #ded9e2; border-radius: 11px; }
.color-field input { width: 34px; height: 31px; padding: 0; border: 0; border-radius: 8px; overflow: hidden; cursor: pointer; }
.color-field code { color: #77717c; font: 10px ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; }
.link-editor-list { display: grid; gap: 12px; }
.link-editor-row { display: grid; grid-template-columns: 42px minmax(0, 1fr) 38px; gap: 11px; align-items: center; padding: 13px; border: 1px solid #e3dee7; border-radius: 14px; background: #fcfbfd; }
.link-row-controls { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; color: #b1aab6; }
.link-row-controls > svg { width: 20px; }
.link-row-controls > div { display: flex; gap: 2px; }
.link-row-controls button { width: 18px; height: 18px; padding: 0; border: 0; border-radius: 5px; background: #efecf1; color: #817b86; font-size: 9px; cursor: pointer; }
.link-row-controls button:disabled { opacity: .3; }
.link-row-fields { display: grid; grid-template-columns: .8fr 1.2fr; gap: 10px; }
.link-row-fields label { display: grid; gap: 6px; }
.link-row-fields label > span { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #6a646f; font-size: 9px; font-weight: 720; }
.link-click-stat { padding: 3px 6px; border-radius: 999px; background: #eee9ff; color: var(--purple); font-size: 8px; font-weight: 790; white-space: nowrap; }
.url-field { position: relative; }
.url-field svg { position: absolute; left: 11px; top: 50%; width: 14px; transform: translateY(-50%); color: #a29ca6; }
.url-field input { padding-left: 32px; }
.link-row-actions { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 4px 0; }
.link-row-actions > button { width: 28px; height: 28px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: #b15454; cursor: pointer; }
.link-row-actions > button:hover { background: #fff0f0; }
.link-row-actions > button svg { width: 15px; }
.switch { position: relative; width: 28px; height: 16px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: #cfc9d3; transition: background .2s; }
.switch span::after { content: ""; position: absolute; width: 12px; height: 12px; left: 2px; top: 2px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.switch input:checked + span { background: var(--purple); }
.switch input:checked + span::after { transform: translateX(12px); }
.empty-links { width: 100%; min-height: 145px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px dashed #d8d2dd; border-radius: 14px; background: #fcfbfd; color: #928c97; cursor: pointer; }
.empty-links > span { width: 35px; height: 35px; margin-bottom: 8px; display: grid; place-items: center; border-radius: 10px; background: #eee9ff; color: var(--purple); }
.empty-links strong { color: #5e5863; font-size: 11px; }
.empty-links small { margin-top: 4px; font-size: 9px; }
.editor-danger { max-width: 780px; margin: 0 auto; padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border: 1px solid #efd9d9; border-radius: 16px; background: #fffafa; }
.editor-danger strong { font-size: 11px; color: #8c3d3d; }
.editor-danger p { margin: 4px 0 0; color: #a98989; font-size: 9px; }
.editor-danger button { min-height: 36px; padding: 0 12px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid #ebcaca; border-radius: 9px; background: #fff; color: #b14343; font-size: 10px; font-weight: 730; cursor: pointer; }
.editor-danger button svg { width: 14px; }
.preview-panel {
  position: sticky;
  top: 76px;
  height: calc(100vh - 76px);
  padding: 25px 28px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-left: 1px solid var(--line);
  background:
    linear-gradient(rgba(255,255,255,.76), rgba(255,255,255,.76)),
    radial-gradient(circle at center, #e8e1fa, #f4f0f8 70%);
  overflow: auto;
}
.preview-header { width: 100%; display: flex; align-items: center; justify-content: space-between; }
.preview-header > div { display: flex; align-items: center; gap: 9px; }
.preview-header strong { font-size: 11px; }
.preview-header small { color: #96909c; font-size: 10px; }
.phone-frame { width: 300px; min-height: 565px; margin: 24px auto 12px; padding: 7px; position: relative; border: 2px solid #29252e; border-radius: 36px; background: #17151d; box-shadow: 0 25px 70px rgba(39, 27, 65, .2); }
.phone-island { position: absolute; z-index: 5; top: 15px; left: 50%; width: 78px; height: 20px; transform: translateX(-50%); border-radius: 999px; background: #17151d; }
.phone-frame .profile-card { width: 100%; min-height: 548px; padding: 54px 20px 20px; border-radius: 28px; box-shadow: none; }
.phone-frame .profile-avatar { width: 72px; height: 72px; font-size: 25px; }
.phone-frame .profile-card h1 { font-size: 22px; }
.phone-frame .profile-links a, .phone-frame .profile-link-placeholder { min-height: 46px; border-radius: 13px; font-size: 10px; }
.preview-panel > p { margin: 2px 0 0; color: #aaa4af; font-size: 9px; }
.toast { position: fixed; z-index: 50; left: 50%; bottom: 24px; padding: 12px 18px; transform: translateX(-50%); border-radius: 11px; background: #202d26; color: #fff; box-shadow: 0 10px 35px rgba(0,0,0,.18); font-size: 11px; font-weight: 650; }
.toast-error { background: #9e3737; }

/* Not found */
.not-found-page { min-height: 100vh; padding: 34px; display: flex; flex-direction: column; background: #f2edff; }
.not-found-card { max-width: 620px; margin: auto; text-align: center; }
.not-found-card > span { display: block; color: var(--purple); font-size: 12px; font-weight: 850; letter-spacing: .2em; }
.not-found-card h1 { margin: 16px 0 12px; font-size: clamp(38px, 6vw, 62px); line-height: 1; letter-spacing: -2.8px; }
.not-found-card p { max-width: 460px; margin: 0 auto 26px; color: #77717d; line-height: 1.6; }

@media (max-width: 1120px) {
  .hero { gap: 32px; }
  .hero-note-top { right: 0; }
  .hero-note-bottom { left: 0; }
  .page-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .editor-main { grid-template-columns: minmax(0, 1fr) 360px; }
  .preview-panel { padding-inline: 18px; }
  .phone-frame { width: 280px; }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 35px; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .hero-actions { flex-direction: column; }
  .hero-visual { margin-top: -5px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid article, .feature-grid article:first-child, .feature-grid article:last-child { min-height: 0; padding: 25px 0; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.13); }
  .feature-grid article:last-child { border: 0; }
  .feature-number { right: 0; top: 30px; }
  .admin-layout { display: block; }
  .admin-sidebar { display: none; }
  .admin-main { padding: 28px 24px 60px; }
  .create-page-card { grid-template-columns: 1fr; gap: 24px; }
  .editor-topbar { grid-template-columns: 150px 1fr; }
  .editor-breadcrumb { display: none; }
  .editor-actions { justify-content: end; }
  .editor-actions .button-ghost, .editor-actions .button-dark { display: none; }
  .editor-main { display: block; }
  .editor-form-panel { padding: 30px 24px 70px; }
  .preview-panel { display: none; }
  .mobile-editor-heading { max-width: 780px; margin: 0 auto 22px; display: block; }
  .mobile-editor-heading a { color: var(--purple); font-size: 11px; font-weight: 700; }
  .mobile-editor-heading h1 { margin: 10px 0 0; font-size: 26px; }
}

@media (max-width: 650px) {
  .shell { width: min(100% - 32px, 1180px); }
  .landing-nav { height: 72px; }
  .landing-nav-actions > a:first-child { display: none; }
  .landing-nav-actions .button { min-height: 39px; padding-inline: 13px; font-size: 11px; }
  .hero { min-height: auto; padding: 48px 0 70px; }
  .hero h1 { font-size: 53px; letter-spacing: -3.6px; }
  .hero-copy > p { font-size: 16px; }
  .hero-visual { min-height: 510px; }
  .hero-visual::before { inset: 5% -30%; }
  .hero-orbit-one { width: 420px; }
  .hero-orbit-two { width: 330px; }
  .hero-note-top { top: 96px; right: -8px; }
  .hero-note-bottom { bottom: 48px; left: -8px; }
  .feature-strip { padding: 38px 0; }
  .admin-main { padding: 21px 16px 55px; }
  .admin-topbar { margin-bottom: 20px; }
  .admin-topbar h1 { font-size: 26px; }
  .admin-user > div { display: none; }
  .admin-user > span { width: 38px; height: 38px; }
  .create-page-card { padding: 25px 20px; border-radius: 20px; }
  .create-page-card h2 { font-size: 21px; }
  .slug-input { padding: 7px; flex-wrap: wrap; }
  .slug-input > span { padding-left: 7px; }
  .slug-input input { min-height: 40px; flex: 1; }
  .slug-input .button { width: 100%; }
  .page-grid { grid-template-columns: 1fr; }
  .editor-topbar { height: 68px; padding: 0 15px; grid-template-columns: 1fr auto; }
  .editor-topbar .brand { font-size: 18px; }
  .editor-topbar .brand-mark { width: 24px; height: 24px; }
  .editor-actions .button { min-height: 39px; padding-inline: 13px; font-size: 11px; }
  .editor-form-panel { padding: 24px 13px 60px; }
  .analytics-summary { grid-template-columns: repeat(2, 1fr); padding: 16px 17px; }
  .analytics-summary p { grid-column: 1 / -1; }
  .editor-section { padding: 23px 17px; border-radius: 17px; }
  .form-grid, .upload-grid, .color-grid { grid-template-columns: 1fr; }
  .editor-section-title.links-title { grid-template-columns: 38px 1fr; }
  .links-title .button { grid-column: 1 / -1; width: 100%; }
  .link-editor-row { grid-template-columns: 28px minmax(0, 1fr) 32px; padding: 10px 8px; gap: 6px; }
  .link-row-fields { grid-template-columns: 1fr; }
  .editor-danger { align-items: flex-start; flex-direction: column; }
  .public-profile-page { padding: 0; }
  .public-profile-page .profile-card { width: 100%; min-height: 100svh; border-radius: 0; padding-top: 70px; }
  .share-button { top: 16px; right: 16px; }
}

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

/* cPanel/PHP runtime additions */
.sidebar-workspace > b { color: #99939e; font-size: 13px; font-weight: 500; }
.admin-logout {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: #6e6873;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.flash {
  position: fixed;
  z-index: 100;
  top: 91px;
  right: 24px;
  max-width: min(390px, calc(100% - 32px));
  padding: 13px 17px;
  border-radius: 12px;
  box-shadow: 0 14px 38px rgba(31, 25, 42, .18);
  color: #fff;
  font-size: 11px;
  font-weight: 680;
}
.flash-success { background: #277d50; }
.flash-error { background: #a83f3f; }
.auth-page { min-height: 100vh; background: radial-gradient(circle at 50% 15%, #e9e1ff, transparent 38%), #f7f5fa; }
.auth-shell { min-height: 100vh; padding: 34px; display: flex; flex-direction: column; }
.auth-brand { width: min(1120px, 100%); margin: 0 auto; }
.auth-card {
  width: min(460px, 100%);
  margin: auto;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--shadow);
}
.auth-kicker { color: var(--purple); font-size: 10px; font-weight: 820; letter-spacing: .14em; }
.auth-card h1 { margin: 12px 0 10px; font-size: 30px; letter-spacing: -1.2px; }
.auth-card > p { margin: 0 0 25px; color: #827c88; font-size: 12px; line-height: 1.6; }
.auth-form { display: grid; gap: 15px; }
.auth-form label { display: grid; gap: 7px; }
.auth-form label span { color: #625c67; font-size: 10px; font-weight: 730; }
.auth-form input { width: 100%; height: 47px; padding: 0 13px; border: 1px solid #ddd8e1; border-radius: 11px; outline: 0; }
.auth-form input:focus { border-color: #967ced; box-shadow: 0 0 0 3px rgba(109,61,245,.1); }
.auth-form .button { width: 100%; margin-top: 4px; }
.auth-card > small { display: block; margin-top: 17px; color: #aaa4ae; font-size: 9px; text-align: center; }
.auth-card-login > a { display: block; margin-top: 20px; color: #8e8893; font-size: 10px; text-align: center; }
.auth-card .flash { position: static; max-width: none; margin: -10px 0 17px; box-shadow: none; }
.remove-image-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 12px; color: #8b6570; font-size: 9px; }
.remove-image-row label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.empty-links.is-hidden { display: none; }
.drag-handle { font-size: 20px; line-height: 1; }
.url-field > b { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: #a29ca6; font-size: 13px; font-weight: 600; }
.profile-links strong, .profile-link-placeholder strong { color: var(--profile-accent); font-size: 15px; }
.feature-icon { font-size: 22px; font-weight: 700; }
.hero-note > strong { color: var(--purple); font-size: 18px; }
.page-tile-new > span { font-size: 20px; }
.tile-action { font-size: 20px; }
.public-profile-body { margin: 0; }

@media (max-width: 650px) {
  .auth-shell { padding: 22px 16px; }
  .auth-card { padding: 28px 21px; }
  .auth-brand { margin-bottom: 40px; }
  .flash { top: 78px; right: 16px; }
}
