/* ═══════════════════════════════════════════════════════════════════════════
   XBOX 360 BLADE UI — Complete styles
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Body takeover ─────────────────────────────────────────────────────────── */
body.vc-blade-mode { overflow: hidden !important; background: #0a0a0a !important; }
body.vc-blade-mode .vc-shell,
body.vc-blade-mode .sidebar,
body.vc-blade-mode .vc-main { display: none !important; }

/* ── Root shell ────────────────────────────────────────────────────────────── */
#vc-blade-root {
  position: fixed; inset: 0; display: none; flex-direction: column;
  font-family: 'Rajdhani','Segoe UI',sans-serif;
  background: linear-gradient(175deg,#eceee8,#d4d8d2 45%,#bec2bc);
  overflow: hidden; z-index: 9000;
}
#vc-blade-root.active { display: flex; }
#vc-blade-root::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(180deg,rgba(255,255,255,.75),transparent);
  z-index: 100; pointer-events: none;
}

/* ── Top bar ───────────────────────────────────────────────────────────────── */
#vc-blade-topbar {
  height: 44px; flex-shrink: 0; display: flex; align-items: center;
  justify-content: space-between; padding: 0 18px;
  background: linear-gradient(180deg,rgba(255,255,255,.52),rgba(255,255,255,.18));
  border-bottom: 1px solid rgba(0,0,0,.10); position: relative; z-index: 50;
}
#vc-blade-topbar::after { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 1px; background: rgba(255,255,255,.55); }
.vb-topleft { display: flex; align-items: center; gap: 10px; }
.vb-ring {
  width: 28px; height: 28px; border-radius: 50%; cursor: pointer; flex-shrink: 0;
  background: radial-gradient(circle at 38% 30%,rgba(150,240,80,.55),rgba(25,80,0,.80) 55%,rgba(8,42,0,.96));
  border: 2px solid rgba(82,176,0,.58);
  box-shadow: 0 0 0 3px rgba(82,176,0,.14),0 0 12px rgba(82,176,0,.28),inset 0 1px rgba(255,255,255,.22);
  display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden;
}
.vb-ring::before { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: linear-gradient(rgba(82,176,0,.28),rgba(82,176,0,.28)) center/1px 100% no-repeat, linear-gradient(rgba(82,176,0,.28),rgba(82,176,0,.28)) center/100% 1px no-repeat; }
.vb-ring::after { content: '⛧'; font-size: 14px; font-weight: 900; color: #b8ff40; text-shadow: 0 0 6px #80ff00,0 0 14px rgba(82,220,0,.90); position: relative; z-index: 1; }
.vb-gamertag { font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: #404040; }
.vb-gscore   { font-size: 10px; font-weight: 600; letter-spacing: 2px; color: #52b000; }
.vb-clock    { font-size: 13px; font-weight: 600; letter-spacing: 2px; color: #646460; }

/* ── Middle ────────────────────────────────────────────────────────────────── */
#vc-blade-middle { flex: 1; position: relative; overflow: hidden; min-height: 0; }
#vc-blade-backdrop {
  position: absolute; inset: 0; z-index: 0; transition: background .3s ease;
}
#vc-blade-backdrop[data-section="library"] { background: linear-gradient(160deg,#209020,#186818 35%,#105210 70%,#0a3e0a); }
#vc-blade-backdrop[data-section="shelves"] { background: linear-gradient(160deg,#c87010,#a85808 35%,#884808 70%,#683804); }
#vc-blade-backdrop[data-section="games"]   { background: linear-gradient(160deg,#2a9020,#1e6818 35%,#145212 70%,#0c3e0a); }
#vc-blade-backdrop[data-section="profile"] { background: linear-gradient(160deg,#c84010,#a83008 35%,#882408 70%,#681806); }
#vc-blade-backdrop[data-section="system"]  { background: linear-gradient(160deg,#6820a8,#501888 35%,#3c1070 70%,#2c0858); }
#vc-blade-backdrop::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(160deg,rgba(255,255,255,.15),rgba(255,255,255,.04) 30%,transparent 55%), linear-gradient(180deg,rgba(255,255,255,.10),transparent 30%); }

/* Content area */
#vc-blade-content {
  position: absolute; top: 0; bottom: 0; z-index: 2;
  display: flex; flex-direction: column; overflow: hidden;
  transition: left .18s ease, right .18s ease;
}
/* SVG blade panels */
#vc-blade-lp, #vc-blade-rp {
  position: absolute; top: 0; bottom: 0; z-index: 10; pointer-events: none;
  display: flex; align-items: stretch;
}
#vc-blade-lp { left: 0; }
#vc-blade-rp { right: 0; }
#vc-blade-lp svg, #vc-blade-rp svg { display: block; overflow: visible; width: auto; height: 100%; }
#vc-blade-lp g, #vc-blade-rp g { pointer-events: all; }

/* ── Bottom bar ────────────────────────────────────────────────────────────── */
#vc-blade-botbar {
  height: 46px; flex-shrink: 0; display: flex; align-items: center;
  padding: 0 18px; gap: 14px;
  background: linear-gradient(180deg,#d4d8d2,#bec2bc 60%,#a8aca8);
  border-top: 1px solid rgba(255,255,255,.50); position: relative; z-index: 50;
}
#vc-blade-botbar::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: rgba(255,255,255,.65); }
.vb-bhint  { display: flex; align-items: center; gap: 6px; }
.vb-bcirc  {
  width: 27px; height: 27px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 900;
  box-shadow: 0 3px 8px rgba(0,0,0,.55),inset 0 -3px 5px rgba(0,0,0,.30),inset 0 2px 2px rgba(255,255,255,.22);
  border: 1.5px solid rgba(0,0,0,.28); position: relative; overflow: hidden;
}
.vb-bcirc span { position: relative; z-index: 1; color: rgba(255,255,255,.55); text-shadow: 0 1px 0 rgba(0,0,0,.50); }
.vb-bcirc::before { content: ''; position: absolute; top: 3px; left: 4px; width: 46%; height: 38%; border-radius: 50%; background: radial-gradient(ellipse at 40% 35%,rgba(255,255,255,.82) 0%,rgba(255,255,255,.28) 55%,transparent 100%); z-index: 3; pointer-events: none; }
.vb-bcirc::after  { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 38%; border-radius: 0 0 50% 50%; background: linear-gradient(180deg,transparent,rgba(0,0,0,.28)); z-index: 2; pointer-events: none; }
.vb-by { background: radial-gradient(ellipse at 40% 25%,#ffe040 0%,#f0a800 45%,#c07800 75%,#7a4a00 100%); }
.vb-bx { background: radial-gradient(ellipse at 40% 25%,#60a8ff 0%,#2060e0 45%,#0840b0 75%,#021870 100%); }
.vb-bb { background: radial-gradient(ellipse at 40% 25%,#ff6040 0%,#e02010 45%,#b01008 75%,#600404 100%); }
.vb-ba { background: radial-gradient(ellipse at 40% 25%,#80e040 0%,#40b010 45%,#208008 75%,#0c4004 100%); }
.vb-blbl  { font-size: 10px; font-weight: 600; letter-spacing: .5px; color: #565652; }
.vb-bsep  { width: 1px; height: 20px; background: rgba(0,0,0,.13); margin: 0 2px; }
.vb-bright { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.vb-keyhint { display: flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 600; letter-spacing: .5px; color: #6a6a66; }
.vb-kpill { background: rgba(0,0,0,.12); border: 1px solid rgba(0,0,0,.18); border-radius: 4px; padding: 1px 6px; font-size: 10px; font-weight: 700; color: #555; box-shadow: inset 0 1px rgba(255,255,255,.60),0 1px 2px rgba(0,0,0,.18); }

/* ── View header ───────────────────────────────────────────────────────────── */
.vb-view-hdr {
  height: 54px; flex-shrink: 0; display: flex; align-items: flex-end;
  padding: 0 22px 10px;
  border-bottom: 1px solid rgba(255,255,255,.18);
  background: linear-gradient(180deg,rgba(0,0,0,.16),transparent);
}
.vb-view-title { font-size: 24px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: rgba(255,255,255,.95); line-height: 1; text-shadow: 0 2px 8px rgba(0,0,0,.28); }
.vb-view-sub   { font-size: 10px; font-weight: 500; letter-spacing: 3px; text-transform: uppercase; color: rgba(255,255,255,.48); margin-left: 12px; margin-bottom: 3px; }
.vb-view-body  { flex: 1; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.18) transparent; }

/* ── Real app views inside blade ───────────────────────────────────────────── */
#vc-blade-content .vc-view { display: none !important; }
#vc-blade-content .vc-view.active { display: flex !important; flex-direction: column; flex: 1; overflow: hidden; }
#vc-blade-content .vc-page-header,
#vc-blade-content .vc-topbar,
#vc-blade-content .lib-topbar { display: none !important; }
#vc-blade-content .vc-page    { padding: 12px 18px; background: transparent; }
#vc-blade-content .lib-inner  { padding: 8px 12px; }
#vc-blade-content { color: rgba(255,255,255,.88); }
#vc-blade-content .lib-section-header { color: rgba(255,255,255,.70); border-color: rgba(255,255,255,.14); }

/* ── FROSTED GLASS cards ───────────────────────────────────────────────────── */
#vc-blade-content .result-card {
  background: rgba(255,255,255,.10) !important;
  backdrop-filter: blur(12px) saturate(1.4) !important;
  -webkit-backdrop-filter: blur(12px) saturate(1.4) !important;
  border: 1px solid rgba(255,255,255,.22) !important;
  box-shadow: 0 2px 16px rgba(0,0,0,.28), inset 0 1px rgba(255,255,255,.18) !important;
  color: rgba(255,255,255,.90) !important;
  transition: background .15s, border-color .15s, transform .15s, box-shadow .15s !important;
}
#vc-blade-content .result-card:hover {
  background: rgba(255,255,255,.18) !important;
  border-color: rgba(255,255,255,.40) !important;
  box-shadow: 0 6px 24px rgba(0,0,0,.40), inset 0 1px rgba(255,255,255,.28) !important;
  transform: translateY(-3px) !important;
}
#vc-blade-content .poster-fallback { background: rgba(255,255,255,.06) !important; color: rgba(255,255,255,.38) !important; }
#vc-blade-content .result-title    { color: rgba(255,255,255,.92) !important; }
#vc-blade-content .result-year     { color: rgba(255,255,255,.52) !important; }
#vc-blade-content .platform-tag    { background: rgba(255,255,255,.12) !important; border-color: rgba(255,255,255,.20) !important; color: rgba(255,255,255,.72) !important; }

#vc-blade-content .lib-card {
  background: rgba(255,255,255,.10) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255,255,255,.20) !important;
  color: rgba(255,255,255,.88) !important;
}
#vc-blade-content .lib-card:hover  { background: rgba(255,255,255,.18) !important; border-color: rgba(255,255,255,.36) !important; }
#vc-blade-content .lib-card-name   { color: rgba(255,255,255,.92) !important; }
#vc-blade-content .lib-card-year,
#vc-blade-content .lib-card-ago    { color: rgba(255,255,255,.45) !important; }

/* Search/filter overrides */
#vc-blade-content .games-search-wrap { background: rgba(255,255,255,.10) !important; backdrop-filter: blur(8px) !important; -webkit-backdrop-filter: blur(8px) !important; border: 1px solid rgba(255,255,255,.22) !important; border-radius: 8px !important; padding: 4px 12px !important; }
#vc-blade-content .games-search-input { background: transparent !important; color: rgba(255,255,255,.96) !important; font-weight: 600 !important; }
#vc-blade-content .games-search-input::placeholder { color: rgba(255,255,255,.55) !important; }
#vc-blade-content .btn-ritual        { background: rgba(82,176,0,.30) !important; border-color: rgba(82,176,0,.65) !important; color: rgba(200,255,100,.98) !important; font-weight: 700 !important; }
#vc-blade-content .btn-ghost         { background: rgba(255,255,255,.16) !important; border-color: rgba(255,255,255,.35) !important; color: rgba(255,255,255,.92) !important; font-weight: 600 !important; }
#vc-blade-content .filter-pill       { color: rgba(255,255,255,.85) !important; border-color: rgba(255,255,255,.30) !important; }
#vc-blade-content .gt-label,
#vc-blade-content .gt-check          { color: rgba(255,255,255,.85) !important; font-weight: 600 !important; }
#vc-blade-content select,
#vc-blade-content .gt-select         { background: rgba(0,0,0,.38) !important; color: rgba(255,255,255,.92) !important; border-color: rgba(255,255,255,.30) !important; font-weight: 600 !important; }
#vc-blade-content .games-status      { color: rgba(255,255,255,.75) !important; font-weight: 600 !important; }
#vc-blade-content .lib-section-title { color: rgba(255,255,255,.90) !important; font-weight: 700 !important; }
#vc-blade-content .lib-section-icon  { opacity: .85; }
#vc-blade-content .recent-label      { color: rgba(255,255,255,.75) !important; font-weight: 700 !important; }
#vc-blade-content .recent-chip       { background: rgba(255,255,255,.16) !important; border: 1px solid rgba(255,255,255,.30) !important; color: rgba(255,255,255,.92) !important; font-weight: 600 !important; }
#vc-blade-content .result-title      { color: #fff !important; font-weight: 700 !important; text-shadow: 0 1px 4px rgba(0,0,0,.60) !important; }
#vc-blade-content .result-year       { color: rgba(255,255,255,.72) !important; font-weight: 600 !important; }
#vc-blade-content .platform-tag,
#vc-blade-content .tag               { background: rgba(255,255,255,.18) !important; border-color: rgba(255,255,255,.30) !important; color: rgba(255,255,255,.90) !important; font-weight: 600 !important; }
#vc-blade-content .games-toolbar     { color: rgba(255,255,255,.85) !important; }
#vc-blade-content input[type="checkbox"] { accent-color: #52b000; }

/* ── Games Dashboard (blade-only) ──────────────────────────────────────────── */
#vb-games-dash {
  display: flex; flex-direction: column; height: 100%; overflow: hidden;
}
.vb-dash-body {
  flex: 1; overflow-y: auto; padding: 14px 20px; display: flex; flex-direction: column; gap: 16px;
  scrollbar-width: none;
}
/* Shared search bar in dashboard */
.vb-dash-search {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.12); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.25); border-radius: 8px; padding: 7px 14px;
}
.vb-dash-search input {
  flex: 1; background: transparent; border: none; outline: none;
  color: rgba(255,255,255,.90); font-size: 14px; font-family: inherit;
}
.vb-dash-search input::placeholder { color: rgba(255,255,255,.38); }
.vb-dash-search .vb-dash-search-lbl { font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: rgba(255,255,255,.35); }
/* New Releases — horizontal scroll row of poster cards */
.vb-hero-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.vb-hero-row::-webkit-scrollbar { display: none; }
.vb-dash-hero {
  position: relative; overflow: hidden; border-radius: 8px; flex: 0 0 150px; height: 220px;
  background: rgba(0,0,0,.22); border: 1px solid rgba(255,255,255,.18);
  display: flex; align-items: flex-end; cursor: pointer; transition: border-color .15s, transform .15s;
}
.vb-dash-hero:hover { border-color: rgba(255,255,255,.50); transform: translateY(-3px); }
.vb-dash-hero-bg { position: absolute; inset: 0; object-fit: cover; width: 100%; height: 100%; opacity: .90; z-index: 0; }
.vb-dash-hero::after { content:''; position:absolute; inset:0; background: linear-gradient(0deg, rgba(0,0,0,.90) 0%, rgba(0,0,0,.35) 50%, transparent 80%); z-index: 1; pointer-events: none; }
.vb-dash-hero-content { position: relative; z-index: 2; padding: 10px 10px 9px; width: 100%; }
.vb-dash-hero-eyebrow { font-size: 7px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: rgba(255,220,60,.85); margin-bottom: 3px; }
.vb-dash-hero-title { font-size: 13px; font-weight: 700; color: rgba(255,255,255,.97); letter-spacing: .3px; line-height: 1.25; text-shadow: 0 1px 4px rgba(0,0,0,.80); }
.vb-dash-hero-meta  { font-size: 9px; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,.48); margin-top: 2px; }
.vb-dash-hero-btn   { display: none; }
.vb-dash-hero-icon  { display: none; }
/* Section label */
.vb-dash-section { font-size: 9px; font-weight: 700; letter-spacing: 4px; text-transform: uppercase; color: rgba(255,255,255,.45); display: flex; align-items: center; gap: 8px; }
.vb-dash-section::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg,rgba(255,255,255,.20),transparent); }
/* Trending — larger poster grid */
.vb-trend-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 6px; }
.vb-trend-card {
  cursor: pointer;
}
.vb-trend-thumb {
  width: 100%; aspect-ratio: 3/4; border-radius: 7px; position: relative; overflow: hidden;
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.16);
  display: flex; align-items: center; justify-content: center; transition: border-color .15s, transform .15s;
}
.vb-trend-card:hover .vb-trend-thumb { border-color: rgba(255,255,255,.45); transform: translateY(-3px); }
.vb-trend-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vb-trend-thumb .vb-trend-score {
  position: absolute; bottom: 6px; right: 7px;
  background: rgba(0,0,0,.82); border-radius: 4px; padding: 3px 7px;
  font-size: 12px; font-weight: 700; color: rgba(255,255,255,.95); letter-spacing: .5px;
}
.vb-trend-thumb .vb-trend-ico { font-size: 32px; opacity: .55; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); }
.vb-trend-name { font-size: 11px; font-weight: 700; color: rgba(255,255,255,.85); margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vb-trend-genre { font-size: 9px; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,.40); margin-top: 2px; }
/* Upcoming — cover card grid */
.vb-upcoming-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.vb-upcoming-item {
  position: relative; overflow: hidden; border-radius: 7px; aspect-ratio: 3/4;
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.16);
  cursor: pointer; transition: border-color .15s, transform .15s; display: flex; align-items: flex-end;
}
.vb-upcoming-item:hover { border-color: rgba(255,255,255,.45); transform: translateY(-3px); }
.vb-upcoming-cover { position: absolute; inset: 0; object-fit: cover; width: 100%; height: 100%; opacity: .90; z-index: 0; }
.vb-upcoming-item::after { content:''; position:absolute; inset:0; background: linear-gradient(0deg, rgba(0,0,0,.90) 0%, rgba(0,0,0,.30) 50%, transparent 80%); z-index: 1; pointer-events: none; }
.vb-upcoming-info { position: relative; z-index: 2; padding: 9px 9px 8px; width: 100%; }
.vb-upcoming-date {
  display: inline-block; margin-bottom: 4px;
  background: rgba(255,220,60,.90); color: #000; border-radius: 3px;
  padding: 2px 5px; font-size: 7px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
}
.vb-upcoming-name { font-size: 11px; font-weight: 700; color: rgba(255,255,255,.95); line-height: 1.25; text-shadow: 0 1px 4px rgba(0,0,0,.80); }
.vb-upcoming-meta { font-size: 9px; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,.45); margin-top: 2px; }
.vb-upcoming-ico { display: none; }
.vb-shimmer { border-radius: 6px; background: rgba(255,255,255,.08); animation: vbShimmer 1.4s ease infinite; }
@keyframes vbShimmer { 0%,100%{opacity:.5} 50%{opacity:.15} }

