:root {
  --bg: #050505;
  --sidebar: #080808;
  --panel: #111111;
  --control: #080808;
  --ink: #ffffff;
  --muted: #b9b0bd;
  --line: rgba(255, 255, 255, 0.075);
  --purple: #9b42d6;
  --pink: #d956d4;
  --green: #40d66f;
  --danger: #dc3f46;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #050505;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 76% 0%, rgba(155, 66, 214, 0.055), transparent 32%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.01) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.008) 1px, transparent 1px);
  background-size: auto, 92px 92px, 92px 92px;
  opacity: 0.38;
}

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.dashboard-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
}

/* =========================
   SIDEBAR
========================= */

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  min-width: 270px;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px 16px 18px;
  background:
    radial-gradient(circle at 0% 0%, rgba(155, 66, 214, 0.095), transparent 30%),
    #080808;
  border-right: 1px solid rgba(255, 255, 255, 0.055);
  box-shadow: 34px 0 90px rgba(0, 0, 0, 0.48);
}

.sidebar svg {
  width: 20px;
  height: 20px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sidebar path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 4px 22px;
  margin: 0 0 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.065);
  color: #ffffff;
  font-size: 25px;
  font-weight: 950;
  letter-spacing: -0.055em;
}

.brand strong {
  color: #ffffff;
  font-weight: 950;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #b85cff, #ef4cc8);
  color: #070707;
  font-size: 22px;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
  box-shadow:
    0 0 24px rgba(184, 92, 255, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.sidebar-nav {
  display: grid;
  gap: 11px;
  padding-top: 4px;
}

.account-dropdown summary {
  min-height: 46px;
  width: 100%;
  display: grid;
  grid-template-columns: 26px 1fr 20px;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  padding: 0 14px;
  background: transparent;
  color: #ffffff;
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.account-dropdown summary::-webkit-details-marker {
  display: none;
}

.account-dropdown summary strong {
  font-size: 16px;
  font-weight: 850;
}

.nav-svg {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: #ffffff;
}

.dropdown-arrow {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  transition: transform 180ms ease;
}

.account-dropdown[open] .dropdown-arrow {
  transform: rotate(180deg);
}

.account-subnav {
  display: grid;
  gap: 8px;
  padding: 8px 0 8px 46px;
}

.account-subnav a {
  min-height: 18px;
  display: flex;
  align-items: center;
  color: #bfb6c4;
  font-size: 14px;
  font-weight: 500;
}

.account-subnav a:hover {
  color: #ffffff;
}

.main-nav-link {
  min-height: 42px;
  display: grid;
  grid-template-columns: 26px 1fr;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  padding: 0 14px;
  color: #f5f0f7;
  font-size: 17px;
  font-weight: 850;
  transition:
    background 160ms ease,
    transform 160ms ease,
    color 160ms ease;
}

.main-nav-link strong {
  color: inherit;
  font-weight: 850;
}

.main-nav-link:hover,
.main-nav-link.active {
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
  transform: translateX(2px);
}

.main-nav-link:hover .nav-svg,
.main-nav-link.active .nav-svg {
  color: #d96cff;
}

.side-card {
  display: grid;
  gap: 10px;
  margin-top: auto;
  border-radius: 22px;
  padding: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
    #121212;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.035),
    0 18px 45px rgba(0, 0, 0, 0.28);
}

.side-card p {
  margin: 0;
  color: #f3eef5;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 650;
}

.side-card p + a,
.side-card p + button {
  margin-bottom: 8px;
}

.side-card button,
.side-card a {
  min-height: 43px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 13px;
  padding: 0 16px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 850;
}

.side-card button {
  border: 1px solid rgba(94, 98, 242, 0.72);
  background: linear-gradient(135deg, #34348c, #282866);
}

.side-card a.support-link {
  border: 1px solid rgba(94, 98, 242, 0.72);
  background: linear-gradient(135deg, #34348c, #282866);
}

.side-card a {
  border: 1px solid rgba(215, 79, 218, 0.68);
  background: linear-gradient(135deg, #64266e, #4d1c54);
}

.mini-icon {
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.share-button {
  min-height: 46px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(215, 79, 218, 0.76);
  border-radius: 999px;
  background: linear-gradient(135deg, #4f1553, #3a103f);
  color: #ffffff;
  font-size: 15px;
  font-weight: 850;
}

.account-chip {
  min-height: 72px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  padding: 10px 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.014)),
    #121212;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 18px 45px rgba(0, 0, 0, 0.32);
}

.account-avatar {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background:
    radial-gradient(circle at 32% 20%, rgba(255, 255, 255, 0.2), transparent 28%),
    linear-gradient(135deg, #7c3fa0, #4a1e55);
  color: #ffffff;
  font-size: 18px;
  font-weight: 950;
}

.account-chip-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.account-chip b {
  overflow: hidden;
  color: #ffffff;
  font-size: 18px;
  line-height: 1;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-chip span,
.account-chip-copy span {
  overflow: hidden;
  color: #aaa1ae;
  font-size: 13px;
  line-height: 1;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-more {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 0;
  border-radius: 999px;
  background: transparent;
}

.account-more span {
  width: 4px;
  height: 4px;
  display: block;
  border-radius: 999px;
  background: #9e98a2;
}

/* =========================
   MAIN
========================= */

.workspace {
  min-width: 0;
  padding: 42px 48px 80px;
}

.social-picker {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 18px;
  padding: 24px 26px 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.024), rgba(255, 255, 255, 0.008)),
    #111111;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.012),
    0 20px 55px rgba(0, 0, 0, 0.22);
}

.picker-heading {
  margin-bottom: 22px;
}

h1 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: #ffffff;
  font-size: 25px;
  font-weight: 750;
  letter-spacing: -0.04em;
}

h1 span {
  color: #ffffff;
  font-size: 24px;
}

.picker-heading p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
}

/* THIS IS THE GUNS-STYLE ICON GRID */

.platform-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 22px;
}

.platform-button {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.08), transparent 52%),
    #141416;
  color: #ffffff;
  font-size: 27px;
  font-weight: 950;
  transition:
    transform 150ms ease,
    border-color 150ms ease,
    background 150ms ease;
}

.platform-button:hover {
  transform: translateY(-2px);
  border-color: rgba(217, 86, 212, 0.45);
  background:
    radial-gradient(circle at 50% 16%, rgba(217, 86, 212, 0.18), transparent 58%),
    #211322;
}

.custom-url-button {
  width: 360px;
  height: 58px;
  flex: 0 0 360px;
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 16px;
  padding: 0 18px 0 0;
  background:
    radial-gradient(circle at 10% 0%, rgba(217, 86, 212, 0.12), transparent 42%),
    #141416;
  color: #ffffff;
  text-align: left;
}

.custom-url-button:hover {
  border-color: rgba(217, 86, 212, 0.45);
  background: #211322;
}

.custom-url-button b {
  display: block;
  font-size: 16px;
  font-weight: 750;
}

.custom-url-button small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.custom-url-button span {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  font-size: 27px;
}

/* ICON COLOURS */

.platform-youtube { color: #ff1f1f; }
.platform-tiktok { color: #ffffff; }
.platform-discord { color: #5865f2; }
.platform-spotify { color: #1ed760; }
.platform-instagram { color: #e4408b; }
.platform-x { color: #292929; }
.platform-snapchat { color: #fffc00; }
.platform-telegram { color: #2aabee; }
.platform-soundcloud { color: #ff6a00; }
.platform-paypal { color: #0070ba; }
.platform-github { color: #ffffff; }
.platform-roblox { color: #bfc4cf; }
.platform-cashapp { color: #00d64f; }
.platform-venmo { color: #008cff; }
.platform-playstation { color: #0070cc; }
.platform-xbox { color: #107c10; }
.platform-apple { color: #ff4466; }
.platform-gitlab { color: #fc6d26; }
.platform-twitch { color: #9146ff; }
.platform-reddit { color: #ff4500; }
.platform-vk { color: #2787f5; }
.platform-website { color: #ff7a1a; }
.platform-bluesky { color: #1185fe; }
.platform-onlyfans { color: #00aff0; }
.platform-linkedin { color: #0a66c2; }
.platform-steam { color: #ffffff; }
.platform-kick { color: #53fc18; }
.platform-pinterest { color: #e60023; }
.platform-linktree { color: #ff1616; }
.platform-business { color: #4da3ff; }
.platform-coffee { color: #ffdf00; }
.platform-support { color: #ffffff; }
.platform-facebook { color: #1877f2; }
.platform-threads { color: #ffffff; }
.platform-patreon { color: #ff424d; }
.platform-signal { color: #506dff; }
.platform-bitcoin { color: #f7931a; }
.platform-ethereum { color: #777777; }
.platform-litecoin { color: #345d9d; }
.platform-solana { color: #9945ff; }
.platform-xrp { color: #4e72c9; }
.platform-monero { color: #ff6600; }
.platform-email { color: #ffffff; }

/* =========================
   ACTIVE LINKS
========================= */

.active-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 38px;
}

.link-item {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 16px;
  padding: 12px 14px 12px 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.024), rgba(255, 255, 255, 0.008)),
    #111111;
}

.drag-handle {
  color: #625a66;
  font-size: 20px;
  line-height: 1;
}

.link-main {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.link-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.link-topline h3 {
  overflow: hidden;
  margin: 0;
  color: #ffffff;
  font-size: 16px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.link-url {
  min-height: 42px;
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.045);
  background: rgba(0, 0, 0, 0.42);
}

.link-url span {
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 950;
}

.platform-icon-wrap,
.link-icon-badge {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: currentColor;
}

.platform-icon-img {
  width: 25px;
  height: 25px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 10px currentColor);
}

.platform-icon-svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 10px currentColor);
}

.link-modal .platform-icon-img {
  width: 22px;
  height: 22px;
}

.link-icon-badge .platform-icon-img {
  width: 18px;
  height: 18px;
}

.platform-icon-text {
  display: grid;
  place-items: center;
  color: currentColor;
  font-size: 11px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: 0;
}

.platform-icon-img + .platform-icon-text[hidden] {
  display: none !important;
}

.link-url input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #ffffff;
  outline: none;
  font-size: 13px;
  font-weight: 750;
}

.link-tools {
  display: flex;
  align-items: center;
  gap: 7px;
}

.link-tools button {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: #1b1b1b;
  color: #9f97a3;
  font-size: 13px;
  font-weight: 950;
}

.link-tools button:hover {
  background: #242424;
  color: #ffffff;
}

.link-tools .delete-link {
  color: #ff3038;
}

.link-item.is-hidden-link {
  opacity: 0.45;
}

.empty-state {
  grid-column: 1 / -1;
  border: 1px dashed rgba(255, 255, 255, 0.11);
  border-radius: 18px;
  padding: 34px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  text-align: center;
}

/* =========================
   MODAL
========================= */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(7px);
}

.modal-overlay[hidden] {
  display: none;
}

.link-modal {
  width: min(440px, 100%);
  display: grid;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 18px;
  background: #111111;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.55),
    inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.link-modal header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.link-modal header div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.link-modal header span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #191919;
  font-size: 24px;
}

.link-modal h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 850;
}

#closeModal {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #c8c2ca;
  font-size: 28px;
  line-height: 1;
}

.link-modal label {
  display: grid;
  gap: 8px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 850;
}

.link-modal input,
.link-modal select {
  width: 100%;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 0 14px;
  background: #080808;
  color: #ffffff;
  outline: none;
}

.link-modal input:focus,
.link-modal select:focus {
  border-color: rgba(217, 86, 212, 0.34);
}

#modalNote {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.55;
}

.link-modal footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-top: 4px;
}

.link-modal footer button {
  min-height: 44px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 750;
}

.modal-cancel {
  border: 1px solid rgba(255, 255, 255, 0.075);
  background: #1a1a1a;
}

.modal-save {
  border: 1px solid rgba(217, 86, 212, 0.65);
  background: linear-gradient(135deg, #64266e, #4d1c54);
}

/* =========================
   SCROLLBAR
========================= */

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #070707;
}

::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #272727;
}

::-webkit-scrollbar-thumb:hover {
  background: #3a3a3a;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1200px) {
  .active-links {
    grid-template-columns: repeat(2, minmax(260px, 1fr));
  }
}

@media (max-width: 900px) {
  .dashboard-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    width: 100%;
    min-width: 0;
    height: auto;
  }

  .workspace {
    padding: 24px 16px 50px;
  }

  .platform-grid {
    gap: 12px;
  }

  .platform-button {
    width: 54px;
    height: 54px;
    flex-basis: 54px;
  }

  .custom-url-button {
    width: 100%;
    flex: 1 0 100%;
  }

  .active-links {
    grid-template-columns: 1fr;
  }
}
.brand-logo {
  width: 38px !important;
  height: 38px !important;
  max-width: 38px !important;
  max-height: 38px !important;
  display: block;
  flex: 0 0 38px;
  border-radius: 10px;
  object-fit: contain;
  object-position: center;
  background: transparent;
  filter: drop-shadow(0 0 16px rgba(226, 85, 183, 0.35));
}

.brand img {
  width: 38px !important;
  height: 38px !important;
  max-width: 38px !important;
  max-height: 38px !important;
}
.live-save-status {
  display: inline-grid;
  place-items: center;
  min-height: 28px;
  margin-top: 12px;
  border: 1px solid rgba(64, 214, 111, 0.26);
  border-radius: 999px;
  padding: 0 11px;
  background: rgba(64, 214, 111, 0.1);
  color: #bdf7ce;
  font-size: 12px;
  font-weight: 850;
}
