*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-outer: #030420;
  --bg: #0c111d;
  --bg2: #080e1a;
  --bg3: #111828;
  --border: #1e2d4a;
  --accent: #64a0c8;
  --accent-dim: #1e3a5a;
  --text: #8a9bb8;
  --text-bright: #e6e4f0;
  --text-dim: #2a3355;
  --active: #78b4c8;
  --mid: #2a3355;
  --on-air: #d63333;
  --yellow: #e8c84a;
  --cyan-glow: #78b4c859;
  --lavender: #b4a0dc40;
  --menu-highlight: #64a0c833;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
  font-family: 'Barlow', 'DIN Alternate', system-ui, sans-serif;
  font-size: 14px;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Landing screen ──────────────────────────────────────── */
.landing {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #04062e 0%, #000008 60%, #000 100%);
  cursor: pointer;
  transition: opacity 1.2s ease;
  overflow: hidden;
}

/* Vignette */
.landing::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 25%, rgba(0,0,8,0.75) 100%);
  pointer-events: none;
  animation: vignette-breathe 5s ease-in-out infinite;
}

@keyframes vignette-breathe {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.45; }
}

.landing.fade-out {
  opacity: 0;
  pointer-events: none;
}

/* ── Sweep line ──────────────────────────────────────────── */
.landing-sweep {
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent 0%, rgba(100,160,200,0.5) 30%, rgba(180,160,220,0.7) 50%, rgba(100,160,200,0.5) 70%, transparent 100%);
  animation: sweep 7s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
  box-shadow: 0 0 14px rgba(120,180,220,0.45);
}

