:root {
  --bg: #050505;
  --text: #ffffff;
  --muted: #cfcfcf;
  --accent: #d4af37;

  --button-bg: transparent;
  --button-text: #ffffff;
  --button-border: #d4af37;

  --radius: 999px;

  --font:
    Arial,
    Helvetica,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  --max-width: 560px;
  --overlay: .5;
}


/* =========================================================
   GLOBAL
   ========================================================= */

* {
  box-sizing: border-box;
}

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

html {
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;

  background: var(--bg);
  color: var(--text);

  font-family: var(--font);

  transition:
    background-color .25s ease,
    color .25s ease;
}

body.has-background-image {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font-family: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.app-shell {
  width: min(100%, var(--max-width));
  min-height: 100vh;

  margin: 0 auto;
  padding: 42px 20px 32px;
}


/* =========================================================
   HOME
   ========================================================= */

.brand-home {
  min-height: calc(100vh - 74px);

  display: grid;
  place-items: center;

  text-align: center;
}

.brand-logo {
  margin: 0;

  font-size: clamp(3rem, 13vw, 5.4rem);
  line-height: .95;
  letter-spacing: -.06em;
  font-weight: 700;
}

.brand-first {
  color: var(--accent);
}

.brand-second {
  color: var(--text);
}

.brand-tagline {
  margin: 22px 0 0;

  color: var(--muted);

  font-size: clamp(1.15rem, 5vw, 1.55rem);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin-top: 32px;
  padding: 14px 30px;

  border: 1.5px solid var(--accent);
  border-radius: 999px;

  color: var(--accent);

  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 600;
}


/* =========================================================
   SHARED PROFILE
   ========================================================= */

.profile {
  width: 100%;
}

.avatar {
  width: 112px;
  height: 112px;

  display: grid;
  place-items: center;

  overflow: hidden;

  object-fit: cover;

  background: rgba(255, 255, 255, .06);

  border: 2px solid var(--accent);
  border-radius: 50%;

  font-size: 2.25rem;
  font-weight: 700;
}

.profile-name {
  margin: 20px 0 0;

  text-align: center;

  font-size: clamp(1.9rem, 8vw, 2.5rem);
  line-height: 1.05;
}

.profile-handle {
  margin: 8px 0 0;

  color: var(--accent);

  text-align: center;

  font-size: .98rem;
}

.profile-bio {
  max-width: 46ch;

  margin: 14px auto 0;

  color: var(--muted);

  text-align: center;

  line-height: 1.55;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;

  gap: 10px;

  margin-top: 22px;
}

.social-link {
  min-width: 44px;
  min-height: 44px;

  padding: 0 14px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;

  text-decoration: none;

  font-size: .92rem;

  transition:
    transform .16s ease,
    border-color .16s ease,
    background-color .16s ease;
}

.links {
  width: 100%;

  display: grid;

  gap: 14px;

  margin-top: 28px;
}

.link-button {
  width: 100%;
  min-height: 58px;

  padding: 14px 18px;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 10px;

  background: var(--button-bg);
  color: var(--button-text);

  border: 1.5px solid var(--button-border);
  border-radius: var(--radius);

  text-align: center;
  text-decoration: none;

  font-weight: 650;
  letter-spacing: .01em;

  transition:
    transform .16s ease,
    background-color .16s ease,
    border-color .16s ease,
    opacity .16s ease,
    box-shadow .16s ease;
}

.link-icon {
  flex: 0 0 auto;
}

.link-label {
  min-width: 0;
}

.link-button:hover,
.social-link:hover {
  transform: translateY(-2px);
}

.link-button:active,
.social-link:active {
  transform: translateY(0);
}

.footer {
  margin-top: 34px;

  color: rgba(255, 255, 255, .45);

  text-align: center;

  font-size: .82rem;
}


/* =========================================================
   CLASSIC PROFILE
   ========================================================= */

body[data-layout="classic"] .profile,
body:not([data-layout]) .profile {
  display: flex;
  flex-direction: column;
  align-items: center;
}

body[data-theme="classic-dark"] .link-button:hover {
  background: rgba(212, 175, 55, .08);

  box-shadow:
    0 8px 28px rgba(0, 0, 0, .24);
}


/* =========================================================
   MINIMAL PROFILE
   ========================================================= */

body[data-layout="minimal"] .app-shell {
  --max-width: 680px;
}

body[data-layout="minimal"] .profile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

body[data-layout="minimal"] .avatar {
  width: 88px;
  height: 88px;

  border-radius: 24px;
}

body[data-layout="minimal"] .profile-name,
body[data-layout="minimal"] .profile-handle,
body[data-layout="minimal"] .profile-bio {
  text-align: left;
}

body[data-layout="minimal"] .profile-name {
  font-size: clamp(2.2rem, 9vw, 3.4rem);
}

body[data-layout="minimal"] .profile-bio {
  margin-left: 0;
  margin-right: 0;
}

body[data-layout="minimal"] .socials {
  justify-content: flex-start;
}

body[data-layout="minimal"] .links {
  gap: 10px;
}

body[data-layout="minimal"] .link-button {
  justify-content: flex-start;

  text-align: left;
}

body[data-layout="minimal"] .footer {
  align-self: stretch;

  text-align: left;
}


/* =========================================================
   CANVAS
   ========================================================= */

body.is-canvas-profile {
  overflow-x: hidden;
}

body.is-canvas-profile .app-shell {
  width: 100%;
  max-width: none;

  padding: 0;
  margin: 0;
}

.canvas-profile {
  width: 100%;
  min-height: 100vh;
}

.canvas-stage {
  position: relative;

  width: 100%;
  min-height: 100vh;

  overflow: hidden;

  background: var(--bg);
  color: var(--text);
}

body.has-background-image .canvas-stage {
  background: transparent;
}

body.has-background-image .canvas-stage::before {
  content: "";

  position: absolute;
  inset: 0;

  z-index: 1;

  background:
    rgba(0, 0, 0, var(--overlay));

  pointer-events: none;
}

.canvas-title {
  position: relative;

  z-index: 20;

  margin: 0;
  padding: 28px 24px 0;

  font-size: clamp(2rem, 8vw, 3.6rem);
  line-height: 1.05;
}

.canvas-subtitle {
  position: relative;

  z-index: 20;

  max-width: 42ch;

  margin: 12px 0 0;
  padding: 0 24px;

  color: var(--muted);

  line-height: 1.5;
}

.canvas-elements {
  position: absolute;
  inset: 0;

  z-index: 3;
}

.canvas-element {
  position: absolute;

  margin: 0;

  box-sizing: border-box;
}

.canvas-text {
  max-width: 100%;

  line-height: 1.25;
}

.canvas-image {
  display: block;

  max-width: 100%;
}

.canvas-link {
  display: flex;
  align-items: center;
  justify-content: center;

  min-width: 0;
  min-height: 0;

  text-decoration: none;

  box-sizing: border-box;
}

.canvas-zone {
  display: block;

  box-sizing: border-box;

  text-decoration: none;
}

.canvas-link:hover,
.canvas-zone:hover {
  filter: brightness(1.05);
}

.canvas-link:active,
.canvas-zone:active {
  filter: brightness(.95);
}

.canvas-footer {
  position: absolute;

  left: 24px;
  bottom: 18px;

  z-index: 20;

  color: var(--muted);

  font-size: .82rem;
}

body.has-background-image .app-shell {
  position: relative;

  z-index: 1;
}


/* =========================================================
   LOADING / ERROR
   ========================================================= */

.loading-card,
.error-card {
  min-height: calc(100vh - 74px);

  display: grid;
  place-items: center;
  align-content: center;

  gap: 16px;

  text-align: center;
}

.loader {
  width: 34px;
  height: 34px;

  border: 3px solid rgba(255, 255, 255, .15);
  border-top-color: var(--accent);
  border-radius: 50%;

  animation:
    spin .8s linear infinite;
}

.error-card h1 {
  margin: 0;
}

.error-card p {
  max-width: 38ch;

  color: var(--muted);
}

.error-card a {
  color: var(--accent);

  text-decoration: none;

  border-bottom:
    1px solid currentColor;
}

.noscript {
  padding: 24px;

  text-align: center;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}


/* =========================================================
   MYLINX CREATOR
   ========================================================= */

body.creator-page {
  overflow-x: hidden;

  background:
    radial-gradient(
      circle at top right,
      rgba(212, 175, 55, .08),
      transparent 32%
    ),
    #050505;

  color: #ffffff;
}

body.creator-page .app-shell {
  width: 100%;
  max-width: none;
  min-height: 100vh;

  margin: 0;
  padding: 36px;
}

.creator-shell {
  width: min(1180px, 100%);
  min-height: calc(100vh - 72px);

  margin: 0 auto;

  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    minmax(340px, 460px);

  gap: 48px;

  align-items: start;
}

.creator-editor,
.creator-preview-wrap {
  min-width: 0;
}

.creator-eyebrow {
  margin: 0 0 12px;

  color: #d4af37;

  font-size: .82rem;
  font-weight: 700;

  letter-spacing: .14em;
  text-transform: uppercase;
}

.creator-editor h1 {
  max-width: 720px;

  margin: 0;

  color: #ffffff;

  font-size: clamp(2.5rem, 6vw, 4.8rem);
  line-height: .98;

  letter-spacing: -.045em;

  font-weight: 750;
}

.creator-intro {
  max-width: 620px;

  margin: 20px 0 0;

  color: #cfcfcf;

  font-size: 1.05rem;
  line-height: 1.6;
}

.creator-form {
  display: grid;

  gap: 22px;

  margin-top: 34px;
}


/* =========================================================
   CREATOR - TOP TOOLS
   Logo + settings
   ========================================================= */

.creator-top-tools {
  width: 100%;

  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    auto;

  align-items: stretch;

  gap: 14px;
}

.creator-profile-tool {
  min-width: 0;

  padding: 16px;

  display: grid;

  gap: 14px;

  border:
    1px solid rgba(212, 175, 55, .20);

  border-radius: 18px;

  background:
    rgba(255, 255, 255, .018);
}

.creator-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 16px;
}

