:root {
  color-scheme: dark;
  --bg: #07070a;
  --sidebar: #09090c;
  --panel: #0e0e13;
  --panel-strong: #12121a;
  --line: rgba(255, 255, 255, 0.085);
  --line-strong: rgba(255, 255, 255, 0.15);
  --text: #f7f7fb;
  --muted: #92919f;
  --accent: #ff7c30;
  --accent-light: #ffaf81;
  --mint: #52e5d1;
  --danger: #ff5f71;
  --sidebar-width: 250px;
  --content-width: 1100px;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 64% -15%, rgba(255, 124, 48, 0.075), transparent 34rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  opacity: .16;
  background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px), linear-gradient(90deg,rgba(255,255,255,.018) 1px,transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, #000, transparent 88%);
}

button, input, textarea, select { color: inherit; font: inherit; }
button { border: 0; }
button, a, label { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
svg { display: block; width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
button:focus-visible, a:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: none; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  width: var(--sidebar-width);
  padding: 22px 16px 16px;
  border-right: 1px solid var(--line);
  background: rgba(8, 8, 11, .97);
  overflow-y: auto;
}

.sidebar-brand { display: flex; align-items: center; gap: 13px; min-height: 64px; padding: 0 8px; font-size: 1.22rem; font-weight: 780; letter-spacing: -.04em; }
.sidebar-brand img { width: 52px; height: 52px; object-fit: contain; filter: drop-shadow(0 0 14px rgba(255,124,48,.18)); }
.sidebar-nav { margin-top: 25px; }
.sidebar-nav p { margin: 19px 10px 6px; color: #646371; font-size: .72rem; font-weight: 650; letter-spacing: .045em; text-transform: uppercase; }
.nav-item {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 42px;
  gap: 11px;
  padding: 0 11px;
  border-radius: 11px;
  color: #8f8e9b;
  background: transparent;
  font-size: .875rem;
  text-align: left;
  cursor: pointer;
  transition: color .18s ease, background .18s ease, transform .18s ease;
}
.nav-item:hover { color: #d5d3dd; background: rgba(255,255,255,.035); transform: translateX(2px); }
.nav-item.is-active { color: #fff; background: rgba(255,255,255,.075); box-shadow: inset 0 0 0 1px rgba(255,255,255,.025); }
.nav-item.is-active svg { color: var(--accent-light); }
.nav-item span { flex: 1; }
.nav-item b { padding: 3px 6px; border-radius: 5px; color: var(--accent-light); background: rgba(255,124,48,.12); font-size: .6rem; letter-spacing: .04em; }
.nav-item small { color: #555461; font-size: .66rem; }
.sidebar-footer { display: grid; gap: 11px; margin-top: auto; }
.upgrade-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 43px;
  padding: 0 14px;
  border-radius: 11px;
  color: #0a0910;
  background: linear-gradient(110deg, #ff9b61, #75e5d8);
  box-shadow: 0 12px 30px rgba(243,107,28,.16);
  font-size: .82rem;
  font-weight: 750;
  cursor: pointer;
}
.bio-link { display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 9px; color: #8c8b98; font-size: .8rem; }
.bio-link:hover { color: #fff; }
.user-strip { display: grid; grid-template-columns: 34px 1fr 30px; align-items: center; gap: 9px; padding-top: 11px; border-top: 1px solid var(--line); }
.user-avatar { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; color: #fff; background: #000; font-size: .78rem; font-weight: 750; }
.user-strip > span:nth-child(2) { display: grid; }
.user-strip strong { font-size: .8rem; }
.user-strip small { color: #686775; font-size: .67rem; }
.user-strip button, .icon-button { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; color: #797885; background: transparent; cursor: pointer; }
.user-strip button:hover, .icon-button:hover { color: #fff; background: rgba(255,255,255,.055); }
.user-strip button svg { transform: rotate(180deg); }

.dashboard-main { min-height: 100vh; min-height: 100dvh; margin-left: var(--sidebar-width); padding: 34px clamp(26px, 5vw, 76px) 110px; }
.dashboard-view { display: none; width: min(100%, var(--content-width)); margin: 0 auto; animation: view-in .34s cubic-bezier(.2,.75,.2,1) both; }
.dashboard-view.is-active { display: block; }
@keyframes view-in { from { opacity: 0; } }
.dashboard-view.is-active > * { animation: surface-in .46s cubic-bezier(.2,.78,.2,1) both; }
.dashboard-view.is-active > *:nth-child(2) { animation-delay: 35ms; }
.dashboard-view.is-active > *:nth-child(3) { animation-delay: 70ms; }
.dashboard-view.is-active > *:nth-child(4) { animation-delay: 105ms; }
@keyframes surface-in { from { opacity: 0; filter: blur(3px); transform: translateY(12px) scale(.995); } to { opacity: 1; filter: none; transform: none; } }
.dashboard-view.is-active .connections-grid > *, .dashboard-view.is-active .appearance-stack > *, .dashboard-view.is-active .media-grid > * { animation: card-in .48s cubic-bezier(.2,.8,.2,1) both; }
.dashboard-view.is-active .connections-grid > *:nth-child(2), .dashboard-view.is-active .appearance-stack > *:nth-child(2), .dashboard-view.is-active .media-grid > *:nth-child(2) { animation-delay: 55ms; }
.dashboard-view.is-active .connections-grid > *:nth-child(3), .dashboard-view.is-active .appearance-stack > *:nth-child(3), .dashboard-view.is-active .media-grid > *:nth-child(3) { animation-delay: 90ms; }
.dashboard-view.is-active .connections-grid > *:nth-child(4), .dashboard-view.is-active .appearance-stack > *:nth-child(4), .dashboard-view.is-active .media-grid > *:nth-child(4) { animation-delay: 125ms; }
.dashboard-view.is-active .connections-grid > *:nth-child(n+5), .dashboard-view.is-active .appearance-stack > *:nth-child(n+5), .dashboard-view.is-active .media-grid > *:nth-child(n+5) { animation-delay: 155ms; }
@keyframes card-in { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }
.eyebrow { margin: 0 0 8px; color: var(--accent-light); font-size: .72rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.welcome-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; margin-bottom: 26px; }
.welcome-row h1, .view-heading h1 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.15rem); line-height: 1.16; letter-spacing: -.045em; }
.welcome-row h1 em { color: var(--accent-light); font-style: normal; }
.welcome-row p:last-child, .view-heading p { margin: 7px 0 0; color: var(--muted); font-size: .9rem; }
.copy-address { display: flex; align-items: center; gap: 9px; min-height: 40px; padding: 0 13px; border: 1px solid var(--line); border-radius: 10px; color: #9d9caa; background: rgba(255,255,255,.025); font-size: .76rem; cursor: pointer; }
.copy-address:hover { color: #fff; border-color: var(--line-strong); }
.copy-address b { font-weight: 600; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
.stat-card, .panel, .info-card { border: 1px solid var(--line); background: rgba(14,14,19,.86); box-shadow: 0 18px 50px rgba(0,0,0,.12); transition: border-color .3s ease,background .3s ease,box-shadow .3s ease,transform .3s cubic-bezier(.2,.78,.2,1); }
.panel:hover, .info-card:hover { border-color: rgba(255,175,129,.16); box-shadow: 0 22px 60px rgba(0,0,0,.19),inset 0 1px rgba(255,255,255,.018); }
.stat-card { display: grid; min-height: 148px; padding: 18px; border-radius: 15px; }
.stat-card > span, .soft-icon, .view-heading > span, .product-icon, .file-icon, .session-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: #aaa7ba; background: rgba(255,255,255,.045); }
.stat-card strong { align-self: end; margin-top: 20px; font-size: 1.35rem; letter-spacing: -.035em; }
.stat-card small { color: var(--muted); font-size: .78rem; }
.analytics-lock {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-height: 210px;
  margin-top: 18px;
  padding: 28px;
  border: 1px dashed rgba(255,124,48,.24);
  border-radius: 17px;
  color: var(--text);
  background: linear-gradient(140deg, rgba(255,124,48,.045), rgba(14,14,19,.72) 42%);
  cursor: pointer;
  overflow: hidden;
}
.analytics-lock::after { position: absolute; inset: auto 15% -130px; height: 150px; content: ""; background: rgba(255,124,48,.12); filter: blur(60px); }
.analytics-lock strong { margin-top: 17px; font-size: 1rem; }
.analytics-lock small { max-width: 520px; margin-top: 6px; color: var(--muted); font-size: .82rem; }
.inline-upgrade { display: inline-flex; align-items: center; gap: 7px; min-height: 37px; margin-top: 20px; padding: 0 13px; border-radius: 9px; color: #08080c; background: linear-gradient(110deg,#ff9b61,#75e5d8); font-size: .75rem; font-weight: 750; }
.overview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.info-card { display: flex; align-items: center; min-height: 98px; gap: 13px; padding: 18px; border-radius: 15px; }
.info-card > span { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; border-radius: 11px; color: var(--accent-light); background: rgba(255,124,48,.1); }
.info-card > div { display: grid; flex: 1; }
.info-card strong { font-size: .86rem; }
.info-card small { margin-top: 3px; color: var(--muted); font-size: .74rem; }
.discord-card > svg { color: #646371; }
.discord-card:hover { border-color: rgba(255,124,48,.24); background: rgba(255,124,48,.035); }

.view-heading { display: flex; align-items: center; gap: 14px; min-height: 96px; margin-bottom: 18px; padding: 19px 22px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(120deg,rgba(255,124,48,.045),rgba(14,14,19,.76) 48%); }
.view-heading > span { flex: 0 0 42px; width: 42px; height: 42px; color: var(--accent-light); background: rgba(255,124,48,.1); }
.view-heading h1 { font-size: 1.4rem; }
.view-heading p { font-size: .8rem; }
.view-heading--action > div { flex: 1; }
.primary-button, .secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 41px;
  padding: 0 15px;
  border-radius: 10px;
  font-size: .8rem;
  font-weight: 720;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.primary-button { color: #09090d; background: linear-gradient(110deg, #ff9b61, #6fe5d8); box-shadow: 0 10px 25px rgba(243,105,26,.14); }
.primary-button:hover, .secondary-button:hover { transform: translateY(-1px); }
.primary-button svg { width: 15px; height: 15px; }
.primary-button--wide, .secondary-button--wide { width: 100%; }
.secondary-button { border: 1px solid var(--line-strong); color: #e9e8ef; background: rgba(255,255,255,.045); }
.secondary-button:hover { background: rgba(255,255,255,.075); }
.text-action { padding: 5px 0; color: var(--accent-light); background: transparent; font-size: .78rem; cursor: pointer; }
.text-action:hover { color: #ffd3ba; }
.panel { border-radius: 16px; }
.panel-title { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 20px; }
.panel-title > svg { width: 18px; height: 18px; margin-top: 2px; color: var(--accent-light); }
.panel-title > div { flex: 1; }
.panel-title h2 { margin: 0; font-size: .92rem; letter-spacing: -.02em; }
.panel-title p { margin: 3px 0 0; color: var(--muted); font-size: .75rem; }
.panel-title > b, .integration-head > b { padding: 3px 7px; border-radius: 6px; color: var(--accent-light); background: rgba(255,124,48,.11); font-size: .62rem; }

.editor-grid, .connections-grid, .media-grid, .account-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 16px; }
.form-panel, .upload-panel, .appearance-stack > .panel, .integration-card, .coming-card, .account-grid > .panel, .checkout-panel, .payment-panel { padding: 21px; }
.form-panel { display: grid; gap: 17px; }
.form-panel .panel-title { margin-bottom: 0; }
label, .form-label { display: grid; gap: 7px; color: #ceccd6; font-size: .78rem; font-weight: 600; }
label > small { color: #6f6e7a; font-size: .69rem; font-weight: 450; }
input, textarea, select { width: 100%; border: 1px solid var(--line); border-radius: 9px; color: #f0eff5; background: rgba(255,255,255,.028); outline: none; transition: border-color .22s ease,background .22s ease,box-shadow .22s ease; }
input, select { min-height: 42px; padding: 0 12px; }
textarea { padding: 11px 12px; resize: vertical; }
input:hover, textarea:hover, select:hover { border-color: var(--line-strong); }
input:focus, textarea:focus, select:focus { border-color: var(--accent); background: rgba(255,124,48,.035); box-shadow: none; }
input:invalid:not(:placeholder-shown) { border-color: rgba(255,95,113,.65); box-shadow: 0 0 0 3px rgba(255,95,113,.07); }
input::placeholder, textarea::placeholder { color: #575662; }
.side-stack { display: grid; align-content: start; gap: 16px; }
.side-stack .panel { padding: 20px; }
.premium-panel { border-color: rgba(255,124,48,.16); background: linear-gradient(125deg,rgba(255,124,48,.045),rgba(14,14,19,.84) 50%); }
.locked-field { display: flex; align-items: center; gap: 15px; min-height: 74px; margin-top: 1px; padding: 13px; border: 1px solid rgba(255,124,48,.15); border-radius: 11px; background: rgba(255,124,48,.03); }
.locked-field > div { display: grid; flex: 1; }
.locked-field strong { font-size: .77rem; }
.locked-field small { color: var(--muted); font-size: .68rem; }
.locked-field button { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 10px; border-radius: 8px; color: #0a090e; background: var(--accent-light); font-size: .68rem; font-weight: 750; cursor: pointer; }
.locked-field button svg { width: 13px; }
.premium-feature-editor { display: none; }
.is-premium-user .premium-feature-lock { display: none; }
.is-premium-user .premium-feature-editor { display: grid; }
.timezone-field { display: grid; grid-template-columns: 1fr auto; gap: 14px; padding: 16px; overflow: hidden; }
.timezone-heading { display: flex !important; grid-template-columns: none; align-items: center; gap: 11px; }
.timezone-heading > span:last-child { display: grid; }
.timezone-symbol { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid rgba(255,124,48,.2); border-radius: 10px; color: var(--accent-light); background: linear-gradient(145deg,rgba(255,124,48,.15),rgba(82,229,209,.05)); box-shadow: inset 0 1px rgba(255,255,255,.05); }
.timezone-symbol svg { width: 17px; height: 17px; }
.timezone-editor { grid-column: 1 / -1; grid-template-columns: minmax(0,1fr) minmax(210px,.9fr); align-items: stretch; width: 100%; gap: 10px; padding-top: 13px; border-top: 1px solid var(--line); }
.timezone-editor label { margin: 0; }
.timezone-toggle { display: flex; align-items: center; min-height: 58px; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.018); cursor: pointer; transition: border-color .25s ease,background .25s ease,box-shadow .25s ease; }
.timezone-toggle > span { display: grid; flex: 1; }
.timezone-toggle strong { font-size: .75rem; }
.timezone-toggle small { color: var(--muted); font-size: .65rem; }
.timezone-toggle input { position: absolute; opacity: 0; }
.timezone-toggle i { position: relative; flex: 0 0 38px; width: 38px; height: 21px; border: 1px solid rgba(255,255,255,.08); border-radius: 999px; background: #25242e; box-shadow: inset 0 2px 5px rgba(0,0,0,.26); transition: .35s cubic-bezier(.2,.85,.25,1); }
.timezone-toggle i::after { position: absolute; top: 3px; left: 3px; width: 13px; height: 13px; border-radius: 50%; content: ""; background: #8d8b99; box-shadow: 0 2px 5px rgba(0,0,0,.32); transition: .35s cubic-bezier(.2,.9,.25,1.25); }
.timezone-toggle input:checked + i { border-color: rgba(255,124,48,.5); background: linear-gradient(110deg,#f2630f,#ff7c30 52%,#65d9d0); box-shadow: 0 0 18px rgba(255,124,48,.22),inset 0 1px rgba(255,255,255,.16); }
.timezone-toggle input:checked + i::after { background: #fff; box-shadow: 0 0 10px rgba(255,255,255,.55); transform: translateX(17px); }
.timezone-toggle:has(input:checked) { border-color: rgba(255,124,48,.25); background: rgba(255,124,48,.045); }
.timezone-select { position: relative; align-content: center; min-height: 58px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.018); transition: border-color .25s ease,background .25s ease; }
.timezone-select > span { color: var(--muted); font-size: .62rem; font-weight: 650; }
.timezone-select select { min-width: 0; min-height: 30px; padding: 0 28px 0 0; border: 0; background: transparent; font-size: .75rem; appearance: none; cursor: pointer; }
.timezone-select::after { position: absolute; right: 13px; bottom: 17px; width: 7px; height: 7px; border-right: 1.5px solid #aaa7b6; border-bottom: 1.5px solid #aaa7b6; content: ""; pointer-events: none; transform: rotate(45deg); }
.timezone-select:focus-within { border-color: var(--accent); background: rgba(255,124,48,.04); box-shadow: none; }
.typewriter-editor textarea { min-height: 120px; }

.empty-state { display: grid; place-items: center; min-height: 390px; padding: 40px; text-align: center; border-style: dashed; }
.empty-state h2 { margin: 17px 0 4px; font-size: 1rem; }
.empty-state p { margin: 0 0 20px; color: var(--muted); font-size: .8rem; }
.links-list { display: grid; gap: 11px; }
.link-row { display: grid; grid-template-columns: 40px 1fr auto auto; align-items: center; gap: 12px; min-height: 76px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 13px; background: var(--panel); }
.link-row > span:first-child { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; color: var(--accent-light); background: rgba(255,124,48,.09); }
.link-row > span:nth-child(2) { display: grid; min-width: 0; }
.link-row strong { font-size: .83rem; }
.link-row small { overflow: hidden; color: var(--muted); font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.link-row > b { padding: 4px 7px; border-radius: 6px; color: var(--mint); background: rgba(82,229,209,.08); font-size: .62rem; text-transform: uppercase; }
.link-row button { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; color: var(--danger); background: transparent; cursor: pointer; }
.link-row button:hover { background: rgba(255,95,113,.08); }

.social-mark { display: grid; place-items: center; flex: 0 0 auto; width: 42px; height: 42px; border: 1px solid color-mix(in srgb,var(--social-color) 24%,var(--line)); border-radius: 11px; color: var(--social-color); background: color-mix(in srgb,var(--social-color) 8%,transparent); }
.social-mark svg { width: 21px; height: 21px; }
.social-mark .social-fill { fill: currentColor; stroke: none; }
.link-row > .social-mark { width: 42px; height: 42px; border-radius: 11px; color: var(--social-color); background: color-mix(in srgb,var(--social-color) 8%,transparent); }
.platform-picker { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; margin-bottom: 2px; }
.platform-picker label { cursor: pointer; }
.platform-picker input { position: absolute; opacity: 0; pointer-events: none; }
.platform-choice { --platform-color:#f4f4f6; display: flex; align-items: center; min-height: 54px; gap: 9px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 11px; color: #9896a2; background: rgba(255,255,255,.018); transition: border-color .18s ease,background .18s ease,color .18s ease,transform .18s ease; }
.platform-choice i { display: grid; place-items: center; width: 27px; height: 27px; color: var(--platform-color); }
.platform-choice i svg { width: 20px; height: 20px; }
.platform-choice i .social-fill { fill: currentColor; stroke: none; }
.platform-choice b { font-size: .72rem; }
.platform-picker label:hover .platform-choice { color: #fff; border-color: color-mix(in srgb,var(--platform-color) 32%,var(--line)); transform: translateY(-1px); }
.platform-picker input:checked + .platform-choice { color: #fff; border-color: color-mix(in srgb,var(--platform-color) 60%,var(--line)); background: color-mix(in srgb,var(--platform-color) 9%,transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb,var(--platform-color) 12%,transparent); }
.platform-picker input:focus-visible + .platform-choice { border-color: var(--accent); outline: none; }
.platform-picker label.is-used { cursor: not-allowed; }
.platform-picker label.is-used .platform-choice { opacity: .28; filter: grayscale(.6); transform: none; }
.platform-picker label.is-used .platform-choice::after { margin-left: auto; color: #777582; content: "Used"; font-size: .58rem; }
.platform-discord{--platform-color:#7289ff}.platform-twitch{--platform-color:#a970ff}.platform-spotify{--platform-color:#1ed760}.platform-soundcloud{--platform-color:#ff5500}.platform-github{--platform-color:#f4f4f6}
[data-link-help] { display: block; margin-top: 5px; color: #6e6c79; font-size: .66rem; font-weight: 500; }

.analytics-heading { align-items: center; }
.analytics-heading > div:nth-child(2) { flex: 1; }
.analytics-range { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.025); }
.analytics-range button { min-height: 32px; padding: 0 12px; border-radius: 999px; color: #777582; background: transparent; font-size: .72rem; font-weight: 700; cursor: pointer; }
.analytics-range button.is-active { color: #09090d; background: #f5f4f8; }
.analytics-summary { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-bottom: 16px; }
.analytics-metric { display: flex; align-items: center; min-height: 132px; gap: 14px; padding: 20px; }
.analytics-metric > span { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(255,124,48,.2); border-radius: 12px; color: var(--accent-light); background: rgba(255,124,48,.08); }
.analytics-metric > div { display: grid; }
.analytics-metric small,.analytics-metric em { color: var(--muted); font-size: .7rem; font-style: normal; }
.analytics-metric strong { margin: 2px 0; font-size: 1.55rem; letter-spacing: -.04em; }
.analytics-chart-panel { padding: 22px; }
.analytics-chart-panel .panel-title > b { margin-left: auto; padding: 5px 8px; border-radius: 7px; color: var(--mint); background: rgba(82,229,209,.07); font-size: .65rem; }
.dashboard-chart { display: grid; grid-template-columns: repeat(7,1fr); align-items: end; min-height: 310px; gap: 9px; margin-top: 28px; padding: 25px 8px 0; border-bottom: 1px solid var(--line); background: repeating-linear-gradient(to bottom,transparent 0,transparent 61px,rgba(255,255,255,.045) 62px); }
.dashboard-chart button { position: relative; display: grid; grid-template-rows: 250px 28px; align-items: end; padding: 0; color: #5f5d69; background: transparent; cursor: pointer; }
.dashboard-chart button i { display: block; width: min(100%,54px); height: var(--bar-height); min-height: 5px; margin-inline: auto; border-radius: 8px 8px 2px 2px; background: linear-gradient(to top,rgba(255,124,48,.42),#ff7c30 72%,#ffaa79); box-shadow: 0 0 24px rgba(255,124,48,.08); transition: filter .2s ease,transform .2s ease,opacity .2s ease; }
.dashboard-chart button span { align-self: center; font-size: .62rem; }
.dashboard-chart button::after { position: absolute; bottom: calc(var(--bar-height) + 43px); left: 50%; z-index: 4; width: max-content; padding: 6px 8px; border: 1px solid var(--line-strong); border-radius: 8px; color: #f4f3f7; background: #17171e; box-shadow: 0 10px 24px rgba(0,0,0,.4); content: attr(data-tooltip); font-size: .66rem; opacity: 0; pointer-events: none; transform: translate(-50%,5px); transition: .18s ease; }
.dashboard-chart:has(button:hover) button:not(:hover),.dashboard-chart:has(button:focus-visible) button:not(:focus-visible) { opacity: .3; }
.dashboard-chart button:hover i,.dashboard-chart button:focus-visible i { filter: brightness(1.18); transform: scaleX(1.07); }
.dashboard-chart button:hover::after,.dashboard-chart button:focus-visible::after { opacity: 1; transform: translate(-50%,0); }
.link-performance-panel { margin-top: 16px; padding: 22px; }
.performance-row { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 12px; min-height: 66px; padding: 10px 0; border-top: 1px solid var(--line); }
.performance-row > span:nth-child(2) { display: grid; }
.performance-row strong { font-size: .8rem; }.performance-row small { color: var(--muted); font-size: .68rem; }.performance-row > b { color: #d6d3df; font-size: .72rem; }
.analytics-empty { margin: 0; padding: 22px 0 4px; border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; }

.media-grid { grid-template-columns: 1fr 1fr; }
.upload-panel { min-height: 310px; }
.upload-panel--wide { grid-column: 1 / -1; min-height: auto; }
.file-summary { display: flex; align-items: center; gap: 11px; min-height: 58px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.02); }
.preview-avatar { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; color: #fff; background: #000; background-size: cover; background-position: center; font-size: .75rem; }
.file-icon { flex: 0 0 40px; width: 40px; height: 40px; }
.file-summary > div { display: grid; min-width: 0; flex: 1; }
.file-summary strong { overflow: hidden; font-size: .75rem; text-overflow: ellipsis; white-space: nowrap; }
.file-summary small { color: var(--muted); font-size: .66rem; }
.media-delete { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.08); border-radius: 8px; color: #8e8b98; background: rgba(255,255,255,.025); cursor: pointer; transition: color .2s ease,border-color .2s ease,background .2s ease,transform .2s ease; }
.media-delete:hover { color: #fff; border-color: rgba(255,105,125,.35); background: rgba(255,105,125,.08); transform: translateY(-1px); }
.media-delete svg { width: 16px; height: 16px; }
.drop-zone { place-items: center; min-height: 142px; margin-top: 12px; padding: 22px; border: 1px dashed rgba(255,255,255,.13); border-radius: 11px; color: var(--muted); text-align: center; cursor: pointer; transition: border-color .18s ease, background .18s ease; }
.drop-zone:hover { border-color: rgba(255,124,48,.45); background: rgba(255,124,48,.035); }
.drop-zone svg { width: 25px; height: 25px; margin-bottom: 8px; }
.drop-zone strong { color: #c3c1cc; font-size: .74rem; }
.drop-zone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop-zone--short { min-height: 105px; }
.locked-drop { display: flex; flex-direction: column; align-items: center; width: 100%; min-height: 110px; padding: 20px; border: 1px dashed rgba(255,124,48,.2); border-radius: 11px; color: var(--text); background: rgba(255,124,48,.025); cursor: pointer; }
.locked-drop svg { color: var(--accent-light); }
.locked-drop span { margin-top: 8px; font-size: .78rem; font-weight: 700; }
.locked-drop small { margin-top: 2px; color: var(--muted); font-size: .68rem; }

.appearance-stack { display: grid; gap: 16px; }
.layout-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.layout-options label { cursor: pointer; }
.layout-options input { position: absolute; opacity: 0; }
.layout-preview { position: relative; display: grid; align-content: center; min-height: 145px; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: #111116; }
.layout-preview i { display: block; width: 34px; height: 34px; margin-bottom: 8px; border-radius: 50%; background: rgba(255,124,48,.34); }
.layout-preview b { display: block; width: 80px; height: 7px; margin: 3px 0; border-radius: 4px; background: rgba(255,255,255,.09); }
.layout-preview b:nth-of-type(2) { width: 58px; }
.layout-preview em { position: absolute; right: 10px; bottom: 10px; left: 10px; min-height: 30px; padding: 6px; border-radius: 7px; color: #d8d6df; background: rgba(255,255,255,.045); font-size: .7rem; font-style: normal; text-align: center; }
.layout-preview--center { justify-items: center; }
.layout-options input:checked + .layout-preview { border-color: var(--accent); box-shadow: inset 0 0 35px rgba(255,124,48,.05); }
.choice-row { display: flex; align-items: center; gap: 9px; margin-top: 14px; }
.avatar-shape-options { display: flex; align-items: center; gap: 9px; transition: opacity .22s ease,filter .22s ease; }
.avatar-shape-options.is-disabled { opacity: .32; filter: grayscale(1); pointer-events: none; }
.switch-control { display: inline-flex; grid-template-columns: none; align-items: center; gap: 8px; cursor: pointer; }
.switch-control input { position: absolute; opacity: 0; }
.switch-control > span { position: relative; flex: 0 0 38px; width: 38px; height: 21px; border: 1px solid rgba(255,255,255,.08); border-radius: 999px; background: #25242e; box-shadow: inset 0 2px 5px rgba(0,0,0,.26); transition: .35s cubic-bezier(.2,.85,.25,1); }
.switch-control > span::after { position: absolute; top: 3px; left: 3px; width: 13px; height: 13px; border-radius: 50%; content: ""; background: #8d8b99; box-shadow: 0 2px 5px rgba(0,0,0,.32); transition: .35s cubic-bezier(.2,.9,.25,1.25); }
.switch-control:hover > span { border-color: rgba(255,124,48,.3); }
.switch-control input:checked + span { border-color: rgba(255,124,48,.5); background: linear-gradient(110deg,#f2630f,#ff7c30 52%,#65d9d0); box-shadow: 0 0 18px rgba(255,124,48,.22),inset 0 1px rgba(255,255,255,.16); }
.switch-control input:checked + span::after { background: #fff; box-shadow: 0 0 10px rgba(255,255,255,.55); transform: translateX(17px); }
.radio-pill input { position: absolute; opacity: 0; }
.radio-pill span { display: inline-flex; min-height: 30px; align-items: center; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font-size: .7rem; cursor: pointer; }
.radio-pill input:checked + span { color: #fff; border-color: rgba(255,124,48,.5); background: rgba(255,124,48,.09); }
.form-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.color-field { display: grid; grid-template-columns: 44px 1fr; gap: 8px; }
.color-field input[type="color"] { padding: 4px; }
.toggle-list { display: grid; gap: 8px; margin-top: 16px; }
.toggle-list > label, .toggle-list > button { display: flex; align-items: center; min-height: 62px; gap: 15px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; color: inherit; background: rgba(255,255,255,.018); text-align: left; }
.toggle-list > label > span, .toggle-list > button > span { display: grid; flex: 1; }
.toggle-list strong { font-size: .76rem; }
.toggle-list small { color: var(--muted); font-size: .67rem; }
.toggle-list > label input { position: absolute; opacity: 0; }
.toggle-list > label { cursor: pointer; transition: border-color .25s ease,background .25s ease,transform .25s ease; }
.toggle-list > label:hover { border-color: rgba(255,124,48,.22); background: rgba(255,124,48,.025); transform: translateY(-1px); }
.toggle-list > label i { position: relative; flex: 0 0 38px; width: 38px; height: 21px; border: 1px solid rgba(255,255,255,.08); border-radius: 999px; background: #25242e; box-shadow: inset 0 2px 5px rgba(0,0,0,.26); transition: .35s cubic-bezier(.2,.85,.25,1); }
.toggle-list > label i::after { position: absolute; top: 3px; left: 3px; width: 13px; height: 13px; content: ""; border-radius: 50%; background: #8d8b99; box-shadow: 0 2px 5px rgba(0,0,0,.32); transition: .35s cubic-bezier(.2,.9,.25,1.25); }
.toggle-list > label input:checked + i { border-color: rgba(255,124,48,.5); background: linear-gradient(110deg,#f2630f,#ff7c30 52%,#65d9d0); box-shadow: 0 0 18px rgba(255,124,48,.22),inset 0 1px rgba(255,255,255,.16); }
.toggle-list > label input:checked + i::after { background: #fff; box-shadow: 0 0 10px rgba(255,255,255,.55); transform: translateX(17px); }
.toggle-list > button { border-color: rgba(255,124,48,.16); cursor: pointer; }
.toggle-list > button b { display: inline-flex; align-items: center; gap: 5px; color: var(--accent-light); font-size: .68rem; }
.toggle-list > button b svg { width: 13px; }
.color-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.color-grid label { grid-template-columns: 1fr 42px; align-items: center; min-height: 56px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.018); }
.color-grid input { min-height: 36px; padding: 3px; }
.range-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; margin-bottom: 18px; }
.typography-toggles { margin-top: 18px; }
.range-grid label { grid-template-columns: 1fr auto; }
.range-grid output { color: var(--muted); font-size: .7rem; }
input[type="range"] {
  --range-progress: 0%;
  grid-column: 1 / -1;
  width: 100%;
  min-height: 20px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  appearance: none;
  cursor: grab;
  touch-action: none;
}
input[type="range"]:active { cursor: grabbing; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: linear-gradient(90deg,#f3691a 0,#5ee4d7 var(--range-progress),rgba(255,255,255,.14) var(--range-progress) 100%); box-shadow: 0 0 13px rgba(255,124,48,.16); transition: box-shadow .2s ease,filter .2s ease; }
input[type="range"]::-webkit-slider-thumb { width: 17px; height: 17px; margin-top: -5.5px; border: 3px solid #f4f1ff; border-radius: 50%; background: linear-gradient(145deg,#ff8f4e,#f2620e); box-shadow: 0 0 0 4px rgba(255,124,48,.13),0 0 18px rgba(255,124,48,.38),0 5px 14px rgba(0,0,0,.35); appearance: none; transition: box-shadow .2s ease,transform .2s cubic-bezier(.2,.9,.25,1.4); }
input[type="range"]:hover::-webkit-slider-thumb, input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 7px rgba(255,124,48,.14),0 0 26px rgba(255,124,48,.55),0 6px 18px rgba(0,0,0,.4); transform: scale(1.1); }
input[type="range"]:active::-webkit-slider-runnable-track { box-shadow: 0 0 20px rgba(255,124,48,.32),0 0 10px rgba(82,229,209,.18); filter: saturate(1.3) brightness(1.08); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.17); }
input[type="range"]::-moz-range-track { height: 5px; border-radius: 999px; background: rgba(255,255,255,.16); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 999px; background: linear-gradient(90deg,#f3691a,#ff823a,#5ee4d7); box-shadow: 0 0 13px rgba(255,124,48,.2); }
input[type="range"]::-moz-range-thumb { width: 12px; height: 12px; border: 3px solid #ffd2b8; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(255,124,48,.12), 0 5px 14px rgba(0,0,0,.35); transition: box-shadow .15s ease, transform .15s ease; }
.range-grid label:has(input[type="range"]:active) output { color: #ffd9c3; text-shadow: 0 0 12px rgba(255,124,48,.55); }
.primary-button:active, .secondary-button:active, .upgrade-button:active, .nav-item:active { transform: scale(.98); }

.badge-manager { min-height: 248px; }
.badge-manager .panel-title { align-items: flex-start; }
.badge-all-button { margin-left: auto; padding: 7px 10px; border: 1px solid rgba(255,124,48,.3); border-radius: 8px; color: var(--accent-light); background: rgba(255,124,48,.07); font-size: .66rem; font-weight: 750; cursor: pointer; }
.badge-master { display: flex; grid-template-columns: none; align-items: center; min-height: 58px; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.018); cursor: pointer; }
.badge-master > span { display: grid; flex: 1; }
.badge-master strong { font-size: .76rem; }
.badge-master small { color: var(--muted); font-size: .65rem; }
.badge-master input { position: absolute; opacity: 0; }
.badge-master i { position: relative; flex: 0 0 38px; width: 38px; height: 21px; border: 1px solid rgba(255,255,255,.08); border-radius: 999px; background: #25242e; box-shadow: inset 0 2px 5px rgba(0,0,0,.26); transition: .35s cubic-bezier(.2,.85,.25,1); }
.badge-master i::after { position: absolute; top: 3px; left: 3px; width: 13px; height: 13px; content: ""; border-radius: 50%; background: #8d8b99; box-shadow: 0 2px 5px rgba(0,0,0,.32); transition: .35s cubic-bezier(.2,.9,.25,1.25); }
.badge-master input:checked + i { border-color: rgba(255,124,48,.5); background: linear-gradient(110deg,#f2630f,#ff7c30 52%,#65d9d0); box-shadow: 0 0 18px rgba(255,124,48,.22),inset 0 1px rgba(255,255,255,.16); }
.badge-master input:checked + i::after { background: #fff; box-shadow: 0 0 10px rgba(255,255,255,.55); transform: translateX(17px); }
.owned-badges { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-top: 10px; }
.owned-badge { position: relative; display: flex; align-items: center; min-height: 48px; gap: 10px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; color: #8b8997; background: rgba(255,255,255,.012); cursor: pointer; transition: .18s ease; }
.owned-badge input { position: absolute; opacity: 0; }
.owned-badge svg { width: 17px; height: 17px; }
.owned-badge span { display: grid; }
.owned-badge strong { color: #c7c5cf; font-size: .7rem; }
.owned-badge small { color: #666471; font-size: .58rem; }
.owned-badge:has(input:checked) { border-color: rgba(255,124,48,.42); color: var(--accent-light); background: rgba(255,124,48,.075); }
.owned-badges.is-disabled { opacity: .38; pointer-events: none; }

.connections-grid { grid-template-columns: 1fr 1fr; }
.integration-card { position: relative; min-height: 210px; overflow: hidden; transition: border-color .3s ease,background .3s ease,box-shadow .3s ease,transform .3s cubic-bezier(.2,.75,.2,1); }
.integration-card::after { position: absolute; inset: auto 14% -55px; height: 70px; border-radius: 50%; content: ""; background: var(--service-color,var(--accent)); filter: blur(42px); opacity: 0; pointer-events: none; transition: opacity .35s ease; }
.integration-card:hover { border-color: color-mix(in srgb,var(--service-color,var(--accent)) 25%,var(--line)); background: linear-gradient(145deg,color-mix(in srgb,var(--service-color,var(--accent)) 3%,transparent),rgba(14,14,19,.88)); transform: translateY(-2px); }
.integration-card:has(input[type="checkbox"]:checked) { border-color: color-mix(in srgb,var(--service-color,var(--accent)) 38%,var(--line)); box-shadow: 0 15px 38px rgba(0,0,0,.2),inset 0 1px rgba(255,255,255,.025); }
.integration-card:has(input[type="checkbox"]:checked)::after { opacity: .08; }
.connection-discord { --service-color:#5865f2; }
.connection-lastfm { --service-color:#d51007; }
.connection-roblox { --service-color:#f2f2f2; }
.connection-github { --service-color:#f2f2f2; }
.integration-head { display: flex; align-items: center; gap: 11px; margin-bottom: 18px; }
.integration-head > div { display: grid; flex: 1; }
.integration-head h2 { margin: 0; font-size: .86rem; }
.integration-head p { margin: 2px 0 0; color: var(--muted); font-size: .7rem; }
.service-icon { display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; border: 1px solid color-mix(in srgb,var(--service-color,#fff) 18%,transparent); border-radius: 12px; color: #c4c1d0; background: color-mix(in srgb,var(--service-color,#fff) 10%,rgba(255,255,255,.03)); box-shadow: inset 0 1px rgba(255,255,255,.05); transition: transform .3s cubic-bezier(.2,.9,.25,1.25),filter .3s ease; }
.service-icon svg { width: 21px; height: 21px; fill: currentColor; stroke: none; }
.integration-card:hover .service-icon { filter: drop-shadow(0 0 8px color-mix(in srgb,var(--service-color,#fff) 48%,transparent)); transform: scale(1.06) rotate(-2deg); }
.service-icon--discord { color: #aeb5ff; background: rgba(88,101,242,.16); }
.integration-card > label { margin-top: 13px; }
.connection-editor { gap: 13px; margin-top: 14px; }
.connection-editor > label { margin: 0; }
.service-icon--lastfm { color: #ff5b5b; }
.service-icon--roblox { color: #f0f0f2; }
.service-icon--github { color: #f2f2f4; }
.locked-integration { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 75px; gap: 7px; border: 1px dashed rgba(255,124,48,.19); border-radius: 10px; color: var(--accent-light); background: rgba(255,124,48,.025); font-size: .74rem; font-weight: 650; cursor: pointer; }
.coming-card { display: grid; place-items: center; min-height: 200px; text-align: center; }
.coming-card h2 { margin: 14px 0 2px; font-size: .87rem; }
.coming-card p { margin: 0; color: var(--muted); font-size: .72rem; }

.store-gate { display: grid; place-items: center; min-height: calc(100vh - 80px); text-align: center; }
.store-gate h1 { margin: 20px 0 4px; font-size: 1.35rem; letter-spacing: -.035em; }
.store-gate p { margin: 0 0 18px; color: var(--muted); font-size: .82rem; }
.security-orbit { position: relative; display: grid; place-items: center; width: 64px; height: 64px; border: 1px solid rgba(255,124,48,.28); border-radius: 50%; color: var(--accent-light); background: rgba(255,124,48,.08); box-shadow: 0 0 50px rgba(255,124,48,.14); }
.security-orbit::after { position: absolute; inset: -8px; content: ""; border: 1px dashed rgba(82,229,209,.26); border-radius: 50%; animation: spin 6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.security-progress { width: min(280px, 80vw); height: 3px; margin-top: 14px; overflow: hidden; border-radius: 3px; background: rgba(255,255,255,.06); }
.security-progress i { display: block; width: 38%; height: 100%; background: linear-gradient(90deg,var(--accent),var(--mint)); animation: scan 1.25s ease-in-out infinite; }
@keyframes scan { 50% { transform: translateX(165%); } }
.store-gate > small { margin-top: 8px; color: #747380; font-size: .7rem; }
.turnstile-target { width: 100%; min-width: 0; min-height: 65px; overflow: hidden; }
.secure-label { display: inline-flex !important; align-items: center; width: auto !important; height: 30px !important; margin-left: auto; gap: 6px; padding: 0 9px; color: var(--mint) !important; background: rgba(82,229,209,.06) !important; font-size: .68rem; }
.checkout-steps { display: flex; align-items: center; gap: 10px; margin: 8px 5px 20px; color: #646270; font-size: .72rem; }
.checkout-steps span { display: flex; align-items: center; gap: 6px; }
.checkout-steps b { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; background: #15151b; font-size: .65rem; }
.checkout-steps span.is-active { color: #dddbe5; }
.checkout-steps span.is-active b { color: #0a090e; background: var(--accent-light); }
.checkout-steps > i { width: 28px; height: 1px; background: var(--line); }
.pro-product { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 18px; padding: 20px; }
.pro-product > div { display: flex; align-items: center; gap: 12px; }
.pro-product > div > span:last-child, .pro-product > span { display: grid; }
.pro-product strong { font-size: .86rem; }
.pro-product small { color: var(--muted); font-size: .7rem; }
.pro-product > span { text-align: right; }
.pro-product > span strong { font-size: 1.3rem; }
.redeem-row { display: grid; grid-template-columns: 1fr minmax(280px, 48%); align-items: center; gap: 20px; margin-top: 13px; padding: 18px 20px; }
.redeem-row > div { display: grid; }
.redeem-row strong { font-size: .82rem; }
.redeem-row small { color: var(--muted); font-size: .69rem; }
.redeem-row > div:last-child { grid-template-columns: 1fr auto; }
.redeem-row input { border-radius: 9px 0 0 9px; }
.redeem-row button { border-radius: 0 9px 9px 0; }
.store-section-title { margin: 23px 4px 10px; }
.store-section-title h2 { margin: 0; font-size: .94rem; }
.store-section-title p { margin: 3px 0 0; color: var(--muted); font-size: .72rem; }
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.product-card { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; min-height: 82px; gap: 11px; padding: 14px; border: 1px solid var(--line); border-radius: 13px; color: inherit; background: var(--panel); text-align: left; cursor: pointer; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.product-card:hover { transform: translateY(-1px); border-color: rgba(255,124,48,.3); background: rgba(255,124,48,.035); }
.product-card.is-selected { border-color: var(--accent); background: rgba(255,124,48,.07); box-shadow: inset 0 0 0 1px rgba(255,124,48,.2); }
.product-card > span:nth-child(2) { display: grid; }
.product-card strong { font-size: .8rem; }
.product-card small { color: var(--muted); font-size: .68rem; }
.product-card > b { font-size: .8rem; }
.cart-bar { position: sticky; bottom: 18px; z-index: 4; display: flex; align-items: center; justify-content: space-between; min-height: 66px; margin-top: 16px; padding: 11px 12px 11px 17px; border: 1px solid rgba(255,124,48,.22); border-radius: 14px; background: rgba(12,12,17,.92); box-shadow: 0 18px 50px rgba(0,0,0,.4); backdrop-filter: blur(18px); }
.cart-bar > span { display: flex; align-items: center; gap: 12px; font-size: .78rem; }
.cart-bar strong { color: var(--accent-light); }
.checkout-panel, .payment-panel { max-width: 760px; margin: 0 auto; }
.cart-items { display: grid; gap: 8px; }
.cart-item { display: grid; grid-template-columns: 1fr auto 30px; align-items: center; min-height: 58px; gap: 12px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; }
.cart-item > span { display: grid; }
.cart-item strong { font-size: .77rem; }
.cart-item small { color: var(--muted); font-size: .66rem; }
.cart-item > button { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; color: var(--danger); background: transparent; cursor: pointer; }
.order-total { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .84rem; }
.order-total strong { font-size: 1.25rem; }
.stage-actions { display: flex; justify-content: space-between; max-width: 760px; margin: 15px auto 0; }
.mollie-note { width: auto !important; height: auto !important; color: #767481 !important; background: none !important; font-size: .66rem; }
.payment-methods { display: grid; gap: 8px; }
.payment-methods label { display: grid; grid-template-columns: 45px 1fr auto; align-items: center; min-height: 68px; gap: 11px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.018); cursor: pointer; }
.payment-methods label:has(input:checked) { border-color: var(--accent); background: rgba(255,124,48,.06); box-shadow: inset 0 0 0 1px rgba(255,124,48,.2); }
.payment-methods input { position: absolute; opacity: 0; }
.payment-methods label > span:nth-of-type(2) { display: grid; }
.payment-methods strong { font-size: .78rem; }
.payment-methods small { color: var(--muted); font-size: .67rem; }
.payment-methods i { padding: 3px 7px; border-radius: 6px; color: var(--mint); background: rgba(82,229,209,.07); font-size: .6rem; font-style: normal; }
.method-logo { display: grid; place-items: center; width: 45px; height: 32px; border: 1px solid var(--line); border-radius: 7px; color: #f5f4f8; background: #18181f; font-size: .62rem; font-weight: 850; }
.method-logo--bancontact { color: #13222a; background: linear-gradient(135deg,#fff243 50%,#58c2e8 50%); }
.method-logo--paypal { color: #4b8fec; background: #fff; font-size: 1rem; }

.account-grid { grid-template-columns: 1fr 1fr; }
.account-grid > .sessions-panel { grid-column: 1 / -1; }
.private-value { position: relative; display: grid; min-height: 42px; align-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.025); cursor: default; }
.private-value > span, .private-value > b { grid-area: 1 / 1; padding: 0 12px; font-weight: 500; transition: opacity .18s ease, filter .18s ease; }
.private-value > span { filter: blur(5px); opacity: .78; user-select: none; }
.private-value > b { opacity: 0; }
.private-value:hover > span, .private-value:focus > span { opacity: 0; }
.private-value:hover > b, .private-value:focus > b { opacity: 1; }
.connected-row { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 10px; min-height: 62px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; }
.connected-row > span:nth-child(2) { display: grid; }
.connected-row strong { font-size: .76rem; }
.connected-row small { color: var(--muted); font-size: .68rem; }
.connected-row button { color: var(--accent-light); background: transparent; font-size: .7rem; cursor: pointer; }
.sessions-panel .panel-title { align-items: center; }
.session-list { display: grid; gap: 8px; }
.session-row { display: grid; grid-template-columns: 38px 1fr auto 32px; align-items: center; gap: 11px; min-height: 80px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.018); }
.session-row.is-current { grid-template-columns: 38px 1fr auto; border-color: rgba(255,124,48,.25); background: rgba(255,124,48,.055); }
.session-row > span:nth-child(2) { display: grid; }
.session-row strong { font-size: .76rem; }
.session-row strong em { margin-left: 5px; padding: 2px 5px; border-radius: 5px; color: var(--mint); background: rgba(82,229,209,.07); font-size: .56rem; font-style: normal; text-transform: uppercase; }
.session-row small { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: .67rem; }
.session-row time { color: #6c6a77; font-size: .65rem; }
.private-value--inline { display: inline-grid; min-height: 20px; min-width: 240px; border: 0; background: none; }
.private-value--inline > span, .private-value--inline > b { padding: 0; }
.remove-session { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; color: var(--danger); background: transparent; cursor: pointer; }
.remove-session:hover { background: rgba(255,95,113,.08); }
.remove-session svg { width: 15px; height: 15px; }

.save-dock { position: fixed; left: 50%; bottom: 18px; z-index: 20; display: flex; align-items: center; width: min(430px, calc(100vw - 32px)); gap: 10px; padding: 9px 9px 9px 15px; border: 1px solid var(--line-strong); border-radius: 13px; background: rgba(13,13,18,.94); box-shadow: 0 20px 50px rgba(0,0,0,.42); backdrop-filter: blur(18px); opacity: 0; filter: blur(3px); transform: translate(-50%,14px) scale(.97); transition: opacity .25s ease,filter .25s ease,transform .32s cubic-bezier(.2,.82,.2,1); }
.save-dock.is-visible { opacity: 1; filter: none; transform: translate(-50%,0) scale(1); }
.save-dock > span { flex: 1; color: var(--muted); font-size: .73rem; }
.save-dock > button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.save-dock > button svg { width: 14px; height: 14px; }
.save-dock > button:not(.primary-button) { min-height: 36px; padding: 0 10px; color: #898795; background: transparent; font-size: .72rem; cursor: pointer; }

.modal-layer { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,3,.76); backdrop-filter: blur(12px); animation: fade-in .24s ease both; }
.modal { position: relative; z-index: 1; width: min(100%, 430px); max-height: calc(100vh - 40px); padding: 25px; overflow: auto; border: 1px solid var(--line-strong); border-radius: 17px; background: #0d0d12; box-shadow: 0 28px 90px rgba(0,0,0,.58); animation: modal-in .32s cubic-bezier(.2,.82,.2,1) both; }
@keyframes fade-in { from { opacity: 0; } }
@keyframes modal-in { from { opacity: 0; filter: blur(5px); transform: translateY(14px) scale(.965); } to { opacity: 1; filter: none; transform: none; } }
.modal-close { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; color: #858391; background: rgba(255,255,255,.035); cursor: pointer; }
.modal-close:hover { color: #fff; }
.modal-heading { display: flex; align-items: center; gap: 11px; padding-right: 30px; }
.modal-heading h2 { margin: 0; font-size: 1rem; }
.modal-heading p { margin: 2px 0 0; color: var(--muted); font-size: .72rem; }
.premium-price { margin: 23px 0 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); font-size: 2rem; font-weight: 780; letter-spacing: -.05em; }
.premium-price small { color: var(--muted); font-size: .74rem; font-weight: 500; letter-spacing: 0; }
.premium-list { display: grid; gap: 7px; margin: 0 0 20px; padding: 0; list-style: none; }
.premium-list li { position: relative; min-height: 36px; padding: 9px 11px 9px 33px; border: 1px solid var(--line); border-radius: 9px; color: #cfccd7; background: rgba(255,255,255,.018); font-size: .72rem; }
.premium-list li::before { position: absolute; left: 12px; color: var(--mint); content: "✓"; font-weight: 800; }
.modal-later { display: block; margin: 10px auto 0; color: #777582; }
.link-modal { width: min(100%, 480px); }
.link-modal form { display: grid; gap: 14px; margin-top: 21px; }
.behavior-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.behavior-options input { position: absolute; opacity: 0; }
.behavior-options label > span { display: grid; place-items: center; min-height: 102px; padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.018); text-align: center; cursor: pointer; }
.behavior-options label > span svg { margin-bottom: 7px; color: var(--accent-light); }
.behavior-options label > span strong { font-size: .75rem; }
.behavior-options label > span small { color: var(--muted); font-size: .64rem; }
.behavior-options input:checked + span { border-color: var(--accent); background: rgba(255,124,48,.065); box-shadow: inset 0 0 0 1px rgba(255,124,48,.18); }
.modal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 5px; }
.toast { position: fixed; right: 20px; bottom: max(20px,env(safe-area-inset-bottom)); z-index: 140; display: grid; grid-template-columns: 30px 1fr; align-items: center; min-height: 56px; max-width: min(390px,calc(100% - 40px)); gap: 10px; padding: 10px 15px 10px 10px; overflow: hidden; border: 1px solid rgba(255,255,255,.13); border-radius: 15px; color: #f3f2f7; background: linear-gradient(135deg,rgba(26,25,34,.97),rgba(12,12,16,.95)); box-shadow: 0 22px 60px rgba(0,0,0,.48),inset 0 1px rgba(255,255,255,.045); backdrop-filter: blur(18px); font-size: .76rem; opacity: 0; filter: blur(4px); pointer-events: none; transform: translateY(16px) scale(.96); transition: opacity .28s ease,transform .36s cubic-bezier(.2,.8,.2,1),filter .28s ease; }
.toast::before { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid rgba(255,124,48,.38); border-radius: 9px; color: #fff; background: rgba(255,124,48,.16); box-shadow: 0 0 20px rgba(255,124,48,.2); content: "✦"; }
.toast::after { position: absolute; right: 12px; bottom: 0; left: 12px; height: 2px; border-radius: 99px; background: linear-gradient(90deg,#ff7c30,#52e5d1); content: ""; transform-origin: left; }
.toast.is-visible { opacity: 1; filter: none; transform: none; }
.toast.is-visible::after { animation: toastProgress 3.2s linear both; }
.toast.is-leaving { opacity: 0; filter: blur(2px); transform: translateY(8px) scale(.98); }
.is-premium-user .upgrade-button { border-color: rgba(82,229,209,.34); color: #dffffa; background: linear-gradient(135deg,rgba(255,124,48,.18),rgba(82,229,209,.12)); }
.is-premium-user [data-premium-trigger="glow"].is-enabled { border-color: rgba(255,124,48,.4); background: rgba(255,124,48,.08); }
.is-premium-user [data-premium-trigger="glow"] b { min-width: 44px; color: #ffd4bb; }
.is-premium-user .pro-product.is-owned { border-color: rgba(82,229,209,.34); background: rgba(82,229,209,.035); }
.is-premium-user .pro-product.is-owned button:disabled { color: #80eadb; opacity: 1; cursor: default; }
@keyframes toastProgress { to { transform: scaleX(0); } }
.mobile-menu, .sidebar-scrim { display: none; }

/* Quiet dashboard system: compact geometry, flat surfaces and one fade accent. */
:root {
  --bg: #070708;
  --sidebar: #080809;
  --panel: #0b0b0d;
  --panel-strong: #0e0e11;
  --line: rgba(255,255,255,.075);
  --line-strong: rgba(255,255,255,.13);
  --accent: #ff7c30;
  --accent-light: #ff9f68;
  --mint: #ff7c30;
  --sidebar-width: 238px;
  --content-width: 960px;
}
body { background: var(--bg); }
body::before { display: none; }
.sidebar { padding: 20px 12px 14px; border-color: rgba(255,255,255,.075); background: rgba(8,8,9,.985); }
.sidebar-brand { justify-content: center; min-height: 72px; gap: 14px; padding-inline: 0; font-size: 1.28rem; }
.sidebar-brand img { width: 56px; height: 56px; }
.sidebar-nav { margin-top: 22px; }
.sidebar-nav p { margin: 18px 10px 5px; color: #55545d; font-size: .66rem; }
.nav-item { min-height: 39px; padding-inline: 10px; border-radius: 9px; color: #73727b; font-size: .79rem; transition: color .28s ease,background .28s ease,transform .32s cubic-bezier(.2,.75,.2,1); }
.nav-item:hover { color: #c9c7cf; background: rgba(255,255,255,.025); transform: translateX(2px); }
.nav-item.is-active { color: #f7f6fa; background: rgba(255,255,255,.07); box-shadow: none; }
.nav-item.is-active svg { color: var(--accent); }
.upgrade-button { min-height: 40px; border-color: var(--accent); color: #fff; background: var(--accent); box-shadow: none; }
.upgrade-button:hover { background: #ff8f4e; box-shadow: 0 8px 24px rgba(255,124,48,.16); }
.dashboard-main { padding: 38px clamp(24px,4vw,64px) 108px; }
.dashboard-view { width: min(100%,var(--content-width)); animation: dashboard-enter .68s cubic-bezier(.22,.72,.18,1) both; }
.dashboard-view.is-leaving { pointer-events: none; animation: dashboard-leave .3s ease both; }
.dashboard-view.is-active > *,
.dashboard-view.is-active .connections-grid > *,
.dashboard-view.is-active .appearance-stack > *,
.dashboard-view.is-active .media-grid > * { animation: none; }
@keyframes dashboard-enter { from { opacity: 0; filter: blur(4px); transform: translateY(13px); } to { opacity: 1; filter: none; transform: none; } }
@keyframes dashboard-leave { to { opacity: 0; filter: blur(3px); transform: translateY(-7px); } }
.welcome-row { margin-bottom: 22px; }
.welcome-row h1 { font-size: 1.45rem; letter-spacing: -.04em; }
.welcome-row p:last-child { margin-top: 4px; font-size: .78rem; }
.eyebrow { display: none; }
.copy-address { min-height: 34px; border-radius: 8px; background: transparent; font-size: .7rem; }
.view-heading { min-height: 86px; margin-bottom: 18px; padding: 17px 22px; border-color: var(--line); border-radius: 11px; background: var(--panel); }
.view-heading > span:first-child { display: none; }
.view-heading h1 { font-size: 1.25rem; }
.view-heading p { margin-top: 3px; font-size: .73rem; }
.stat-card,.panel,.info-card { border-color: var(--line); background: var(--panel); box-shadow: none; }
.panel:hover,.info-card:hover { border-color: rgba(255,255,255,.11); box-shadow: none; }
.panel { border-radius: 11px; }
.stats-grid { gap: 10px; }
.stat-card { min-height: 108px; padding: 15px; border-radius: 10px; }
.stat-card > span { width: 29px; height: 29px; border-radius: 7px; }
.stat-card strong { margin-top: 12px; font-size: 1.05rem; }
.stat-card small { font-size: .69rem; }
.analytics-lock { min-height: 226px; margin-top: 14px; border-style: solid; border-color: var(--line); border-radius: 11px; background: var(--panel); }
.analytics-lock::after { display: none; }
.inline-upgrade,.primary-button { color: #fff; background: var(--accent); box-shadow: none; }
.inline-upgrade:hover,.primary-button:hover { background: #ff8d4b; }
.overview-grid { gap: 10px; margin-top: 14px; }
.info-card { min-height: 86px; padding: 15px; border-radius: 10px; }
.form-panel,.upload-panel,.appearance-stack > .panel,.integration-card,.coming-card,.account-grid > .panel,.checkout-panel,.payment-panel { padding: 18px; }
.side-stack { gap: 13px; }
.side-stack .panel { padding: 18px; }
.editor-grid,.connections-grid,.media-grid,.account-grid { gap: 13px; }
.editor-grid { grid-template-columns: 1.05fr .95fr; }
.form-panel { gap: 15px; }
.panel-title { margin-bottom: 17px; }
.panel-title h2 { font-size: .84rem; }
.panel-title p { font-size: .69rem; }
.panel-title > svg { color: var(--accent); }
.panel-title > b,.integration-head > b { color: var(--accent-light); background: rgba(255,124,48,.1); }
input,textarea,select { border-radius: 7px; background: #0e0e11; }
input,select { min-height: 38px; }
input:focus,textarea:focus,select:focus { border-color: var(--accent); background: #0f0f13; box-shadow: none; }
.primary-button,.secondary-button { min-height: 38px; border-radius: 8px; }
.premium-panel { border-color: rgba(255,124,48,.2); background: rgba(255,124,48,.035); }
.locked-field,.locked-drop,.locked-integration { border-color: rgba(255,124,48,.18); background: rgba(255,124,48,.025); }
.timezone-symbol { background: rgba(255,124,48,.1); box-shadow: none; }
.switch-control > span,.toggle-list > label i,.badge-master i,.timezone-toggle i { box-shadow: none; transition: border-color .32s ease,background .32s ease; }
.switch-control > span::after,.toggle-list > label i::after,.badge-master i::after,.timezone-toggle i::after { transition: transform .38s cubic-bezier(.2,.82,.2,1),background .28s ease; }
.switch-control input:checked + span,.toggle-list > label input:checked + i,.badge-master input:checked + i,.timezone-toggle input:checked + i { border-color: var(--accent); background: var(--accent); box-shadow: none; }
.layout-preview { min-height: 132px; border-radius: 9px; background: #0e0e11; }
.layout-options input:checked + .layout-preview { border-color: var(--accent); box-shadow: none; }
.color-grid label,.toggle-list > label,.toggle-list > button,.badge-master,.owned-badge { border-radius: 8px; background: rgba(255,255,255,.014); }
.owned-badge:has(input:checked),.radio-pill input:checked + span,.behavior-options input:checked + span { border-color: rgba(255,124,48,.55); background: rgba(255,124,48,.08); box-shadow: none; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; background: linear-gradient(90deg,var(--accent) 0,var(--accent) var(--range-progress),rgba(255,255,255,.14) var(--range-progress) 100%); box-shadow: none; }
input[type="range"]::-webkit-slider-thumb { width: 14px; height: 14px; margin-top: -5px; border: 2px solid #fff; background: var(--accent); box-shadow: none; }
input[type="range"]::-moz-range-progress { background: var(--accent); box-shadow: none; }
input[type="range"]::-moz-range-thumb { border-color: #fff; background: var(--accent); box-shadow: none; }
.dashboard-chart { background: repeating-linear-gradient(to bottom,transparent 0,transparent 61px,rgba(255,255,255,.035) 62px); }
.dashboard-chart button i { background: var(--accent); box-shadow: none; }
.analytics-chart-panel .panel-title > b,.secure-label,.payment-methods i { color: var(--accent-light) !important; background: rgba(255,124,48,.08) !important; }
.upload-panel { min-height: 292px; }
.file-summary,.drop-zone { border-radius: 8px; background: rgba(255,255,255,.012); }
.integration-card { min-height: 196px; }
.integration-card::after { display: none; }
.integration-card:hover { border-color: rgba(255,124,48,.25); background: var(--panel); transform: none; }
.integration-card:has(input[type="checkbox"]:checked) { border-color: rgba(255,124,48,.38); box-shadow: none; }
.service-icon { border-radius: 9px; box-shadow: none; }
.integration-card:hover .service-icon { filter: none; transform: none; }
.security-progress i { background: var(--accent); }
.product-card { border-radius: 10px; }
.product-card:hover,.product-card.is-selected { border-color: rgba(255,124,48,.42); background: rgba(255,124,48,.055); box-shadow: none; }
.cart-bar { border-color: rgba(255,124,48,.28); border-radius: 10px; background: rgba(10,10,13,.96); }
.session-row,.connected-row { border-radius: 8px; background: rgba(255,255,255,.012); }
.session-row.is-current { border-color: rgba(255,124,48,.3); background: rgba(255,124,48,.06); }
.save-dock { width: min(500px,calc(100vw - 32px)); border-radius: 9px; background: rgba(10,10,12,.97); }
.modal-backdrop { background: rgba(0,0,0,.82); backdrop-filter: blur(7px); }
.modal { border-radius: 11px; background: #0b0b0e; animation-duration: .48s; }
.behavior-options label > span { border-radius: 8px; background: rgba(255,255,255,.012); }
.toast { border-radius: 10px; background: #0c0c0f; box-shadow: 0 16px 44px rgba(0,0,0,.48); }
.toast::after { background: var(--accent); }
.is-premium-user .upgrade-button { border-color: rgba(255,124,48,.5); color: #fff; background: rgba(255,124,48,.16); }
.is-premium-user .pro-product.is-owned { border-color: rgba(255,124,48,.34); background: rgba(255,124,48,.035); }

/* Profile tab: reference-matched structure and surface treatment. */
[data-view="profile"] { --profile-panel:#0b0b0c; --profile-input:#0d0d0f; }
[data-view="profile"] .profile-heading { min-height: 106px; margin-bottom: 24px; padding: 20px 23px; border-radius: 14px; }
[data-view="profile"] .profile-heading h1 { font-size: 1.37rem; letter-spacing: -.045em; }
[data-view="profile"] .profile-heading p { margin-top: 5px; color: #6d6c72; font-size: .75rem; }
.profile-reference-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: start; gap: 24px; }
.profile-about-panel { display: flex; flex-direction: column; min-height: 636px; padding: 20px; border-radius: 14px; background: var(--profile-panel); }
.profile-about-panel .panel-title { margin-bottom: 24px; }
.profile-about-panel .panel-title > svg { width: 18px; height: 18px; color: var(--accent); }
.profile-about-panel .panel-title h2,
.profile-side-column .panel-title h2 { color: #ededf0; font-size: .87rem; font-weight: 760; }
.profile-about-panel .panel-title p,
.profile-side-column .panel-title p { color: #6f6e74; font-size: .69rem; line-height: 1.45; }
.profile-field { display: grid; gap: 7px; margin-bottom: 20px; color: #e5e4e7; font-size: .76rem; }
.profile-field > small { margin-top: -1px; color: #66656b; font-size: .66rem; font-weight: 450; line-height: 1.45; }
.profile-input-shell { position: relative; display: block; }
.profile-input-shell > svg { position: absolute; top: 50%; left: 12px; z-index: 1; width: 14px; height: 14px; color: #66656b; pointer-events: none; transform: translateY(-50%); }
.heading-level { position: absolute; top: 50%; left: 12px; z-index: 1; width: 15px; color: #66656b; font-size: .68rem; font-weight: 650; line-height: 1; text-align: center; pointer-events: none; transform: translateY(-50%); }
.heading-level sub { position: relative; bottom: -.12em; margin-left: 1px; font-size: .56em; line-height: 0; }
.profile-input-shell input { min-height: 38px; padding-left: 38px; border-radius: 7px; border-color: rgba(255,255,255,.08); background: var(--profile-input); font-size: .74rem; }
.profile-field textarea { min-height: 101px; border-radius: 7px; border-color: rgba(255,255,255,.08); background: var(--profile-input); font-size: .74rem; line-height: 1.5; }
.profile-timezone-card { margin-top: auto; padding: 15px; border: 1px solid rgba(255,124,48,.24); border-radius: 11px; background: rgba(255,124,48,.025); }
.profile-timezone-title { display: grid; gap: 3px; margin-bottom: 9px; }
.profile-timezone-title strong { color: #dfdde5; font-size: .75rem; }
.profile-timezone-control { position: relative; display: flex; align-items: center; min-height: 34px; border: 1px solid rgba(255,255,255,.055); border-radius: 7px; background: rgba(0,0,0,.23); }
.profile-timezone-control > svg { flex: 0 0 auto; width: 14px; height: 14px; margin-left: 12px; color: #727078; }
.profile-timezone-control select { min-width: 0; min-height: 32px; padding: 0 108px 0 10px; border: 0; color: #79777f; background: transparent; font-size: .69rem; }
.profile-timezone-control select:disabled { cursor: default; opacity: 1; }
.profile-timezone-control .premium-feature-lock { position: absolute; right: 50%; display: inline-flex; align-items: center; min-height: 31px; gap: 6px; padding: 0 12px; border-radius: 7px; color: #fff; background: var(--accent); font-size: .68rem; font-weight: 750; cursor: pointer; transform: translateX(50%); }
.profile-timezone-control .premium-feature-lock svg { width: 13px; height: 13px; }
.profile-timezone-help { display: block; margin-top: 9px; color: #5f5e65; font-size: .63rem; }
.profile-timezone-toggle { display: none; }
.is-premium-user .profile-timezone-control .premium-feature-lock { display: none; }
.is-premium-user .profile-timezone-control select { padding-right: 34px; color: #d6d4dc; cursor: pointer; }
.is-premium-user .profile-timezone-toggle { display: flex; align-items: center; gap: 7px; margin-top: 7px; color: #74727a; font-size: .63rem; }
.is-premium-user .profile-timezone-toggle input { width: 13px; min-height: 13px; accent-color: var(--accent); }
.profile-side-column { display: grid; align-content: start; gap: 24px; }
.profile-side-column > .panel { padding: 17px 19px; border-radius: 14px; }
.profile-side-column .panel-title { margin-bottom: 13px; }
.profile-side-column .panel-title > svg { width: 17px; height: 17px; color: var(--accent); }
.profile-side-column .panel-title > b { margin-left: 8px; color: #dedce4; background: rgba(255,255,255,.055); }
.profile-typewriter-card { position: relative; min-height: 119px; border-color: rgba(255,124,48,.28); background: rgba(255,124,48,.035); }
.profile-unlock { position: absolute; top: 50px; left: 50%; display: inline-flex; align-items: center; min-height: 32px; gap: 6px; padding: 0 14px; border-radius: 7px; color: #fff; background: var(--accent); font-size: .68rem; font-weight: 760; cursor: pointer; transform: translateX(-50%); }
.profile-unlock svg { width: 13px; height: 13px; }
.profile-add-string { width: 100%; min-height: 34px; border-color: rgba(255,255,255,.045); border-radius: 7px; color: #66646d; background: rgba(0,0,0,.21); font-size: .68rem; }
.profile-typewriter-card .typewriter-editor { margin-top: 11px; padding-top: 11px; border-top: 1px solid rgba(255,255,255,.07); }
.profile-typewriter-card .typewriter-editor textarea { min-height: 110px; }
.profile-alias-card { min-height: 106px; border-color: rgba(255,124,48,.28); background: rgba(255,124,48,.035); }
.profile-alias-card .panel-title { margin-bottom: 19px; }
.profile-alias-card > p { margin: 0; color: #66656b; font-size: .65rem; text-align: center; }
.profile-alias-card .text-action { padding: 0; color: var(--accent); font-size: inherit; }
.profile-alias-card .text-action:hover { color: var(--accent-light); }

/* Premium username glow uses the same switch language as the other visibility control. */
.glow-control { position: relative; display: flex; align-items: center; min-height: 62px; gap: 15px; padding: 10px 12px; overflow: hidden; border: 1px solid rgba(255,124,48,.16); border-radius: 8px; background: rgba(255,255,255,.014); }
.glow-control > span { display: grid; flex: 1; }
.glow-control strong { color: #e9e8ee; font-size: .76rem; }
.glow-control small { margin-top: 3px; color: var(--muted); font-size: .68rem; font-weight: 450; }
.glow-toggle { position: relative; z-index: 1; flex: 0 0 38px; width: 38px; height: 21px; border: 1px solid rgba(255,255,255,.08); border-radius: 999px; background: #25242e; cursor: pointer; transition: border-color .32s ease,background .32s ease; }
.glow-toggle:disabled { cursor: default; }
.glow-toggle i { position: absolute; top: 3px; left: 3px; width: 13px; height: 13px; border-radius: 50%; background: #8d8b99; transition: transform .38s cubic-bezier(.2,.82,.2,1),background .28s ease; }
.glow-toggle.is-enabled { border-color: var(--accent); background: var(--accent); }
.glow-toggle.is-enabled i { background: #fff; transform: translateX(17px); }
.is-premium-user .glow-toggle.is-enabled { border-color: var(--accent); background: var(--accent); box-shadow: none; }
.is-premium-user .glow-toggle.is-enabled i { background: #fff; box-shadow: none; }
.glow-lock-overlay { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; border-radius: inherit; background: rgba(9,9,11,.38); backdrop-filter: blur(4px); }
.glow-lock-overlay button { display: inline-flex; align-items: center; min-height: 32px; gap: 6px; padding: 0 13px; border-radius: 7px; color: #fff; background: var(--accent); font-size: .68rem; font-weight: 750; cursor: pointer; }
.glow-lock-overlay svg { width: 13px; height: 13px; }
.is-premium-user .glow-lock-overlay { display: none; }

/* Dark, consistent dropdowns replace the browser-native white option menus. */
.clean-select__native { position: absolute !important; width: 1px !important; height: 1px !important; min-height: 0 !important; padding: 0 !important; overflow: hidden; border: 0 !important; opacity: 0; pointer-events: none; clip-path: inset(50%); }
.clean-select { position: relative; width: 100%; color: #f0eff5; font-size: .74rem; font-weight: 600; }
.clean-select.is-open { z-index: 35; }
.clean-select__trigger { display: grid; grid-template-columns: minmax(0,1fr) auto 16px; align-items: center; width: 100%; min-height: 40px; gap: 10px; padding: 0 12px; border: 1px solid rgba(255,255,255,.1); border-radius: 8px; color: #efedf5; background: #0e0e12; box-shadow: inset 0 1px rgba(255,255,255,.025); text-align: left; cursor: pointer; transition: border-color .24s ease,background .24s ease,box-shadow .24s ease,transform .24s ease; }
.clean-select__trigger:hover { border-color: rgba(255,124,48,.38); background: #111117; }
.clean-select.is-open .clean-select__trigger { border-color: var(--accent); background: rgba(255,124,48,.045); box-shadow: 0 12px 30px rgba(0,0,0,.18); }
.clean-select__trigger > svg { width: 15px; height: 15px; color: #777481; fill: none; stroke: currentColor; stroke-width: 2; transition: color .22s ease,transform .28s cubic-bezier(.2,.8,.2,1); }
.clean-select.is-open .clean-select__trigger > svg { color: var(--accent-light); transform: rotate(180deg); }
.clean-select__value { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clean-select__status,.clean-select__option-status { display: inline-flex; align-items: center; justify-content: flex-end; min-width: 0; gap: 5px; color: var(--accent-light); font-size: .62rem; font-weight: 750; letter-spacing: .01em; }
.clean-select__status svg,.clean-select__option-status svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.clean-select__menu { position: absolute; top: calc(100% + 7px); right: 0; left: 0; display: grid; max-height: 258px; padding: 6px; overflow: auto; border: 1px solid rgba(255,255,255,.11); border-radius: 10px; background: rgba(13,13,17,.985); box-shadow: 0 22px 60px rgba(0,0,0,.52),inset 0 1px rgba(255,255,255,.035); backdrop-filter: blur(18px); opacity: 0; visibility: hidden; transform: translateY(-7px) scale(.985); transform-origin: top; transition: opacity .2s ease,visibility .2s ease,transform .25s cubic-bezier(.2,.82,.2,1); }
.clean-select.is-open .clean-select__menu { opacity: 1; visibility: visible; transform: none; }
.clean-select__option { position: relative; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; width: 100%; min-height: 39px; gap: 12px; padding: 0 10px; border-radius: 7px; color: #a7a4af; background: transparent; text-align: left; cursor: pointer; transition: color .18s ease,background .18s ease,transform .18s ease; }
.clean-select__option:hover,.clean-select__option:focus-visible { color: #f5f3fa; background: rgba(255,124,48,.1); outline: none; }
.clean-select__option.is-selected { color: #fff; background: rgba(255,124,48,.15); }
.clean-select__option.is-selected::before { position: absolute; left: 6px; width: 2px; height: 18px; border-radius: 999px; background: var(--accent); content: ""; }
.clean-select__option:disabled { color: #55535d; cursor: default; }
.clean-select.is-disabled { opacity: .58; }
.clean-select.is-disabled .clean-select__trigger { cursor: default; }
.profile-timezone-control .clean-select { flex: 1; min-width: 0; }
.profile-timezone-control .clean-select__trigger { min-height: 32px; border: 0; background: transparent; box-shadow: none; }
.profile-timezone-control .clean-select__menu { min-width: 260px; }
.clean-select__menu::-webkit-scrollbar { width: 7px; }
.clean-select__menu::-webkit-scrollbar-thumb { border: 2px solid #0d0d11; border-radius: 99px; background: #46434f; }

@media (max-width: 980px) {
  :root { --sidebar-width: 218px; }
  .dashboard-main { padding-inline: 24px; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .editor-grid, .media-grid, .connections-grid, .account-grid { grid-template-columns: 1fr; }
  .profile-reference-grid { grid-template-columns: 1fr; }
  .profile-about-panel { min-height: 0; }
  .profile-timezone-card { margin-top: 8px; }
  .upload-panel--wide, .account-grid > .sessions-panel { grid-column: auto; }
  .save-dock { left: 50%; }
}

@media (max-width: 760px) {
  .mobile-menu { position: fixed; top: max(12px,env(safe-area-inset-top)); left: max(12px,env(safe-area-inset-left)); z-index: 45; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line-strong); border-radius: 11px; color: #fff; background: rgba(13,13,18,.92); backdrop-filter: blur(16px); }
  .sidebar { width: min(270px, calc(100vw - 54px)); transform: translateX(-102%); transition: transform .25s cubic-bezier(.2,.75,.2,1); }
  .sidebar.is-open { transform: none; }
  .sidebar-scrim { position: fixed; inset: 0; z-index: 25; display: block; background: rgba(0,0,2,.68); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
  .sidebar-scrim.is-visible { opacity: 1; pointer-events: auto; }
  .dashboard-main { margin-left: 0; padding: 76px 14px 100px; }
  .welcome-row { align-items: flex-start; flex-direction: column; }
  .copy-address { align-self: stretch; }
  .overview-grid, .product-grid, .layout-options, .form-columns, .color-grid, .range-grid { grid-template-columns: 1fr; }
  .pro-product { grid-template-columns: 1fr auto; }
  .pro-product > button { grid-column: 1 / -1; }
  .redeem-row { grid-template-columns: 1fr; }
  .session-row, .session-row.is-current { grid-template-columns: 36px 1fr 32px; }
  .session-row > time { grid-column: 2; }
  .session-row.is-current > time { grid-column: 3; grid-row: 1; }
  .private-value--inline { min-width: 0; width: 100%; }
  .timezone-editor { grid-template-columns: 1fr; }
  .save-dock { left: 50%; bottom: max(12px,env(safe-area-inset-bottom)); width: calc(100vw - 24px); min-width: 0; }
}

@media (max-width: 380px) {
  .stats-grid { grid-template-columns: 1fr; }
  .save-dock { width:calc(100vw - 16px); padding-left:10px; }
  .save-dock > span { font-size:.66rem; }
}

@media (max-width: 520px) {
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .stat-card { min-height: 125px; padding: 14px; }
  .stat-card strong { font-size: 1.08rem; }
  .overview-grid { grid-template-columns: 1fr; }
  .view-heading { align-items: flex-start; padding: 15px; }
  .view-heading--action { flex-wrap: wrap; }
  .view-heading--action .primary-button { width: 100%; }
  .panel { border-radius: 13px; }
  .form-panel, .upload-panel, .appearance-stack > .panel, .integration-card, .coming-card, .account-grid > .panel, .checkout-panel, .payment-panel { padding: 16px; }
  .checkout-steps { justify-content: center; }
  .checkout-steps span { font-size: 0; }
  .checkout-steps span b { font-size: .65rem; }
  .payment-methods label { grid-template-columns: 40px 1fr; }
  .payment-methods i { grid-column: 2; width: max-content; }
  .stage-actions { align-items: stretch; flex-direction: column-reverse; gap: 10px; }
  .stage-actions > * { width: 100%; }
  .cart-bar { align-items: stretch; flex-direction: column; gap: 10px; }
  .modal { padding: 21px 17px; }
  .behavior-options { grid-template-columns: 1fr; }
  .platform-picker { grid-template-columns: 1fr 1fr; }
  .analytics-heading { align-items: flex-start; }
  .analytics-range { width: 100%; }
  .analytics-range button { flex: 1; }
  .analytics-summary { grid-template-columns: 1fr; }
  .analytics-metric { min-height: 100px; }
  .dashboard-chart { min-height: 250px; gap: 4px; padding-inline: 0; }
  .dashboard-chart button { grid-template-rows: 195px 26px; }
  .dashboard-chart button i { width: min(100%,30px); }
}

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

/* ---- store coming soon + admin panel ---- */
.store-coming-soon { display: grid; justify-items: center; gap: 10px; padding: 48px 24px; text-align: center; }
.store-coming-soon h2 { margin: 6px 0 0; font-size: 1.4rem; letter-spacing: -.03em; }
.store-coming-soon p { max-width: 420px; margin: 0; color: var(--muted); font-size: .85rem; line-height: 1.55; }
.store-coming-soon .store-coming-soon__hint { color: var(--accent-light); font-size: .78rem; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.admin-user-list { display: grid; gap: 8px; }
.admin-user-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.admin-user-row span { display: grid; gap: 2px; }
.admin-user-row small { color: var(--muted); font-size: .7rem; }
[data-owner-only][hidden] { display: none !important; }

.danger-panel .panel-title > svg { color: #ff809d; }
.danger-button { color: #ff9aae !important; border-color: rgba(255,128,157,.28) !important; }
.danger-button:hover { background: rgba(255,128,157,.08) !important; }

.verify-banner { display: flex; align-items: center; gap: 13px; margin-bottom: 14px; padding: 13px 16px; border: 1px solid rgba(255,124,48,.22); border-radius: 12px; color: inherit; background: rgba(255,124,48,.05); text-decoration: none; transition: border-color .2s ease, background .2s ease; }
.verify-banner:hover { border-color: rgba(255,124,48,.4); background: rgba(255,124,48,.08); }
.verify-banner[hidden] { display: none; }
.verify-banner__icon { display: grid; flex: none; width: 34px; height: 34px; place-items: center; border-radius: 10px; color: #ff7c30; background: rgba(255,124,48,.1); }
.verify-banner__icon svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.verify-banner__text { display: grid; flex: 1; gap: 2px; min-width: 0; }
.verify-banner__text strong { font-size: .82rem; }
.verify-banner__text small { color: var(--muted); font-size: .7rem; }
.verify-banner__cta { flex: none; color: #ff9d64; font-size: .74rem; font-weight: 600; }
@media (max-width: 560px) { .verify-banner__cta { display: none; } }

/* ---- Premium locks ---- */
.premium-locked { position: relative; overflow: hidden; isolation: isolate; }
.premium-locked > :not(.premium-lock) { filter: blur(2.5px); opacity: .45; pointer-events: none; user-select: none; }
.premium-locked .premium-feature-lock, .premium-locked .locked-integration, .premium-locked .locked-drop, .premium-locked .glow-lock-overlay, .premium-locked .profile-unlock { display: none !important; }
.premium-locked .premium-feature-editor { display: grid; }
.premium-lock { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; border-radius: inherit; background: linear-gradient(180deg, rgba(255,124,48,.09), rgba(255,124,48,.04)); box-shadow: inset 0 0 0 1px rgba(255,124,48,.3); }
.glow-control.premium-locked .premium-lock { border-radius: 10px; }
.premium-lock__button { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 16px; border: 0; border-radius: 9px; color: #fff; background: #ff7c30; box-shadow: 0 8px 24px rgba(255,124,48,.3); font: 700 .74rem/1 Inter, system-ui, sans-serif; cursor: pointer; transition: background .2s ease, transform .2s ease, box-shadow .2s ease; }
.premium-lock__button:hover { background: #ff8a46; box-shadow: 0 10px 28px rgba(255,124,48,.38); transform: translateY(-1px); }
.premium-lock__button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.premium-lock__button svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }

/* ---- Premium modal ---- */
.modal.premium-modal { width: min(100%, 400px); padding: 30px 28px 22px; border-radius: 18px; background: #0b0b0e; }
.pm-head { display: flex; align-items: center; gap: 12px; }
.pm-icon { display: grid; flex: none; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(255,124,48,.28); border-radius: 11px; color: #ff7c30; background: rgba(255,124,48,.08); }
.pm-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.pm-head h2 { margin: 0; font-size: 1rem; letter-spacing: -.02em; }
.pm-head p { margin: 2px 0 0; color: var(--muted); font-size: .7rem; }
.pm-price { margin: 20px 0 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); font-size: 2.1rem; font-weight: 800; letter-spacing: -.05em; }
.pm-price small { color: var(--muted); font-size: .72rem; font-weight: 500; letter-spacing: 0; }
.pm-list { display: grid; gap: 6px; margin: 0 0 18px; padding: 0; list-style: none; }
.pm-list li { display: flex; align-items: center; justify-content: flex-end; gap: 10px; min-height: 36px; padding: 0 13px; border: 1px solid rgba(255,255,255,.05); border-radius: 9px; color: #e6e4ec; background: rgba(255,255,255,.02); font-size: .74rem; font-weight: 600; }
.pm-list svg { flex: none; width: 15px; height: 15px; color: #ff7c30; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pm-buy, .pm-redeem { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 42px; border-radius: 11px; font: 700 .8rem/1 Inter, system-ui, sans-serif; cursor: pointer; transition: background .2s ease, border-color .2s ease; }
.pm-buy { border: 0; color: #fff; background: #ff7c30; }
.pm-buy:hover { background: #ff8a46; }
.pm-redeem { margin-top: 8px; border: 1px solid var(--line-strong, rgba(255,255,255,.12)); color: #e6e4ec; background: transparent; }
.pm-redeem:hover { border-color: rgba(255,255,255,.25); }
.pm-buy svg, .pm-redeem svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.pm-later { display: block; margin: 12px auto 0; padding: 4px 8px; border: 0; color: #6f6d78; background: transparent; font-size: .68rem; cursor: pointer; }
.pm-later:hover { color: var(--text); }

/* ---- Connections (clean list) ---- */
.conn-panel { display: block; max-width: 760px; padding: 6px; }
.conn-row { position: relative; padding: 14px; border-radius: 12px; }
.conn-row + .conn-row::before { position: absolute; top: 0; right: 14px; left: 14px; height: 1px; content: ""; background: var(--line); }
.conn-row.premium-locked + .conn-row::before, .conn-row + .conn-row.premium-locked::before { opacity: 0; }
.conn-main { display: flex; align-items: center; gap: 13px; }
.conn-icon { display: grid; flex: none; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 11px; color: #e9e8ee; background: rgba(255,255,255,.03); }
.conn-icon svg { width: 19px; height: 19px; fill: currentColor; stroke: none; }
.conn-row--discord .conn-icon { color: #9aa3ff; }
.conn-row--lastfm .conn-icon { color: #ff5b5b; }
.conn-text { display: grid; flex: 1; gap: 3px; min-width: 0; }
.conn-text strong { display: flex; align-items: center; gap: 8px; font-size: .84rem; font-weight: 650; }
.conn-text small { color: var(--muted); font-size: .7rem; }
.conn-tag { padding: 2px 6px; border-radius: 5px; color: #ff9d64; background: rgba(255,124,48,.1); font-size: .55rem; font-style: normal; font-weight: 800; letter-spacing: .03em; }
.conn-row .switch-control { flex: none; }
.conn-field { display: none; gap: 7px; margin: 14px 0 2px 53px; color: #bdbbc6; font-size: .72rem; }
.conn-field small { color: var(--muted); font-size: .66rem; }
.conn-row:has(.switch-control input:checked):not(.premium-locked) .conn-field { display: grid; animation: connOpen .28s ease both; }
.conn-foot { margin: 0; padding: 12px 14px 10px; color: #5e5c66; font-size: .7rem; text-align: center; }
.conn-row.premium-locked .premium-lock { inset: 4px 0; }
@keyframes connOpen { from { opacity: 0; transform: translateY(-4px); } }
@media (max-width: 640px) { .conn-field { margin-left: 0; } }

/* ---- Premium unlocked: premium features look exactly like free ones ---- */
.is-premium-user .premium-panel,
.is-premium-user .profile-typewriter-card,
.is-premium-user .profile-alias-card { border-color: var(--line) !important; background: var(--panel) !important; }
.is-premium-user .profile-timezone-card { border-color: var(--line); background: rgba(255,255,255,.014); }
.is-premium-user .glow-control { border-color: var(--line); }
.is-premium-user .premium-panel .panel-title > b,
.is-premium-user .conn-tag,
.is-premium-user .nav-item[data-view-target="analytics"] b,
.is-premium-user .analytics-lock { display: none !important; }
.is-premium-user .upgrade-button { display: none !important; }

/* ---- Discord account row ---- */
.conn-account__avatar { position: relative; overflow: hidden; }
.conn-account__avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.conn-button { flex: none; padding: 8px 14px; border-radius: 9px; color: #fff; background: #5865f2; font-size: .74rem; font-weight: 700; text-decoration: none; transition: background .2s ease; }
.conn-button:hover { background: #6d78f5; }
.conn-button[hidden] { display: none; }
.conn-tag--live { color: #e6e4ec; background: rgba(255,255,255,.08); }
.conn-account__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 10px 0 0 53px; color: var(--muted); font-size: .68rem; }
.conn-account__actions[hidden] { display: none; }
.conn-account__actions span { flex: 1; min-width: 200px; }
.conn-account__actions a, .conn-account__actions button { padding: 0; border: 0; color: #b9b7c3; background: none; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.conn-account__actions a:hover, .conn-account__actions button:hover { color: var(--text); }
.conn-account__actions button { color: #ff8da1; }
@media (max-width: 640px) { .conn-account__actions { margin-left: 0; } }

/* ---- Typewriter strings list ---- */
.tw-source { display: none !important; }
.tw-count { font-variant-numeric: tabular-nums; }
.tw-list { display: grid; gap: 8px; margin-top: 4px; }
.tw-list:empty { display: none; }
.tw-row { position: relative; display: grid; grid-template-columns: 18px 1fr 36px; align-items: center; gap: 6px; border-radius: 9px; transition: box-shadow .2s ease, background .2s ease; }
.tw-row.is-dragging { z-index: 3; background: #111116; box-shadow: 0 14px 34px rgba(0,0,0,.5); transition: none; }
.tw-list.is-sorting .tw-row:not(.is-dragging) { transition: transform .18s ease; }
.tw-handle { display: grid; place-items: center; width: 18px; height: 36px; padding: 0; border: 0; color: #4c4a54; background: none; cursor: grab; touch-action: none; }
.tw-handle:hover { color: #9a98a4; }
.tw-row.is-dragging .tw-handle { color: #ff7c30; cursor: grabbing; }
.tw-handle svg { width: 14px; height: 14px; fill: currentColor; stroke: none; }
.tw-input { width: 100%; min-width: 0; height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); background: rgba(0,0,0,.28); font: 600 .74rem/1 Inter, system-ui, sans-serif; }
.tw-input::placeholder { color: #55535c; font-weight: 500; }
.tw-input:focus { border-color: rgba(255,124,48,.5); outline: none; }
.tw-delete { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 8px; color: #fff; background: #e5343a; cursor: pointer; transition: background .2s ease; }
.tw-delete:hover { background: #f04a50; }
.tw-delete svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tw-add { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 38px; margin-top: 8px; border: 1px solid var(--line); border-radius: 9px; color: #d8d6de; background: rgba(0,0,0,.2); font: 600 .72rem/1 Inter, system-ui, sans-serif; cursor: pointer; transition: border-color .2s ease, color .2s ease; }
.tw-add:hover:not(:disabled) { border-color: rgba(255,255,255,.18); color: #fff; }
.tw-add:disabled { color: #55535c; cursor: default; }
.tw-add svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.profile-typewriter-card .panel-title { margin-bottom: 12px; }

/* ---- Link icons: neutral white everywhere in the dashboard ---- */
.social-mark, .link-row > .social-mark { --social-color: #f1f0f5; border-color: var(--line); color: #f1f0f5; background: rgba(255,255,255,.035); }
.social-mark svg, .lp-icon svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.social-mark .social-fill, .lp-icon .social-fill { fill: currentColor; stroke: none; }

/* ---- Create link modal ---- */
.modal[data-modal="link"] { width: min(100%, 460px); overflow-x: hidden; }
[data-link-form] { display: grid; gap: 16px; margin-top: 20px; }
[data-link-form] .form-label { margin-bottom: -8px; }
.lp { position: relative; }
.lp-trigger { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 50px; padding: 0 14px 0 8px; border: 1px solid var(--line); border-radius: 11px; color: var(--text); background: rgba(255,255,255,.025); font: 600 .84rem/1 Inter, system-ui, sans-serif; cursor: pointer; transition: border-color .2s ease, background .2s ease; }
.lp-trigger:hover, .lp-trigger[aria-expanded="true"] { border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.04); }
.lp-name { flex: 1; text-align: left; }
.lp-chevron { width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; transition: transform .2s ease; }
.lp-trigger[aria-expanded="true"] .lp-chevron { transform: rotate(180deg); }
.lp-icon { display: grid; flex: none; place-items: center; width: 34px; height: 34px; border-radius: 9px; color: #f1f0f5; background: rgba(255,255,255,.05); }
.lp-icon svg { width: 17px; height: 17px; }
.lp-panel { margin-top: 8px; border: 1px solid var(--line); border-radius: 12px; background: #09090c; box-shadow: 0 18px 50px rgba(0,0,0,.45); animation: lpIn .18s ease both; }
.lp-panel[hidden] { display: none; }
.lp-search { display: flex; align-items: center; gap: 9px; padding: 0 12px; border-bottom: 1px solid var(--line); }
.lp-search svg { flex: none; width: 15px; height: 15px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.lp-search input { flex: 1; min-width: 0; height: 44px; padding: 0; border: 0 !important; color: var(--text); background: transparent !important; box-shadow: none !important; font: 500 .8rem/1 Inter, system-ui, sans-serif; outline: none; }
.lp-list { max-height: 290px; padding: 6px 6px 8px; overflow-y: auto; overscroll-behavior: contain; }
.lp-list.is-empty::after { display: block; padding: 22px 0; color: var(--muted); font-size: .76rem; text-align: center; content: "No platforms found"; }
.lp-group[hidden], .lp-option[hidden] { display: none; }
.lp-heading { margin: 10px 8px 6px; color: #5f5d68; font-size: .6rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.lp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; }
.lp-option { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 6px 8px; border: 0; border-radius: 8px; color: #d6d4dd; background: transparent; font: 500 .76rem/1.2 Inter, system-ui, sans-serif; text-align: left; cursor: pointer; transition: background .15s ease, color .15s ease; }
.lp-option span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-option .lp-icon { width: 28px; height: 28px; border-radius: 7px; }
.lp-option .lp-icon svg { width: 15px; height: 15px; }
.lp-option:hover, .lp-option:focus-visible { color: #fff; background: rgba(255,255,255,.05); outline: none; }
.lp-option.is-selected { color: #fff; background: rgba(255,124,48,.1); }
.lp-option.is-selected .lp-icon { color: #ff9d64; }
.lp-field { display: grid; gap: 7px; color: #ceccd6; font-size: .78rem; font-weight: 600; }
.lp-field em { margin-left: 4px; color: #5f5d68; font-size: .68rem; font-style: normal; font-weight: 500; }
.lp-field small { color: var(--muted); font-size: .68rem; font-weight: 500; }
@keyframes lpIn { from { opacity: 0; transform: translateY(-4px); } }
@media (max-width: 480px) { .lp-grid { grid-template-columns: 1fr; } }

/* ---- Connections (card grid) ---- */
.conn-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
@media (max-width: 900px) { .conn-grid { grid-template-columns: 1fr; } }
.conn-card { display: grid; gap: 14px; align-content: start; min-height: 190px; padding: 20px; }
.cc-head { display: flex; align-items: center; gap: 9px; }
.cc-head > svg { width: 18px; height: 18px; flex: none; color: #f1f0f5; }
.cc-head h2 { flex: 1; margin: 0; font-size: .9rem; letter-spacing: -.01em; }
.cc-premium { color: #ff8a46; font-size: .58rem; font-weight: 800; letter-spacing: .04em; }
.is-premium-user .cc-premium { display: none; }
.cc-account { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.02); }
.cc-account[hidden] { display: none; }
.cc-avatar { display: grid; flex: none; place-items: center; width: 40px; height: 40px; overflow: hidden; border-radius: 50%; background: #000; }
.cc-avatar img { width: 100%; height: 100%; object-fit: cover; }
.cc-avatar--icon { color: #9aa3ff; background: rgba(88,101,242,.12); }
.cc-avatar--icon svg { width: 19px; height: 19px; }
.cc-account-text { display: grid; flex: 1; gap: 3px; min-width: 0; }
.cc-account-text strong { overflow: hidden; font-size: .84rem; text-overflow: ellipsis; white-space: nowrap; }
.cc-account-text small { overflow: hidden; color: var(--muted); font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }
.cc-unlink, .cc-link-button { display: inline-flex; flex: none; align-items: center; gap: 7px; padding: 9px 14px; border: 0; border-radius: 9px; color: #fff; background: #ff7c30; font: 700 .74rem/1 Inter, system-ui, sans-serif; text-decoration: none; cursor: pointer; transition: background .2s ease, transform .2s ease; }
.cc-unlink:hover, .cc-link-button:hover { background: #ff8a46; transform: translateY(-1px); }
.cc-unlink svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cc-check { display: flex; align-items: center; gap: 10px; width: fit-content; color: #e6e4ec; font-size: .8rem; font-weight: 600; cursor: pointer; user-select: none; }
.cc-check input { position: absolute; opacity: 0; pointer-events: none; }
.cc-box { display: grid; flex: none; place-items: center; width: 18px; height: 18px; border: 1.5px solid rgba(255,255,255,.28); border-radius: 5px; background: rgba(255,255,255,.03); transition: background .18s ease, border-color .18s ease; }
.cc-box svg { width: 12px; height: 12px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transform: scale(.5); transition: opacity .15s ease, transform .2s cubic-bezier(.2,.9,.3,1.4); }
.cc-check:hover .cc-box { border-color: rgba(255,255,255,.5); }
.cc-check input:checked + .cc-box { border-color: #ff7c30; background: #ff7c30; }
.cc-check input:checked + .cc-box svg { opacity: 1; transform: scale(1); }
.cc-check input:focus-visible + .cc-box { outline: 2px solid #ff7c30; outline-offset: 2px; }
.cc-note { margin: 7px 0 0 28px; color: var(--muted); font-size: .66rem; }
.cc-note a, .cc-field small a { color: #ff9d64; }
.cc-field { display: grid; gap: 7px; color: #e6e4ec; font-size: .78rem; font-weight: 600; }
.cc-field small { color: var(--muted); font-size: .66rem; font-weight: 500; }
.cc-input { position: relative; display: block; }
.cc-input > svg { position: absolute; top: 50%; left: 12px; width: 15px; height: 15px; color: #6f6d78; transform: translateY(-50%); pointer-events: none; }
.cc-input input { width: 100%; padding-left: 36px !important; }
.conn-card--soon { min-height: 120px; }
.cc-soon { margin: 0; color: #bdbbc6; font-size: .8rem; line-height: 1.55; }
.conn-card.premium-locked .premium-lock { border-radius: inherit; }

/* ---- Responsive polish ---- */
/* Hidden checkboxes used for custom switches/checks must not stretch the page sideways */
.cc-check, .badge-master, .switch-control, .badge-option, .agreement { position: relative; }
.cc-check input, .badge-master input, .switch-control input, .badge-option input { width: 1px !important; height: 1px !important; min-width: 0 !important; margin: 0 !important; padding: 0 !important; top: 50%; left: 0; }
html, body { overflow-x: clip; }
/* Phones: 16px inputs so iPhone doesn't zoom in when you tap a field */
@media (max-width: 760px), (pointer: coarse) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="range"]), select, textarea, .tw-input, .lp-search input { font-size: 16px !important; }
}
@media (max-width: 760px) {
  .cc-account { flex-wrap: wrap; }
  .cc-account .cc-unlink, .cc-account .cc-link-button { justify-content: center; width: 100%; }
  .conn-card { padding: 16px; }
  .modal { width: 100% !important; max-height: calc(100dvh - 24px); }
  .fade-toast { bottom: max(16px, env(safe-area-inset-bottom)); }
}
@media (hover: none) { .premium-lock__button:hover, .cc-unlink:hover, .cc-link-button:hover { transform: none; } }
/* Visually-hidden inputs behind custom controls: keep them 1px so they never widen the page */
.timezone-toggle, .layout-options label, .radio-pill, .toggle-list > label, .owned-badge, .behavior-options label { position: relative; }
.timezone-toggle input, .layout-options input, .radio-pill input, .toggle-list > label input, .owned-badge input, .behavior-options input, .platform-picker input { width: 1px !important; height: 1px !important; min-width: 0 !important; margin: 0 !important; padding: 0 !important; }
/* With the menu open, move the button clear of the drawer so it never covers the logo */
.mobile-menu.is-open { right: max(12px, env(safe-area-inset-right)); left: auto; z-index: 46; }

/* ---- Sliders: no glow or scaling while dragging ---- */
input[type="range"]:hover::-webkit-slider-thumb,
input[type="range"]:focus-visible::-webkit-slider-thumb,
input[type="range"]:active::-webkit-slider-thumb { box-shadow: none; transform: none; }
input[type="range"]:active::-webkit-slider-runnable-track { box-shadow: none; filter: none; }
input[type="range"]:hover::-moz-range-thumb,
input[type="range"]:active::-moz-range-thumb { box-shadow: none; transform: none; }
input[type="range"]:active::-moz-range-track, input[type="range"]:active::-moz-range-progress { box-shadow: none; filter: none; }
.range-grid label:has(input[type="range"]:active) output { color: inherit; text-shadow: none; }

/* ---- Connections cards line up evenly ---- */
.conn-grid { align-items: stretch; }
.conn-card { align-content: start; gap: 13px; }
.conn-card > .cc-field:last-child, .conn-card > .cc-soon { margin-top: auto; }

.admin-user-row span { min-width: 0; }
.admin-user-badges { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.admin-user-badges b { padding: 2px 7px; border-radius: 5px; color: #ffb184; background: rgba(255,124,48,.1); font-size: .6rem; font-weight: 700; }
.admin-note { margin: 2px 0 0; color: var(--muted); font-size: .68rem; line-height: 1.5; }

/* ---- Connections: brand logos, simpler fields ---- */
.cc-logo, .cc-avatar--icon { display: grid; flex: none; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 10px; color: #f1f0f5; background: rgba(255,255,255,.04); }
.cc-logo svg, .cc-avatar--icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.cc-logo .social-fill, .cc-avatar--icon .social-fill { fill: currentColor; stroke: none; }
.cc-avatar--icon { width: 40px; height: 40px; border-radius: 50%; }
.cc-input input { padding-left: 14px !important; }
.cc-input > svg { display: none; }
.cc-head { gap: 11px; margin-bottom: 2px; }

/* ---- Admin: compact cards ---- */
.admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; max-width: 900px; }
.admin-grid > .panel { display: grid; gap: 12px; align-content: start; padding: 20px; }
.admin-grid > .panel:last-child { grid-column: 1 / -1; }
.admin-grid .panel-title { margin-bottom: 2px; }
.admin-grid label { display: grid; gap: 7px; font-size: .76rem; font-weight: 600; }
.admin-grid .admin-actions { gap: 8px; margin-top: 2px; }
.admin-grid .admin-actions button { min-height: 38px; padding: 0 16px; font-size: .76rem; }
@media (max-width: 860px) { .admin-grid { grid-template-columns: 1fr; } }

/* ---- Analytics ---- */
.range-switch { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: rgba(0,0,0,.25); }
.range-switch button { padding: 7px 14px; border: 0; border-radius: 8px; color: var(--muted); background: transparent; font: 600 .74rem/1 Inter, system-ui, sans-serif; cursor: pointer; transition: color .2s ease, background .2s ease; }
.range-switch button:hover { color: var(--text); }
.range-switch button.is-active { color: #fff; background: rgba(255,255,255,.08); }
.an-panel { padding: 0; overflow: hidden; }
.an-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.an-stats > div { display: grid; gap: 5px; padding: 20px 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.an-stats > div:last-child { border-right: 0; }
.an-stats small { color: var(--muted); font-size: .7rem; font-weight: 600; letter-spacing: .02em; }
.an-stats strong { font-size: 1.7rem; font-weight: 750; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.an-stats em { color: #5f5d68; font-size: .66rem; font-style: normal; }
.an-chart { position: relative; padding: 14px 20px 8px; }
.an-chart svg { display: block; width: 100%; height: 170px; }
.an-grid line { stroke: rgba(255,255,255,.055); stroke-width: 1; }
.an-line { fill: none; stroke: #ff7c30; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.an-xlabels { position: relative; height: 22px; margin-top: 6px; }
.an-xlabels span { position: absolute; top: 0; color: #5f5d68; font-size: .68rem; transform: translateX(-50%); white-space: nowrap; }
.an-cursor { stroke: rgba(255,255,255,.18); stroke-width: 1; vector-effect: non-scaling-stroke; transition: opacity .15s ease; }
.an-dot { position: absolute; width: 9px; height: 9px; border: 2px solid #0d0d12; border-radius: 50%; background: #ff7c30; pointer-events: none; transform: translate(-50%, -50%); }
.an-dot[hidden] { display: none; }
.an-tooltip { position: absolute; top: 6px; z-index: 2; display: grid; gap: 2px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 9px; background: #101016; box-shadow: 0 10px 28px rgba(0,0,0,.45); pointer-events: none; text-align: center; transform: translateX(-50%); }
.an-tooltip[hidden] { display: none; }
.an-tooltip b { font-size: .78rem; }
.an-tooltip span { color: var(--muted); font-size: .66rem; }
.an-links { margin-top: 16px; }
.an-link-row { display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 12px; padding: 11px 0; }
.an-link-row + .an-link-row { border-top: 1px solid rgba(255,255,255,.04); }
.an-link-row .social-mark { width: 34px; height: 34px; border-radius: 9px; }
.an-link-row .social-mark svg { width: 16px; height: 16px; }
.an-link-body { display: grid; gap: 7px; min-width: 0; }
.an-link-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.an-link-top b { overflow: hidden; font-size: .82rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.an-link-top i { flex: none; color: var(--muted); font-size: .72rem; font-style: normal; font-variant-numeric: tabular-nums; }
.an-bar { display: block; height: 4px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.06); }
.an-bar span { display: block; height: 100%; min-width: 4px; border-radius: 999px; background: linear-gradient(90deg,#ff7c30,#ffa268); }
.analytics-empty { margin: 8px 0; color: var(--muted); font-size: .8rem; }
@media (max-width: 760px) {
  .an-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .an-stats > div { padding: 15px 16px; }
  .an-stats > div:nth-child(2n) { border-right: 0; }
  .an-stats strong { font-size: 1.4rem; }
  .an-chart svg { height: 150px; }
}
.clean-select__menu { display: flex; flex-direction: column; max-height: 340px; padding: 0; overflow: hidden; background: #000; }
.clean-select__scroll { flex: 1; min-height: 0; padding: 6px; overflow-y: auto; overscroll-behavior: contain; }
.clean-select__scroll::-webkit-scrollbar { width: 7px; }
.clean-select__scroll::-webkit-scrollbar-thumb { border: 2px solid #000; border-radius: 99px; background: #46434f; }
.clean-select__search { order: -1; display: flex; flex: none; align-items: center; gap: 8px; padding: 0 12px; border-bottom: 1px solid rgba(255,255,255,.08); background: #000; }
.clean-select__search svg { flex: none; width: 14px; height: 14px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.clean-select__search input { flex: 1; min-width: 0; height: 40px; padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; font-size: .78rem; outline: none; }
.clean-select__option[hidden] { display: none; }

/* ---- Analytics: link list sits neatly inside its card ---- */
.an-links { padding: 20px 22px 8px; }
.an-links .panel-title { margin-bottom: 6px; }
.an-link-row { padding: 12px 0; }
.an-link-row:first-child { padding-top: 4px; }
.an-link-row:last-child { padding-bottom: 16px; }
.analytics-empty { margin: 4px 0 14px; padding: 18px 0; color: var(--muted); font-size: .8rem; text-align: center; }

/* ---- Staff panel ---- */
.staff-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; max-width: 940px; }
.staff-grid > .panel { display: grid; gap: 12px; align-content: start; padding: 20px; }
.staff-grid > .panel:last-child { grid-column: 1 / -1; }
.staff-grid label { display: grid; gap: 7px; font-size: .76rem; font-weight: 600; }
.staff-result .panel-title b { padding: 3px 8px; border-radius: 6px; color: #7fe0a8; background: rgba(35,165,90,.12); font-size: .58rem; font-weight: 800; }
.staff-result .panel-title b.is-hidden-tag { color: #ff9aae; background: rgba(242,63,67,.12); }
.staff-facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; }
.staff-facts dt { color: var(--muted); font-size: .7rem; }
.staff-facts dd { margin: 0; overflow: hidden; font-size: .74rem; text-overflow: ellipsis; white-space: nowrap; }
.staff-media { display: flex; flex-wrap: wrap; gap: 8px; }
.staff-media .secondary-button { min-height: 32px; padding: 0 12px; font-size: .72rem; }
.staff-log { display: grid; gap: 8px; max-height: 320px; overflow-y: auto; }
.staff-log-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; }
.staff-log-row span { display: grid; gap: 2px; min-width: 0; }
.staff-log-row strong { font-size: .76rem; }
.staff-log-row small, .staff-log-row time { color: var(--muted); font-size: .66rem; }
.suspend-banner { border-color: rgba(242,63,67,.3); background: rgba(242,63,67,.06); }
.suspend-banner .verify-banner__icon { color: #ff8da1; background: rgba(242,63,67,.12); }
@media (max-width: 860px) { .staff-grid { grid-template-columns: 1fr; } }

/* ---- Storage bar ---- */
.storage-panel { display: grid; gap: 10px; max-width: 420px; margin-bottom: 16px; padding: 18px 20px; }
.storage-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.storage-head span { display: grid; gap: 3px; }
.storage-head strong { font-size: .84rem; }
.storage-head small { color: var(--muted); font-size: .7rem; }
.storage-head b { color: #d9d7de; font-size: .78rem; font-variant-numeric: tabular-nums; }
.storage-bar { display: block; height: 6px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.07); }
.storage-bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg,#ff7c30,#ffa268); transition: width .3s ease; }
.storage-bar span.is-full { background: linear-gradient(90deg,#f23f43,#ff8da1); }
.storage-note { margin: 0; color: #ff9aae; font-size: .7rem; }
.storage-note[hidden] { display: none; }

/* ---- Ticket replies ---- */
.reply-panel { grid-column: 1 / -1; }
.reply-layout { display: grid; grid-template-columns: 220px 1fr; gap: 16px; }
.reply-list { display: grid; align-content: start; gap: 2px; max-height: 320px; padding-right: 4px; overflow-y: auto; }
.reply-group { margin: 10px 6px 4px; color: #5f5d68; font-size: .58rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.reply-group:first-child { margin-top: 0; }
.reply-item { padding: 8px 10px; border: 0; border-radius: 8px; color: #cfcdd8; background: transparent; font: 500 .76rem/1.3 Inter, system-ui, sans-serif; text-align: left; cursor: pointer; transition: background .15s ease, color .15s ease; }
.reply-item:hover { color: #fff; background: rgba(255,255,255,.05); }
.reply-item.is-active { color: #fff; background: rgba(255,124,48,.12); }
.reply-preview { display: grid; gap: 10px; }
.reply-preview textarea { width: 100%; min-height: 220px; padding: 14px 16px !important; border: 1px solid var(--line); border-radius: 12px; color: var(--text); background: rgba(0,0,0,.28); font: 500 .78rem/1.6 Inter, system-ui, sans-serif; resize: vertical; }
.reply-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.reply-actions small { color: var(--muted); font-size: .68rem; }
@media (max-width: 860px) { .reply-layout { grid-template-columns: 1fr; } .reply-list { max-height: 180px; } }

/* ---- Admin sections ---- */
.admin-section { grid-column: 1 / -1; margin: 6px 2px -4px; color: #5f5d68; font-size: .6rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.admin-section:first-child { margin-top: 0; }
.admin-grid .reply-panel { grid-column: 1 / -1; }
.admin-note.is-error { color: #ff9aae; }

/* Custom cursor preview */
.upload-preview.has-image { background-position: center; background-repeat: no-repeat; background-size: contain; }
.upload-preview.has-image svg { display: none; }
.preview-avatar.upload-preview { color: #9a98a4; background: rgba(255,255,255,.04); }
.preview-avatar.upload-preview svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }

/* ---- Appearance: rounder cards and cleaner sliders ---- */
.dashboard-view .panel { border-radius: 18px; }
.range-grid label, .toggle-list > label, .glow-control, .color-grid label, .profile-timezone-card, .conn-card, .upload-panel { border-radius: 16px; }
.color-grid input[type="text"], .color-grid input:not([type="color"]), .dashboard-view input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]), .dashboard-view textarea, .clean-select__trigger { border-radius: 14px; }
.dashboard-view input[type="color"] { border-radius: 12px; }
.primary-button, .secondary-button, .cc-unlink, .cc-link-button, .premium-lock__button, .tw-add, .tw-input, .tw-delete { border-radius: 12px; }

/* sliders: white bar, black knob */
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: linear-gradient(90deg,#ffffff 0,#ffffff var(--range-progress),rgba(255,255,255,.14) var(--range-progress) 100%); box-shadow: none; }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 999px; background: rgba(255,255,255,.14); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 999px; background: #fff; }
input[type="range"]::-webkit-slider-thumb { width: 18px; height: 18px; margin-top: -6px; border: 2px solid #ffffff; border-radius: 50%; background: #000; box-shadow: 0 2px 6px rgba(0,0,0,.5); appearance: none; }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border: 2px solid #ffffff; border-radius: 50%; background: #000; box-shadow: 0 2px 6px rgba(0,0,0,.5); }
input[type="range"]:hover::-webkit-slider-thumb, input[type="range"]:active::-webkit-slider-thumb, input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 2px 6px rgba(0,0,0,.5); transform: none; }
input[type="range"]:active::-webkit-slider-runnable-track { filter: none; box-shadow: none; }

/* ---- Typeface dropdown ---- */
.clean-select__menu { border-radius: 14px; }
.clean-select__trigger { min-height: 46px; }
.clean-select__option { min-height: 42px; padding: 0 12px; border-radius: 10px; font-size: .82rem; }
.clean-select__option.is-selected { color: #fff; background: #ff7c30; }
.clean-select__option.is-selected .clean-select__option-status { color: rgba(255,255,255,.85); }
.clean-select__option.is-selected:hover { background: #ff8a46; }
.clean-select__option[data-premium-option] { color: #7a7883; }
.is-premium-user .clean-select__option[data-premium-option] { color: #a7a4af; }
.clean-select__option[data-premium-option] .clean-select__option-status { color: #ff9d64; }
.is-premium-user .clean-select__option[data-premium-option] .clean-select__option-status { display: none; }

/* ---- Enter screen colour ---- */
.enter-color-block { display: grid; align-content: start; gap: 10px; }
.switch-row { position: relative; display: flex; align-items: center; gap: 11px; min-height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.02); cursor: pointer; }
.switch-row input[type="checkbox"] { position: absolute; width: 1px !important; height: 1px !important; opacity: 0; }
.switch-visual { position: relative; flex: none; width: 40px; height: 22px; border-radius: 999px; background: rgba(255,255,255,.12); transition: background .2s ease; }
.switch-visual::after { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; content: ""; transition: transform .2s cubic-bezier(.2,.8,.2,1); }
.switch-row input:checked + .switch-visual { background: #ff7c30; }
.switch-row input:checked + .switch-visual::after { transform: translateX(18px); }
.switch-row input:focus-visible + .switch-visual { outline: 2px solid #ff7c30; outline-offset: 3px; }
.switch-row b { font-size: .8rem; font-weight: 600; }
.enter-custom { display: grid; gap: 7px; font-size: .76rem; font-weight: 600; }
.enter-custom[hidden] { display: none; }

/* ---- Typeface dropdown: opens upward and stays compact ---- */
.clean-select--up .clean-select__menu { top: auto; bottom: calc(100% + 7px); max-height: 264px; }
.clean-select--up .clean-select__option { min-height: 34px; padding: 0 11px; border-radius: 8px; font-size: .78rem; }
.clean-select--up .clean-select__scroll { padding: 5px; }
[data-view="appearance"] .form-columns { align-items: start; }
.layout-preview { padding-bottom: 58px; }
.layout-options input:checked + .layout-preview { border-color: #ff7c30; box-shadow: 0 0 0 1px #ff7c30; }
.layout-options input:checked + .layout-preview em { color: #0b0b0e; background: #fff; }
.switch-row input:focus:not(:focus-visible) + .switch-visual { outline: none; }