@keyframes sweep {
  0%   { top: -2px; opacity: 0; }
  4%   { opacity: 1; }
  96%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* ── HUD corner brackets ─────────────────────────────────── */
.hud-corner {
  position: absolute;
  width: 44px;
  height: 44px;
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  animation: hud-appear 0.5s cubic-bezier(0.16,1,0.3,1) forwards;
}

.hud-tl { top: 24px; left: 24px; border-top: 1px solid rgba(100,160,200,0.45); border-left: 1px solid rgba(100,160,200,0.45); animation-delay: 0.5s; }
.hud-tr { top: 24px; right: 24px; border-top: 1px solid rgba(100,160,200,0.45); border-right: 1px solid rgba(100,160,200,0.45); animation-delay: 0.65s; }
.hud-bl { bottom: 24px; left: 24px; border-bottom: 1px solid rgba(100,160,200,0.45); border-left: 1px solid rgba(100,160,200,0.45); animation-delay: 0.8s; }
.hud-br { bottom: 24px; right: 24px; border-bottom: 1px solid rgba(100,160,200,0.45); border-right: 1px solid rgba(100,160,200,0.45); animation-delay: 0.95s; }

@keyframes hud-appear {
  from { opacity: 0; transform: scale(1.4); }
  to   { opacity: 1; transform: scale(1); }
}

/* ── Content ─────────────────────────────────────────────── */
.landing-content {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.landing-title {
  font-family: 'Barlow', system-ui, sans-serif;
  font-size: 32px;
  letter-spacing: 0.6em;
  color: rgba(215, 212, 240, 0.92);
  font-weight: 400;
  user-select: none;
  min-height: 1.2em;
  min-width: 1px;
  animation: title-glow 4s ease-in-out infinite;
}

@keyframes title-glow {
  0%, 100% { text-shadow: 0 0 30px rgba(120,160,220,0.3), 0 0 80px rgba(160,140,240,0.12); }
  50%       { text-shadow: 0 0 70px rgba(120,180,220,0.6), 0 0 140px rgba(180,150,240,0.3); }
}

.landing-title.glitch {
  animation: glitch 0.15s steps(1) forwards;
}

@keyframes glitch {
  0%   { transform: translate(0); clip-path: none; filter: none; }
  20%  { transform: translate(-4px, 1px); filter: hue-rotate(80deg) brightness(1.5); }
  40%  { transform: translate(4px, -1px); filter: hue-rotate(-80deg) brightness(0.7); }
  60%  { transform: translate(-2px, 0); filter: none; }
  80%  { transform: translate(2px, 1px); filter: brightness(1.6); }
  100% { transform: translate(0); filter: none; }
}

.landing-enter {
  position: relative;
  padding: 8px 24px;
  border: 1px solid rgba(100,160,200,0.2);
  animation: border-pulse 2.5s ease-in-out infinite;
  opacity: 0;
  transition: opacity 0.5s;
}

.landing-enter.visible { opacity: 1; }

@keyframes border-pulse {
  0%, 100% { border-color: rgba(100,160,200,0.18); box-shadow: none; }
  50%       { border-color: rgba(100,160,200,0.5); box-shadow: 0 0 16px rgba(100,160,200,0.18); }
}

.landing-sub {
  font-family: 'Barlow', system-ui, sans-serif;
  font-size: 10px;
  letter-spacing: 0.45em;
  color: rgba(100, 140, 180, 0.75);
  user-select: none;
  display: block;
  min-width: 80px;
  text-align: center;
  animation: blink-enter 1.2s step-start infinite;
}

@keyframes blink-enter {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ── Wallpaper (always behind everything) ────────────────── */
.wallpaper {
  position: fixed;
  inset: 0;
  z-index: 1;
  background-image: url('assets/pics/background.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1s ease;
}

.wallpaper.visible { opacity: 1; }

/* ── Desktop ─────────────────────────────────────────────── */
.desktop {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 20px 20px 50px 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.desktop.active {
  opacity: 1;
  pointer-events: all;
}

.desktop-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 16px;
  border: 1px solid transparent;
  border-radius: 4px;
  transition: border-color 0.15s, background 0.15s;
  user-select: none;
}

.desktop-icon:hover {
  border-color: rgba(100,160,200,0.3);
  background: rgba(100,160,200,0.06);
}

.desktop-icon.selected {
  border-color: rgba(100,160,200,0.5);
  background: rgba(100,160,200,0.12);
}

.desktop-icon-img {
  width: 56px;
  height: 56px;
  filter: drop-shadow(0 0 12px rgba(120,180,200,0.4));
  transition: filter 0.15s;
}

.desktop-icon-folder .desktop-icon-img {
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

.desktop-icon-folder:hover .desktop-icon-img {
  filter: drop-shadow(0 2px 14px rgba(245,183,49,0.5));
}

.desktop-icon:hover .desktop-icon-img {
  filter: drop-shadow(0 0 20px rgba(120,180,200,0.7));
}

.desktop-icon-img svg { width: 100%; height: 100%; }

.desktop-icon-img-file {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: screen;
}

.desktop-icon-label {
  font-family: 'Barlow', system-ui, sans-serif;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-bright);
  text-align: center;
  line-height: 1.4;
  text-shadow: 0 1px 6px rgba(0,0,0,0.8);
}

.desktop-icon-hint {
  font-family: 'Barlow', system-ui, sans-serif;
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  text-align: center;
  animation: hint-blink 2s ease-in-out infinite;
}

@keyframes hint-blink {
  0%, 100% { opacity: 0.6; }
  50%       { opacity: 1; }
}

/* ── Taskbar pill (minimized state) ─────────────────────── */
.taskbar-pill {
  display: none; /* replaced by xp-taskbar */
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  z-index: 8;
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 6px 18px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), opacity 0.35s ease;
  white-space: nowrap;
}

.taskbar-pill.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

.taskbar-pill:hover { color: var(--text-bright); border-color: var(--accent); }

/* ── XP Taskbar ──────────────────────────────────────────── */
.xp-taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  z-index: 15;
  background: linear-gradient(to bottom, #2a5fd6 0%, #1a4abf 40%, #1240b0 60%, #1a52cc 100%);
  border-top: 1px solid #4a7af0;
  display: none;
  align-items: stretch;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.5);
}

.xp-taskbar.visible { display: flex; }

/* Start button */
.xp-start-btn {
  height: 100%;
  padding: 0 14px 0 8px;
  background: linear-gradient(to bottom, #5cb85c 0%, #3a9a3a 40%, #2d8a2d 60%, #44aa44 100%);
  border: none;
  border-right: 1px solid #2a7a2a;
  border-radius: 0 12px 12px 0;
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  font-family: 'Tahoma', 'Barlow', system-ui, sans-serif;
  font-size: 14px;
  font-weight: bold;
  font-style: italic;
  color: #fff;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.6);
  letter-spacing: 0.02em;
  flex-shrink: 0;
  transition: filter 0.1s;
}

.xp-start-btn:hover { filter: brightness(1.15); }
.xp-start-btn:active { filter: brightness(0.9); }

.xp-start-logo {
  width: 22px;
  height: 22px;
  border-radius: 3px;
  object-fit: cover;
}

.xp-taskbar-sep {
  width: 1px;
  background: rgba(255,255,255,0.15);
  margin: 4px 4px;
  flex-shrink: 0;
}

/* Open app buttons */
.xp-open-apps {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 0 4px;
  overflow: hidden;
}

.xp-app-btn {
  height: 30px;
  min-width: 120px;
  max-width: 180px;
  padding: 0 8px;
  background: linear-gradient(to bottom, #4a7ae8 0%, #2a5ad8 50%, #2050c8 100%);
  border: 1px solid #1a3ab0;
  border-radius: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-family: 'Barlow', system-ui, sans-serif;
  font-size: 11px;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: filter 0.1s;
  flex-shrink: 0;
}

.xp-app-btn:hover { filter: brightness(1.2); }
.xp-app-btn.minimized {
  background: linear-gradient(to bottom, #3060c0 0%, #1a40a0 100%);
  border-color: #0a2880;
}

.xp-app-btn-icon { font-size: 13px; flex-shrink: 0; }

/* System tray */
.xp-tray {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  background: linear-gradient(to bottom, #1240b0 0%, #0a308a 100%);
  border-left: 1px solid rgba(255,255,255,0.15);
  flex-shrink: 0;
}

.xp-tray-icons {
  display: flex;
  gap: 5px;
  font-size: 14px;
}

.xp-clock {
  font-family: 'Barlow', system-ui, sans-serif;
  font-size: 11px;
  color: #fff;
  white-space: nowrap;
  text-align: center;
  min-width: 38px;
}

/* ── Start Menu ──────────────────────────────────────────── */
.start-menu {
  position: fixed;
  bottom: 40px;
  left: 0;
  width: 420px;
  background: #fff;
  border: 1px solid #0a3a9a;
  border-radius: 6px 6px 0 0;
  z-index: 20;
  display: none;
  flex-direction: column;
  box-shadow: 4px -4px 20px rgba(0,0,0,0.5);
  overflow: hidden;
  font-family: 'Barlow', system-ui, sans-serif;
}

.start-menu.open { display: flex; }

.start-header {
  background: linear-gradient(to right, #1a56cc, #3a80f0);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.start-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.4);
  object-fit: cover;
}

.start-username {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
  letter-spacing: 0.03em;
}

.start-body {
  display: flex;
  flex: 1;
}

.start-left {
  flex: 1;
  background: #fff;
  padding: 8px 4px;
  border-right: 1px solid #c8d8f8;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.start-pinned-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #1a56cc;
  text-transform: uppercase;
  padding: 4px 10px 2px;
}

.start-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.1s;
  margin: 0 4px;
}

.start-item:hover { background: #c8d8f8; }
.sm-disabled { opacity: 0.5; cursor: default; }
.sm-disabled:hover { background: none; }

.start-item-icon { font-size: 20px; flex-shrink: 0; }

.start-item-name {
  font-size: 12px;
  font-weight: 600;
  color: #111;
}

.start-item-sub {
  font-size: 10px;
  color: #777;
}

.start-right {
  width: 150px;
  background: #c8d8f8;
  padding: 8px 4px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.start-shortcut {
  font-size: 12px;
  color: #111;
  padding: 5px 10px;
  border-radius: 3px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.1s;
}

.start-shortcut:hover { background: #a0bce8; }

.start-sep {
  height: 1px;
  background: #c8d8f8;
  margin: 4px 8px;
}

.start-right .start-sep { background: #a0bce8; }

.start-footer {
  background: linear-gradient(to right, #1a56cc, #3a80f0);
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  padding: 6px 10px;
  border-top: 1px solid #0a3a9a;
}

.start-footer-btn {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 3px;
  color: #fff;
  font-family: 'Barlow', system-ui, sans-serif;
  font-size: 11px;
  padding: 4px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: background 0.12s;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

.start-footer-btn:hover { background: rgba(255,255,255,0.28); }
.start-footer-shutdown:hover { background: rgba(200,40,40,0.6); }

/* Tray icon hover */
.xp-tray-icons span {
  cursor: pointer;
  padding: 2px 3px;
  border-radius: 3px;
  transition: background 0.12s;
}
.xp-tray-icons span:hover { background: rgba(255,255,255,0.15); }

/* Tray popups */
.tray-popup {
  position: fixed;
  bottom: 46px;
  right: 8px;
  width: 200px;
  background: #1e1e2a;
  border: 1px solid #3a4a7a;
  border-radius: 6px;
  padding: 10px 12px;
  z-index: 20;
  display: none;
  flex-direction: column;
  gap: 7px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.5);
}

.tray-popup.open { display: flex; }

.tray-popup-title {
  font-family: 'Barlow', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #2a3a6a;
  padding-bottom: 6px;
  margin-bottom: 2px;
}

.tray-popup-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Barlow', system-ui, sans-serif;
  font-size: 11px;
  color: #888;
}

.tray-val { color: #ccc; }
.tray-val.green { color: #4ecb71; }

.tray-btn {
  cursor: pointer;
  padding: 1px 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.06);
  transition: background 0.12s;
}
.tray-btn:hover { background: rgba(255,255,255,0.14); }

/* Volume slider */
.tray-vol-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

#tray-vol-slider {
  flex: 1;
  appearance: none;
  height: 4px;
  border-radius: 2px;
  background: #3a5abf;
  outline: none;
  cursor: pointer;
}

#tray-vol-slider::-webkit-slider-thumb {
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

#tray-vol-pct {
  font-family: 'Barlow', system-ui, sans-serif;
  font-size: 11px;
  color: #ccc;
  min-width: 28px;
  text-align: right;
}

/* ── Shutdown screen ─────────────────────────────────────── */
.shutdown-screen {
  position: fixed;
  inset: 0;
  z-index: 12;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.shutdown-screen.active {
  opacity: 1;
  pointer-events: all;
}

.shutdown-text {
  font-family: 'Courier New', monospace;
  font-size: 16px;
  letter-spacing: 0.25em;
  color: #cc3333;
}

.shutdown-sub {
  font-family: 'Courier New', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: #334;
}

.shutdown-restart {
  margin-top: 20px;
  background: none;
  border: 1px solid #334;
  color: #556;
  font-family: 'Courier New', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  padding: 8px 24px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.shutdown-restart:hover {
  border-color: var(--accent);
  color: var(--text-bright);
}

/* ── Boot screen (Windows style) ─────────────────────────── */
.boot-screen {
  position: fixed;
  inset: 0;
  z-index: 49;
  background: #0a4ab5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  overflow: hidden;
}

.boot-screen.active {
  opacity: 1;
  pointer-events: all;
}

.boot-screen.fade-out {
  opacity: 0;
  transition: opacity 0.8s ease;
}

/* Windows-style spinning dot ring */
.win-spinner {
  position: relative;
  width: 60px;
  height: 60px;
}

.win-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  opacity: 0;
  top: 50%;
  left: 50%;
  /* Each dot is placed at radius=24px from center, rotated by nth-child angle */
}

.win-dot:nth-child(1) { transform: translate(-50%, -50%) rotate(0deg)   translateY(-24px); animation: win-spin 1.6s ease-in-out infinite 0s; }
.win-dot:nth-child(2) { transform: translate(-50%, -50%) rotate(72deg)  translateY(-24px); animation: win-spin 1.6s ease-in-out infinite 0.32s; }
.win-dot:nth-child(3) { transform: translate(-50%, -50%) rotate(144deg) translateY(-24px); animation: win-spin 1.6s ease-in-out infinite 0.64s; }
.win-dot:nth-child(4) { transform: translate(-50%, -50%) rotate(216deg) translateY(-24px); animation: win-spin 1.6s ease-in-out infinite 0.96s; }
.win-dot:nth-child(5) { transform: translate(-50%, -50%) rotate(288deg) translateY(-24px); animation: win-spin 1.6s ease-in-out infinite 1.28s; }

@keyframes win-spin {
  0%   { opacity: 0.1; }
  20%  { opacity: 1;   }
  60%  { opacity: 0.6; }
  100% { opacity: 0.1; }
}

.win-text {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.win-text-main {
  font-family: 'Barlow', system-ui, sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: #fff;
  letter-spacing: 0.01em;
}

.win-text-sub {
  font-family: 'Barlow', system-ui, sans-serif;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  font-weight: 400;
}

/* ── Rain (CSS divs, matches SAD DOG exactly) ────────────── */
#rain { display: none; } /* canvas not used */

.rain-container {
  pointer-events: none;
  z-index: 2;
  position: fixed;
  inset: 0;
  overflow: hidden;
}

.rain-drop {
  transform-origin: 50% 100%;
  will-change: transform;
  background: linear-gradient(rgba(255,255,255,0.6), rgba(255,255,255,0.15));
  width: 2px;
  height: 56px;
  animation: rain-fall 1s linear infinite;
  position: absolute;
  bottom: 100%;
}

@keyframes rain-fall {
  from { transform: rotate(-75deg) translate(0); }
  to   { transform: rotate(-75deg) translate(calc(400vh + 100px)); }
}

/* ── Grain texture overlay ───────────────────────────────── */
.grain {
  pointer-events: none;
  z-index: 60;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  position: fixed;
  inset: 0;
}

/* ── Scanlines ───────────────────────────────────────────── */
.scanlines {
  pointer-events: none;
  z-index: 59;
  opacity: 0.03;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.15) 2px, rgba(0,0,0,0.15) 4px);
  position: fixed;
  inset: 0;
}

/* ── Fog ─────────────────────────────────────────────────── */
.fog {
  pointer-events: none;
  background: radial-gradient(ellipse 120% 80% at 50% 50%, var(--lavender) 0%, transparent 60%);
  animation: fog-drift 30s ease-in-out infinite;
  position: fixed;
  inset: 0;
  z-index: 2;
}

@keyframes fog-drift {
  0%, 100% { opacity: 0.6; transform: scale(1) translate(0); }
  50%       { opacity: 0.8; transform: scale(1.02) translate(1%, 1%); }
}

/* ── Floating app window ─────────────────────────────────── */
.window {
  position: relative;
  z-index: 6;
  width: min(96vw, 1080px);
  height: min(94vh, 740px);
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--border);
  box-shadow: 0 24px 90px rgba(0,0,0,0.75), 0 0 0 1px rgba(255,255,255,0.03);
  will-change: opacity, transform;
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.16,1,0.3,1);
}

/* Title bar */
.titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 5px 10px;
  flex-shrink: 0;
  user-select: none;
  cursor: grab;
}

.titlebar-left {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.title-icon {
  width: 18px;
  height: 18px;
  border-radius: 3px;
  object-fit: cover;
}

.titlebar-controls {
  display: flex;
  gap: 8px;
  color: var(--text-dim);
  font-size: 11px;
  cursor: pointer;
}

.titlebar-controls span {
  width: 16px;
  text-align: center;
  display: inline-block;
}

.titlebar-controls span:hover { color: var(--text-bright); }

/* ── Main layout ─────────────────────────────────────────── */
.main-layout {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* Sidebar */
.sidebar {
  width: 195px;
  flex-shrink: 0;
  background: var(--bg2);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 14px 0 8px;
  overflow-y: auto;
}

.sidebar::-webkit-scrollbar { width: 2px; }
.sidebar::-webkit-scrollbar-thumb { background: var(--border); }

.nav-section-label {
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--text-dim);
  padding: 12px 18px 5px;
  text-transform: uppercase;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 18px;
  color: var(--text-bright);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color 0.12s, background 0.12s;
  white-space: nowrap;
  border-left: 2px solid transparent;
}

.nav-link:hover {
  color: var(--text-bright);
  background: var(--menu-highlight);
}

.nav-link.active {
  color: var(--active);
  background: var(--menu-highlight);
  border-left: 2px solid var(--active);
}

/* Social links — same size/style as nav links */
.nav-link.social {
  font-size: 14px;
  color: var(--text-bright);
}

.nav-social-icon {
  width: 13px;
  height: 13px;
  object-fit: contain;
  flex-shrink: 0;
}

.nav-link.social:hover {
  color: #fff;
  background: rgba(74, 127, 212, 0.08);
}

.sidebar-footer {
  margin-top: auto;
  padding: 14px 18px 6px;
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--text-dim);
}

/* ── Content area ────────────────────────────────────────── */
.content {
  flex: 1;
  overflow: hidden;
  position: relative;
  background: var(--bg);
}

.section {
  display: none;
  width: 100%;
  height: 100%;
}

.section.active {
  display: flex;
  flex-direction: column;
}

/* ── WATCH: video layout ─────────────────────────────────── */
.video-layout {
  flex: 1;
  display: flex;
  overflow: hidden;
  align-items: stretch;
}

/* Side panels (prev / next) */
.side-panel {
  width: 130px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.side-panel-left  { border-right: 1px solid var(--border); }
.side-panel-right { border-left:  1px solid var(--border); }

.side-panel:hover { background: var(--bg3); }

.side-panel video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  opacity: 0.7;
  transition: opacity 0.15s;
}

.side-panel:hover video { opacity: 0.9; }

/* Gradient edge fade so it "bleeds off" the screen edge */
.side-panel-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(10,16,28,0.85) 0%, transparent 60%);
  z-index: 1;
  pointer-events: none;
}

.side-panel-right::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to left, rgba(10,16,28,0.85) 0%, transparent 60%);
  z-index: 1;
  pointer-events: none;
}

.side-panel-label {
  position: absolute;
  top: 8px;
  left: 6px;
  right: 6px;
  font-size: 11px;
  color: var(--text-bright);
  letter-spacing: 0.05em;
  z-index: 2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 4px #000;
}

.side-panel-right .side-panel-label {
  left: auto;
  right: 6px;
  text-align: right;
}

.side-panel-arrow {
  position: absolute;
  bottom: 50%;
  transform: translateY(50%);
  font-size: 28px;
  color: rgba(255,255,255,0.25);
  z-index: 2;
  user-select: none;
  pointer-events: none;
  transition: color 0.15s;
  line-height: 1;
}

.side-panel-left  .side-panel-arrow { left: 4px; }
.side-panel-right .side-panel-arrow { right: 4px; }

.side-panel:hover .side-panel-arrow { color: rgba(255,255,255,0.55); }

/* Main player center */
.player-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg);
}

