/* ==========================================================================
   khaleej.bio — dashboard
   ========================================================================== */

body.dash-body {
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
}
body.dash-body .bg-wing { filter: none; opacity: 1; }

.dash {
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  min-height: 100vh;
  transition: grid-template-columns 0.48s var(--ease);
}
.dash.side-in { grid-template-columns: 0 minmax(0, 1fr); }
.dash .side {
  transition: transform 0.48s var(--ease), opacity 0.4s var(--ease);
}
.dash.side-in .side {
  transform: translateX(-100%);
  opacity: 0;
  pointer-events: none;
}
.side-handle { display: none; }
.side-handle {
  position: fixed;
  left: 256px;
  top: 46%;
  z-index: 80;
  width: 28px;
  height: 72px;
  border-radius: 0 14px 14px 0;
  border: 1px solid var(--line);
  border-left: 0;
  background: #0c2436;
  color: #c5e8f4;
  cursor: grab;
  display: grid;
  place-items: center;
  transition: left 0.48s var(--ease), background 0.2s, transform 0.2s, box-shadow 0.3s;
  touch-action: none;
  user-select: none;
}
.side-handle:hover { background: #123044; transform: translateX(2px); }
.side-handle:active, .side-handle.is-drag { cursor: grabbing; transition: background 0.2s; animation: none; }
.dash.side-in .side-handle { left: 0; animation: handlePulse 1.8s ease-in-out infinite; }
.side-handle .ico { width: 16px; height: 16px; transition: transform 0.35s var(--ease); }
.dash.side-in .side-handle .ico { transform: translateX(1px); }
@keyframes handlePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0.08); }
  50% { box-shadow: 0 0 0 8px rgba(255,255,255,0); }
}

/* ---------- sidebar ---------- */
.side {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 18px;
  padding: 22px 16px;
  border-right: 1px solid var(--line);
  background: rgba(4, 16, 26, 0.9);
  backdrop-filter: blur(20px);
  z-index: 60;
}
.side-head { padding: 4px 8px 0; }

.side-nav { display: grid; gap: 3px; align-content: start; overflow-y: auto; }
.side-nav .grp {
  margin: 18px 10px 7px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.side-nav a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border-radius: var(--r-sm);
  font-size: 0.92rem;
  font-weight: 450;
  color: var(--text-dim);
  border: 1px solid transparent;
  transition: all var(--t) var(--ease);
}
.side-nav a .ico { width: 18px; height: 18px; transition: transform var(--t) var(--ease); }
.side-nav a:hover { color: var(--text); background: var(--surface); transform: translateX(3px); }
.side-nav a:hover .ico { transform: scale(1.1); }
.side-nav a.active {
  color: #e8f6fb;
  background: linear-gradient(100deg, rgba(31, 126, 171, 0.42), rgba(12, 40, 58, 0.9));
  border-color: rgba(94, 176, 212, 0.45);
  box-shadow: 0 12px 26px -18px rgba(47, 111, 150, 0.45);
}
.side-nav a.active::before {
  content: "";
  position: absolute;
  left: -16px; top: 50%;
  translate: 0 -50%;
  width: 3px; height: 22px;
  border-radius: 0 3px 3px 0;
  background: #5eb0d4;
}
.side-nav a .tag { margin-left: auto; }