/* ── Profile view ──────────────────────────────────────────────────────────── */
.vb-prof-body { flex: 1; overflow-y: auto; padding: 16px 20px; display: flex; flex-direction: column; gap: 12px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.18) transparent; }
.vb-hero { display: flex; align-items: center; gap: 14px; padding: 12px 14px; background: rgba(255,255,255,.10); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.20); border-radius: 8px; }
.vb-avatar { width: 64px; height: 64px; border-radius: 10px; flex-shrink: 0; background: rgba(0,0,0,.30); border: 2px solid rgba(255,255,255,.32); display: flex; align-items: center; justify-content: center; font-size: 28px; cursor: pointer; transition: border-color .15s; }
.vb-avatar:hover { border-color: rgba(255,255,255,.60); }
.vb-hname  { font-size: 20px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: #fff; }
.vb-hemail { font-size: 11px; color: rgba(255,255,255,.48); margin-top: 2px; }
.vb-hg     { font-size: 11px; font-weight: 600; letter-spacing: 2px; color: #52b000; margin-top: 3px; }
.vb-stats  { display: grid; grid-template-columns: repeat(4,1fr); gap: 7px; }
.vb-stat   { padding: 9px 10px; border-radius: 6px; background: rgba(255,255,255,.10); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.14); text-align: center; }
.vb-stat-v { font-size: 22px; font-weight: 700; color: rgba(255,255,255,.92); }
.vb-stat-l { font-size: 8px; letter-spacing: 3px; text-transform: uppercase; color: rgba(255,255,255,.42); margin-top: 1px; }
.vb-sec    { font-size: 10px; font-weight: 700; letter-spacing: 4px; text-transform: uppercase; color: rgba(255,255,255,.45); display: flex; align-items: center; gap: 8px; }
.vb-sec::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg,rgba(255,255,255,.18),transparent); }
.vb-field  { display: flex; flex-direction: column; gap: 4px; }
.vb-field label { font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,.50); }
.vb-input  { background: rgba(255,255,255,.10); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.18); border-radius: 6px; padding: 7px 11px; color: rgba(255,255,255,.88); font-size: 14px; font-family: inherit; outline: none; width: 100%; transition: border-color .15s; }
.vb-input:focus { border-color: rgba(82,176,0,.55); }
.vb-input::placeholder { color: rgba(255,255,255,.25); }
.vb-textarea { min-height: 62px; resize: vertical; }
.vb-btn { align-self: flex-start; background: rgba(82,176,0,.22); border: 1px solid rgba(82,176,0,.44); border-radius: 6px; padding: 7px 18px; color: rgba(180,255,80,.95); font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; cursor: pointer; font-family: inherit; transition: background .15s; }
.vb-btn:hover { background: rgba(82,176,0,.36); }
.vb-btn-danger { background: rgba(180,30,30,.18); border-color: rgba(200,60,60,.38); color: rgba(255,130,130,.90); }
.vb-msg { font-size: 11px; letter-spacing: 1px; color: rgba(82,220,0,.85); min-height: 14px; }