.player-container {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  max-height: 100%;
  background: #000;
  flex-shrink: 1;
  min-width: 0;
}

#main-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.video-caption {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  pointer-events: none;
  font-size: 16px;
  font-weight: bold;
  color: var(--yellow);
  text-shadow: 2px 2px 4px #000, -1px -1px 2px #000;
  width: 90%;
  line-height: 1.4;
}

/* Track bar below video */
.track-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 16px;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--text);
  letter-spacing: 0.07em;
  flex-shrink: 0;
}

.track-progress {
  flex: 1;
  height: 2px;
  background: var(--bg3);
  border: 1px solid var(--border);
}

.track-fill {
  height: 100%;
  background: var(--accent);
  transition: width 0.3s;
  width: 0%;
}

/* ── Info pages (CHART / LORE / TOKEN / CONTRACT) ────────── */
.section.active.info-section {
  overflow-y: auto;
}

.info-page {
  padding: 28px 32px;
  max-width: 680px;
  overflow-y: auto;
  height: 100%;
}

.info-page::-webkit-scrollbar { width: 3px; }
.info-page::-webkit-scrollbar-thumb { background: var(--border); }

.info-title {
  font-size: 22px;
  color: var(--text-bright);
  letter-spacing: 0.15em;
  margin-bottom: 6px;
  font-weight: normal;
}