.side-foot { display: grid; gap: 10px; }
.me-card {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: all var(--t) var(--ease);
}
.me-card:hover { border-color: var(--line-2); background: var(--surface-2); }
.me-card .avatar { width: 38px; height: 38px; }
.me-card .mi { min-width: 0; }
.me-card b { display: block; font-size: 0.88rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-card span { font-size: 0.74rem; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.me-card .out {
  margin-left: auto;
  display: grid; place-items: center;
  width: 32px; height: 32px;
  border-radius: 9px;
  color: var(--text-faint);
  transition: all var(--t) var(--ease);
}
.me-card .out:hover { color: #e08a99; background: rgba(194, 86, 106, 0.12); }

/* ---------- main ---------- */
.main { min-width: 0; display: grid; grid-template-rows: auto 1fr; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 55;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px clamp(18px, 3vw, 34px);
  border-bottom: 1px solid var(--line);
  background: rgba(4, 16, 26, 0.86);
  backdrop-filter: blur(18px);
}
.topbar h1 { font-size: 1.22rem; letter-spacing: -0.035em; }
.topbar .sub { font-size: 0.8rem; color: var(--text-faint); margin-top: 2px; }
.topbar-actions { display: flex; align-items: center; gap: 9px; }

.url-pill {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 38px;
  padding: 0 7px 0 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.85rem;
  color: var(--text-dim);
  transition: all var(--t) var(--ease);
}
.url-pill:hover { border-color: rgba(180, 180, 180, 0.45); color: var(--text); }
.url-pill b { color: var(--text); font-weight: 500; }
.url-pill button {
  display: grid; place-items: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  color: var(--text-faint);
  transition: all var(--t) var(--ease);
}
.url-pill button:hover { color: #fff; background: var(--brand-500); }

.burger-dash {
  display: none;
  width: 38px; height: 38px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--surface);
  place-items: center;
  color: var(--text);
}

.content { padding: 28px clamp(18px, 3vw, 34px) 60px; }

/* ---------- panels ---------- */
.panel { display: none; }
.panel.on { display: block; animation: panelIn 0.52s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateX(32px); } }
.panel.on .panel-head { animation: cardUp 0.45s var(--ease) both; }
.panel.on .d-card {
  animation: cardUp 0.55s var(--ease) both;
}
.panel.on .d-card:nth-child(2) { animation-delay: 0.05s; }
.panel.on .d-card:nth-child(3) { animation-delay: 0.1s; }
.panel.on .d-card:nth-child(4) { animation-delay: 0.15s; }
@keyframes cardUp { from { opacity: 0; transform: translateY(16px); } }

.panel-head { margin-bottom: 22px; }
.panel-head h2 { font-size: 1.5rem; letter-spacing: -0.04em; }
.panel-head p { margin-top: 6px; font-size: 0.92rem; color: var(--text-dim); font-weight: 300; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(500px, 42%); gap: 22px; align-items: start; }
.preview-host { align-self: stretch; min-height: 100%; }

/* ---------- cards & kpis ---------- */
.d-card {
  position: relative;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: linear-gradient(168deg, rgba(12, 40, 58, 0.9), rgba(6, 18, 30, 0.84));
  backdrop-filter: blur(12px);
  overflow: hidden;
  isolation: isolate;
  transition: border-color var(--t) var(--ease), transform var(--t) var(--ease), background var(--t);
}
.d-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(180, 180, 180, 0.12), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.d-card:hover::before { opacity: 1; }
.d-card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.d-pad { padding: 22px; }
.d-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}
.d-head h3 { font-size: 1rem; letter-spacing: -0.02em; }
#panel-handles .d-head { flex-wrap: wrap; }
#purgeSandbox { flex: none; }
.d-head p { font-size: 0.8rem; color: var(--text-faint); margin-top: 2px; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.kpi { padding: 20px; }
.kpi .top { display: flex; align-items: center; justify-content: space-between; }
.kpi .ki {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 11px;
  border: 1px solid rgba(47, 111, 150, 0.16);
  background: linear-gradient(160deg, rgba(31, 126, 171, 0.28), rgba(8, 28, 42, 0.8));
  color: #c5e8f4;
  transition: transform 0.45s var(--ease);
}
.kpi:hover .ki { transform: rotate(-8deg) scale(1.06); }
.kpi .v {
  font-size: 1.95rem;
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.1;
  margin-top: 16px;
}
.kpi .l { font-size: 0.8rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 4px; }
.delta { display: inline-flex; align-items: center; gap: 4px; font-size: 0.76rem; font-weight: 500; }
.delta.up { color: #6fc9a6; }
.delta.down { color: #e08a99; }
.delta .ico { width: 13px; height: 13px; }

/* ---------- chart ---------- */
.chart-box { padding: 10px 14px 14px; }
.chart-svg { width: 100%; height: 230px; display: block; overflow: visible; }
.chart-svg .grid-l { stroke: rgba(170, 170, 170, 0.1); stroke-width: 1; }
/* .area fill and .line stroke are gradients assigned per-chart in dashboard.js */
.chart-svg .line { fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.chart-svg .pt { fill: var(--brand-200); stroke: var(--bg); stroke-width: 2.5; opacity: 0; transition: opacity 0.2s; }
.chart-svg .pt.on { opacity: 1; }
.chart-svg .hair { stroke: rgba(200, 200, 200, 0.5); stroke-width: 1; stroke-dasharray: 3 3; opacity: 0; }
.chart-svg .hair.on { opacity: 1; }
.chart-axis { display: flex; justify-content: space-between; padding: 8px 2px 0; font-size: 0.72rem; color: var(--text-faint); }

.chart-tip {
  position: absolute;
  z-index: 5;
  padding: 7px 11px;
  border-radius: 9px;
  border: 1px solid var(--line-2);
  background: rgba(14, 14, 14, 0.96);
  font-size: 0.78rem;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -130%);
  transition: opacity 0.2s var(--ease);
  box-shadow: var(--sh-2);
}
.chart-tip.on { opacity: 1; }
.chart-tip b { color: var(--brand-200); }

.seg {
  display: inline-flex;
  gap: 3px;
  padding: 4px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--surface);
}
.seg button {
  padding: 6px 14px;
  border-radius: var(--r-pill);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: all var(--t) var(--ease);
}
.seg button.on { color: #fff; background: var(--brand-600); box-shadow: 0 8px 18px -10px rgba(0, 0, 0, 1); }

/* ---------- lists / tables ---------- */
.rowlist { display: grid; }
.rowlist > li {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
  transition: background-color var(--t) var(--ease);
}
.rowlist > li:last-child { border-bottom: none; }
.rowlist > li:hover { background: var(--surface); }
.rowlist .ri {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--mist-400);
  flex: none;
}
.rowlist .rt { min-width: 0; flex: 1; }
.rowlist .rt b { display: block; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rowlist .rt span { font-size: 0.78rem; color: var(--text-faint); }
.rowlist .rv { font-weight: 600; font-variant-numeric: tabular-nums; }

.bar-row { display: grid; gap: 7px; }
.bar-row .bl { display: flex; justify-content: space-between; font-size: 0.85rem; }
.bar-row .bl span { color: var(--text-dim); }
.bar-row .bl b { font-variant-numeric: tabular-nums; }
.bar-track { height: 6px; border-radius: 9px; background: var(--surface-3); overflow: hidden; }
.bar-track i {
  display: block; height: 100%;
  border-radius: 9px;
  background: linear-gradient(90deg, var(--brand-500), var(--mist-500));
  width: 0;
  transition: width 0.9s var(--ease);
}
.stack-list { display: grid; gap: 16px; padding: 22px; }

/* ---------- link editor ---------- */
.link-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: rgba(8, 8, 8, 0.5);
  transition: all var(--t) var(--ease);
}
.link-item:hover { border-color: var(--line-2); background: var(--surface); }
.link-item.dragging { opacity: 0.45; border-style: dashed; }
.link-item.over { border-color: var(--brand-300); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12); }
.link-item .handle {
  color: var(--text-faint);
  cursor: grab;
  display: grid;
  place-items: center;
  width: 24px; height: 30px;
  flex: none;
}
.link-item .handle:active { cursor: grabbing; }
.link-item .licon {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--mist-400);
  flex: none;
}
.link-fields { flex: 1; display: grid; grid-template-columns: 1fr 1.25fr; gap: 9px; min-width: 0; }
.link-fields input {
  width: 100%;
  height: 36px;
  padding: 0 11px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: var(--surface);
  font-size: 0.85rem;
  transition: all var(--t) var(--ease);
}
.link-fields input:hover { border-color: var(--line); }
.link-fields input:focus { border-color: rgba(180, 180, 180, 0.5); background: rgba(28, 28, 28, 0.7); }
.link-actions { display: flex; align-items: center; gap: 5px; flex: none; }
.icon-btn {
  display: grid; place-items: center;
  width: 32px; height: 32px;
  border-radius: 9px;
  color: var(--text-faint);
  transition: all var(--t) var(--ease);
}
.icon-btn:hover { color: var(--text); background: var(--surface-2); }
.icon-btn.danger:hover { color: #e08a99; background: rgba(194, 86, 106, 0.14); }
.link-clicks { font-size: 0.74rem; color: var(--text-faint); white-space: nowrap; font-variant-numeric: tabular-nums; }

.empty {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 46px 20px;
  text-align: center;
  border-radius: var(--r-md);
  border: 1px dashed var(--line-2);
  color: var(--text-faint);
}
.empty .ico { width: 34px; height: 34px; color: var(--mist-600); }
.empty p { font-size: 0.9rem; max-width: 36ch; }

/* ---------- appearance controls ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ctl-group { display: grid; gap: 16px; padding: 22px; }

.media-row { display: flex; gap: 16px; align-items: center; }
.media-row .avatar { width: 78px; height: 78px; transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1); }
.avatar.is-empty { display: none; }
.media-row .mr-txt { flex: 1; min-width: 0; }
.media-row h4 { font-size: 0.95rem; }
.media-row p { font-size: 0.8rem; color: var(--text-faint); margin-top: 3px; }
.media-row .btns { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }

.banner-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.banner-label label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0.01em;
}
.banner-label .btn { height: 32px; }
.banner-drop {
  position: relative;
  height: 112px;
  border-radius: var(--r-sm);
  border: 1px dashed var(--line-2);
  overflow: hidden;
  display: grid;
  place-items: center;
  transition: all var(--t) var(--ease);
  cursor: pointer;
}
.banner-drop:hover { border-color: var(--brand-300); }
.banner-drop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner-drop .bd-cta {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--mist-300);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.swatch-row { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; }
.swatch {
  position: relative;
  width: 34px; height: 34px;
  border-radius: 10px;
  border: 1px solid var(--line);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.swatch:hover { transform: translateY(-4px) scale(1.08); }
.swatch.on { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--brand-300); }
.color-input {
  width: 46px; height: 34px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: none;
  cursor: pointer;
}
.color-input::-webkit-color-swatch-wrapper { padding: 3px; }
.color-input::-webkit-color-swatch { border: none; border-radius: 7px; }

.opt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 10px; }
.opt {
  display: grid;
  justify-items: center;
  gap: 9px;
  padding: 15px 10px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.82rem;
  color: var(--text-dim);
  transition: all var(--t) var(--ease);
}
.opt:hover { border-color: var(--line-2); transform: translateY(-3px); color: var(--text); }
.opt.on {
  border-color: rgba(107, 147, 245, 0.72);
  background: rgba(29, 78, 216, 0.34);
  color: #eef3ff;
  box-shadow: 0 12px 26px -16px rgba(59, 110, 240, 0.75);
}
.look-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.look-grid .opt {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 12px;
  gap: 0;
  border-radius: 14px;
  font-weight: 500;
  transform: none;
}
.look-grid .opt:hover { transform: none; }
.soc-card-tools { display: flex; align-items: center; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.soc-card-tools .soc-look { flex: 1; min-width: 180px; margin-top: 0; }
.soc-card-tools .glass-flag { margin-left: 0; }
.glass-flag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  font-size: 0.78rem;
  color: var(--text-faint);
}
.cover-pick { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cover-pick img {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: contain;
  flex: none;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.opt .ico { width: 22px; height: 22px; }

.toggle-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.toggle-row:last-child { border-bottom: none; }
.toggle-row .tr-txt { flex: 1; min-width: 0; }
.toggle-row b { display: block; font-size: 0.9rem; font-weight: 500; }
.toggle-row span { font-size: 0.79rem; color: var(--text-faint); }

/* ---------- live preview ---------- */
.preview-pane {
  position: sticky;
  top: 16px;
  z-index: 5;
  display: grid;
  gap: 10px;
  align-self: start;
  height: fit-content;
  max-height: calc(100vh - 28px);
}
.preview-frame {
  border-radius: var(--r-lg);
  border: 1px solid var(--line-2);
  background: rgba(16, 12, 9, 0.9);
  overflow: hidden;
  box-shadow: 0 40px 80px -44px rgba(0, 0, 0, 1);
}
.preview-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.preview-bar .dots { display: flex; gap: 5px; }
.preview-bar .dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--surface-3); }
.preview-bar .u {
  flex: 1;
  text-align: center;
  font-size: 0.74rem;
  color: var(--text-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kg-page-bg { position: relative; }
.kg-page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 5, var(--kg-bg-dim, 0));
  pointer-events: none;
  z-index: 2;
}
.kg-page-bg[data-bg-type="none"]::after { display: none; }
.kg-page-bg > * { position: relative; z-index: 3; }
.kg-page-bg > .fx-layer { position: absolute; z-index: 0; }

