/* ==========================================================================
   MyGO!!!!! Asset Desk — Minimalist Editorial Desktop UI (v3)
   Quiet frosted glass, 1px hairlines, generous wallpaper breathing room.
   ========================================================================== */

:root {
  --blur: 20px;
  --dim: 0.36;
  --r-lg: 18px;
  --r-md: 12px;
  --r-sm: 8px;

  --accent: #56d4f5;
  --accent-soft: rgba(86, 212, 245, 0.14);
  --accent-line: rgba(86, 212, 245, 0.45);
  --accent-ink: #06141d;

  --ok: #3cd49b;
  --warn: #e9b956;
  --danger: #f06a8a;

  --font-sans: "Segoe UI Variable", "PingFang SC", "Microsoft YaHei UI", system-ui, -apple-system, sans-serif;
  --font-mono: "Cascadia Code", "JetBrains Mono", "Consolas", ui-monospace, monospace;
}

/* ---------- Member Accent Swatches (Scoped strictly to html) ---------- */
html[data-member="tomori"] { --accent: #56d4f5; --accent-soft: rgba(86, 212, 245, 0.14); --accent-line: rgba(86, 212, 245, 0.45); }
html[data-member="anon"]   { --accent: #f47ba5; --accent-soft: rgba(244, 123, 165, 0.14); --accent-line: rgba(244, 123, 165, 0.45); }
html[data-member="rana"]   { --accent: #45d89a; --accent-soft: rgba(69, 216, 154, 0.14); --accent-line: rgba(69, 216, 154, 0.45); }
html[data-member="soyo"]   { --accent: #efc05c; --accent-soft: rgba(239, 192, 92, 0.15); --accent-line: rgba(239, 192, 92, 0.45); }
html[data-member="taki"]   { --accent: #a58cf6; --accent-soft: rgba(165, 140, 246, 0.15); --accent-line: rgba(165, 140, 246, 0.45); }

/* ---------- 6 Coupled Visual Skins (Scoped strictly to html) ---------- */
html[data-skin="mygo-night"] {
  color-scheme: dark;
  --bg: #080c14;
  --surface: rgba(11, 16, 28, 0.56);
  --surface-2: rgba(255, 255, 255, 0.045);
  --surface-hover: rgba(255, 255, 255, 0.08);
  --surface-heavy: rgba(11, 16, 28, 0.88);
  --border: rgba(255, 255, 255, 0.11);
  --border-strong: rgba(255, 255, 255, 0.22);
  --text: #f3f6fb;
  --text-2: #c4cfdf;
  --text-muted: #8b99b0;
  --input-bg: rgba(6, 10, 18, 0.55);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.34);
  --photo-opacity: 1;
}

html[data-skin="mygo-day"] {
  color-scheme: light;
  --bg: #edf3f9;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-2: rgba(15, 28, 48, 0.04);
  --surface-hover: rgba(15, 28, 48, 0.075);
  --surface-heavy: rgba(250, 252, 255, 0.94);
  --border: rgba(15, 32, 58, 0.12);
  --border-strong: rgba(15, 32, 58, 0.24);
  --text: #111b2a;
  --text-2: #394d66;
  --text-muted: #647892;
  --input-bg: rgba(255, 255, 255, 0.78);
  --shadow: 0 18px 44px rgba(20, 44, 78, 0.10);
  --accent-ink: #ffffff;
  --ok: #0d8f60;
  --warn: #b26b0a;
  --danger: #ca2f59;
  --photo-opacity: 1;
}

html[data-skin="mygo-amber"] {
  color-scheme: dark;
  --bg: #130f0b;
  --surface: rgba(26, 20, 15, 0.60);
  --surface-2: rgba(255, 235, 205, 0.05);
  --surface-hover: rgba(255, 235, 205, 0.09);
  --surface-heavy: rgba(22, 17, 12, 0.90);
  --border: rgba(255, 224, 180, 0.14);
  --border-strong: rgba(255, 224, 180, 0.28);
  --text: #faf4eb;
  --text-2: #d9c8b0;
  --text-muted: #a38e73;
  --input-bg: rgba(16, 12, 8, 0.60);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.38);
  --photo-opacity: 1;
}

html[data-skin="sakiko-rain"] {
  color-scheme: dark;
  --bg: #0c131c;
  --surface: rgba(14, 23, 35, 0.60);
  --surface-2: rgba(190, 225, 255, 0.05);
  --surface-hover: rgba(190, 225, 255, 0.09);
  --surface-heavy: rgba(12, 20, 30, 0.90);
  --border: rgba(180, 215, 240, 0.14);
  --border-strong: rgba(180, 215, 240, 0.28);
  --text: #eef5fb;
  --text-2: #bad0e4;
  --text-muted: #829cb5;
  --input-bg: rgba(9, 15, 23, 0.60);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.40);
  --photo-opacity: 1;
}

html[data-skin="mujica-velvet"] {
  color-scheme: dark;
  --bg: #0f070b;
  --surface: rgba(24, 10, 17, 0.64);
  --surface-2: rgba(255, 195, 215, 0.05);
  --surface-hover: rgba(255, 195, 215, 0.09);
  --surface-heavy: rgba(20, 8, 14, 0.92);
  --border: rgba(255, 175, 200, 0.15);
  --border-strong: rgba(255, 175, 200, 0.30);
  --text: #faf2f5;
  --text-2: #dbbcc8;
  --text-muted: #9e7a89;
  --input-bg: rgba(14, 6, 10, 0.64);
  --shadow: 0 22px 54px rgba(0, 0, 0, 0.48);
  --photo-opacity: 1;
}

html[data-skin="minimal-studio"] {
  color-scheme: dark;
  --bg: #0c0e12;
  --surface: rgba(21, 24, 31, 0.92);
  --surface-2: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --surface-heavy: rgba(19, 22, 29, 0.98);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.20);
  --text: #f0f2f6;
  --text-2: #b5bece;
  --text-muted: #768094;
  --input-bg: rgba(12, 14, 19, 0.92);
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.32);
  --photo-opacity: 0;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
}
body {
  margin: 0;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
body.locked-mode .app-protected { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input { font-family: inherit; }
code {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.mono { font-family: var(--font-mono); }
.muted { color: var(--text-muted); font-size: 12.5px; line-height: 1.6; }

/* ---------- Razor-Sharp Dual-Layer Crossfade Background ---------- */
.bg-stage {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--bg);
}
.bg-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  opacity: 0;
  transition: opacity 1.1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: opacity;
}
.bg-layer.active { opacity: var(--photo-opacity); }
.bg-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 10, 18, calc(var(--dim) * 0.65)) 0%, rgba(6, 10, 18, calc(var(--dim) * 1.12)) 100%);
  transition: background 0.45s ease;
}
html[data-skin="mygo-day"] .bg-scrim {
  background: linear-gradient(180deg, rgba(244, 249, 255, calc(var(--dim) * 0.78)) 0%, rgba(235, 244, 253, calc(var(--dim) * 1.15)) 100%);
}
html[data-skin="mujica-velvet"] .bg-scrim {
  background: linear-gradient(160deg, rgba(24, 6, 15, calc(var(--dim) * 0.85)) 0%, rgba(10, 4, 10, calc(var(--dim) * 1.25)) 100%);
}
html[data-skin="mygo-amber"] .bg-scrim {
  background: linear-gradient(180deg, rgba(22, 15, 8, calc(var(--dim) * 0.72)) 0%, rgba(14, 10, 6, calc(var(--dim) * 1.15)) 100%);
}