.info-subtitle {
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--text-dim);
  margin-bottom: 22px;
  text-transform: uppercase;
}

.info-textblock {
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 16px 18px;
  margin-bottom: 18px;
  line-height: 1.75;
  color: var(--text);
  font-size: 13px;
}

.info-body p {
  margin-bottom: 14px;
  line-height: 1.7;
  color: var(--text);
  font-size: 13px;
}

/* ── Lore feed ───────────────────────────────────────────── */
.lore-page {
  padding: 28px 32px;
  height: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.lore-page::-webkit-scrollbar { width: 3px; }
.lore-page::-webkit-scrollbar-thumb { background: var(--border); }

.lore-feed {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 4px;
}

.lore-line {
  font-size: 16px;
  color: var(--text-bright);
  letter-spacing: 0.02em;
  line-height: 1.4;
  padding-left: 14px;
  border-left: 2px solid var(--accent);
}

.lore-end {
  font-size: 13px;
  color: var(--text-dim);
  font-style: italic;
  border-left-color: var(--text-dim);
  margin-top: 6px;
}

.lore-media {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 16 / 9;
  border: 1px dashed var(--border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 11px;
  letter-spacing: 0.1em;
  background: #000;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s;
}

.lore-media:hover {
  border-color: var(--accent);
  color: var(--text);
}

.lore-media img,
.lore-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

/* ── Token page ──────────────────────────────────────────── */
.token-page {
  display: flex;
  gap: 28px;
  padding: 28px 28px;
  height: 100%;
  overflow-y: auto;
  box-sizing: border-box;
}

.token-page::-webkit-scrollbar { width: 3px; }
.token-page::-webkit-scrollbar-thumb { background: var(--border); }

.token-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.token-panels {
  display: flex;
  gap: 12px;
}

.token-panel {
  flex: 1;
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.token-addr-panel {
  flex: none;
}

.token-panel-label {
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 2px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px;
}

.token-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.tk-key {
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

.tk-val {
  font-size: 13px;
  color: var(--text-bright);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: right;
}

.tk-tbd {
  color: var(--text-dim);
  font-style: italic;
  font-weight: 400;
}

/* Right column */
.token-right {
  width: 200px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.token-mascot {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border: 1px solid var(--border);
  display: block;
  margin-bottom: 10px;
}

.token-mascot-name {
  font-size: 15px;
  color: var(--text-bright);
  letter-spacing: 0.12em;
  font-weight: 600;
  margin-bottom: 2px;
}

.token-mascot-sub {
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
  width: 100%;
}

.token-stats {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.token-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.ts-key {
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  text-transform: uppercase;
  white-space: nowrap;
}

.ts-val {
  font-size: 11px;
  color: var(--text-bright);
  text-align: right;
  display: flex;
  align-items: center;
  gap: 5px;
}

.ts-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--on-air);
  flex-shrink: 0;
}

/* Chart */
.placeholder-chart {
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 16px;
  height: 180px;
  display: flex;
  align-items: flex-end;
  margin-top: 16px;
}

.chart-bars {
  display: flex;
  gap: 6px;
  align-items: flex-end;
  width: 100%;
  height: 100%;
}

.bar {
  flex: 1;
  background: var(--accent-dim);
  border-top: 1px solid var(--accent);
}

/* ── Contract page ───────────────────────────────────────── */
.contract-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.contract-card {
  width: 100%;
  max-width: 520px;
  border: 1px solid var(--border);
  padding: 32px 36px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  background: var(--bg2);
}

.contract-card-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  text-transform: uppercase;
  text-align: center;
}

.contract-address {
  font-size: 15px;
  color: var(--text-bright);
  letter-spacing: 0.04em;
  text-align: center;
  word-break: break-all;
  line-height: 1.5;
}

.contract-copy-btn {
  width: 100%;
  padding: 14px;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text-bright);
  font-family: 'Courier New', Courier, monospace;
  font-size: 12px;
  letter-spacing: 0.18em;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  text-transform: uppercase;
}

.contract-copy-btn:hover {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: #fff;
}

.contract-copy-btn.copied {
  background: var(--accent-dim);
  border-color: var(--active);
  color: var(--active);
}

.contract-card-sub {
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--text-dim);
  text-align: center;
  text-transform: uppercase;
}

/* ── Bottom bar ──────────────────────────────────────────── */
.bottom-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 14px;
  height: 56px;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.radio-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 90px;
}