.creator-section-title,
.creator-setting-title {
  margin: 0;

  color: #ffffff;

  font-size: .95rem;
  font-weight: 700;
}

.creator-section-help,
.creator-setting-help {
  margin: 5px 0 0;

  color: #9f9f9f;

  font-size: .84rem;
  line-height: 1.4;
}


/* =========================================================
   CREATOR - UPLOAD CONTROLS
   ========================================================= */

.creator-file-input {
  position: absolute;

  width: 1px;
  height: 1px;

  overflow: hidden;

  opacity: 0;

  pointer-events: none;
}

.creator-upload-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;

  gap: 10px;
}

.creator-upload-button,
.creator-secondary-button {
  min-height: 40px;

  padding: 8px 14px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 999px;

  font: inherit;
  font-size: .84rem;
  font-weight: 700;

  cursor: pointer;

  transition:
    border-color .16s ease,
    background-color .16s ease,
    color .16s ease,
    transform .16s ease;
}

.creator-upload-button {
  border:
    1px solid #d4af37;

  background:
    rgba(212, 175, 55, .06);

  color: #d4af37;
}

.creator-secondary-button {
  border:
    1px solid rgba(255, 255, 255, .16);

  background: transparent;

  color: #bdbdbd;
}

.creator-upload-button:hover {
  background:
    rgba(212, 175, 55, .12);
}