/* ---------- Glass Surfaces ---------- */
.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(var(--blur)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(140%);
  box-shadow: var(--shadow);
}
.glass-heavy {
  background: var(--surface-heavy);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.5);
}

/* ---------- Minimalist Centered Layout ---------- */
.app-layout {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 24px 80px;
  display: grid;
  grid-template-columns: 204px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

/* ---------- Left Sidebar ---------- */
.sidebar {
  position: sticky;
  top: 28px;
  border-radius: var(--r-lg);
  padding: 18px 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.sb-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 8px;
}
.sb-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.sb-title { font-size: 14px; font-weight: 700; letter-spacing: 0.02em; }
.sb-sub { font-size: 11px; color: var(--text-muted); font-family: var(--font-mono); }

.sb-nav { display: flex; flex-direction: column; gap: 3px; }
.sb-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--r-sm);
  border: 0;
  background: transparent;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: background 0.16s ease, color 0.16s ease;
}
.sb-item svg { width: 16px; height: 16px; opacity: 0.78; flex-shrink: 0; }
.sb-item:hover { background: var(--surface-hover); color: var(--text); }
.sb-item.active {
  background: var(--accent-soft);
  color: var(--text);
  font-weight: 600;
}
.sb-item.active svg { color: var(--accent); opacity: 1; }