.radio-name {
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.12em;
  color: var(--text-bright);
}

.on-air {
  display: inline-block;
  background: var(--on-air);
  color: #fff;
  font-size: 9px;
  padding: 1px 5px;
  letter-spacing: 0.1em;
  /* no blink */
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}


.now-playing-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.now-playing-label {
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.now-playing {
  display: flex;
  align-items: center;
  gap: 7px;
}

.album-art {
  width: 32px;
  height: 32px;
  background: var(--bg3);
  border: 1px solid var(--border);
  flex-shrink: 0;
  overflow: hidden;
}

.album-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--bg3) 0%, var(--accent-dim) 100%);
}

.track-info { display: flex; flex-direction: column; gap: 1px; }

.track-title {
  color: var(--text-bright);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 130px;
}

.track-artist {
  color: var(--text-dim);
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 130px;
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ctrl-btn {
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  font-size: 15px;
  padding: 4px;
  transition: color 0.12s;
  line-height: 1;
}

.ctrl-btn:hover { color: var(--text-bright); }
.play-btn { font-size: 20px; }

.progress-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  font-size: 11px;
  color: var(--text);
}

.progress-bar {
  flex: 1;
  height: 2px;
  background: var(--bg3);
  border: 1px solid var(--border);
  position: relative;
  cursor: grab;
  /* Expand clickable hit area without changing visual height */
  padding: 8px 0;
  margin: -8px 0;
  box-sizing: content-box;
}