/* ── System view ───────────────────────────────────────────────────────────── */
.vb-sys-body { flex: 1; overflow-y: auto; padding: 12px 18px; display: flex; flex-direction: column; gap: 6px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.18) transparent; }
.vb-sys-row { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 7px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.10); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); cursor: pointer; transition: all .15s; }
.vb-sys-row:hover { background: rgba(255,255,255,.20); border-color: rgba(255,255,255,.30); }
.vb-sys-ico  { font-size: 18px; width: 26px; text-align: center; flex-shrink: 0; }
.vb-sys-lbl  { font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,.84); }
.vb-sys-desc { font-size: 10px; color: rgba(255,255,255,.40); letter-spacing: .5px; margin-top: 1px; }
.vb-sys-val  { font-size: 11px; font-weight: 700; letter-spacing: 1px; color: rgba(255,255,255,.52); margin-left: auto; }
.vb-sys-arr  { font-size: 15px; color: rgba(255,255,255,.26); margin-left: auto; }
.vb-sys-ver  { font-size: 8px; letter-spacing: 3px; text-transform: uppercase; color: rgba(255,255,255,.18); text-align: right; margin-top: auto; padding-top: 10px; }

/* ── Shelves view ──────────────────────────────────────────────────────────── */
.vb-sh-body { flex: 1; overflow-y: auto; padding: 14px 18px; scrollbar-width: none; }
.vb-sh-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.vb-sh-card {
  border-radius: 10px; background: rgba(255,255,255,.10); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.16); cursor: pointer; transition: all .15s;
  display: flex; flex-direction: column; overflow: hidden;
}
.vb-sh-card:hover { background: rgba(255,255,255,.20); border-color: rgba(255,255,255,.40); transform: translateY(-2px); }
.vb-sh-card[data-shelf="locker"]    { border-top: 3px solid rgba(201,151,58,.85); }
.vb-sh-card[data-shelf="playing"]   { border-top: 3px solid rgba(255,210,80,.90); }
.vb-sh-card[data-shelf="completed"] { border-top: 3px solid rgba(130,200,140,.85); }
.vb-sh-card[data-shelf="backlog"]   { border-top: 3px solid rgba(160,140,255,.85); }
.vb-sh-card[data-shelf="wishlist"]  { border-top: 3px solid rgba(255,160,80,.85); }
.vb-sh-card[data-shelf="dropped"]   { border-top: 3px solid rgba(180,80,80,.85); }
/* Header row: icon + name + desc on left, count on right */
.vb-sh-card-top { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px 8px; }
.vb-sh-ico  { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.vb-sh-head { flex: 1; min-width: 0; }
.vb-sh-name { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,.90); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vb-sh-desc { font-size: 9px; color: rgba(255,255,255,.42); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vb-sh-cnt  { font-size: 18px; font-weight: 700; color: rgba(255,255,255,.80); flex-shrink: 0; }
/* Cover grid — smaller thumbnails */
.vb-sh-cover-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 4px; padding: 0 10px 10px; }
.vb-sh-cg-img { width: 100%; aspect-ratio: 3/4; border-radius: 4px; background: rgba(255,255,255,.08); object-fit: cover; border: 1px solid rgba(255,255,255,.10); }
.vb-sh-empty-art { height: 60px; margin: 0 10px 10px; border-radius: 6px; background: rgba(255,255,255,.05); }
/* footer removed — info is in header now */
.vb-sh-card-foot { display: none; }
/* Legacy cover strip */
.vb-sh-covers { display: none; }
.vb-sh-cover  { display: none; }

/* ── Achievement toast ─────────────────────────────────────────────────────── */
/* ── Achievement Toast — xquatrox-style reimagined ── */
#vc-blade-toast {
  position: fixed;
  bottom: 52px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 99999;
  display: flex;
  align-items: center;
  gap: 0;
  pointer-events: none;
  font-family: 'Share Tech Mono', 'Rajdhani', sans-serif;
  opacity: 0;
  transition: opacity 0s;
}