.sb-footer {
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sb-util {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border-radius: var(--r-sm);
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 12.5px;
  cursor: pointer;
  text-align: left;
}
.sb-util svg { width: 15px; height: 15px; flex-shrink: 0; }
.sb-util:hover { background: var(--surface-hover); color: var(--text); }

.sb-mini-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 6px;
}
.sb-icon-btn {
  height: 32px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-2);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.sb-icon-btn svg { width: 15px; height: 15px; }
.sb-icon-btn:hover { border-color: var(--border-strong); color: var(--text); background: var(--surface-hover); }
.sb-icon-btn[aria-pressed="true"] { border-color: var(--accent-line); color: var(--accent); background: var(--accent-soft); }

/* ---------- Main Stage ---------- */
.stage {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}
.stage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 2px;
}
.stage-heading { display: flex; align-items: baseline; gap: 12px; }
.stage-heading h1 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.stage-clock { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); }

.stage-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  height: 34px;
  width: 220px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(var(--blur));
}
.stage-search svg { width: 14px; height: 14px; color: var(--text-muted); flex-shrink: 0; }
.stage-search input {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 12.5px;
  outline: none;
}
.stage-search input::placeholder { color: var(--text-muted); }

.tab-view { display: none; flex-direction: column; gap: 18px; }
.tab-view.active { display: flex; animation: fadeIn 0.2s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Overview Elements ---------- */
.quiet-note {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
  padding: 0 4px;
  cursor: pointer;
  opacity: 0.92;
}
.quiet-note:hover { color: var(--text); }

.metric-strip {
  border-radius: var(--r-lg);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.metric-cell {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}
.metric-k { font-size: 11.5px; color: var(--text-muted); }
.metric-v { font-size: 16px; font-weight: 600; font-family: var(--font-mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.metric-sep { width: 1px; height: 28px; background: var(--border); flex-shrink: 0; }

/* ---------- Unified Hairline Sheet ---------- */
.sheet {
  border-radius: var(--r-lg);
  overflow: hidden;
}
.sheet-head {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.sheet-title { font-size: 13.5px; font-weight: 600; color: var(--text); }
.sheet-sub { font-size: 12px; color: var(--text-muted); margin-left: 10px; }

/* Launch Dock (Quiet Grid inside Sheet) */
.dock-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}
.dock-item {
  padding: 15px 18px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: background 0.16s ease;
}
.dock-item:hover { background: var(--surface-hover); }
.dock-name { font-size: 13.5px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.dock-desc { font-size: 11.5px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 170px; }
.dock-arrow { color: var(--text-muted); font-size: 13px; transition: transform 0.16s ease, color 0.16s ease; }
.dock-item:hover .dock-arrow { transform: translate(2px, -2px); color: var(--accent); }

/* Hairline List Rows (AI, Accounts, Wallets, Ops) */
.list-rows { display: flex; flex-direction: column; }
.list-row {
  padding: 15px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  transition: background 0.15s ease;
}
.list-row:last-child { border-bottom: 0; }
.list-row:hover { background: var(--surface-2); }

.row-main { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.row-title-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.row-title { font-size: 14px; font-weight: 600; color: var(--text); }
.row-sub { font-size: 12px; color: var(--text-muted); line-height: 1.5; }
.row-meta { font-size: 11.5px; color: var(--text-2); font-family: var(--font-mono); display: flex; gap: 12px; flex-wrap: wrap; }

/* Slim Interactive 3px Quota Slider */
.quota-col { width: 268px; flex-shrink: 0; display: flex; flex-direction: column; gap: 9px; }
.q-item { display: flex; flex-direction: column; gap: 4px; }
.q-top { display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; color: var(--text-2); font-family: var(--font-mono); min-height: 18px; }
.q-top small { color: var(--text-muted); }
.q-editable { cursor: pointer; border-radius: 4px; padding: 0 3px; margin-left: -3px; transition: background 0.15s ease, color 0.15s ease; }
.q-editable:hover { background: var(--surface-hover); color: var(--text); }
.q-inline-input {
  width: 68px;
  padding: 1px 6px;
  border-radius: 5px;
  border: 1px solid var(--accent-line);
  background: var(--input-bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 11.5px;
  outline: none;
}

.q-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 12px;
  margin: -3px 0;
  background: transparent;
  cursor: ew-resize;
  outline: none;
  --bar-color: var(--accent);
}
.q-slider.warn { --bar-color: var(--warn); }
.q-slider.danger { --bar-color: var(--danger); }

.q-slider::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(to right, var(--bar-color) 0%, var(--bar-color) var(--pct, 0%), var(--surface-hover) var(--pct, 0%), var(--surface-hover) 100%);
  transition: height 0.15s ease;
}
.q-slider:hover::-webkit-slider-runnable-track,
.q-slider:active::-webkit-slider-runnable-track {
  height: 5px;
}
.q-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--bar-color);
  border: 2px solid var(--bg);
  margin-top: -3px;
  opacity: 0;
  transform: scale(0.75);
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.q-slider:hover::-webkit-slider-thumb,
.q-slider:active::-webkit-slider-thumb {
  opacity: 1;
  transform: scale(1);
}

.q-slider::-moz-range-track {
  height: 3px;
  border-radius: 99px;
  background: var(--surface-hover);
}
.q-slider::-moz-range-progress {
  height: 3px;
  border-radius: 99px;
  background: var(--bar-color);
}
.q-slider::-moz-range-thumb {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--bar-color);
  border: 2px solid var(--bg);
  opacity: 0;
  transition: opacity 0.15s ease;
}
.q-slider:hover::-moz-range-thumb,
.q-slider:active::-moz-range-thumb { opacity: 1; }

.row-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* Table List (Servers & VPN) */
.table-list { display: flex; flex-direction: column; }
.t-row {
  padding: 13px 20px;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1.3fr 1.1fr 1.5fr 0.75fr 0.75fr;
  gap: 12px;
  align-items: center;
  font-size: 12.5px;
}
.t-row.vpn-row { grid-template-columns: 1.1fr 1.2fr 1.8fr 0.8fr; }
.t-row:last-child { border-bottom: 0; }
.t-row:hover { background: var(--surface-2); }
.t-head {
  font-size: 11px;
  color: var(--text-muted);
  padding-top: 10px;
  padding-bottom: 10px;
  background: var(--surface-2);
}
.t-head:hover { background: var(--surface-2); }
.t-strong { font-weight: 600; color: var(--text); }
.t-sub { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.t-right { text-align: right; font-family: var(--font-mono); }

.ip-btn {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 12.5px;
  cursor: pointer;
  text-align: left;
}
.ip-btn:hover { color: var(--accent); }

/* Status Dot (Understated, No Loud Pills) */
.dot-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2); border: 0; background: transparent; padding: 0; cursor: pointer; }
.dot-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); display: inline-block; }
.dot-status.warn i { background: var(--warn); }
.dot-status.danger i { background: var(--danger); }
.dot-status.accent i { background: var(--accent); }
.cool-link { font-size: 11.5px; font-family: var(--font-mono); color: var(--danger); border: 0; background: transparent; padding: 0; cursor: pointer; }
.cool-link.ready { color: var(--ok); }
.cool-link.empty { color: var(--text-muted); }