.progress-bar:active { cursor: grabbing; }

.progress-fill {
  height: 100%;
  background: var(--accent);
  width: 0%;
  pointer-events: none;
}

.progress-thumb {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 3px;
  height: 12px;
  background: var(--text-bright);
  border-radius: 1px;
  left: 0%;
  pointer-events: none;
  opacity: 1;
  transition: background 0.12s;
}

.progress-bar:hover .progress-thumb {
  background: #fff;
}

.volume-row {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
}

.volume-slider {
  -webkit-appearance: none;
  width: 64px;
  height: 2px;
  background: var(--bg3);
  border: 1px solid var(--border);
  outline: none;
  cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 8px;
  height: 8px;
  background: var(--text-bright);
  border-radius: 50%;
  cursor: pointer;
}

::-webkit-scrollbar { width: 3px; height: 3px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 1px; }

/* ── Image Lightbox ──────────────────────────────────────── */
.fe-lightbox {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  align-items: center;
  justify-content: center;
}

.fe-lightbox.open { display: flex; }

.fe-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.85);
}

.fe-lightbox-box {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: 90vw;
  max-height: 90vh;
}

.fe-lightbox-box img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.7);
}

.fe-lightbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #333;
  border: 1px solid #555;
  color: #fff;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.fe-lightbox-close:hover { background: #c42b1c; }