.creator-secondary-button:hover {
  border-color:
    rgba(255, 255, 255, .32);

  color: #ffffff;
}


/* =========================================================
   CREATOR - SETTINGS BUTTON
   ========================================================= */

.creator-settings {
  min-width: 220px;

  display: flex;

  border:
    1px solid rgba(212, 175, 55, .24);

  border-radius: 18px;

  overflow: hidden;

  background:
    rgba(255, 255, 255, .018);
}

.creator-settings-toggle {
  width: 100%;
  min-height: 100%;

  padding: 16px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 18px;

  border: 0;

  background: transparent;

  color: #ffffff;

  font: inherit;
  font-size: .9rem;
  font-weight: 700;

  cursor: pointer;

  text-align: left;

  transition:
    background-color .16s ease,
    color .16s ease;
}

.creator-settings-toggle:hover {
  background:
    rgba(212, 175, 55, .06);
}

.creator-settings-toggle[aria-expanded="true"] {
  color: #d4af37;

  background:
    rgba(212, 175, 55, .055);
}


/* =========================================================
   CREATOR - SETTINGS PANEL
   ========================================================= */

.creator-settings-panel-wide {
  width: 100%;

  padding: 18px;

  border:
    1px solid rgba(212, 175, 55, .24);

  border-radius: 18px;

  background:
    rgba(255, 255, 255, .018);
}

.creator-settings-grid {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 0 24px;
}

.creator-setting-group {
  min-width: 0;

  padding: 14px 0;

  display: grid;

  align-content: start;

  gap: 12px;
}

.creator-setting-group:nth-child(n + 3) {
  border-top:
    1px solid rgba(255, 255, 255, .07);
}

.creator-color-row {
  display: flex;
  align-items: center;

  gap: 12px;
}

.creator-color-input {
  width: 48px;
  height: 40px;

  padding: 3px;

  border:
    1px solid rgba(212, 175, 55, .4);

  border-radius: 10px;

  background: transparent;

  cursor: pointer;
}

.creator-color-value {
  color: #cfcfcf;

  font-size: .86rem;

  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Consolas,
    monospace;
}


/* =========================================================
   CREATOR - BUTTON SHAPE OPTIONS
   ========================================================= */

.creator-shape-options {
  display: flex;
  flex-wrap: wrap;

  gap: 8px;
}

.creator-shape-option {
  position: relative;

  cursor: pointer;
}

.creator-shape-option input {
  position: absolute;

  opacity: 0;

  pointer-events: none;
}

