html {
  min-height: 100%;
  background: transparent;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: "Trebuchet MS", Arial, sans-serif;
  color: white;
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--accent, #0f766e) 28%, transparent), transparent 28%),
    radial-gradient(circle at top right, color-mix(in srgb, var(--secondary, #0f172a) 20%, transparent), transparent 30%),
    linear-gradient(180deg, #18060f, #0f0b12 80%);
}

.linkhub-landing-body,
.linkhub-admin-body {
  color: #f8f1e7;
  background:
    radial-gradient(circle at top left, rgba(200, 155, 60, 0.18), transparent 24%),
    linear-gradient(180deg, #0f0b0f, #1c1714 80%);
}

.linkhub-landing-shell,
.linkhub-admin-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 18px 40px;
}

.linkhub-landing-hero,
.linkhub-admin-topbar,
.linkhub-admin-grid {
  display: grid;
  gap: 20px;
}

.linkhub-landing-hero {
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  margin-bottom: 28px;
}

.landing-phone-card,
.linkhub-admin-panel,
.landing-price-card,
.landing-sample-card {
  border-radius: 28px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 24px 50px rgba(0,0,0,0.22);
}

.landing-phone-card,
.linkhub-admin-panel,
.landing-price-card,
.landing-sample-card,
.linkhub-edit-card {
  padding: 22px;
}

.landing-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.landing-helper {
  margin-top: 14px;
  max-width: 42rem;
  color: rgba(248,241,231,0.78);
}

.landing-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.landing-button.primary {
  background: #c89b3c;
  color: #16110d;
}

.landing-button.secondary {
  background: rgba(255,255,255,0.08);
  color: #f8f1e7;
}

.landing-phone-top {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.landing-phone-top span {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.28);
}

.landing-phone-content {
  display: grid;
  gap: 12px;
}

.landing-avatar {
  width: 88px;
  height: 88px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f8efe0, #c89b3c);
}

.landing-link-pill {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.06);
}

.landing-section {
  margin-top: 28px;
}

.landing-section-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.landing-pricing-grid,
.landing-sample-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.landing-starter-form,
.public-onboarding-card {
  display: grid;
  gap: 14px;
  padding: 24px;
  border-radius: 28px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 24px 50px rgba(0,0,0,0.22);
}

.landing-starter-form {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.landing-starter-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 700;
}

.landing-starter-form input,
.landing-starter-form textarea {
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.06);
  color: #f8f1e7;
  padding: 12px 14px;
  font: inherit;
}

.landing-starter-form .is-wide {
  grid-column: 1 / -1;
}

.landing-starter-actions,
.public-onboarding-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.landing-form-error {
  margin: 0;
  color: #ffd6d6;
  font-weight: 700;
}

.public-onboarding-card {
  margin-bottom: 12px;
}

.landing-price-card strong {
  display: block;
  font-size: 2rem;
  color: #c89b3c;
  margin: 10px 0 12px;
}

.landing-price-card strong span {
  font-size: 1rem;
  color: rgba(248,241,231,0.7);
}

.landing-price-card ul {
  margin: 12px 0 0;
  padding-left: 18px;
  line-height: 1.55;
}

.landing-price-card.is-featured {
  box-shadow: 0 0 0 2px rgba(200, 155, 60, 0.24), 0 24px 50px rgba(0,0,0,0.22);
}

.landing-sample-card a {
  color: #d8b976;
}

.linkhub-admin-grid {
  grid-template-columns: 340px minmax(0, 1fr);
  align-items: start;
}

.linkhub-admin-panel.is-wide {
  min-height: 100%;
}

.linkhub-admin-form,
.linkhub-edit-grid {
  display: grid;
  gap: 14px;
}

.linkhub-admin-form label,
.linkhub-edit-grid label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 700;
}

.linkhub-admin-form input,
.linkhub-admin-form textarea,
.linkhub-admin-form select,
.linkhub-edit-grid input,
.linkhub-edit-grid textarea,
.linkhub-side-list select {
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.06);
  color: #f8f1e7;
  padding: 12px 14px;
  font: inherit;
}

.linkhub-workbench {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 18px;
}

.linkhub-side-list,
.linkhub-edit-card {
  border-radius: 24px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

.linkhub-side-list {
  padding: 18px;
}

.linkhub-mini-actions {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}

.linkhub-editor-stack {
  display: grid;
  gap: 14px;
}

.linkhub-edit-card {
  display: grid;
  gap: 14px;
}

.linkhub-edit-card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.linkhub-edit-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

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

.linkhub-edit-grid .is-wide {
  grid-column: 1 / -1;
}

.hub-editorial-block {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
}

.hub-editorial-block.is-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 18px;
}