.preview-scroll {
  position: relative;
  height: min(70vh, calc(100vh - 150px));
  overflow: hidden;
  isolation: isolate;
  background-color: #070707;
  background-size: cover;
  background-position: center;
}
.preview-scroll[data-bg-type="none"],
.preview-scroll:not([data-bg-type]) {
  background:
    radial-gradient(ellipse 90% 45% at 50% -5%, color-mix(in srgb, var(--pv-accent, #ffffff) 42%, transparent), transparent 70%),
    radial-gradient(ellipse 70% 40% at 0% 105%, color-mix(in srgb, var(--pv-accent, #ffffff) 22%, transparent), transparent 70%),
    radial-gradient(ellipse 120% 90% at 50% 10%, transparent 40%, rgba(0, 0, 0, 0.6) 100%),
    #070707;
}
.preview-scroll .pv {
  position: relative;
  z-index: 3;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.14) transparent;
}
.preview-scroll .ov { min-height: 100%; }
.preview-scroll.is-desktop .pv {
  width: var(--pv-desk-w, 1280px);
  height: calc(100% / var(--pv-scale, 1));
  transform: scale(var(--pv-scale, 1));
  transform-origin: 0 0;
}
.preview-scroll:not(.is-desktop) .pv { width: min(100%, 400px); margin: 0 auto; }
.preview-bar .pv-device {
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  margin: -4px 0;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}
.preview-bar .pv-device button {
  display: grid;
  place-items: center;
  width: 24px;
  height: 22px;
  border-radius: 7px;
  color: var(--text-faint);
  transition: color 0.25s, background 0.25s;
}
.preview-bar .pv-device button:hover { color: var(--text); }
.preview-bar .pv-device button.on { color: var(--text); background: rgba(255, 255, 255, 0.1); }
.preview-bar .pv-device .ico { width: 13px; height: 13px; }
.preview-bar .pv-replay {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin: -4px -6px -4px 0;
  border-radius: 8px;
  color: var(--text-faint);
  transition: color 0.25s, background 0.25s, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.preview-bar .pv-replay:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.preview-bar .pv-replay:active { transform: rotate(-180deg); }
.preview-bar .pv-replay .ico { width: 14px; height: 14px; }

.hex-input {
  width: 92px;
  height: 34px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}
.range {
  width: 100%;
  accent-color: #7EC8E3;
  height: 22px;
}
.pv-media-host.is-file {
  position: absolute;
  width: 220px;
  height: 124px;
  left: -9999px;
  aspect-ratio: auto;
  opacity: 0;
  pointer-events: none;
  margin: 0;
  border: 0;
}
.pv-media-host.is-spotify {
  aspect-ratio: auto;
  height: 152px;
  background: #121212;
}
.pv-media-host.is-soundcloud {
  aspect-ratio: auto;
  height: 166px;
  background: #111;
}
.player-note {
  display: grid;
  place-items: center;
  height: 100%;
  margin: 0;
  padding: 16px;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.82rem;
}

/* profile render (shared with the public page) */
.pv { position: relative; }
.pv-banner { height: 112px; position: relative; overflow: hidden; }
.pv-banner img { width: 100%; height: 100%; object-fit: cover; }
.pv-banner::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(8, 8, 8, 0.92));
}
.pv-body { padding: 0 22px 26px; margin-top: -38px; position: relative; }
.pv-body > .avatar { width: 78px; height: 78px; border: 3px solid rgba(8, 8, 8, 0.9); }
.pv-name { display: flex; align-items: center; gap: 7px; margin-top: 13px; font-size: 1.25rem; font-weight: 600; letter-spacing: -0.03em; }
.pv-name .ico { width: 17px; height: 17px; color: var(--pv-accent, var(--brand-300)); }
.pv-handle { font-size: 0.84rem; color: var(--text-faint); }
.pv-meta { display: flex; gap: 14px; margin-top: 9px; font-size: 0.76rem; color: var(--text-faint); flex-wrap: wrap; }
.pv-meta span { display: inline-flex; align-items: center; gap: 5px; }
.pv-meta .ico { width: 13px; height: 13px; }
.pv-bio { margin: 13px 0 16px; font-size: 0.88rem; color: var(--text-dim); line-height: 1.6; font-weight: 300; white-space: pre-wrap; }
.pv-socials { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.pv-socials a {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-dim);
  transition: all var(--t) var(--ease);
}
.pv-socials a:hover { transform: translateY(-4px) scale(1.07); }
.pv-media-host {
  display: none;
  width: 100%;
  margin: 0 0 10px;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid var(--line);
}
.pv-player.has-media { flex-wrap: wrap; }
.pv-player.has-media .pv-media-host { display: none; }
.pv-player.audio-only .pv-media-host { display: none !important; }
.pv-links { display: grid; gap: 9px; }
.pv-links.grid { grid-template-columns: 1fr 1fr; }
.pv-link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.88rem;
  color: var(--text);
  overflow: hidden;
  position: relative;
  transition: all var(--t) var(--ease);
}
.pv-link .ico { width: 16px; height: 16px; color: var(--pv-accent, var(--brand-300)); }
.pv-link .arr { margin-left: auto; width: 14px; height: 14px; color: var(--text-faint); transition: transform var(--t) var(--ease); }
.pv-link:hover {
  transform: translateX(4px);
  border-color: var(--pv-accent, var(--brand-300));
  background: color-mix(in srgb, var(--pv-accent, #ffffff) 26%, transparent);
}
.pv-link:hover .arr { transform: translateX(4px); }
.pv-player {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 12px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--surface);
}
.pv-player .art {
  width: 44px; height: 44px;
  border-radius: 10px;
  overflow: hidden;
  flex: none;
  border: 1px solid var(--line);
}
.pv-player .pm { flex: 1; min-width: 0; }
.pv-player b { display: block; font-size: 0.85rem; font-weight: 500; color: var(--text); }
.pv-player span { font-size: 0.75rem; color: var(--text-faint); }
.pv-player .pp {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--pv-accent, var(--brand-500));
  color: #fff;
  flex: none;
  transition: transform var(--t) var(--ease);
}
.pv-player .pp:hover { transform: scale(1.1); }
.pv-foot { margin-top: 18px; text-align: center; font-size: 0.72rem; color: var(--text-faint); }
.pv-views { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- settings ---------- */
.danger-zone { border-color: rgba(194, 86, 106, 0.3); }
.danger-zone .d-head { border-bottom-color: rgba(194, 86, 106, 0.22); }
.danger-zone h3 { color: #e8a2ad; }
.btn-danger {
  background: rgba(194, 86, 106, 0.14);
  border: 1px solid rgba(194, 86, 106, 0.42);
  color: #f0b6c0;
}
.btn-danger:hover { background: rgba(194, 86, 106, 0.26); border-color: rgba(194, 86, 106, 0.7); }

.plan-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px;
  flex-wrap: wrap;
}
.plan-card .pc-ico {
  display: grid; place-items: center;
  width: 52px; height: 52px;
  border-radius: 15px;
  background: linear-gradient(160deg, var(--brand-400), var(--brand-700));
  border: 1px solid rgba(200, 200, 200, 0.3);
  color: #fff;
}
.plan-card .pc-t { flex: 1; min-width: 180px; }
.plan-card h3 { font-size: 1.08rem; }
.plan-card p { font-size: 0.85rem; color: var(--text-dim); margin-top: 4px; }

.conn-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
}
.conn-row:last-child { border-bottom: none; }
.conn-row .ci {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  flex: none;
}
.conn-row .ci.dsc { background: #fff; color: #000; border-color: transparent; }
.conn-row .ct { flex: 1; min-width: 0; }
.conn-row b { display: block; font-size: 0.92rem; }
.conn-row span { font-size: 0.79rem; color: var(--text-faint); }

/* ---------- overview ---------- */
.dash-home {
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
/* Only the dashboard overview stage stretches; profile .ov-stage must stay centered. */
.dash-home > .ov-stage { align-self: stretch; }
.ov-stage > .preview-host { height: 100%; }
.ov-side { display: grid; gap: 20px; padding-top: 4px; }
.ov-id { display: flex; align-items: center; gap: 14px; min-width: 0; }
.ov-id .avatar { width: 54px; height: 54px; flex: none; border: 1px solid var(--line); }
.ov-id h2 { font-size: 1.28rem; letter-spacing: -0.04em; font-weight: 600; }
.ov-id p {
  margin-top: 3px;
  font-size: 0.82rem;
  color: var(--text-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ov-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.ov-stats div + div { padding-left: 12px; border-left: 1px solid var(--line); }
.ov-stats dt {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.ov-stats dd {
  margin: 5px 0 0;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.ov-check-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--text-faint);
}
.ov-check-top b { color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; }
.ov-bar {
  height: 2px;
  margin: 10px 0 8px;
  border-radius: 99px;
  background: rgba(126, 200, 227, 0.28);
  overflow: hidden;
}
.ov-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: #5eb0d4;
  transition: width 0.45s var(--ease);
}
.ov-links {
  display: grid;
  padding-top: 6px;
  border-top: 1px solid var(--line);
}
.ov-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  font-size: 0.9rem;
  color: var(--text-dim);
}
.ov-links a::after { content: "›"; color: var(--text-faint); font-size: 1rem; line-height: 1; }
.ov-links a:hover { color: var(--text); }
.ov-stage .preview-pane { position: sticky; top: 16px; max-width: none; }
.ov-stage .preview-pane > .faint { display: none; }
.ov-stage .preview-scroll { height: min(72vh, calc(100vh - 150px)); }

/* ---------- completeness ---------- */
.complete { padding: 20px 22px; display: grid; gap: 13px; }
.complete-top { display: flex; align-items: baseline; justify-content: space-between; }
.complete-top b { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.04em; }
.complete-steps { display: grid; gap: 2px; }
.complete-steps li { font-size: 0.86rem; color: var(--text-dim); }
.complete-steps a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 2px;
  border-radius: 8px;
  color: inherit;
}
.complete-steps a:hover { color: var(--text); }
.complete-steps .tick {
  display: grid; place-items: center;
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  color: transparent;
  flex: none;
}
.complete-steps .tick .ico { width: 10px; height: 10px; stroke-width: 3; }
.complete-steps li.done .tick { background: #5eb0d4; border-color: #5eb0d4; color: #fff; }
.complete-steps li.done { color: var(--text-faint); }
.ov-stage .preview-frame { box-shadow: 0 28px 70px -46px rgba(0, 0, 0, 0.9); }

/* ---------- modal ---------- */
.modal-back {
  position: fixed;
  inset: 0;
  z-index: 9500;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(5, 5, 5, 0.72);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
}
.modal-back.on { opacity: 1; visibility: visible; }
.modal {
  width: min(430px, 100%);
  padding: 26px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line-2);
  background: rgba(14, 14, 14, 0.96);
  box-shadow: var(--sh-2);
  transform: translateY(18px) scale(0.97);
  transition: transform 0.4s var(--ease);
}
.modal-back.on .modal { transform: none; }
.modal h3 { font-size: 1.2rem; letter-spacing: -0.03em; }
.modal > p { margin: 9px 0 20px; font-size: 0.9rem; color: var(--text-dim); font-weight: 300; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; flex-wrap: wrap; }

/* ---------- responsive ---------- */
@media (max-width: 1240px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(280px, 40%); }
  .preview-pane { position: sticky; top: 12px; max-width: none; }
  .preview-scroll,
  .ov-stage .preview-scroll { height: min(70vh, calc(100vh - 140px)); }
  .kpis { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 1100px) {
  .dash-home { grid-template-columns: 1fr; gap: 22px; }
  .ov-stage { order: -1; }
  .ov-stage .preview-pane { position: sticky; top: 12px; }
  .ov-stage .preview-scroll { height: min(68vh, calc(100vh - 140px)); }
}
@media (max-width: 980px) {
  .dash, .dash.side-in { grid-template-columns: 1fr; }
  .side-handle { display: none; }
  .dash.side-in .side { transform: translateX(-100%); opacity: 1; }
  .side {
    position: fixed;
    inset: 0 auto 0 0;
    width: 272px;
    transform: translateX(-100%);
    transition: transform 0.42s var(--ease);
    box-shadow: 40px 0 80px -40px rgba(0, 0, 0, 1);
    opacity: 1;
    pointer-events: auto;
  }
  .side.open { transform: none; opacity: 1; pointer-events: auto; }
  .burger-dash { display: grid; }
  .side-scrim {
    position: fixed;
    inset: 0;
    z-index: 55;
    background: rgba(5, 5, 5, 0.6);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s var(--ease), visibility 0.35s;
  }
  .side-scrim.on { opacity: 1; visibility: visible; }
}
@media (max-width: 680px) {
  .kpis { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .link-fields { grid-template-columns: 1fr; }
  .url-pill .txt { display: none; }
  .topbar h1 { font-size: 1.05rem; }
}

.opt-grid.layouts { grid-template-columns: repeat(3, 1fr); }
.badge-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.badge-opt {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-dim);
  font-size: 0.78rem;
  cursor: pointer;
  transition: border-color var(--t) var(--ease), background var(--t) var(--ease), color var(--t) var(--ease);
}
.badge-opt .ico { width: 13px; height: 13px; }
.badge-opt.on {
  border-color: rgba(200, 200, 200, 0.35);
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}
.badge-opt:hover { border-color: var(--line-2); }
.pro-tag {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(70, 70, 70, 0.7);
  color: var(--mist-200);
  vertical-align: 1px;
}
.pv-handle { position: relative; display: inline-block; cursor: help; }
.uid-tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  translate: -50% 4px;
  padding: 5px 9px;
  border-radius: 8px;
  background: #0f0f0f;
  border: 1px solid var(--line-2);
  color: var(--mist-200);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, translate 0.2s;
  z-index: 5;
}
.pv-handle:hover .uid-tip { opacity: 1; translate: -50% 0; }

.pv.is-mono .pv-socials a { color: var(--pv-accent, var(--brand-300)); }
.pv-body { background: rgba(10, 10, 10, var(--pv-op, 0.78)); }
.layout-compact .pv-banner { height: 72px; }
.layout-compact .pv-link { padding: 8px 12px; font-size: 0.82rem; }
.layout-cards .pv-link {
  padding: 16px 16px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--pv-accent, #ffffff) 10%, var(--surface));
}
.layout-banner .pv-banner { height: 180px; }
.layout-banner .pv-body { margin-top: -56px; }
.layout-minimal .pv-banner { display: none; }
.layout-minimal .pv-body { margin-top: 0; padding-top: 28px; text-align: center; }
.layout-minimal .pv-body > .avatar { margin-inline: auto; }
.layout-minimal .pv-name, .layout-minimal .pv-handle { justify-content: center; }
.layout-sleek .pv-body { display: grid; grid-template-columns: 92px 1fr; gap: 0 16px; }
.layout-sleek .pv-banner { grid-column: 1 / -1; }
.layout-sleek .avatar { grid-row: 1 / span 4; }
.layout-modern .pv-link { border-radius: 999px; }
.layout-portfolio .pv-about { order: -1; }
.pv-skills { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.pv-about { margin: 0 0 14px; font-size: 0.86rem; color: var(--text-dim); line-height: 1.55; }
.pv-widget {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 10px; padding: 10px 12px;
  border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
}
.pv-widget img { height: 22px; width: auto; object-fit: contain; }
.pv-widget b { display: block; font-size: 0.82rem; }
.pv-widget span { font-size: 0.72rem; color: var(--text-faint); }
.pv-widget .w-dot { width: 8px; height: 8px; border-radius: 50%; background: #3ba55d; }
.pv-player .vol { width: 118px; min-width: 96px; accent-color: var(--player-accent, var(--brand-400)); }
.fx-glow .uname { text-shadow: 0 0 18px var(--pv-accent, #E0E0E0); }
.fx-glitch .uname { animation: glitch 2.4s infinite; }
.fx-rainbow .uname {
  background: linear-gradient(90deg, #F0F0F0, #A3A3A3, #E0E0E0, #F0F0F0);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: rainbow 4s linear infinite;
}
@keyframes glitch {
  0%, 90%, 100% { transform: none; text-shadow: none; }
  92% { transform: translate(-1px, 1px); text-shadow: -2px 0 #E0E0E0, 2px 0 #A3A3A3; }
  94% { transform: translate(1px, -1px); }
}
@keyframes rainbow { to { background-position: 200% 0; } }

#valoRankWrap { display: grid; gap: 16px; }

.pro-stack { display: block; }
.pro-board { padding: 14px 16px 16px; overflow: visible; }
.pro-sec { margin-bottom: 12px; }
.pro-sec:last-child { margin-bottom: 0; }
.pro-sec h3 {
  margin: 0 0 8px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.pro-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pro-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 5px 8px 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  font-size: 0.78rem;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.pro-chip:hover { border-color: var(--line-2); }
.pro-chip:has(input:checked) {
  border-color: rgba(200,200,200,0.38);
  background: rgba(255,255,255,0.08);
}
.pro-chip .switch { flex: none; transform: scale(0.84); transform-origin: right center; }
.pro-audio-look,
.pro-cover { margin-top: 10px; }
.pro-audio-look > span,
.pro-cover > span {
  display: block;
  font-size: 0.72rem;
  color: var(--text-faint);
  margin-bottom: 6px;
}

.pv-widget.valo { text-decoration: none; color: inherit; }
.pv-widget .w-track {
  margin-left: auto;
  font-size: 0.64rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.pv-player.audio-only.is-player {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 18px;
}
.pv-player .ap-row { display: flex; align-items: center; gap: 10px; }
.pv-player .seek-bar {
  position: relative;
  height: 4px;
  border-radius: 99px;
  background: rgba(255,255,255,.14);
  cursor: pointer;
}
.pv-player .seek-fill {
  display: block;
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: inherit;
  background: var(--pv-accent, var(--brand-400));
}
.pv-player .ap-times {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  color: var(--text-faint);
}
.pv-player .ap-vol {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pv-player .vol-ico { width: 16px; height: 16px; color: var(--text-faint); flex: none; }
.pv-player.audio-only.is-volume {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
}
.pv-player.audio-only.is-volume .vol { flex: 1; width: auto; min-width: 0; }

.badge-shop { display: grid; gap: 8px; }
#badgeSizeRow.size-row {
  position: relative;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 5px;
  border-radius: 16px;
  background: rgba(126, 200, 227, 0.18);
  border: 1px solid rgba(47, 111, 150, 0.14);
}
#badgeSizeRow .size-pill {
  position: absolute;
  top: 5px;
  left: 0;
  height: calc(100% - 10px);
  border-radius: 12px;
  background: #c5e8f4;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 10px 24px -16px #000;
  transition: transform 0.42s var(--ease), width 0.42s var(--ease);
  pointer-events: none;
}
#badgeSizeRow .opt {
  position: relative;
  z-index: 1;
  background: transparent;
  border-color: transparent;
  padding: 11px 8px;
  box-shadow: none;
}
#badgeSizeRow .opt:hover { transform: none; background: transparent; }
#badgeSizeRow .opt.on {
  background: transparent;
  border-color: transparent;
  color: #041820;
  box-shadow: none;
}
.badge-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px 8px 8px;
  overflow: hidden;
  border-radius: 18px;
  transition:
    transform 0.4s var(--ease),
    border-color 0.4s ease,
    background 0.4s ease;
}
.panel.on .badge-shop:not(.is-live) .badge-card {
  animation: badgeIn 0.5s var(--ease) backwards;
}
.badge-card:nth-child(1) { animation-delay: 0.02s; }
.badge-card:nth-child(2) { animation-delay: 0.06s; }
.badge-card:nth-child(3) { animation-delay: 0.1s; }
.badge-card:nth-child(4) { animation-delay: 0.14s; }
.badge-card:nth-child(5) { animation-delay: 0.18s; }
.badge-card:nth-child(n+6) { animation-delay: 0.22s; }
.badge-shop.is-live .badge-card { animation: none; }
@keyframes badgeIn {
  from { opacity: 0; transform: translateY(8px); }
}
.badge-card:hover { transform: translateY(-2px); }
.badge-card .b-mark {
  width: 62px; height: 62px;
  border-radius: 0;
  overflow: visible;
  flex: none;
  background: transparent;
  border: 0;
  display: grid; place-items: center;
  transition: transform 0.45s var(--ease);
}
.badge-card:hover .b-mark { transform: translateY(-1px) scale(1.05); }
.badge-card .b-mark img, .badge-card .b-mark .ico {
  width: 56px; height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.45));
}
.badge-card.on .b-mark img,
.badge-card.on .b-mark .ico { animation: markFloat 5.2s ease-in-out infinite; }
.badge-card:hover .b-mark img,
.badge-card:hover .b-mark .ico { animation-play-state: paused; }
@keyframes markFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
.badge-card .b-txt { flex: 1; min-width: 0; }
.badge-card .b-txt b { display: block; font-size: 0.92rem; letter-spacing: -0.02em; }
.badge-card .b-txt span { font-size: 0.74rem; color: var(--text-faint); }
.badge-card .b-act { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.badge-card .b-act .btn { border-radius: 999px; }
.badge-card.owned { border-color: rgba(47, 111, 150, 0.16); }
.badge-card.on {
  border-color: rgba(94, 176, 212, 0.45);
  background:
    linear-gradient(100deg, rgba(31, 126, 171, 0.32), transparent 46%),
    rgba(8, 28, 42, 0.78);
}
.badge-card.on::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 36%, rgba(255, 255, 255, 0.045) 50%, transparent 64%);
  transform: translateX(-120%);
  animation: badgeSheen 8.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes badgeSheen {
  0%, 72% { transform: translateX(-120%); opacity: 0; }
  80% { opacity: 1; }
  100% { transform: translateX(120%); opacity: 0; }
}
.uid-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); min-width: 0; }
.uid-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 8px 14px;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
.uid-row:last-child { border-bottom: 0; }
.uid-num {
  justify-self: start;
  min-width: 52px;
  padding: 6px 8px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  cursor: pointer;
}
.uid-num:hover { border-color: #666; }
.uid-row .b-txt { min-width: 0; }
.uid-row .b-txt b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uid-row .b-txt span { display: block; font-size: 0.76rem; color: var(--text-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uid-row .b-act { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; max-width: 100%; }
.view-set {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}
.view-set label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-faint);
}
.view-set input {
  width: 132px;
  height: 36px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font: inherit;
  font-variant-numeric: tabular-nums;
}
.uid-empty { padding: 22px 18px; color: var(--text-faint); }
#panel-handles .uid-num { font-size: 0.72rem; letter-spacing: 0.04em; text-transform: lowercase; }
@media (min-width: 760px) {
  .uid-row { grid-template-columns: 64px minmax(160px, 1fr) auto; }
  .uid-row .b-act { grid-column: auto; justify-content: flex-end; }
  #panel-owner .view-set { grid-column: 3; grid-row: 1; justify-self: end; }
  #panel-owner .uid-row .b-act { grid-column: 1 / -1; justify-content: flex-start; }
}

body.dash-body .btn-primary {
  background: linear-gradient(180deg, #d9f1fa, #7ec8e3);
  border-color: #8ecae6;
  color: #0e3350;
  box-shadow: none;
}
body.dash-body .btn-primary:hover { background: linear-gradient(180deg, #eef9fd, #5eb0d4); border-color: #5eb0d4; }
body.dash-body .btn-primary .ico { color: #0e3350; }

/* Discord server and Roblox on the links tab */
.link-board:hover { transform: none; }
.link-rows { display: grid; }
.link-row {
  display: grid;
  gap: 12px;
  padding: 16px 18px 18px;
}
.link-row + .link-row { border-top: 1px solid var(--line); }
.link-row-h { display: flex; align-items: center; gap: 12px; }
.link-row-h > div { min-width: 0; flex: 1; }
.link-row-h b { display: block; font-size: 0.95rem; font-weight: 650; letter-spacing: -0.02em; line-height: 1.2; }
.link-row-h > div span { display: block; margin-top: 1px; font-size: 0.78rem; color: var(--text-faint); }
.link-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  margin: 0;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}
.link-mark .ico { width: 18px; height: 18px; display: block; }
.link-row .dc-connect .btn { height: 50px; padding: 0 20px; border-radius: var(--r-sm); flex: none; }
.link-row .btn-ghost { height: 32px; }
.guild-live[hidden], .rbx-live[hidden] { display: none; }
.link-board .guild-live .pv-guild,
.link-board .rbx-live .pv-roblox { margin: 0; }
.link-board .guild-live .pv-guild {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px 10px 12px;
  border-radius: 16px;
}
.link-board .pv-guild-icon { width: 42px; height: 42px; }
.link-board .pv-guild-top { flex: 1; min-width: 0; }
.link-board .pv-guild-join {
  width: auto;
  flex: none;
  height: 36px;
  margin-left: auto;
  padding: 0 16px;
  border-radius: 10px;
}
.link-board .guild-live,
.link-board .rbx-live { width: 100%; max-width: none; }
.link-board .rbx-live .pv-roblox {
  display: flex;
  align-items: center;
  padding: 12px 14px;
  border-radius: 16px;
  gap: 14px;
}
.link-board .pv-rbx-top { flex: 1; min-width: 0; }
.link-board .pv-rbx-av { width: 48px; height: 48px; }
.link-board .pv-rbx-stats {
  width: auto;
  flex: none;
  margin: 0 0 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  gap: 14px;
}
@media (max-width: 640px) {
  .link-board .guild-live .pv-guild { flex-wrap: wrap; }
  .link-board .rbx-live .pv-roblox {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .link-board .pv-rbx-stats { margin-left: 62px; }
}

/* Discord presence connect */
.dc-connect { display: flex; gap: 8px; }
.dc-connect .input-wrap { flex: 1; min-width: 0; }
.dc-state {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.dc-state[hidden] { display: none; }
.dc-state img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.dc-state div { flex: 1; min-width: 0; display: grid; }
.dc-state b { font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.dc-state span { font-size: 0.8rem; color: var(--text-dim); }
.dc-state .dw-badges { display: inline-flex; align-items: center; gap: 3px; }
.dc-state .dw-badge { width: 20px; height: 20px; object-fit: contain; display: block; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5)); }

/* socials: link or copy */
.soc-mode {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: none;
  margin-right: -4px;
  padding: 5px 9px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-dim);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--t), color var(--t), border-color var(--t);
}
.soc-mode .ico { width: 13px; height: 13px; }
.soc-mode:hover { color: var(--text); border-color: var(--line-2); }
.soc-mode.on { background: linear-gradient(180deg, #d9f1fa, #7ec8e3); color: #0e3350; border-color: transparent; }

.dc-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.dc-link[hidden] { display: none; }
.dc-link-ico { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: #fff; color: #000; }
.dc-link-ico .ico { width: 20px; height: 20px; }
.dc-link-txt { flex: 1; min-width: 0; display: grid; gap: 2px; }
.dc-link-txt b { font-weight: 600; }
.dc-link-txt span { font-size: 0.8rem; color: var(--text-dim); line-height: 1.45; }
.dc-alt { display: grid; gap: 10px; }
.dc-alt[hidden] { display: none; }
.dc-alt > summary { cursor: pointer; font-size: 0.82rem; color: var(--text-dim); list-style: none; }
.dc-alt > summary::before { content: "+ "; }
.dc-alt[open] > summary::before { content: "– "; }
.dc-alt[open] > summary { margin-bottom: 10px; }
@media (max-width: 560px) {
  .dc-link { flex-wrap: wrap; }
  .dc-link .btn { width: 100%; }
}

/* ---------- extra handles ---------- */
.handle-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.handle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-1, rgba(255, 255, 255, 0.02));
}
.handle-row.is-main { border-color: var(--line-2); }
.handle-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-3, #8a8a8a); font-size: 14px; }
.handle-name b { color: var(--text); font-weight: 600; }
.handle-add { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; margin-top: 4px; }
.handle-add .field { flex: 1 1 260px; margin: 0; }
.handle-add .btn { margin-top: 4px; }

.domain-form { display: grid; gap: 8px; padding: 22px; }
.domain-row { display: flex; align-items: center; gap: 10px; }
.domain-row .input-wrap { flex: 1; min-width: 0; }
.domain-row .btn { flex: none; }
.dns-box { display: grid; gap: 8px; margin-top: 6px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, 0.03); }
.dns-box[hidden] { display: none; }
.dns-head { display: flex; align-items: center; gap: 10px; }
.dns-head b { font-size: 0.9rem; }
.dns-head .btn { margin-left: auto; }
.dns-state { font-size: 0.76rem; color: #e0b98a; }
.dns-state:empty { display: none; }
.dns-state.ok { color: #8fd2b8; }
.dns-table { display: grid; gap: 6px; }
.dns-row { display: grid; grid-template-columns: 64px minmax(70px, 0.6fr) minmax(0, 1.4fr) 72px; align-items: center; gap: 10px; font-size: 0.84rem; }
.dns-labels { font-size: 0.72rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.06em; }
.dns-type { font-weight: 600; }
.dns-copy { overflow-wrap: anywhere; padding: 5px 8px; border-radius: 8px; background: rgba(0, 0, 0, 0.3); cursor: copy; user-select: all; }
.dns-copy:hover { background: rgba(0, 0, 0, 0.45); }
.dns-pill { justify-self: end; padding: 3px 9px; border-radius: 999px; font-size: 0.72rem; background: rgba(224, 185, 138, 0.14); color: #e0b98a; }
.dns-pill.ok { background: rgba(143, 210, 184, 0.14); color: #8fd2b8; }
.dns-empty { grid-column: 1 / -1; color: var(--text-faint); }
@media (max-width: 640px) {
  .dns-row { grid-template-columns: 46px minmax(0, 0.7fr) minmax(0, 1.3fr) 60px; gap: 6px; font-size: 0.78rem; }
  .domain-row { flex-wrap: wrap; }
  .domain-row .input-wrap { flex: 1 1 100%; }
  .domain-row .btn { flex: 1 1 auto; }
}

/* ---------- templates ---------- */
.tpl-form { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 18px 22px 22px; }
.tpl-form .input-wrap { flex: 1 1 220px; min-width: 0; }
.tpl-check { display: inline-flex; align-items: center; gap: 7px; font-size: 0.84rem; color: var(--text-faint); cursor: pointer; }
.tpl-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 16px 22px; }
.tpl-tabs { grid-template-columns: repeat(3, auto); gap: 6px; }
.tpl-tabs .opt { padding: 8px 14px; font-size: 0.84rem; }
.tpl-search { flex: 1 1 180px; min-width: 0; }
.tpl-search[hidden] { display: none; }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; padding: 0 22px 22px; }
.tpl-empty { grid-column: 1 / -1; margin: 0; padding: 26px 0; text-align: center; font-size: 0.88rem; color: var(--text-faint); }
.tpl-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.25s, transform 0.25s;
}
.tpl-card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.tpl-card.is-previewing { border-color: rgba(94, 176, 212, 0.6); box-shadow: 0 0 0 1px rgba(94, 176, 212, 0.35); }
.tpl-thumb {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  border-radius: 11px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.tpl-thumb::after { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 70% at 50% 40%, transparent, rgba(0, 0, 0, 0.35)); pointer-events: none; }
.tpl-mini {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 5px;
  width: 58%;
  padding: 10px 8px 9px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(10, 10, 14, 0.5);
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 24px -12px #000, 0 0 26px -12px var(--a);
}
.tpl-mini.tpl-card, .tpl-mini.tpl-left, .tpl-mini.tpl-wide { justify-items: start; }
.tpl-mini.tpl-minimal { background: transparent; border-color: transparent; box-shadow: none; backdrop-filter: none; }
.tpl-av { width: 20px; height: 20px; border-radius: 50%; background: var(--a); box-shadow: 0 0 10px -2px var(--a); }
.tpl-l1 { width: 62%; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.9); }
.tpl-l2 { width: 42%; height: 4px; border-radius: 3px; background: rgba(255, 255, 255, 0.45); }
.tpl-dots { display: flex; gap: 4px; margin-top: 2px; }
.tpl-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--a); opacity: 0.85; }
.tpl-tag {
  position: absolute;
  z-index: 2;
  left: 7px;
  bottom: 7px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.68rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
}
.tpl-tag.tpl-has-music { left: auto; right: 7px; display: grid; place-items: center; padding: 3px 5px; }
.tpl-tag .ico { width: 11px; height: 11px; }
.tpl-meta { display: grid; gap: 2px; min-width: 0; padding: 0 2px; }
.tpl-meta b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.92rem; letter-spacing: -0.01em; }
.tpl-meta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.74rem; color: var(--text-faint); }
.tpl-act { display: flex; gap: 6px; }
.tpl-act .btn { flex: 1 1 auto; justify-content: center; padding-inline: 8px; }
.tpl-act [data-act="update"], .tpl-act .tpl-del { flex: 0 0 auto; }
.tpl-act .tpl-del:hover { color: #e08a99; }
.tpl-act.is-full .tpl-lbl { display: none; }
.tpl-previewing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  position: sticky;
  top: 86px;
  z-index: 20;
  padding: 12px 16px;
  border: 1px solid rgba(94, 176, 212, 0.45);
  border-radius: 14px;
  background: linear-gradient(100deg, rgba(14, 62, 88, 0.96), rgba(8, 24, 38, 0.96));
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  font-size: 0.88rem;
}
.tpl-previewing[hidden] { display: none; }

/* ---------- social picker ---------- */
.soc-board:hover { transform: none; }
.soc-board-title { display: flex; align-items: center; gap: 8px; }
.soc-board-title .ico { width: 18px; height: 18px; }
.soc-picks {
  display: grid;
  grid-template-columns: repeat(auto-fill, 52px);
  gap: 10px;
  justify-content: start;
  padding: 16px 22px 8px;
}
.soc-pick {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(126, 200, 227, 0.18);
  border-radius: 16px;
  background: rgba(8, 28, 42, 0.9);
  color: var(--c, #e8f6fb);
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s;
}
.soc-pick .ico { width: 26px; height: 26px; color: inherit; }
.soc-pick:hover { transform: translateY(-2px); background: rgba(20, 64, 90, 0.95); border-color: rgba(126, 200, 227, 0.4); }
.soc-pick.is-on { border-color: rgba(126, 200, 227, 0.7); box-shadow: inset 0 0 0 1px rgba(126, 200, 227, 0.45); }
.soc-pick-custom {
  width: 100%;
  height: auto;
  min-height: 58px;
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 8px;
  border: 1px solid rgba(94, 176, 212, 0.28);
  background: #0c2436;
  color: #e8f6fb;
  text-align: left;
}
.soc-pick-custom:hover { transform: none; }
.soc-pick-globe {
  width: 36px;
  height: 36px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(8, 28, 42, 0.9);
  color: #c5e8f4;
}
.soc-pick-globe .ico { width: 18px; height: 18px; }
.soc-pick-copy { display: grid; min-width: 0; line-height: 1.25; }
.soc-pick-copy b { font-size: 0.82rem; font-weight: 650; letter-spacing: -0.01em; }
.soc-pick-copy span { font-size: 0.72rem; color: #7ea8bc; white-space: normal; }
.soc-added {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
  padding: 14px 22px 22px;
}
.soc-added[hidden] { display: none; }
.soc-card {
  border: 1px solid rgba(94, 176, 212, 0.28);
  background: #0e2a3c;
  border-radius: 16px;
  padding: 10px 12px 12px;
}
.soc-card.is-off { opacity: 0.42; }
.soc-card.is-dragging { opacity: 0.35; }
.soc-card-top { display: flex; align-items: center; gap: 2px; }
.soc-card-top b {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.soc-drag, .soc-act {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #8a8a8a;
  cursor: pointer;
}
.soc-drag { cursor: grab; }
.soc-drag .ico { width: 14px; height: 14px; fill: currentColor; stroke: none; }
.soc-act .ico { width: 15px; height: 15px; }
.soc-drag:hover, .soc-act:hover { color: #e8f6fb; background: rgba(31, 126, 171, 0.22); }
.soc-card-val {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  min-width: 0;
  color: #3d6480;
}
.soc-card-val .ico { width: 18px; height: 18px; color: var(--c, #fff); }
.soc-card-val span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.9rem;
}
.soc-back {
  position: fixed;
  inset: 0;
  z-index: 9600;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.62);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s;
}
.soc-back.on { opacity: 1; visibility: visible; }
.soc-dialog {
  width: min(440px, 100%);
  padding: 20px 20px 16px;
  border-radius: 18px;
  border: 1px solid rgba(94, 176, 212, 0.28);
  background: #0c2436;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}
.soc-dialog-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.soc-dialog-top h3 { font-size: 1.08rem; letter-spacing: -0.03em; }
.soc-x {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #bdbdbd;
  cursor: pointer;
}
.soc-x:hover { color: #e8f6fb; background: rgba(31, 126, 171, 0.22); }
.soc-field-label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 16px 0 8px;
  font-size: 0.86rem;
}
.soc-q {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid #666;
  background: transparent;
  color: #bbb;
  font-size: 10px;
  line-height: 1;
  cursor: pointer;
}
.soc-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.soc-modes button {
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  border: 1px solid rgba(94, 176, 212, 0.28);
  background: #0b2230;
  color: #b7d4e4;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.soc-modes button .ico { width: 16px; height: 16px; }
.soc-modes button.on { border-color: transparent; color: #041820; background: linear-gradient(180deg, #c5e8f4, #3d9ec4); }
.soc-help, .soc-err { margin: 10px 2px 0; font-size: 0.8rem; color: #9a9a9a; line-height: 1.45; }
.soc-err { color: #e08a99; }
.soc-icons {
  display: grid;
  grid-template-columns: repeat(auto-fill, 40px);
  gap: 8px;
  max-height: 168px;
  overflow: auto;
  margin-top: 12px;
  padding: 2px;
}
.soc-icons .soc-pick { width: 40px; height: 40px; border-radius: 12px; }
.soc-icons .soc-pick .ico { width: 20px; height: 20px; }
.soc-entry {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  margin-top: 14px;
  padding: 0 12px;
  border-radius: 14px;
  border: 1px solid rgba(94, 176, 212, 0.28);
  background: #0b2230;
}
.soc-entry-ico { width: 26px; height: 26px; display: grid; place-items: center; flex: none; color: inherit; }
.soc-entry-ico .ico { width: 22px; height: 22px; color: inherit; }
.soc-entry input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: #e8f6fb;
  font: inherit;
  font-size: 0.95rem;
}
.soc-entry input::placeholder { color: #7ea8bc; }
.soc-actions { display: flex; align-items: center; gap: 16px; margin-top: 16px; }
.soc-add {
  height: 40px;
  padding: 0 18px;
  border-radius: 12px;
  background: linear-gradient(180deg, #d9f1fa, #7ec8e3);
  border: 1px solid #8ecae6;
  color: #0e3350;
  box-shadow: none;
}
.soc-add:hover { background: linear-gradient(180deg, #eef9fd, #5eb0d4); border-color: #5eb0d4; }
.soc-need {
  border: 0;
  background: transparent;
  color: #7ec8e3;
  font: inherit;
  font-size: 0.92rem;
  cursor: pointer;
  padding: 0;
}
.soc-need:hover { color: #e8f6fb; }
@media (max-width: 560px) {
  .soc-pick-custom { grid-column: 1 / -1; width: 100%; }
  .soc-pick-copy span { white-space: normal; }
  .soc-added { grid-template-columns: 1fr; }
}