.creator-shape-option span {
  min-height: 38px;

  padding: 8px 12px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border:
    1px solid rgba(255, 255, 255, .15);

  border-radius: 999px;

  background:
    rgba(255, 255, 255, .02);

  color: #bdbdbd;

  font-size: .8rem;
  font-weight: 650;

  transition:
    border-color .16s ease,
    background-color .16s ease,
    color .16s ease;
}

.creator-shape-option input:checked + span {
  border-color: #d4af37;

  background:
    rgba(212, 175, 55, .09);

  color: #d4af37;
}

.creator-shape-option:hover span {
  border-color:
    rgba(212, 175, 55, .55);
}


/* =========================================================
   CREATOR - FORM FIELDS
   ========================================================= */

.creator-field {
  width: 100%;

  display: grid;

  gap: 8px;
}

.creator-field span {
  color: #f3f3f3;

  font-size: .92rem;
  font-weight: 650;
}

.creator-field input,
.creator-field textarea {
  width: 100%;

  border:
    1px solid rgba(212, 175, 55, .38);

  border-radius: 16px;

  background:
    rgba(255, 255, 255, .035);

  color: #ffffff;

  font: inherit;

  outline: none;

  transition:
    border-color .18s ease,
    background-color .18s ease,
    box-shadow .18s ease;
}

.creator-field input {
  min-height: 52px;

  padding: 0 15px;
}

.creator-field textarea {
  min-height: 118px;

  padding: 14px 15px;

  resize: vertical;
}

.creator-field input::placeholder,
.creator-field textarea::placeholder {
  color:
    rgba(255, 255, 255, .38);
}

.creator-field input:focus,
.creator-field textarea:focus {
  border-color: #d4af37;

  background:
    rgba(255, 255, 255, .055);

  box-shadow:
    0 0 0 3px rgba(212, 175, 55, .09);
}


/* =========================================================
   CREATOR - LINKS EDITOR
   ========================================================= */

.creator-links-section {
  margin-top: 2px;
}

.creator-links-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  gap: 18px;

  margin-bottom: 16px;
}

.creator-links-title {
  margin: 0;

  color: #ffffff;

  font-size: 1.08rem;
  font-weight: 750;
}

.creator-links-help {
  margin: 6px 0 0;

  color: #9f9f9f;

  font-size: .88rem;
  line-height: 1.4;
}

.creator-link-action {
  min-width: 160px;

  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.creator-add-link {
  flex: 0 0 auto;

  min-height: 42px;

  padding: 9px 16px;

  border:
    1px solid #d4af37;

  border-radius: 999px;

  background:
    rgba(212, 175, 55, .06);

  color: #d4af37;

  font: inherit;
  font-size: .9rem;
  font-weight: 700;

  cursor: pointer;

  transition:
    background-color .16s ease,
    transform .16s ease,
    opacity .16s ease;
}

.creator-add-link:hover {
  background:
    rgba(212, 175, 55, .12);

  transform:
    translateY(-1px);
}

.creator-add-link:active {
  transform:
    translateY(0);
}

.creator-link-limit {
  margin: 0;

  color: #d4af37;

  font-size: .84rem;
  font-weight: 650;

  text-align: right;
}

.creator-links-list {
  display: grid;

  gap: 14px;
}

.creator-link-card {
  padding: 16px;

  display: grid;

  gap: 14px;

  border:
    1px solid rgba(212, 175, 55, .20);

  border-radius: 18px;

  background:
    rgba(255, 255, 255, .018);
}

.creator-link-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 14px;
}

.creator-link-number {
  color: #d4af37;

  font-size: .86rem;
  font-weight: 750;

  letter-spacing: .04em;
}

.creator-remove-link {
  min-height: 32px;

  padding: 5px 11px;

  border:
    1px solid rgba(255, 255, 255, .14);

  border-radius: 999px;

  background: transparent;

  color: #bdbdbd;

  font: inherit;
  font-size: .78rem;

  cursor: pointer;

  transition:
    color .16s ease,
    border-color .16s ease,
    background-color .16s ease;
}

.creator-remove-link:hover {
  color: #ffffff;

  border-color:
    rgba(255, 255, 255, .30);

  background:
    rgba(255, 255, 255, .04);
}


/* =========================================================
   CREATOR - LIVE PREVIEW
   ========================================================= */

.creator-preview-wrap {
  position: sticky;

  top: 28px;
}

.creator-preview-label {
  margin: 0 0 12px;

  color: #d4af37;

  font-size: .82rem;
  font-weight: 700;

  letter-spacing: .12em;
  text-transform: uppercase;
}