/* Two-Column Accounts & Wallets */
.two-col { display: grid; grid-template-columns: 1.35fr 1fr; gap: 18px; align-items: start; }
.wallet-val { font-family: var(--font-mono); font-size: 16px; font-weight: 600; color: var(--text); }

/* Notes & Ops */
.clean-notes {
  margin: 0;
  padding: 16px 22px 18px 34px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.65;
}
.ops-code {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-2);
  word-break: break-all;
}

/* Inline Links & Subtle Buttons */
.inline-links { display: flex; gap: 14px; font-size: 12px; color: var(--text-muted); }
.inline-links a:hover { color: var(--accent); }

.btn-primary {
  padding: 7px 14px;
  border-radius: var(--r-sm);
  border: 0;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
.btn-subtle {
  padding: 6px 12px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
}
.btn-subtle:hover { border-color: var(--border-strong); color: var(--text); background: var(--surface-hover); }
.text-btn {
  border: 0;
  background: transparent;
  padding: 2px 4px;
  color: var(--text-muted);
  font-size: 12px;
  white-space: nowrap;
  cursor: pointer;
}
.text-btn:hover { color: var(--accent); }
.icon-close {
  width: 28px;
  height: 28px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
}
.icon-close:hover { color: var(--text); background: var(--surface-hover); }

/* Privacy Blur */
body.privacy-on .sensitive { filter: blur(6px); user-select: none; transition: filter 0.2s ease; }
body.privacy-on .sensitive:hover { filter: blur(0); }

/* Minimalist Bottom-Right Wallpaper Pill */
.wall-pill {
  position: fixed;
  right: 22px;
  bottom: 18px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px 6px;
  border-radius: 999px;
}
.wp-step {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: var(--text-2);
  font-size: 15px;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.wp-step:hover { color: var(--text); background: var(--surface-hover); }
.wp-info {
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 0 8px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  cursor: pointer;
}
.wp-info span { font-size: 11.5px; max-width: 170px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wp-info small { font-size: 10.5px; color: var(--text-muted); font-family: var(--font-mono); }

/* ---------- Lock Screen ---------- */
.lock-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(6, 9, 16, 0.42);
  backdrop-filter: blur(14px);
}
.lock-overlay[hidden] { display: none; }
.lock-card { width: min(380px, 100%); border-radius: 22px; padding: 30px; }
.lock-kicker { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; color: var(--accent); margin-bottom: 8px; }
.lock-card h2 { margin: 0 0 8px; font-size: 19px; font-weight: 600; }
.lock-form { display: flex; gap: 8px; margin-top: 18px; }
.lock-form input {
  flex: 1;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-strong);
  background: var(--input-bg);
  color: var(--text);
  font-size: 13.5px;
  outline: none;
}
.lock-error { min-height: 18px; margin: 10px 0 0; font-size: 12px; color: var(--danger); }

/* ---------- Slide-Over Wallpaper & Theme Drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 80; pointer-events: none; opacity: 0; transition: opacity 0.22s ease; }
.drawer.open { pointer-events: auto; opacity: 1; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(4, 7, 14, 0.36); }
.drawer-panel {
  position: absolute;
  top: 14px;
  right: 14px;
  bottom: 14px;
  width: min(410px, calc(100vw - 28px));
  border-radius: var(--r-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow-y: auto;
  transform: translateX(24px);
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}
.drawer.open .drawer-panel { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; }
.drawer-head h3 { margin: 0; font-size: 15px; font-weight: 600; }
.drawer-group { display: flex; flex-direction: column; gap: 9px; }
.group-label { font-size: 12px; font-weight: 600; color: var(--text-2); }

.skin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.skin-opt {
  text-align: left;
  padding: 9px 11px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.skin-opt small { color: var(--text-muted); font-size: 11px; }
.skin-opt:hover { border-color: var(--border-strong); background: var(--surface-hover); }
.skin-opt.active { border-color: var(--accent-line); background: var(--accent-soft); }

.member-row { display: flex; flex-wrap: wrap; gap: 7px; }
.member-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-size: 12px;
  cursor: pointer;
}
.member-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--dot); }
.member-chip.active { border-color: var(--accent-line); background: var(--accent-soft); }

.rot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.rot-opt {
  padding: 6px 8px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 12px;
  cursor: pointer;
}
.rot-opt.active { border-color: var(--accent-line); background: var(--accent-soft); color: var(--text); }
.toggle-row { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-2); cursor: pointer; }
.toggle-row input { accent-color: var(--accent); }

.gallery-head { display: flex; align-items: center; justify-content: space-between; }
.tag-filter-row { display: flex; gap: 5px; flex-wrap: wrap; }
.tag-chip {
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 11px;
  cursor: pointer;
}
.tag-chip.active { border-color: var(--accent-line); background: var(--accent-soft); color: var(--text); }

.thumb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.thumb-item {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 7px;
  overflow: hidden;
  border: 1.5px solid transparent;
  background: var(--input-bg);
  cursor: pointer;
  padding: 0;
}
.thumb-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-item.active { border-color: var(--accent); }
.thumb-res {
  position: absolute;
  right: 3px;
  bottom: 3px;
  font-size: 9px;
  font-family: var(--font-mono);
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  padding: 1px 4px;
  border-radius: 3px;
}
.pager-row { display: flex; align-items: center; justify-content: space-between; }
.drawer-foot-btns { flex-direction: row; gap: 8px; }
.drawer-foot-btns button { flex: 1; }
input[type="range"] { width: 100%; accent-color: var(--accent); }

/* ---------- Modals ---------- */
.modal { width: min(560px, calc(100vw - 32px)); border-radius: var(--r-lg); padding: 22px; color: var(--text); }
.modal::backdrop { background: rgba(4, 7, 14, 0.56); backdrop-filter: blur(8px); }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.modal-head h3 { margin: 0; font-size: 15px; font-weight: 600; }
.import-list { display: flex; flex-direction: column; gap: 10px; margin: 12px 0; }
.import-item {
  padding: 12px 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.import-item strong { display: block; font-size: 13px; margin-bottom: 4px; }
.path-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.raw-details { margin-top: 8px; font-size: 12px; color: var(--text-muted); }
.raw-details summary { cursor: pointer; }
.code-view {
  max-height: 260px;
  overflow: auto;
  padding: 12px;
  border-radius: var(--r-sm);
  background: var(--input-bg);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-2);
}
.form-stack { display: flex; flex-direction: column; gap: 12px; }
.form-stack label { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; color: var(--text-2); }
.form-stack input {
  padding: 9px 11px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-strong);
  background: var(--input-bg);
  color: var(--text);
  outline: none;
}
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 16px);
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface-heavy);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 12.5px;
  opacity: 0;
  pointer-events: none;
  z-index: 120;
  transition: opacity 0.2s ease, transform 0.2s ease;
  backdrop-filter: blur(16px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 900px) {
  .app-layout { grid-template-columns: 1fr; padding: 16px 14px 76px; }
  .sidebar { position: static; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: 12px; }
  .sb-nav { flex-direction: row; flex-wrap: wrap; }
  .sb-footer { flex-direction: row; border-top: 0; padding-top: 0; }
  .two-col { grid-template-columns: 1fr; }
  .t-row, .t-row.vpn-row { grid-template-columns: 1fr 1fr; }
  .t-head { display: none; }
  .list-row { flex-direction: column; align-items: flex-start; }
  .quota-col { width: 100%; }
  .metric-strip { flex-wrap: wrap; }
  .metric-sep { display: none; }
}