/* The spinning sigil ring — always visible, leads the animation */
#vb-toast-ring {
  position: relative;
  width: 52px; height: 52px;
  flex-shrink: 0;
  z-index: 2;
}

/* Outer arc track */
#vb-toast-ring svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}

/* The dark circle background of the icon */
#vb-toast-ring-bg {
  position: absolute; inset: 4px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 35%, #1a2a10, #080c06);
  border: 1px solid rgba(82,176,0,.30);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}

/* Sigil face */
.vb-ring-face {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .18s ease;
}
.vb-ring-face-sigil { font-size: 20px; line-height: 1; color: #76d400; text-shadow: 0 0 8px rgba(82,220,0,.8); }
.vb-ring-face-trophy { font-size: 17px; line-height: 1; opacity: 0; }

/* Pill body — slides in from the left behind the ring */
#vb-toast-pill {
  background: rgba(10,12,10,.96);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(82,176,0,.55);
  border-left: none;
  border-radius: 0 28px 28px 0;
  padding: 9px 18px 9px 22px;
  margin-left: -14px; /* tucks behind ring */
  min-width: 0; max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  box-shadow: 0 0 0 1px rgba(82,176,0,.10), 0 6px 24px rgba(0,0,0,.80), 0 0 16px rgba(82,176,0,.08);
  transition: max-width .38s cubic-bezier(.22,1,.36,1), padding .38s cubic-bezier(.22,1,.36,1);
  display: flex; flex-direction: column; justify-content: center;
}
#vb-toast-pill.open {
  max-width: 280px;
  padding: 9px 18px 9px 22px;
}