.creator-preview {
  width: 100%;
  min-width: 0;

  min-height: 620px;
  max-height: calc(100vh - 90px);

  padding: 36px 24px 28px;

  display: flex;
  flex-direction: column;
  align-items: center;

  overflow-x: hidden;
  overflow-y: auto;

  border:
    1px solid rgba(212, 175, 55, .32);

  border-radius: 30px;

  background-color: #050505;

  color: #ffffff;

  box-shadow:
    0 22px 60px rgba(0, 0, 0, .28),
    inset 0 1px 0 rgba(255, 255, 255, .035);

  transition:
    background-color .18s ease,
    color .18s ease;
}

.creator-preview.has-creator-background {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.creator-preview-avatar {
  width: 100px;
  height: 100px;

  flex: 0 0 auto;

  display: grid;
  place-items: center;

  overflow: hidden;

  border:
    2px solid #d4af37;

  border-radius: 50%;

  background-color:
    rgba(212, 175, 55, .08);

  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;

  color: #d4af37;

  font-size: 2rem;
  font-weight: 800;

  box-shadow:
    0 8px 22px rgba(0, 0, 0, .20);
}

.creator-preview-avatar.has-creator-image {
  color: transparent;
}

.creator-preview h2 {
  max-width: 100%;

  margin: 20px 0 0;

  color: #ffffff;

  text-align: center;

  font-size: 1.9rem;
  line-height: 1.08;

  overflow-wrap: anywhere;

  text-shadow:
    0 1px 8px rgba(0, 0, 0, .35);
}

#creator-preview-bio {
  max-width: 34ch;

  margin: 10px 0 0;

  color: #cfcfcf;

  text-align: center;

  line-height: 1.45;

  overflow-wrap: anywhere;

  text-shadow:
    0 1px 8px rgba(0, 0, 0, .35);
}


/* =========================================================
   CREATOR - TWO COLUMN BUTTONS
   ========================================================= */

.creator-preview-links {
  width: 100%;
  min-width: 0;

  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 9px;

  margin-top: 22px;
}

.creator-preview-link {
  width: 100%;
  min-width: 0;
  min-height: 42px;

  margin: 0;
  padding: 7px 11px;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;

  border:
    1.25px solid #d4af37;

  border-radius: 999px;

  background-color: #050505;

  color: #ffffff;

  text-align: center;
  text-decoration: none;

  font-size: .84rem;
  font-weight: 700;

  box-shadow:
    0 4px 14px rgba(0, 0, 0, .16);

  transition:
    transform .16s ease,
    background-color .16s ease,
    border-color .16s ease,
    border-radius .16s ease,
    color .16s ease,
    opacity .16s ease;
}

.creator-preview-link:hover {
  transform:
    translateY(-1px);

  filter:
    brightness(1.10);
}

.creator-preview-link:active {
  transform:
    translateY(0);
}

.creator-preview-link[aria-disabled="true"] {
  cursor: default;

  opacity: .72;
}

.creator-preview-link span {
  min-width: 0;
  max-width: 100%;

  display: -webkit-box;

  overflow: hidden;

  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;

  line-height: 1.2;

  overflow-wrap: anywhere;
}


/* =========================================================
   CREATOR - CENTER LAST ODD BUTTON
   ========================================================= */

.creator-preview-links.has-odd-links
.creator-preview-link:last-child {
  grid-column:
    1 / -1;

  justify-self: center;

  width:
    calc(50% - 4.5px);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

  body.creator-page .app-shell {
    padding:
      28px 20px 34px;
  }

  .creator-shell {
    grid-template-columns:
      1fr;

    gap: 42px;
  }

  .creator-preview-wrap {
    position: static;
  }

  .creator-preview {
    min-height: 520px;
    max-height: none;
  }

}


/* =========================================================
   SMALL TABLET
   ========================================================= */