.fe-lightbox-label {
  font-family: 'Barlow', system-ui, sans-serif;
  font-size: 12px;
  color: #aaa;
  letter-spacing: 0.06em;
}

/* ── Snake Game Window ───────────────────────────────────── */
.snake-window {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 440px;
  background: #0d0d0d;
  border: 1px solid #2a4a2a;
  border-radius: 6px;
  display: none;
  flex-direction: column;
  z-index: 10;
  box-shadow: 0 0 40px rgba(78,203,113,0.15), 0 20px 60px rgba(0,0,0,0.8);
  overflow: hidden;
}

.snake-window.open { display: flex; }

.snake-titlebar {
  height: 34px;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 0 12px;
  flex-shrink: 0;
  cursor: grab;
  user-select: none;
  border-bottom: 1px solid #1a3a1a;
}

.snake-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px;
  gap: 10px;
  background: #0a0a0a;
}

.snake-hud {
  display: flex;
  gap: 32px;
  width: 400px;
  justify-content: center;
}

.snake-stat {
  font-family: 'Barlow', monospace, sans-serif;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: #3a6a3a;
  display: flex;
  gap: 8px;
}

.snake-stat span {
  color: #4ecb71;
  font-weight: 700;
  font-size: 13px;
  min-width: 30px;
}

#snake-canvas {
  display: block;
  border: 1px solid #1a4a1a;
  image-rendering: pixelated;
  background: #0a0a0a;
}

.snake-controls-hint {
  font-family: 'Barlow', sans-serif;
  font-size: 10px;
  color: #2a4a2a;
  letter-spacing: 0.06em;
}