.vb-toast-badge {
  font-size: 8px; font-weight: 700; letter-spacing: 4px;
  text-transform: uppercase; color: rgba(82,220,0,.90);
  margin-bottom: 2px; opacity: 0; transition: opacity .22s ease .32s;
}
.vb-toast-title {
  font-size: 13px; font-weight: 700; letter-spacing: .5px;
  color: rgba(245,255,240,.96); opacity: 0; transition: opacity .22s ease .38s;
  font-family: 'Cinzel', serif;
}
.vb-toast-pts {
  font-size: 10px; letter-spacing: 2px;
  color: rgba(82,176,0,.80); margin-top: 1px;
  opacity: 0; transition: opacity .22s ease .44s;
}
#vb-toast-pill.open .vb-toast-badge,
#vb-toast-pill.open .vb-toast-title,
#vb-toast-pill.open .vb-toast-pts { opacity: 1; }

/* Arc ring SVG stroke animation */
@keyframes vbRingSpinIn {
  from { stroke-dashoffset: 138; opacity: 0; }
  to   { stroke-dashoffset: 0;   opacity: 1; }
}
@keyframes vbRingPulse {
  0%,100% { opacity: .85; }
  50%      { opacity: 1; filter: drop-shadow(0 0 4px rgba(82,220,0,.9)); }
}
@keyframes vbRingSpinLoop {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Icon swap crossfade */
@keyframes vbIconOut { from{opacity:1} to{opacity:0} }
@keyframes vbIconIn  { from{opacity:0} to{opacity:1} }

/* Toast fade out */
@keyframes vbToastFadeOut {
  from { opacity: 1; transform: translateX(-50%) translateY(0); }
  to   { opacity: 0; transform: translateX(-50%) translateY(8px); }
}

/* hide old children we no longer use */
#vb-toast-icon, #vb-toast-g { display: none !important; }

/* ── Blade Color Picker ────────────────────────────────────────────────────── */
#vb-color-picker-overlay {
  position: fixed; inset: 0; z-index: 99998;
  background: rgba(0,0,0,.55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  animation: vbCpFadeIn .18s ease;
}
@keyframes vbCpFadeIn { from{opacity:0;transform:scale(.96)} to{opacity:1;transform:scale(1)} }
#vb-color-picker-box {
  background: linear-gradient(160deg,rgba(18,20,18,.97),rgba(10,12,10,.99));
  border: 1px solid rgba(255,255,255,.18); border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 20px 60px rgba(0,0,0,.80);
  padding: 0; min-width: 360px; max-width: 420px; overflow: hidden;
  font-family: 'Rajdhani','Segoe UI',sans-serif;
}
.vb-cp-header {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px 12px;
  border-bottom: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg,rgba(255,255,255,.06),transparent);
}
.vb-cp-y-btn {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  background: radial-gradient(ellipse at 40% 25%,#ffe040 0%,#f0a800 45%,#c07800 75%,#7a4a00 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 900; color: rgba(255,255,255,.55);
  box-shadow: 0 2px 6px rgba(0,0,0,.50),inset 0 1px rgba(255,255,255,.20);
}
.vb-cp-title { flex: 1; font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,.85); }
.vb-cp-title span { color: rgba(255,210,60,.90); }
.vb-cp-close { background: none; border: none; color: rgba(255,255,255,.40); font-size: 15px; cursor: pointer; padding: 2px 4px; line-height: 1; transition: color .15s; }
.vb-cp-close:hover { color: rgba(255,255,255,.80); }
.vb-cp-presets { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px; }
.vb-cp-swatch {
  width: 36px; height: 36px; border-radius: 6px; border: 2px solid rgba(255,255,255,.15);
  cursor: pointer; transition: transform .12s, border-color .12s, box-shadow .12s;
  box-shadow: 0 2px 8px rgba(0,0,0,.40);
}
.vb-cp-swatch:hover { transform: scale(1.18); border-color: rgba(255,255,255,.60); box-shadow: 0 4px 14px rgba(0,0,0,.55); }
.vb-cp-custom { padding: 0 16px 14px; display: flex; flex-direction: column; gap: 6px; }
.vb-cp-hex-label { font-size: 9px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: rgba(255,255,255,.40); }
.vb-cp-hex-row { display: flex; align-items: center; gap: 8px; }
.vb-cp-colorinput { width: 38px; height: 34px; border: 1px solid rgba(255,255,255,.20); border-radius: 6px; background: none; cursor: pointer; padding: 2px; }
.vb-cp-hextext { flex: 1; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 6px; padding: 7px 10px; color: rgba(255,255,255,.88); font-size: 14px; font-family: 'Share Tech Mono',monospace; outline: none; letter-spacing: 1px; }
.vb-cp-hextext:focus { border-color: rgba(255,200,60,.55); }
.vb-cp-apply { background: rgba(255,200,60,.18); border: 1px solid rgba(255,200,60,.40); border-radius: 6px; padding: 7px 14px; color: rgba(255,220,80,.95); font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; cursor: pointer; font-family: inherit; transition: background .15s; white-space: nowrap; }
.vb-cp-apply:hover { background: rgba(255,200,60,.32); }
.vb-cp-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 16px; border-top: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.20);
}
.vb-cp-reset { background: none; border: 1px solid rgba(255,255,255,.14); border-radius: 6px; padding: 6px 12px; color: rgba(255,255,255,.50); font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; cursor: pointer; font-family: inherit; transition: all .15s; }
.vb-cp-reset:hover { border-color: rgba(255,255,255,.30); color: rgba(255,255,255,.80); }
.vb-cp-done { background: rgba(82,176,0,.22); border: 1px solid rgba(82,176,0,.45); border-radius: 6px; padding: 7px 18px; color: rgba(180,255,80,.95); font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; cursor: pointer; font-family: inherit; transition: background .15s; }
.vb-cp-done:hover { background: rgba(82,176,0,.36); }

/* ── Profile privacy row ──────────────────────────────────────────────────── */
.vb-privacy-row {
  display: flex; align-items: flex-start; gap: 10px; padding: 9px 12px; border-radius: 7px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); cursor: pointer;
}
.vb-privacy-row input[type="checkbox"] { margin-top: 2px; accent-color: #52b000; flex-shrink: 0; }