@media (max-width: 720px) {

  .creator-top-tools {
    grid-template-columns:
      1fr;
  }

  .creator-settings {
    min-width: 0;
  }

  .creator-settings-toggle {
    min-height: 54px;
  }

  .creator-settings-grid {
    grid-template-columns:
      1fr;
  }

  .creator-setting-group:nth-child(n + 2) {
    border-top:
      1px solid rgba(255, 255, 255, .07);
  }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

  body.has-background-image {
    background-attachment: scroll;
  }

  .app-shell {
    padding:
      32px 18px 28px;
  }

  body[data-layout="minimal"] .profile-name {
    font-size:
      clamp(2rem, 11vw, 3rem);
  }

  body.is-canvas-profile .app-shell {
    padding: 0;
  }

  .canvas-title {
    padding:
      24px 20px 0;
  }

  .canvas-subtitle {
    padding:
      0 20px;
  }

  .canvas-footer {
    left: 20px;
  }


  /* Creator */

  body.creator-page .app-shell {
    padding:
      24px 16px 28px;
  }

  .creator-editor h1 {
    font-size:
      clamp(2.25rem, 12vw, 3.5rem);
  }

  .creator-intro {
    font-size: .98rem;
  }

  .creator-top-tools {
    gap: 10px;
  }

  .creator-profile-tool {
    padding: 14px;
  }

  .creator-settings-panel-wide {
    padding: 14px;
  }

  .creator-links-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .creator-link-action {
    min-width: 0;

    justify-content: flex-start;
  }

  .creator-link-limit {
    text-align: left;
  }

  .creator-add-link {
    align-self: flex-start;
  }

  .creator-link-card {
    padding: 14px;
  }

  .creator-preview {
    min-height: 470px;

    padding:
      30px 16px 24px;

    border-radius: 24px;
  }

  .creator-preview-avatar {
    width: 90px;
    height: 90px;
  }

  .creator-preview h2 {
    margin-top: 18px;

    font-size: 1.65rem;
  }

  #creator-preview-bio {
    margin-top: 9px;

    font-size: .92rem;
  }

  .creator-preview-links {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 8px;

    margin-top: 20px;
  }

  .creator-preview-link {
    min-height: 40px;

    padding:
      6px 8px;

    font-size: .80rem;
  }

  .creator-preview-links.has-odd-links
  .creator-preview-link:last-child {
    width:
      calc(50% - 4px);
  }

  .creator-shape-options {
    gap: 7px;
  }

  .creator-shape-option span {
    min-height: 36px;

    padding:
      7px 10px;

    font-size: .77rem;
  }

}


/* =========================================================
   VERY SMALL MOBILE
   ========================================================= */

@media (max-width: 390px) {

  .creator-preview {
    padding-left: 12px;
    padding-right: 12px;
  }

  .creator-preview-links {
    gap: 7px;
  }

  .creator-preview-link {
    padding-left: 6px;
    padding-right: 6px;

    font-size: .76rem;
  }

  .creator-preview-links.has-odd-links
  .creator-preview-link:last-child {
    width:
      calc(50% - 3.5px);
  }

}

/* =========================================================
   CREATOR - MOBILE COMPACT EDITOR + STICKY LIVE PREVIEW
   ========================================================= */