/* ── File Explorer Window ────────────────────────────────── */
.fe-window {
  position: fixed;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  width: min(95vw, 860px);
  height: min(90vh, 580px);
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 8px;
  display: none;
  flex-direction: column;
  z-index: 10;
  box-shadow: 0 20px 60px rgba(0,0,0,0.7);
  overflow: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.fe-window.open { display: flex; }

/* Titlebar */
.fe-titlebar {
  height: 34px;
  background: #202020;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 0 12px;
  flex-shrink: 0;
  cursor: grab;
  user-select: none;
}

.fe-titlebar-left {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: 'Barlow', system-ui, sans-serif;
  font-size: 12px;
  color: #ccc;
  letter-spacing: 0.03em;
}

.fe-titlebar-controls {
  display: flex;
  height: 100%;
}

.fe-titlebar-controls span {
  width: 46px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #aaa;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.fe-titlebar-controls span:hover { background: rgba(255,255,255,0.08); color: #fff; }
#fe-close:hover { background: #c42b1c !important; color: #fff !important; }

/* Nav bar */
.fe-navbar {
  height: 40px;
  background: #1e1e1e;
  border-bottom: 1px solid #2a2a2a;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  flex-shrink: 0;
}

.fe-nav-arrows { display: flex; gap: 2px; }

.fe-nav-btn {
  background: none;
  border: none;
  color: #888;
  font-size: 14px;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.fe-nav-btn:hover:not(:disabled) { background: rgba(255,255,255,0.08); color: #ccc; }
.fe-nav-btn:disabled { opacity: 0.3; cursor: default; }

@keyframes fe-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

#fe-btn-refresh.spinning {
  animation: fe-spin 0.5s linear;
  color: #7ab0ff;
}

.fe-address-bar {
  flex: 1;
  height: 28px;
  background: #2a2a2a;
  border: 1px solid #3a3a3a;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  font-family: 'Barlow', system-ui, sans-serif;
  font-size: 12px;
  color: #ccc;
}

.fe-addr-icon { font-size: 13px; }

.fe-search-bar {
  width: 180px;
  height: 28px;
  background: #2a2a2a;
  border: 1px solid #3a3a3a;
  border-radius: 4px;
  display: flex;
  align-items: center;
  padding: 0 8px;
  gap: 6px;
  font-size: 12px;
  color: #888;
}

.fe-search-bar input {
  background: none;
  border: none;
  outline: none;
  color: #888;
  font-size: 11px;
  font-family: 'Barlow', system-ui, sans-serif;
  width: 100%;
}

/* Toolbar */
.fe-toolbar {
  height: 38px;
  background: #1e1e1e;
  border-bottom: 1px solid #2a2a2a;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 8px;
  flex-shrink: 0;
}

.fe-tool-btn {
  background: none;
  border: none;
  color: #bbb;
  font-size: 11px;
  font-family: 'Barlow', system-ui, sans-serif;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: background 0.15s;
}

.fe-tool-btn:hover { background: rgba(255,255,255,0.07); color: #fff; }

.fe-toolbar-sep {
  width: 1px;
  height: 18px;
  background: #333;
  margin: 0 4px;
}

.fe-toolbar-right { margin-left: auto; }

/* Body */
.fe-body {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* Sidebar */
.fe-sidebar {
  width: 180px;
  flex-shrink: 0;
  background: #1a1a1a;
  border-right: 1px solid #2a2a2a;
  padding: 8px 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.fe-sidebar-item {
  padding: 5px 16px;
  font-family: 'Barlow', system-ui, sans-serif;
  font-size: 12px;
  color: #aaa;
  cursor: pointer;
  border-radius: 4px;
  margin: 0 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 0.12s;
}

.fe-sidebar-item:hover { background: rgba(255,255,255,0.06); color: #ddd; }
.fe-sidebar-active { background: rgba(255,255,255,0.08) !important; color: #fff !important; }
.fe-sidebar-section { color: #666; font-size: 11px; }
.fe-sidebar-sep { height: 1px; background: #2a2a2a; margin: 6px 8px; }

/* Content */
.fe-content {
  flex: 1;
  padding: 20px 24px;
  overflow-y: auto;
  background: #1a1a1a;
}

.fe-section-label {
  font-family: 'Barlow', system-ui, sans-serif;
  font-size: 11px;
  color: #888;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
  padding-bottom: 6px;
  border-bottom: 1px solid #2a2a2a;
}

.fe-drive-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
  max-width: 280px;
}

.fe-drive-item:hover { background: rgba(255,255,255,0.06); }

.fe-drive-icon { flex-shrink: 0; }

.fe-drive-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}

.fe-drive-name {
  font-family: 'Barlow', system-ui, sans-serif;
  font-size: 12px;
  color: #ddd;
}

.fe-drive-bar {
  width: 100%;
  height: 4px;
  background: #333;
  border-radius: 2px;
  overflow: hidden;
}

.fe-drive-fill {
  height: 100%;
  background: #3a7bd5;
  border-radius: 2px;
}

.fe-drive-size {
  font-family: 'Barlow', system-ui, sans-serif;
  font-size: 10px;
  color: #666;
}

/* Status bar */
.fe-statusbar {
  height: 24px;
  background: #202020;
  border-top: 1px solid #2a2a2a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  flex-shrink: 0;
  font-family: 'Barlow', system-ui, sans-serif;
  font-size: 11px;
  color: #666;
}

.fe-statusbar-right { display: flex; gap: 8px; }

.fe-view-btn {
  cursor: pointer;
  color: #555;
  font-size: 13px;
  transition: color 0.15s;
}

.fe-view-btn:hover, .fe-view-btn.active { color: #ccc; }

/* File grid */
.fe-file-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 4px;
}

.fe-file-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 10px 8px 8px;
  width: 90px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.12s;
}

.fe-file-item:hover { background: rgba(255,255,255,0.07); }

.fe-file-icon { line-height: 1; }

.fe-file-name {
  font-family: 'Barlow', system-ui, sans-serif;
  font-size: 11px;
  color: #ccc;
  text-align: center;
  word-break: break-all;
  line-height: 1.3;
}

.fe-file-type {
  font-family: 'Barlow', system-ui, sans-serif;
  font-size: 10px;
  color: #555;
  text-align: center;
}