body.theme-light {
  color: var(--ink, #172033);
  background:
    radial-gradient(circle at top left, rgba(15, 23, 42, 0.05), transparent 24%),
    linear-gradient(180deg, #ffffff, #f8fafc 75%);
}

body.theme-gradient {
  background:
    radial-gradient(circle at top, color-mix(in srgb, var(--accent, #0f766e) 34%, transparent), transparent 28%),
    linear-gradient(180deg, color-mix(in srgb, var(--secondary, #0f172a) 90%, #23010f), #120910 75%);
}

/* Guided onboarding ambiences. These presets define a complete visual system;
   the accent color alone is intentionally not used as a theme. */
body.preset-bold {
  color: #fff8f3;
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 132, 74, .42), transparent 24%),
    radial-gradient(circle at 88% 18%, rgba(220, 44, 107, .30), transparent 27%),
    linear-gradient(155deg, #321426, #160d18 72%);
}

body.preset-warm {
  color: #3a211a;
  background:
    radial-gradient(circle at 8% 8%, rgba(244, 185, 143, .42), transparent 28%),
    radial-gradient(circle at 92% 22%, rgba(255, 225, 197, .66), transparent 30%),
    linear-gradient(180deg, #fff9f4, #f8e8dc 78%);
}

body.preset-minimal {
  color: #182126;
  background: linear-gradient(180deg, #ffffff, #f2f5f7 78%);
}

body.preset-premium {
  color: #f9f2df;
  background:
    radial-gradient(circle at 50% -8%, rgba(205, 169, 94, .27), transparent 34%),
    linear-gradient(150deg, #332719, #15120d 76%);
}

body.preset-natural {
  color: #1f3b2c;
  background:
    radial-gradient(ellipse at 4% 4%, rgba(130, 165, 116, .36), transparent 28%),
    radial-gradient(ellipse at 96% 12%, rgba(214, 187, 146, .45), transparent 30%),
    linear-gradient(180deg, #f8faef, #e7eedc 76%);
}

body.preset-playful {
  color: #2c1740;
  background:
    radial-gradient(circle at 8% 9%, rgba(255, 207, 74, .82) 0 7%, transparent 21%),
    radial-gradient(circle at 92% 10%, rgba(244, 63, 141, .55) 0 8%, transparent 25%),
    radial-gradient(circle at 88% 88%, rgba(124, 58, 237, .42) 0 7%, transparent 24%),
    radial-gradient(circle at 5% 82%, rgba(45, 212, 191, .34) 0 6%, transparent 22%),
    linear-gradient(145deg, #fff9dd, #ffe5f0 48%, #eee5ff);
}

body.preset-editorial {
  color: #211a16;
  background:
    linear-gradient(90deg, rgba(161, 44, 47, .06) 1px, transparent 1px) 50% 0 / 76px 100%,
    linear-gradient(180deg, #fbf7ef, #eee4d4 82%);
}

body.preset-tech {
  color: #eaf6ff;
  background:
    linear-gradient(rgba(72, 139, 255, .09) 1px, transparent 1px) 0 0 / 42px 42px,
    linear-gradient(90deg, rgba(72, 139, 255, .09) 1px, transparent 1px) 0 0 / 42px 42px,
    radial-gradient(circle at 50% 0, rgba(37, 99, 235, .40), transparent 34%),
    linear-gradient(160deg, #0a1b38, #07101f 72%);
}

body.preset-solar {
  color: #422006;
  background:
    radial-gradient(circle at 10% 8%, rgba(250, 204, 21, .68), transparent 23%),
    radial-gradient(circle at 90% 18%, rgba(249, 115, 22, .40), transparent 27%),
    linear-gradient(150deg, #fffbea, #ffedb5 52%, #ffd5bd);
}

body.preset-romantic {
  color: #4a2335;
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 255, 255, .86), transparent 22%),
    radial-gradient(circle at 88% 15%, rgba(219, 112, 147, .34), transparent 30%),
    linear-gradient(155deg, #fff7fa, #f8dce7 56%, #ead8ed);
}

body.preset-artisan {
  color: #3a251b;
  background:
    radial-gradient(ellipse at 5% 8%, rgba(194, 133, 87, .30), transparent 28%),
    linear-gradient(155deg, #fbf5eb, #ead8c4 55%, #d4b293);
}

body.preset-ocean {
  color: #e9fbff;
  background:
    radial-gradient(circle at 18% 2%, rgba(34, 211, 238, .38), transparent 30%),
    radial-gradient(circle at 88% 60%, rgba(14, 116, 144, .34), transparent 28%),
    linear-gradient(165deg, #082f49, #083344 58%, #051e2a);
}

body.preset-urban {
  color: #fafafa;
  background:
    linear-gradient(120deg, rgba(255,255,255,.045) 25%, transparent 25%) 0 0 / 58px 58px,
    linear-gradient(160deg, #27272a, #09090b 72%);
}

body.preset-zen {
  color: #31453a;
  background:
    radial-gradient(ellipse at 15% 5%, rgba(181, 199, 187, .50), transparent 30%),
    radial-gradient(ellipse at 90% 20%, rgba(214, 199, 170, .45), transparent 28%),
    linear-gradient(160deg, #faf9f3, #e3e8dd 72%);
}

body.preset-pop {
  color: #35124a;
  background:
    radial-gradient(circle at 8% 8%, #facc15 0 7%, transparent 19%),
    radial-gradient(circle at 92% 12%, rgba(236, 72, 153, .60) 0 8%, transparent 23%),
    radial-gradient(circle at 85% 88%, rgba(109, 40, 217, .46) 0 8%, transparent 25%),
    linear-gradient(145deg, #fff6ce, #ffd8ef 46%, #e7ddff);
}

body.preset-nocturne {
  color: #f4f1ff;
  background:
    radial-gradient(circle at 22% 0, rgba(99, 102, 241, .44), transparent 32%),
    radial-gradient(circle at 82% 28%, rgba(168, 85, 247, .24), transparent 27%),
    linear-gradient(165deg, #17134a, #090821 72%);
}

body.preset-warm .linkhub-cover {
  background: linear-gradient(135deg, #f6cba9, #c46339 58%, #854432);
  box-shadow: 0 22px 54px rgba(143, 76, 50, .20);
}

body.preset-minimal .linkhub-cover {
  background: linear-gradient(145deg, #eef2f4, #cfd8dc);
  border: 1px solid #d9e0e4;
}

body.preset-premium .linkhub-cover {
  background: linear-gradient(135deg, #17130d, #8a6439 52%, #d4b56f);
  border: 1px solid rgba(225, 197, 128, .44);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .34);
}

body.preset-natural .linkhub-cover {
  background:
    radial-gradient(ellipse at 24% 20%, rgba(235, 245, 220, .65), transparent 26%),
    linear-gradient(145deg, #aac19a, #3f7a5a 62%, #d7b78e);
}

body.preset-playful .linkhub-cover {
  min-height: 190px;
  border-radius: 38px 18px 42px 24px;
  background:
    radial-gradient(circle at 17% 23%, #ffd34e 0 9%, transparent 10%),
    radial-gradient(circle at 82% 25%, rgba(255,255,255,.58) 0 7%, transparent 8%),
    linear-gradient(125deg, #ff7849, #f43f8d 47%, #7c3aed 78%, #38bdf8);
  box-shadow: 0 28px 70px rgba(124, 58, 237, .24);
  transform: rotate(-.6deg);
}

body.preset-editorial .linkhub-cover {
  background: linear-gradient(110deg, #1d1714 0 64%, #a12c2f 64%);
  border-radius: 2px;
}

body.preset-tech .linkhub-cover {
  background:
    linear-gradient(120deg, transparent 42%, rgba(88, 211, 255, .28) 43% 44%, transparent 45%),
    linear-gradient(135deg, #10244d, #2563eb 58%, #22d3ee);
  border: 1px solid rgba(96, 206, 255, .50);
  box-shadow: 0 0 42px rgba(37, 99, 235, .25);
}

body.preset-solar .linkhub-cover { background: linear-gradient(125deg, #facc15, #f59e0b 55%, #f97316); box-shadow: 0 24px 58px rgba(245, 158, 11, .23); }
body.preset-romantic .linkhub-cover { background: linear-gradient(135deg, #ffd9e7, #db7093 58%, #9f5d85); border-radius: 42px 20px 42px 20px; }
body.preset-artisan .linkhub-cover { background: linear-gradient(135deg, #4b3326, #9a5b35 56%, #d59a6f); border: 2px solid rgba(255, 239, 219, .38); }
body.preset-ocean .linkhub-cover { background: linear-gradient(135deg, #164e63, #0e7490 52%, #22d3ee); box-shadow: 0 24px 60px rgba(8, 145, 178, .22); }
body.preset-urban .linkhub-cover { background: linear-gradient(110deg, #18181b 0 55%, #52525b 55% 82%, #a1a1aa 82%); border-radius: 5px; }
body.preset-zen .linkhub-cover { background: linear-gradient(140deg, #dce5db, #6f8f7b 58%, #c7b79b); border-radius: 48px; }
body.preset-pop .linkhub-cover { background: linear-gradient(125deg, #facc15, #ec4899 45%, #6d28d9 78%, #22d3ee); border-radius: 18px 46px 18px 46px; box-shadow: 0 26px 64px rgba(236, 72, 153, .24); }
body.preset-nocturne .linkhub-cover { background: radial-gradient(circle at 76% 25%, rgba(216,180,254,.60) 0 7%, transparent 8%), linear-gradient(135deg, #11103b, #4338ca 58%, #7c3aed); border: 1px solid rgba(199, 210, 254, .32); box-shadow: 0 0 52px rgba(79, 70, 229, .28); }

.linkhub-mobile-shell {
  display: grid;
  justify-items: center;
  align-items: start;
  min-height: 100vh;
  min-height: 100dvh;
  box-sizing: border-box;
  padding: 18px 12px 28px;
}

.linkhub-phone-frame {
  width: min(100%, 520px);
  display: grid;
  gap: 16px;
}

.layout-app-stack .linkhub-phone-frame,
.layout-app-grid .linkhub-phone-frame {
  width: min(100%, 460px);
}

.linkhub-top-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.ghost-icon {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.04);
  color: inherit;
  font: inherit;
  font-size: 24px;
  text-decoration: none;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.ghost-icon svg { width: 24px; height: 24px; fill: currentColor; transition: transform .18s ease; }
.ghost-icon.is-static { opacity: .55; }

.ghost-icon:not(.is-static):hover {
  transform: translateY(-2px);
  background: color-mix(in srgb, var(--accent, #0f766e) 28%, rgba(255,255,255,.08));
  border-color: color-mix(in srgb, var(--accent, #0f766e) 62%, white);
  box-shadow: 0 12px 24px rgba(0,0,0,.2);
}

.ghost-icon:not(.is-static):hover svg {
  transform: scale(1.08);
}

.ghost-icon:not(.is-static):active {
  transform: translateY(0) scale(.97);
}

.linkhub-cover {
  min-height: 180px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent, #0f766e) 34%, #510018), color-mix(in srgb, var(--secondary, #0f172a) 86%, #120910));
  background-size: cover;
  background-position: center;
}

.linkhub-profile {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
  padding: 4px 18px 10px;
  margin-top: -82px;
}

.linkhub-profile.is-minimal {
  margin-top: 0;
  padding-top: 12px;
}

.profile-avatar {
  width: 112px;
  height: 112px;
  border-radius: 999px;
  object-fit: cover;
  border: 4px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.08);
}

.avatar-rounded-square .profile-avatar,
.avatar-rounded-square .placeholder-avatar {
  border-radius: 28px;
}

.avatar-soft-square .profile-avatar,
.avatar-soft-square .placeholder-avatar {
  border-radius: 20px;
}

.placeholder-avatar {
  display: grid;
  place-items: center;
  font-size: 42px;
  font-weight: 800;
}

.linkhub-profile h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 2.7rem);
}

.linkhub-profile p {
  margin: 0;
  max-width: 420px;
  color: rgba(255,255,255,0.78);
  line-height: 1.6;
}

body.theme-light .linkhub-profile p {
  color: #475569;
}

.linkhub-layout {
  display: grid;
  gap: 16px;
}

.hub-strip,
.hub-gallery-strip,
.hub-map-compact,
.mini-social-card,
.hub-media-link {
  border-radius: 24px;
}

.featured-strip,
.contact-strip {
  padding: 14px 18px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
}

.contact-strip {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hub-links-stack {
  display: grid;
  gap: 16px;
}

.hub-media-link {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) 26px;
  gap: 14px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  padding: 14px 16px;
  background: rgba(0,0,0,0.74);
  box-shadow: 0 16px 28px rgba(0,0,0,0.22);
  border: 1px solid transparent;
  transition: transform .18s ease, border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.hub-media-link:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent, #0f766e) 62%, white);
  background: color-mix(in srgb, var(--accent, #0f766e) 18%, rgba(0,0,0,.82));
  box-shadow: 0 22px 38px rgba(0,0,0,.32);
}

.hub-media-link:hover .hub-media-left {
  transform: scale(1.04);
}

.cardstyle-app-tile .hub-media-link {
  background: rgba(9, 9, 11, 0.88);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 22px 40px rgba(0,0,0,0.28);
  padding: 16px 18px;
}

body.theme-light .hub-media-link {
  background: white;
  color: var(--ink, #172033);
}

body.buttons-outline .hub-media-link {
  background: transparent;
  border: 2px solid color-mix(in srgb, var(--accent, #0f766e) 60%, white);
}

body.buttons-rounded .hub-media-link {
  border-radius: 20px;
}

body.buttons-card .hub-media-link {
  border-radius: 24px;
}

body:is(.preset-warm, .preset-minimal, .preset-natural, .preset-playful, .preset-editorial, .preset-solar, .preset-romantic, .preset-artisan, .preset-zen, .preset-pop) .linkhub-profile p {
  color: color-mix(in srgb, currentColor 72%, transparent);
}

body:is(.preset-warm, .preset-minimal, .preset-natural, .preset-playful, .preset-editorial, .preset-solar, .preset-romantic, .preset-artisan, .preset-zen, .preset-pop) .ghost-icon {
  color: var(--ink);
  background: rgba(255, 255, 255, .66);
  border-color: rgba(39, 27, 43, .12);
  backdrop-filter: blur(12px);
}

body.preset-bold .hub-media-link {
  color: #fffaf6;
  background: linear-gradient(110deg, #e3642b, #c82f67);
  border: 2px solid rgba(255, 255, 255, .20);
  box-shadow: 7px 8px 0 rgba(255, 184, 95, .20);
}

body.preset-warm .hub-media-link,
body.preset-warm .mini-social-card {
  color: #3a211a;
  background: rgba(255, 250, 244, .86);
  border: 1px solid rgba(139, 78, 54, .16);
  box-shadow: 0 16px 38px rgba(126, 75, 55, .13);
}

body.preset-minimal .hub-media-link,
body.preset-minimal .mini-social-card {
  color: #182126;
  background: rgba(255, 255, 255, .54);
  border: 1px solid #b9c3c9;
  border-radius: 8px;
  box-shadow: none;
}

body.preset-premium .hub-media-link,
body.preset-premium .mini-social-card {
  color: #f9f2df;
  background: rgba(24, 19, 13, .72);
  border: 1px solid rgba(212, 181, 111, .56);
  box-shadow: inset 0 0 0 1px rgba(255, 245, 214, .04), 0 20px 38px rgba(0, 0, 0, .24);
}

body.preset-natural .hub-media-link,
body.preset-natural .mini-social-card {
  color: #1f3b2c;
  background: rgba(248, 251, 240, .82);
  border: 1px solid rgba(63, 122, 90, .22);
  border-radius: 30px 18px 30px 18px;
  box-shadow: 0 18px 42px rgba(56, 91, 65, .12);
}

body.preset-playful .linkhub-profile h1 {
  letter-spacing: -.045em;
  text-shadow: 3px 3px 0 rgba(255, 255, 255, .78);
}

body.preset-playful .profile-avatar {
  border: 5px solid #fff;
  background: linear-gradient(145deg, #ffd34e, #f43f8d 54%, #7c3aed);
  box-shadow: 7px 8px 0 rgba(124, 58, 237, .17);
  transform: rotate(2deg);
}

body.preset-playful .hub-media-link {
  color: #2c1740;
  background: rgba(255, 255, 255, .88);
  border: 2px solid rgba(124, 58, 237, .18);
  border-radius: 30px 18px 30px 18px;
  box-shadow: 7px 9px 0 rgba(244, 63, 141, .16), 0 18px 36px rgba(88, 48, 122, .10);
}

body.preset-playful .hub-media-link:nth-child(even) {
  border-radius: 18px 30px 18px 30px;
  box-shadow: 7px 9px 0 rgba(255, 184, 54, .24), 0 18px 36px rgba(88, 48, 122, .10);
}

body.preset-playful .hub-media-link:hover {
  color: #2c1740;
  background: #fff;
  border-color: #f43f8d;
  box-shadow: 9px 11px 0 rgba(124, 58, 237, .22), 0 20px 40px rgba(88, 48, 122, .14);
}

body.preset-playful .mini-social-card {
  color: #2c1740;
  background: linear-gradient(135deg, rgba(255, 211, 78, .92), rgba(255, 255, 255, .88));
  border: 2px solid rgba(244, 63, 141, .20);
  box-shadow: 4px 5px 0 rgba(124, 58, 237, .14);
}

body.preset-playful .hub-link-fallback {
  color: white;
  background: linear-gradient(145deg, #f43f8d, #7c3aed);
}

body.preset-editorial .hub-media-link,
body.preset-editorial .mini-social-card {
  color: #211a16;
  background: rgba(251, 247, 239, .82);
  border: 0;
  border-bottom: 3px solid #a12c2f;
  border-radius: 2px;
  box-shadow: none;
}

body.preset-tech .hub-media-link,
body.preset-tech .mini-social-card {
  color: #eaf6ff;
  background: rgba(9, 29, 62, .72);
  border: 1px solid rgba(83, 205, 255, .40);
  box-shadow: 0 0 28px rgba(37, 99, 235, .16), inset 0 0 24px rgba(37, 99, 235, .08);
  backdrop-filter: blur(12px);
}

body.preset-solar .hub-media-link,
body.preset-solar .mini-social-card {
  color: #422006;
  background: rgba(255, 252, 232, .88);
  border: 2px solid rgba(245, 158, 11, .24);
  box-shadow: 6px 8px 0 rgba(249, 115, 22, .16);
}

body.preset-romantic .hub-media-link,
body.preset-romantic .mini-social-card {
  color: #4a2335;
  background: rgba(255, 250, 252, .88);
  border: 1px solid rgba(219, 112, 147, .28);
  border-radius: 30px;
  box-shadow: 0 18px 42px rgba(143, 69, 101, .13);
}

body.preset-artisan .hub-media-link,
body.preset-artisan .mini-social-card {
  color: #3a251b;
  background: rgba(251, 245, 235, .88);
  border: 1px solid rgba(112, 69, 43, .28);
  box-shadow: 0 16px 0 -10px rgba(75, 51, 38, .32);
}

body.preset-ocean .hub-media-link,
body.preset-ocean .mini-social-card {
  color: #e9fbff;
  background: rgba(8, 47, 73, .72);
  border: 1px solid rgba(103, 232, 249, .34);
  box-shadow: 0 18px 40px rgba(1, 19, 31, .28);
  backdrop-filter: blur(12px);
}

body.preset-urban .hub-media-link,
body.preset-urban .mini-social-card {
  color: #fafafa;
  background: rgba(24, 24, 27, .84);
  border: 1px solid rgba(244, 244, 245, .24);
  border-radius: 5px;
  box-shadow: 8px 8px 0 rgba(113, 113, 122, .18);
}

body.preset-zen .hub-media-link,
body.preset-zen .mini-social-card {
  color: #31453a;
  background: rgba(250, 249, 243, .80);
  border: 1px solid rgba(111, 143, 123, .20);
  border-radius: 36px;
  box-shadow: 0 18px 42px rgba(81, 105, 89, .10);
}

body.preset-pop .hub-media-link,
body.preset-pop .mini-social-card {
  color: #35124a;
  background: rgba(255, 255, 255, .90);
  border: 3px solid rgba(236, 72, 153, .28);
  border-radius: 18px 32px 18px 32px;
  box-shadow: 7px 9px 0 rgba(109, 40, 217, .20);
}

body.preset-nocturne .hub-media-link,
body.preset-nocturne .mini-social-card {
  color: #f4f1ff;
  background: rgba(17, 16, 59, .76);
  border: 1px solid rgba(199, 210, 254, .30);
  box-shadow: 0 0 34px rgba(99, 102, 241, .18);
  backdrop-filter: blur(14px);
}

body:is(.preset-warm, .preset-minimal, .preset-natural, .preset-playful, .preset-editorial, .preset-solar, .preset-romantic, .preset-artisan, .preset-zen, .preset-pop) .hub-media-copy span,
body:is(.preset-warm, .preset-minimal, .preset-natural, .preset-playful, .preset-editorial, .preset-solar, .preset-romantic, .preset-artisan, .preset-zen, .preset-pop) .mini-social-card span {
  color: color-mix(in srgb, currentColor 68%, transparent);
}

.hub-media-left img,
.hub-link-fallback {
  width: 62px;
  height: 62px;
  border-radius: 16px;
  object-fit: cover;
  background: color-mix(in srgb, var(--accent, #0f766e) 18%, white);
}

.hub-media-left {
  transition: transform .18s ease;
}

.hub-link-fallback {
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--ink, #172033);
}

.thumb-circle .hub-media-left img,
.thumb-circle .hub-link-fallback {
  border-radius: 999px;
}

.thumb-soft-square .hub-media-left img,
.thumb-soft-square .hub-link-fallback {
  border-radius: 22px;
}

.hub-media-copy {
  display: grid;
  gap: 4px;
}

.hub-media-copy strong {
  font-size: 1.1rem;
}

.hub-media-copy span {
  color: rgba(255,255,255,0.68);
  font-size: 0.92rem;
}

body.theme-light .hub-media-copy span {
  color: #64748b;
}

.hub-media-more {
  font-size: 24px;
  opacity: 0.8;
}

.hub-gallery-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(150px, 1fr);
  gap: 12px;
  overflow-x: auto;
}

.hub-gallery-strip img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 22px;
}

.hub-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.mini-social-card {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  padding: 16px;
  text-decoration: none;
  color: inherit;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.mini-social-card:hover {
  transform: translateY(-2px);
  background: color-mix(in srgb, var(--accent, #0f766e) 22%, rgba(255,255,255,.08));
  border-color: color-mix(in srgb, var(--accent, #0f766e) 58%, white);
  box-shadow: 0 12px 24px rgba(0,0,0,.18);
}

.ghost-icon:not(.is-static):focus-visible,
.mini-social-card:focus-visible,
.hub-media-link:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent, #0f766e) 58%, white);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .ghost-icon,
  .ghost-icon svg,
  .hub-media-link,
  .hub-media-left,
  .mini-social-card {
    transition: none;
  }
}

.mini-social-card img { width: 30px; height: 30px; flex: 0 0 auto; border-radius: 8px; object-fit: contain; background: #fff; }
.mini-social-card span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.mini-social-card span {
  color: rgba(255,255,255,0.7);
  font-size: 0.88rem;
}

.mini-social-card.is-icon-ready {
  justify-content: center;
}

.mini-social-card.is-icon-ready span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hub-map-compact iframe {
  width: 100%;
  min-height: 220px;
  border: 0;
  border-radius: 24px;
}

.hub-cta-footer {
  padding-top: 6px;
}

.join-button {
  display: inline-flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  min-height: 58px;
  border-radius: 999px;
  text-decoration: none;
  background: white;
  color: #111111;
  font-weight: 800;
  font-size: 1.05rem;
}

.empty-copy {
  margin: 0;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255,255,255,0.06);
}

.layout-split-banner .linkhub-cover {
  min-height: 240px;
}

.layout-editorial-stack .hub-links-stack {
  gap: 12px;
}

.layout-compact-grid .hub-links-stack {
  grid-template-columns: 1fr;
}

.layout-app-stack .linkhub-profile {
  margin-top: -64px;
}

.layout-app-stack .hub-links-stack {
  gap: 18px;
}

.layout-app-stack .hub-media-link {
  min-height: 86px;
}

.layout-app-grid .linkhub-layout {
  gap: 14px;
}

.layout-app-grid .hub-links-stack {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.layout-app-grid .hub-media-link {
  grid-template-columns: 1fr;
  text-align: center;
  justify-items: center;
  min-height: 178px;
}

.layout-app-grid .hub-media-copy {
  justify-items: center;
}

.layout-app-grid .hub-media-more {
  position: absolute;
  top: 14px;
  right: 14px;
}

.layout-app-grid .hub-media-link {
  position: relative;
}

.layout-app-grid .hub-strip.contact-strip,
.layout-app-grid .hub-gallery-strip,
.layout-app-grid .hub-mini-grid,
.layout-app-grid .hub-map-compact,
.layout-app-grid .hub-cta-footer {
  grid-column: 1 / -1;
}

.header-minimal .linkhub-cover {
  display: none;
}

@media (max-width: 560px) {
  .linkhub-mobile-shell {
    padding: 12px 10px 24px;
  }

  .profile-avatar {
    width: 96px;
    height: 96px;
  }

  .hub-mini-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .linkhub-landing-hero,
  .linkhub-admin-grid,
  .linkhub-workbench,
  .linkhub-edit-grid,
  .landing-section-head {
    grid-template-columns: 1fr;
    display: grid;
  }

  .landing-section-head {
    align-items: start;
  }

  .linkhub-edit-card-top {
    flex-direction: column;
    align-items: start;
  }
}

/* Rich LinkHub modules */
.hub-rich-module{box-sizing:border-box;width:100%;overflow:hidden;border:1px solid rgba(255,255,255,.12);border-radius:24px;background:rgba(0,0,0,.76);color:inherit;box-shadow:0 16px 32px rgba(0,0,0,.23)}.hub-social-module{display:grid;grid-template-columns:92px minmax(0,1fr) auto;align-items:center;gap:14px;padding:12px;text-decoration:none;transition:transform .18s ease,border-color .18s ease}.hub-social-module:hover{transform:translateY(-3px);border-color:color-mix(in srgb,var(--accent) 65%,white)}.hub-social-module>img{width:92px;height:78px;border-radius:16px;object-fit:cover}.hub-rich-module__copy{display:grid;gap:4px;min-width:0}.hub-rich-module__copy>span{color:var(--accent);font-size:10px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.hub-rich-module__copy>strong{font-size:15px;line-height:1.25}.hub-rich-module__copy>p{display:-webkit-box;margin:0;color:color-mix(in srgb,currentColor 72%,transparent);font-size:11px;line-height:1.45;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.hub-social-module>b{padding:8px 10px;border-radius:99px;background:var(--accent);color:white;font-size:10px}.hub-rich-module.layout-featured.hub-social-module{grid-template-columns:1fr;padding:0}.hub-rich-module.layout-featured.hub-social-module>img{width:100%;height:220px;border-radius:0}.hub-rich-module.layout-featured.hub-social-module>.hub-rich-module__copy{padding:0 18px 4px}.hub-rich-module.layout-featured.hub-social-module>b{margin:0 18px 18px;justify-self:start}.hub-spotify-module{display:grid;gap:10px;padding:12px}.hub-spotify-module iframe{display:block;width:100%;height:152px;border:0;border-radius:15px;background:#191414}.hub-spotify-module.layout-classic iframe{height:80px}.hub-spotify-module.layout-classic iframe[src*="/embed/playlist/"],.hub-spotify-module.layout-classic iframe[src*="/embed/album/"],.hub-spotify-module.layout-classic iframe[src*="/embed/show/"]{height:152px}.hub-spotify-footer{display:flex;min-width:0;align-items:center;justify-content:space-between;gap:12px;padding:2px 4px}.hub-spotify-footer>a{flex:0 0 auto;color:#1ed760;font-size:11px;font-weight:900;text-decoration:none}.hub-image-module a{display:inline-flex;margin-top:10px;color:var(--accent);font-size:11px;font-weight:900}.platform-instagram .hub-rich-module__copy>span{color:#e1306c}.platform-facebook .hub-rich-module__copy>span{color:#1877f2}.platform-tiktok .hub-rich-module__copy>span{color:#25f4ee}.platform-linkedin .hub-rich-module__copy>span{color:#0a66c2}body.theme-light .hub-rich-module{background:rgba(255,255,255,.90);color:#172033;border-color:rgba(23,32,51,.12)}body.theme-light .hub-rich-module__copy>p{color:#64748b}body:is(.preset-warm,.preset-minimal,.preset-natural,.preset-playful,.preset-editorial,.preset-solar,.preset-romantic,.preset-artisan,.preset-zen,.preset-pop) .hub-rich-module{background:rgba(255,255,255,.82);color:var(--ink);border-color:color-mix(in srgb,var(--ink) 12%,transparent)}
@media(max-width:520px){.hub-social-module{grid-template-columns:70px minmax(0,1fr) auto;gap:10px}.hub-social-module>img{width:70px;height:66px}.hub-rich-module.layout-featured.hub-social-module{grid-template-columns:1fr}.hub-rich-module.layout-featured.hub-social-module>img{width:100%;height:190px}.hub-rich-module__copy>strong{font-size:14px}.hub-social-module>b{padding:7px 8px}}
.hub-social-feed-module{display:grid;gap:12px;padding:12px}.hub-social-feed-module>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:3px 5px}.hub-social-feed-module>header>a{flex:0 0 auto;padding:8px 11px;border-radius:99px;background:var(--accent);color:#fff;font-size:10px;font-weight:900;text-decoration:none}.hub-social-post-embed{box-sizing:border-box;width:100%;min-height:520px;border:0;border-radius:17px;background:#fff}.hub-social-feed-module.platform-tiktok .hub-social-post-embed{min-height:620px;background:#000}.hub-social-feed-module.platform-facebook .hub-social-post-embed{min-height:560px}.hub-social-feed-module.platform-linkedin .hub-social-post-embed{min-height:430px}.hub-social-post-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.hub-social-post-grid>a{display:flex;min-width:0;flex-direction:column;overflow:hidden;border:1px solid color-mix(in srgb,currentColor 12%,transparent);border-radius:15px;background:color-mix(in srgb,currentColor 5%,transparent);color:inherit;text-decoration:none}.hub-social-post-grid img{width:100%;aspect-ratio:1/1;object-fit:cover}.hub-social-post-grid a>div{display:grid;gap:3px;padding:9px}.hub-social-post-grid strong{overflow:hidden;font-size:10px;line-height:1.3;text-overflow:ellipsis;white-space:nowrap}.hub-social-post-grid span{display:-webkit-box;overflow:hidden;color:color-mix(in srgb,currentColor 68%,transparent);font-size:8px;line-height:1.35;-webkit-line-clamp:2;-webkit-box-orient:vertical}.hub-social-feed-module>.hub-social-module{margin:-2px;border-radius:17px;box-shadow:none}
@media(max-width:520px){.hub-social-feed-module{padding:10px}.hub-social-feed-module>header{align-items:flex-start}.hub-social-feed-module>header>a{padding:7px 9px}.hub-social-post-grid{grid-template-columns:1fr}.hub-social-post-grid>a{display:grid;grid-template-columns:92px minmax(0,1fr)}.hub-social-post-grid img{width:92px;height:92px;aspect-ratio:auto}.hub-social-post-grid a>div{align-self:center}.hub-social-post-embed{min-height:510px}}

.linkhub-unified-home {
  color: #f8f1e7;
}

.linkhub-unified-home .hero,
.linkhub-unified-home .card,
.linkhub-unified-home .auth-card {
  background: rgba(21, 16, 18, 0.84);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 24px 50px rgba(0,0,0,0.24);
}

.linkhub-unified-home .hero-lead,
.linkhub-unified-home .muted,
.linkhub-unified-home .pricing-copy,
.linkhub-unified-home .saas-site-card p {
  color: rgba(248, 241, 231, 0.8);
}

.linkhub-unified-home .hero-microproof span,
.linkhub-unified-home .tag-list span,
.linkhub-unified-home .hero-meta span,
.linkhub-unified-home .slot-chip {
  background: rgba(255,255,255,0.08);
  color: #f2d58d;
}

.linkhub-unified-home .pricing-price strong,
.linkhub-unified-home .stat-card strong,
.linkhub-unified-home .pricing-kicker,
.linkhub-unified-home .pack-saving {
  color: #d6b564;
}

.linkhub-unified-home .tab-button.is-active,
.linkhub-unified-home .button.primary {
  background: #c89b3c;
  color: #17110d;
}

.linkhub-unified-home .button.secondary {
  background: rgba(255,255,255,0.08);
  color: #f8f1e7;
}

.linkhub-unified-home .button.ghost {
  color: #f2d58d;
  box-shadow: inset 0 0 0 1px rgba(214, 181, 100, 0.22);
}

.linkhub-unified-home .support-form input,
.linkhub-unified-home .support-form textarea,
.linkhub-unified-home .support-form select {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
  color: #f8f1e7;
}

.linkhub-preview-panel.is-dark,
.linkhub-preview-line {
  background: linear-gradient(135deg, #342211, #120d0b);
}

.linkhub-preview-panel-light {
  background: rgba(255,255,255,0.92);
}
.app-missing-body--linkhub {
  min-height: 100vh;
  color: #f8f1e7;
  background:
    radial-gradient(circle at top left, rgba(216, 185, 118, 0.18), transparent 24%),
    radial-gradient(circle at top right, rgba(200, 155, 60, 0.14), transparent 30%),
    linear-gradient(180deg, #120c10, #1b1417 78%);
}

.app-missing-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 18px 48px;
}

.app-missing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: 24px;
  align-items: center;
}

.app-missing-hero--linkhub {
  padding: 28px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 26px 54px rgba(0, 0, 0, 0.28);
}

.app-missing-copy h1 {
  margin: 0;
  font-size: clamp(2.4rem, 4vw, 4.2rem);
  line-height: 0.96;
}

.app-missing-copy p:not(.app-missing-eyebrow) {
  max-width: 44rem;
  margin: 18px 0 0;
  color: rgba(248, 241, 231, 0.82);
  font-size: 1.06rem;
  line-height: 1.68;
}

.app-missing-eyebrow {
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.76rem;
  color: #d8b976;
}

.app-missing-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.app-missing-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
}

.app-missing-button--primary {
  background: #c89b3c;
  color: #18120d;
}

.app-missing-button--secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #f8f1e7;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.app-missing-preview--linkhub {
  padding: 20px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    linear-gradient(160deg, rgba(216, 185, 118, 0.16), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.app-missing-device {
  border-radius: 28px;
  padding: 14px;
  background: rgba(13, 11, 14, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.app-missing-device-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.app-missing-device-bar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.app-missing-device-screen {
  display: grid;
  gap: 12px;
  border-radius: 22px;
  padding: 18px;
  background:
    radial-gradient(circle at top, rgba(216, 185, 118, 0.18), transparent 44%),
    rgba(255, 255, 255, 0.03);
}

.app-missing-avatar {
  width: 82px;
  height: 82px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f3dfb3, #c89b3c);
  box-shadow: 0 12px 30px rgba(200, 155, 60, 0.24);
}

.app-missing-line {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.app-missing-line--title {
  width: 64%;
  height: 14px;
}

.app-missing-line--subtitle {
  width: 42%;
  height: 10px;
}

.app-missing-pill-grid {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.app-missing-pill-grid span {
  min-width: 88px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.app-missing-card-stack {
  display: grid;
  gap: 10px;
}

.app-missing-card-stack article {
  height: 68px;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(216, 185, 118, 0.1)),
    rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

@media (max-width: 900px) {
  .app-missing-hero {
    grid-template-columns: 1fr;
  }

  .app-missing-shell {
    padding-top: 24px;
  }
}