@media (max-width: 600px) {

  /*
   * Na mobilnom Live Preview ide iznad editora
   * i ostaje vidljiv tokom skrolovanja.
   */

  .creator-shell {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .creator-preview-wrap {
    order: -1;

    position: sticky;
    top: 0;

    z-index: 100;

    margin:
      -8px -16px 0;

    padding:
      8px 16px 10px;

    background:
      rgba(5, 5, 5, .96);

    backdrop-filter:
      blur(10px);

    -webkit-backdrop-filter:
      blur(10px);

    border-bottom:
      1px solid rgba(212, 175, 55, .18);
  }

  .creator-preview-label {
    margin:
      0 0 5px;

    font-size: .66rem;
    letter-spacing: .10em;
  }

  /*
   * Kompaktni mobilni Live Preview.
   */

  .creator-preview {
    min-height: 0;
    height: auto;

    max-height: 34vh;

    padding:
      10px 11px 9px;

    overflow-x: hidden;
    overflow-y: auto;

    border-radius: 17px;
  }

  .creator-preview-avatar {
    width: 48px;
    height: 48px;

    border-width: 1.5px;

    font-size: 1.05rem;
  }

  .creator-preview h2 {
    margin-top: 6px;

    font-size: 1.08rem;
    line-height: 1.05;
  }

  #creator-preview-bio {
    max-width: 95%;

    margin-top: 3px;

    font-size: .69rem;
    line-height: 1.22;
  }

  .creator-preview-links {
    gap: 5px;

    margin-top: 7px;
  }

  .creator-preview-link {
    min-height: 27px;

    padding:
      3px 6px;

    border-width: 1px;

    font-size: .64rem;
  }

  .creator-preview-links.has-odd-links
  .creator-preview-link:last-child {
    width:
      calc(50% - 2.5px);
  }


  /* =======================================================
     MOBILE EDITOR
     ======================================================= */

  .creator-editor {
    width: 100%;
  }

  /*
   * Logo i Podešavanja ostaju jedno ispod drugog
   * jer su na uskom ekranu tako lakši za dodir.
   */

  .creator-top-tools {
    grid-template-columns: 1fr;

    gap: 9px;
  }

  .creator-profile-tool {
    padding: 13px;

    gap: 10px;
  }

  .creator-section-title {
    font-size: .88rem;
  }

  .creator-section-help {
    margin-top: 3px;

    font-size: .76rem;
  }

  .creator-upload-row {
    gap: 7px;
  }

  .creator-upload-button,
  .creator-secondary-button {
    min-height: 35px;

    padding:
      6px 11px;

    font-size: .76rem;
  }


  /* =======================================================
     SETTINGS BUTTON
     ======================================================= */

  .creator-settings {
    min-width: 0;
  }

  .creator-settings-toggle {
    min-height: 46px;

    padding:
      10px 13px;

    font-size: .82rem;
  }


  /* =======================================================
     SETTINGS PANEL - TWO COLUMNS
     ======================================================= */

  .creator-settings-panel-wide {
    padding:
      10px 12px 12px;

    border-radius: 16px;
  }

  .creator-settings-grid {
    display: grid;

    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    column-gap: 12px;
    row-gap: 0;
  }

  /*
   * Prve četiri opcije:
   *
   * Pozadina | Tekst
   * Dugmad   | Obrub
   */

  .creator-setting-group {
    min-width: 0;

    padding:
      10px 2px;

    gap: 7px;

    border-top:
      1px solid rgba(255, 255, 255, .07);
  }

  .creator-setting-group:nth-child(1),
  .creator-setting-group:nth-child(2) {
    border-top: 0;
  }

  /*
   * Oblik dugmadi i Slika pozadine
   * koriste cijelu širinu.
   */

  .creator-setting-group:nth-child(5),
  .creator-setting-group:nth-child(6) {
    grid-column:
      1 / -1;
  }

  .creator-setting-title {
    font-size: .80rem;
  }

  .creator-setting-help {
    margin-top: 2px;

    font-size: .69rem;
    line-height: 1.25;
  }


  /* =======================================================
     COMPACT COLOR PICKERS
     ======================================================= */

  .creator-color-row {
    gap: 7px;
  }

  .creator-color-input {
    width: 39px;
    height: 34px;

    padding: 2px;

    border-radius: 8px;
  }

  .creator-color-value {
    min-width: 0;

    font-size: .68rem;

    overflow-wrap: anywhere;
  }


  /* =======================================================
     BUTTON SHAPE OPTIONS
     ======================================================= */

  .creator-shape-options {
    display: grid;

    grid-template-columns:
      repeat(3, minmax(0, 1fr));

    gap: 6px;
  }

  .creator-shape-option {
    min-width: 0;
  }

  .creator-shape-option span {
    width: 100%;
    min-height: 34px;

    padding:
      5px 5px;

    font-size: .68rem;

    text-align: center;

    white-space: normal;

    line-height: 1.1;
  }


  /* =======================================================
     BACKGROUND IMAGE CONTROLS
     ======================================================= */

  .creator-setting-group:nth-child(6)
  .creator-upload-row {
    display: grid;

    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 7px;
  }

  .creator-setting-group:nth-child(6)
  .creator-upload-button,

  .creator-setting-group:nth-child(6)
  .creator-secondary-button {
    width: 100%;

    min-width: 0;

    text-align: center;
  }


  /* =======================================================
     FORM SPACING
     ======================================================= */

  .creator-form {
    gap: 16px;

    margin-top: 24px;
  }

  .creator-field {
    gap: 6px;
  }

  .creator-field span {
    font-size: .84rem;
  }

  .creator-field input {
    min-height: 46px;

    padding:
      0 12px;
  }

  .creator-field textarea {
    min-height: 96px;

    padding:
      11px 12px;
  }

}

/* =========================================================
   CREATOR - IMAGE POSITION + ZOOM
   Mouse / touch drag with side +/- controls
   ========================================================= */

.creator-image-adjuster[hidden] {
  display: none;
}

.creator-image-adjuster {
  width: 100%;

  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    auto;

  align-items: center;

  gap: 10px;

  margin-top: 2px;
}

.creator-drag-surface {
  --creator-editor-image: none;
  --creator-editor-x: 50%;
  --creator-editor-y: 50%;
  --creator-editor-zoom: 1;

  position: relative;

  min-width: 0;

  overflow: hidden;

  border:
    1px solid rgba(212, 175, 55, .34);

  background:
    rgba(255, 255, 255, .025);

  cursor: grab;

  touch-action: none;

  user-select: none;
  -webkit-user-select: none;
}

.creator-drag-surface::before {
  content: "";

  position: absolute;
  inset: 0;

  background-image:
    var(--creator-editor-image);

  background-size: cover;

  background-position:
    var(--creator-editor-x)
    var(--creator-editor-y);

  background-repeat: no-repeat;

  transform:
    scale(var(--creator-editor-zoom));

  transform-origin: center;

  pointer-events: none;
}

.creator-drag-surface::after {
  content: "";

  position: absolute;
  inset: 0;

  border-radius: inherit;

  box-shadow:
    inset 0 0 0 1px
    rgba(255, 255, 255, .035);

  pointer-events: none;
}

.creator-drag-surface.is-dragging {
  cursor: grabbing;
}

.creator-drag-surface span {
  position: absolute;

  left: 50%;
  bottom: 7px;

  z-index: 2;

  transform:
    translateX(-50%);

  padding:
    4px 8px;

  border-radius: 999px;

  background:
    rgba(0, 0, 0, .66);

  color: #ffffff;

  font-size: .68rem;
  font-weight: 700;

  white-space: nowrap;

  pointer-events: none;
}

.creator-logo-drag-surface {
  width: 112px;
  height: 112px;

  justify-self: start;

  border-radius: 50%;
}

.creator-background-drag-surface {
  width: min(280px, 100%);

  aspect-ratio: 16 / 9;

  border-radius: 14px;
}

.creator-zoom-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  gap: 6px;
}

.creator-zoom-button {
  width: 36px;
  height: 36px;

  padding: 0;

  display: grid;
  place-items: center;

  border:
    1px solid rgba(212, 175, 55, .5);

  border-radius: 10px;

  background:
    rgba(212, 175, 55, .06);

  color: #d4af37;

  font: inherit;
  font-size: 1.15rem;
  font-weight: 800;

  line-height: 1;

  cursor: pointer;
}

.creator-zoom-button:hover {
  background:
    rgba(212, 175, 55, .13);
}

.creator-zoom-value {
  min-width: 44px;

  color: #bdbdbd;

  text-align: center;

  font-size: .68rem;
  font-weight: 700;
}


/* =========================================================
   CREATOR - ADJUSTABLE LIVE PREVIEW IMAGES
   ========================================================= */

.creator-preview {
  position: relative;

  isolation: isolate;

  overflow: hidden;
}

.creator-preview::before {
  content: "";

  position: absolute;
  inset: 0;

  z-index: 0;

  background-image:
    var(--creator-background-image, none);

  background-size: cover;

  background-position:
    var(--creator-background-x, 50%)
    var(--creator-background-y, 50%);

  background-repeat: no-repeat;

  opacity: 0;

  transform:
    scale(var(--creator-background-zoom, 1));

  transform-origin: center;

  pointer-events: none;
}

.creator-preview.has-creator-background::before {
  opacity: 1;
}

.creator-preview::after {
  content: "";

  position: absolute;
  inset: 0;

  z-index: 1;

  background:
    rgba(0, 0, 0, .60);

  opacity: 0;

  pointer-events: none;
}

.creator-preview.has-creator-background::after {
  opacity: 1;
}

.creator-preview > * {
  position: relative;

  z-index: 2;
}

.creator-preview.has-creator-background {
  background-image: none !important;
}

.creator-preview-avatar {
  position: relative;

  isolation: isolate;
}

.creator-preview-avatar::before {
  content: "";

  position: absolute;
  inset: 0;

  z-index: 1;

  border-radius: inherit;

  background-image:
    var(--creator-logo-image, none);

  background-size: cover;

  background-position:
    var(--creator-logo-x, 50%)
    var(--creator-logo-y, 50%);

  background-repeat: no-repeat;

  opacity: 0;

  transform:
    scale(var(--creator-logo-zoom, 1));

  transform-origin: center;

  pointer-events: none;
}

.creator-preview-avatar.has-creator-image::before {
  opacity: 1;
}


/* =========================================================
   CREATOR - IMAGE EDITOR MOBILE COMPACT
   ========================================================= */

@media (max-width: 600px) {

  .creator-image-adjuster {
    gap: 8px;
  }

  .creator-logo-drag-surface {
    width: 86px;
    height: 86px;
  }

  .creator-background-drag-surface {
    width: 100%;

    min-height: 82px;
  }

  .creator-zoom-controls {
    gap: 4px;
  }

  .creator-zoom-button {
    width: 32px;
    height: 32px;

    border-radius: 9px;

    font-size: 1rem;
  }

  .creator-zoom-value {
    min-width: 38px;

    font-size: .62rem;
  }

  .creator-drag-surface span {
    bottom: 5px;

    padding:
      3px 6px;

    font-size: .60rem;
  }

}

/* =========================================================
   CREATOR - SMART PLATFORM ICONS
   ========================================================= */

.creator-preview-link {
  gap: 7px;
}

.creator-preview-link-icon {
  width: 18px;
  height: 18px;

  flex: 0 0 18px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  color: currentColor;
}

.creator-preview-link-icon svg {
  width: 100%;
  height: 100%;

  display: block;

  overflow: visible;
}

.creator-preview-link-label {
  min-width: 0;
  max-width: 100%;

  display: -webkit-box;

  overflow: hidden;

  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;

  line-height: 1.2;
  overflow-wrap: anywhere;
}

@media (max-width: 600px) {
  .creator-preview-link {
    gap: 5px;
  }

  .creator-preview-link-icon {
    width: 14px;
    height: 14px;

    flex-basis: 14px;
  }
}

