/* ============================================================
   tklab — Vista (Aero glass) Etsy storefront.
   ============================================================ */

:root {
  --aero-light:   #e1f0fc;
  --aero-mid:     #aacfee;
  --aero-deep:    #5fa3e6;
  --aero-dark:    #1a4a92;
  --aero-text:    #001a45;
  --glass-bg:     rgba(240, 245, 252, 0.93);
  --glass-border: rgba(80, 130, 195, 0.6);
  --brand-bg:     #0a2b56;
  --brand-accent: #5fdcff;
}

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

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  font-family: "Segoe UI", "Tahoma", Arial, sans-serif;
  font-size: 12px;
  user-select: none;
  cursor: default;
  color: var(--aero-text);
  background: #000;
}
[hidden] { display: none !important; }
button { font-family: inherit; }

a { color: inherit; text-decoration: none; }
img { user-select: none; }

/* ============================================================
   Boot splash
   ============================================================ */
#boot-splash {
  position: fixed; inset: 0;
  background: #000;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 22px;
  z-index: 9000;
  transition: opacity 0.6s ease;
}
.boot-logo {
  width: 100px; height: 100px;
  background:
    radial-gradient(ellipse 80% 40% at 50% 22%, rgba(255,255,255,0.7), transparent 70%),
    radial-gradient(circle at 50% 50%, #7fdfff 0%, #2b8fc8 35%, #0a3060 80%, #000 100%);
  border-radius: 50%;
  border: 1px solid rgba(150, 220, 255, 0.6);
  box-shadow:
    inset 0 -4px 12px rgba(0, 0, 0, 0.6),
    inset 0 3px 6px rgba(255, 255, 255, 0.45),
    0 0 32px rgba(80, 200, 255, 0.6);
  animation: orbPulse 2.2s ease-in-out infinite;
}
@keyframes orbPulse {
  0%, 100% { transform: scale(1);   filter: brightness(1); }
  50%      { transform: scale(1.05); filter: brightness(1.18); }
}
.boot-bar {
  width: 260px; height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
}
.boot-bar-fill {
  width: 40%; height: 100%;
  background: linear-gradient(90deg, transparent, var(--brand-accent), transparent);
  animation: bootSlide 1.4s linear infinite;
}
@keyframes bootSlide {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(260%); }
}
.boot-text {
  font-family: "Segoe UI", sans-serif;
  font-size: 24px;
  font-weight: 200;
  letter-spacing: 6px;
  color: #fff;
  text-transform: lowercase;
  text-shadow: 0 0 12px rgba(80, 200, 255, 0.7);
}
body.booted #boot-splash { opacity: 0; pointer-events: none; }

/* ============================================================
   Welcome / sign-in screen
   ============================================================ */
#welcome-screen {
  position: fixed; inset: 0;
  background:
    url("../assets/wallpapers/aurora.jpg") center/cover no-repeat,
    radial-gradient(ellipse 60% 80% at 50% 50%, #1e6cb8 0%, #082348 60%, #000 100%);
  display: flex; flex-direction: column;
  z-index: 8900;
  color: #fff;
  opacity: 0;
  transition: opacity 0.6s ease;
}
#welcome-screen.fade-in  { opacity: 1; }
#welcome-screen.fade-out { opacity: 0; }
#welcome-screen::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(0,0,0,0) 0%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}
.welcome-bar {
  height: 44px;
  background:
    linear-gradient(180deg,
      rgba(20, 50, 100, 0.65) 0%,
      rgba(10, 25, 60, 0.65) 100%);
  border-bottom: 1px solid rgba(150, 200, 255, 0.4);
  display: flex; align-items: center;
  padding: 0 18px;
  font-size: 13px;
  font-weight: 300;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  position: relative; z-index: 1;
  backdrop-filter: blur(8px);
}
.welcome-bar.welcome-bot {
  border-top: 1px solid rgba(150, 200, 255, 0.4);
  border-bottom: none;
  justify-content: space-between;
  font-size: 12px;
}
.welcome-etsy {
  color: var(--brand-accent);
  text-decoration: none;
  cursor: default;
  font-weight: bold;
}
.welcome-etsy:hover { text-shadow: 0 0 6px var(--brand-accent); }
.welcome-tip { color: rgba(255, 255, 255, 0.6); letter-spacing: 2px; }
.welcome-body {
  flex: 1;
  display: flex;
  align-items: center; justify-content: center;
  position: relative; z-index: 1;
}
.welcome-card {
  display: flex; flex-direction: column; align-items: center;
  gap: 12px;
  padding: 24px 36px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(150, 200, 255, 0.35);
  border-radius: 10px;
  backdrop-filter: blur(8px);
  outline: none;
  cursor: default;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.welcome-card:hover,
.welcome-card:focus {
  background: rgba(60, 130, 220, 0.35);
  border-color: rgba(180, 220, 255, 0.7);
  box-shadow: 0 0 28px rgba(80, 180, 255, 0.5);
}
.welcome-pic {
  width: 110px; height: 110px;
  border-radius: 12px;
  border: 2px solid #fff;
  background-image: url("../assets/logo/TK.png");
  background-size: cover;
  background-position: center;
  background-color:
    rgba(10, 43, 86, 0.6);
  /* If no logo uploaded, show a glossy gradient with "tk" mark */
  position: relative;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}
.welcome-pic::after {
  content: "tk";
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: "Segoe UI", sans-serif;
  font-size: 38px;
  font-weight: 200;
  color: var(--brand-accent);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
  letter-spacing: 1px;
  /* Hide if logo image loaded — fallback test below */
  z-index: -1;
}
.welcome-name {
  font-size: 32px;
  font-weight: 200;
  letter-spacing: 4px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}
.welcome-hint {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 1px;
}

/* ============================================================
   Desktop + wallpaper
   ============================================================ */
#desktop {
  position: fixed; inset: 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.5s ease;
}
#desktop.fade-in { opacity: 1; }
#wallpaper {
  position: absolute; inset: 0;
  background:
    url("../assets/wallpapers/aurora.jpg") center/cover no-repeat,
    radial-gradient(ellipse 80% 60% at 50% 50%, #1e6cb8 0%, #082348 60%, #000 100%);
}

/* ============================================================
   Desktop icons
   ============================================================ */
#icons {
  position: absolute;
  top: 18px; left: 18px;
  display: grid;
  grid-auto-flow: row;
  grid-template-rows: repeat(auto-fill, 96px);
  gap: 8px;
  max-height: calc(100% - 64px);
  z-index: 2;
}
.desktop-icon {
  width: 88px;
  display: flex; flex-direction: column;
  align-items: center; gap: 6px;
  padding: 4px;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: default;
}
.desktop-icon:hover { background: rgba(120, 180, 255, 0.18); border-color: rgba(150,200,255,0.3); }
.desktop-icon.selected {
  background: rgba(80, 150, 230, 0.5);
  border: 1px solid rgba(180, 220, 255, 0.7);
}
.desktop-icon .desktop-icon-img {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
}
.desktop-icon .desktop-icon-img svg,
.desktop-icon .desktop-icon-img img { width: 100%; height: 100%; }
.desktop-icon .desktop-icon-label {
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  text-align: center;
  line-height: 1.2;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.95), 0 0 4px rgba(0, 0, 0, 0.7);
  word-break: break-word;
  pointer-events: none;
}

/* ============================================================
   Taskbar (Vista glass)
   ============================================================ */
#taskbar {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 40px;
  display: flex; align-items: stretch;
  background:
    url("../assets/ui/taskbar-bg.png") repeat-x left center,
    linear-gradient(180deg,
      rgba(40, 60, 90, 0.95) 0%,
      rgba(20, 30, 50, 0.88) 50%,
      rgba(8, 14, 28, 0.95) 100%);
  background-size: auto 100%, auto;
  border-top: 1px solid rgba(150, 200, 255, 0.6);
  box-shadow:
    0 -1px 0 rgba(255, 255, 255, 0.1) inset,
    0 -8px 24px rgba(60, 130, 220, 0.25) inset;
  z-index: 1000;
  font-size: 12px;
  color: #fff;
}
#start-button {
  width: 38px; height: 38px;
  background: url("../assets/ui/start-orb.png") center/contain no-repeat;
  border: none;
  margin: 1px 4px;
  align-self: center;
  cursor: default;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}
#start-button:hover { filter: drop-shadow(0 0 8px rgba(120, 200, 255, 0.95)) brightness(1.1); }
#start-button:active, #start-button.open { filter: brightness(0.82); }

#quick-launch {
  display: flex; align-items: center; gap: 4px;
  padding: 0 8px;
  border-right: 1px solid rgba(150, 200, 255, 0.25);
}
#quick-launch .ql-icon {
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  cursor: default;
  padding: 2px;
  border-radius: 3px;
  transition: background 0.15s ease;
}
#quick-launch .ql-icon:hover { background: rgba(120, 180, 255, 0.25); }
#quick-launch .ql-icon svg, #quick-launch .ql-icon img { width: 100%; height: 100%; }

#tasks {
  flex: 1;
  display: flex; align-items: center;
  gap: 4px;
  padding: 4px 6px;
  overflow: hidden;
}
.task-btn {
  appearance: none;
  display: flex; align-items: center; gap: 6px;
  background:
    linear-gradient(180deg,
      rgba(80, 130, 200, 0.85) 0%,
      rgba(30, 70, 140, 0.85) 100%);
  border: 1px solid rgba(150, 200, 255, 0.5);
  border-radius: 4px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 1px 2px rgba(0, 0, 0, 0.4);
  color: #fff;
  height: 28px;
  padding: 0 10px;
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 11px;
  cursor: default;
}
.task-btn.active {
  background:
    linear-gradient(180deg,
      rgba(40, 90, 170, 0.9) 0%,
      rgba(20, 50, 110, 0.9) 100%);
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.55);
}
.task-btn .task-icon { width: 16px; height: 16px; flex-shrink: 0; }
.task-btn .task-icon svg, .task-btn .task-icon img { width: 100%; height: 100%; }

#systray {
  display: flex; align-items: center; gap: 10px;
  background:
    linear-gradient(180deg,
      rgba(30, 60, 110, 0.75) 0%,
      rgba(10, 20, 40, 0.85) 100%);
  border-left: 1px solid rgba(150, 200, 255, 0.3);
  padding: 0 14px;
  font-size: 11px;
  min-width: 130px;
}
#systray-icons { display: flex; gap: 8px; align-items: center; font-size: 14px; }
#systray-icons .systray-icon { cursor: default; }
#clock {
  color: #fff;
  text-align: center;
  line-height: 1.15;
  font-size: 11px;
  font-family: "Segoe UI", sans-serif;
  min-width: 60px;
}
#clock small { color: rgba(255, 255, 255, 0.7); font-size: 10px; display: block; }

/* ============================================================
   Start menu (Vista glass)
   ============================================================ */
#start-menu {
  position: absolute;
  left: 0; bottom: 40px;
  width: 420px;
  background:
    linear-gradient(180deg,
      rgba(40, 70, 130, 0.96) 0%,
      rgba(10, 25, 60, 0.97) 100%);
  border: 1px solid rgba(150, 200, 255, 0.5);
  border-radius: 8px 8px 0 0;
  box-shadow:
    0 -6px 24px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.15) inset;
  color: #fff;
  z-index: 1100;
  display: flex; flex-direction: column;
  font-size: 12px;
  overflow: hidden;
  backdrop-filter: blur(12px);
}
#start-header {
  height: 56px;
  background:
    linear-gradient(180deg,
      rgba(80, 130, 200, 0.6) 0%,
      rgba(20, 50, 110, 0.6) 100%);
  display: flex; align-items: center; gap: 12px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(150,200,255,0.3);
}
.user-pic {
  width: 42px; height: 42px;
  border-radius: 6px;
  border: 2px solid #fff;
  background:
    url("../assets/logo/TK.png") center/cover no-repeat,
    linear-gradient(135deg, #2b8fc8 0%, #0a3060 100%);
  box-shadow: 0 0 0 1px rgba(150,200,255,0.4), 0 2px 4px rgba(0,0,0,0.45);
}
.user-name {
  font-size: 16px;
  font-weight: 300;
  letter-spacing: 2px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
#start-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: transparent;
}
.start-col {
  padding: 8px 4px;
  display: flex; flex-direction: column; gap: 1px;
}
.start-col-left  { background: rgba(255, 255, 255, 0.05); border-right: 1px solid rgba(150,200,255,0.15); }
.start-col-right { background: rgba(255, 255, 255, 0.03); }
.start-app {
  display: flex; align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: default;
  color: #e8f0fa;
  transition: background 0.12s ease, color 0.12s ease;
}
.start-app:hover {
  background:
    linear-gradient(180deg,
      rgba(120, 180, 255, 0.4) 0%,
      rgba(60, 130, 220, 0.5) 100%);
  color: #fff;
}
.start-app .app-icon {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.start-app.side .app-icon { width: 22px; height: 22px; }
.start-app .app-icon svg, .start-app .app-icon img { width: 100%; height: 100%; }
.start-app .app-label { font-size: 12px; line-height: 1.2; }
.start-app .app-label small { color: rgba(255,255,255,0.7); font-size: 10px; display: block; }
.start-sep {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(150,200,255,0.4), transparent);
  margin: 4px 8px;
}
.start-sep.light { background: linear-gradient(90deg, transparent, rgba(150,200,255,0.25), transparent); }
#start-footer {
  background: rgba(10, 25, 60, 0.7);
  border-top: 1px solid rgba(150, 200, 255, 0.3);
  padding: 8px 12px;
  display: flex; justify-content: flex-end;
}
.start-foot-btn {
  background: linear-gradient(180deg, var(--brand-accent), #2b8fc8);
  color: #001a2e;
  font-weight: bold;
  padding: 6px 14px;
  border-radius: 4px;
  border: 1px solid rgba(180, 230, 255, 0.6);
  display: inline-flex; align-items: center; gap: 6px;
  cursor: default;
  text-decoration: none;
  font-size: 11px;
}
.start-foot-btn:hover { filter: brightness(1.1); }
.foot-icon.etsy {
  display: inline-block; width: 16px; height: 16px;
  background: radial-gradient(circle at 35% 30%, #ffb088, #d5613f 60%, #6a200a 100%);
  border-radius: 3px;
}

/* ============================================================
   Window chrome (Aero glass)
   ============================================================ */
.aero-window {
  position: absolute;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 8px 8px 4px 4px;
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.4) inset,
    0 0 24px rgba(120, 180, 240, 0.18) inset;
  display: flex; flex-direction: column;
  min-width: 280px; min-height: 160px;
  z-index: 10;
  overflow: hidden;
  outline: none;
}
.aero-window.inactive { filter: saturate(0.9) brightness(1.02); }

.aero-titlebar {
  height: 30px;
  display: flex; align-items: center;
  padding: 0 4px 0 10px;
  background:
    url("../assets/ui/titlebar-active.png") repeat-x left center,
    linear-gradient(180deg,
      rgba(225, 240, 252, 0.96) 0%,
      rgba(190, 220, 248, 0.95) 35%,
      rgba(150, 195, 240, 0.95) 65%,
      rgba(120, 175, 225, 0.96) 100%);
  background-size: auto 100%, auto;
  color: var(--aero-text);
  font-size: 12px;
  font-weight: 500;
  text-shadow:
    0 0 4px rgba(255, 255, 255, 0.9),
    0 1px 0 rgba(255, 255, 255, 0.75);
  border-bottom: 1px solid rgba(80, 130, 195, 0.45);
  flex-shrink: 0;
  cursor: default;
}
.aero-window.inactive .aero-titlebar {
  background:
    url("../assets/ui/titlebar-inactive.png") repeat-x left center,
    linear-gradient(180deg, rgba(220, 230, 240, 0.85), rgba(190, 205, 225, 0.85));
  background-size: auto 100%, auto;
  color: rgba(60, 75, 100, 0.85);
}
.aero-icon { width: 16px; height: 16px; margin-right: 6px; flex-shrink: 0; }
.aero-icon svg, .aero-icon img { width: 100%; height: 100%; }
.aero-title {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.aero-buttons {
  display: flex; align-items: center; gap: 1px;
  margin-right: 2px;
}
/* Window control buttons.
   The Vista PNG bitmaps already contain the full glass-pill button
   (red close, blue min, blue max). Render them at full size with no
   border / no extra fill / no surrounding chrome — the bitmap IS the
   button. */
.aero-btn {
  /* Native bitmap is 25×18; scale up ~1.3× for legibility. */
  width: 32px; height: 22px;
  border: none;
  background: transparent center/100% 100% no-repeat;
  font-size: 0; color: transparent;
  padding: 0;
  cursor: default;
  transition: filter 80ms ease;
}
.aero-btn + .aero-btn { margin-left: 0; }
.aero-btn.aero-min   { background-image: url("../assets/ui/window-min.png"); }
.aero-btn.aero-max   { background-image: url("../assets/ui/window-max.png"); }
.aero-btn.aero-close { background-image: url("../assets/ui/window-close.png"); }
.aero-window.maximized .aero-btn.aero-max {
  background-image: url("../assets/ui/window-restore.png");
}
.aero-btn.aero-close:hover {
  background-image: url("../assets/ui/window-close-hover.png");
}
.aero-btn:hover  { filter: brightness(1.08); }
.aero-btn:active { filter: brightness(0.85); }

.aero-content { flex: 1; background: #fff; overflow: hidden; position: relative; }
.aero-window.maximized { border-radius: 0; }
.aero-window.minimized { display: none; }

/* Resize handles */
.aero-resize { position: absolute; z-index: 5; }
.aero-resize.e  { top: 8px; right: -3px; bottom: 8px; width: 6px; cursor: ew-resize; }
.aero-resize.w  { top: 8px; left:  -3px; bottom: 8px; width: 6px; cursor: ew-resize; }
.aero-resize.s  { left: 8px; right: 8px; bottom: -3px; height: 6px; cursor: ns-resize; }
.aero-resize.n  { left: 8px; right: 8px; top: -3px;   height: 6px; cursor: ns-resize; }
.aero-resize.se { right: -3px; bottom: -3px; width: 12px; height: 12px; cursor: nwse-resize; }
.aero-resize.sw { left:  -3px; bottom: -3px; width: 12px; height: 12px; cursor: nesw-resize; }
.aero-resize.ne { right: -3px; top:    -3px; width: 12px; height: 12px; cursor: nesw-resize; }
.aero-resize.nw { left:  -3px; top:    -3px; width: 12px; height: 12px; cursor: nwse-resize; }

/* ============================================================
   Context menu
   ============================================================ */
.ctx-menu {
  position: absolute;
  background:
    linear-gradient(180deg, rgba(40,70,130,0.96), rgba(10,25,60,0.97));
  border: 1px solid rgba(150,200,255,0.5);
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  color: #fff;
  padding: 4px 2px;
  z-index: 5000;
  min-width: 180px;
  font-size: 12px;
  border-radius: 6px;
  backdrop-filter: blur(10px);
}
.ctx-item { padding: 6px 18px; cursor: default; border-radius: 3px; }
.ctx-item:hover { background: rgba(120, 180, 255, 0.4); }
.ctx-sep { height: 1px; background: rgba(150,200,255,0.3); margin: 4px 8px; }

/* ============================================================
   Generic buttons + inputs
   ============================================================ */
.aero-bb {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.95), rgba(220,235,250,0.95) 50%, rgba(170,200,235,0.95));
  border: 1px solid rgba(80, 130, 190, 0.6);
  border-radius: 3px;
  font-family: inherit;
  font-size: 11px;
  padding: 5px 12px;
  cursor: default;
  color: var(--aero-text);
}
.aero-bb:hover { filter: brightness(1.05); }
.aero-bb:active { filter: brightness(0.92); }
.aero-bb.primary {
  background: linear-gradient(180deg, var(--brand-accent), #2b8fc8);
  color: #001a2e;
  border-color: rgba(180, 230, 255, 0.6);
  font-weight: bold;
}
.aero-input {
  border: 1px solid #7f9db9;
  background: #fff;
  font-family: inherit;
  font-size: 12px;
  padding: 4px 8px;
  outline: none;
  border-radius: 2px;
}
.aero-input:focus { border-color: var(--aero-dark); box-shadow: 0 0 4px rgba(120,180,240,0.4); }

/* ============================================================
   App-specific styles
   ============================================================ */

/* ---------- About ---------- */
.about-app {
  height: 100%; overflow: auto;
  background:
    linear-gradient(180deg, #fff 0%, #f0f5fc 100%);
  font-family: "Segoe UI", sans-serif;
  color: var(--aero-text);
}
.about-hero {
  padding: 32px 40px 24px;
  background:
    radial-gradient(ellipse 60% 100% at 50% 0%, rgba(120, 200, 255, 0.4), transparent 70%),
    linear-gradient(180deg, var(--aero-light), #fff);
  text-align: center;
}
.about-hero h1 {
  margin: 0;
  font-size: 42px;
  font-weight: 200;
  letter-spacing: 8px;
  color: var(--brand-bg);
  text-transform: lowercase;
}
.about-hero .tag {
  margin-top: 6px;
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--aero-dark);
  font-weight: 300;
  text-transform: uppercase;
}
.about-body { padding: 20px 40px 40px; font-size: 13px; line-height: 1.7; }
.about-body p { margin: 0 0 12px; }
.about-body h2 {
  margin: 24px 0 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--aero-dark);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.about-cta { margin-top: 24px; display: flex; gap: 10px; }

/* ---------- Shop ---------- */
.shop-app { height: 100%; overflow: auto; background: #fff; font-family: "Segoe UI", sans-serif; }
.shop-toolbar {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  background: linear-gradient(180deg, var(--aero-light), #fff);
  border-bottom: 1px solid rgba(80, 130, 195, 0.25);
}
.shop-toolbar .shop-h {
  flex: 1;
  font-size: 13px;
  color: var(--aero-text);
}
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  padding: 16px;
}
.shop-tile {
  background: #fff;
  border: 1px solid rgba(150, 200, 255, 0.4);
  border-radius: 6px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: default;
}
.shop-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(120, 180, 240, 0.4);
  border-color: var(--aero-deep);
}
.shop-tile-img {
  aspect-ratio: 1;
  background:
    repeating-linear-gradient(45deg, #f0f5fc 0 14px, #e1ecf7 14px 28px);
  background-size: cover;
  background-position: center;
  position: relative;
}
.shop-tile-img.placeholder::after {
  content: "Drop product photo here";
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--aero-dark);
  font-size: 11px;
  opacity: 0.5;
}
.shop-tile-body { padding: 10px 12px; font-size: 12px; }
.shop-tile-title { font-weight: 500; color: var(--aero-text); margin-bottom: 4px; }
.shop-tile-price { color: var(--aero-dark); font-size: 13px; font-weight: bold; }
.shop-tile-desc { font-size: 11px; color: #666; margin-top: 4px; line-height: 1.4; }
.shop-tile-actions {
  display: flex; gap: 6px;
  margin-top: 10px;
}
.shop-tile-actions .aero-bb {
  flex: 1;
  font-size: 11px;
  text-align: center;
  padding: 6px 8px;
  text-decoration: none;
  display: inline-block;
}
.shop-tile-count {
  position: absolute;
  bottom: 8px; right: 8px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.5px;
}
.shop-tile-img { cursor: zoom-in; }

/* ---------- Lightbox (shared by Shop and Gallery) ---------- */
.shop-lightbox {
  position: absolute; inset: 0;
  background: rgba(0, 8, 24, 0.94);
  display: grid;
  grid-template-columns: 1fr 280px;
  z-index: 200;
  backdrop-filter: blur(4px);
}
.shop-lightbox.simple { grid-template-columns: 1fr; }
.shop-lightbox .lb-stage {
  display: flex; align-items: center; justify-content: center;
  position: relative;
  padding: 32px;
  min-height: 0;
}
.shop-lightbox .lb-img {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  box-shadow: 0 0 32px rgba(80, 200, 255, 0.35);
  border-radius: 4px;
}
.shop-lightbox .lb-nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px;
  background: rgba(40, 80, 140, 0.6);
  border: 1px solid rgba(150, 200, 255, 0.5);
  color: #fff;
  font-size: 26px;
  border-radius: 50%;
  cursor: default;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}
.shop-lightbox .lb-nav:hover { background: rgba(80, 130, 200, 0.85); }
.shop-lightbox .lb-prev { left: 12px; }
.shop-lightbox .lb-next { right: 12px; }
.shop-lightbox .lb-close {
  position: absolute; top: 12px; right: 12px;
  width: 36px; height: 36px;
  background: rgba(220, 70, 60, 0.75);
  border: 1px solid rgba(150, 30, 30, 0.7);
  border-radius: 50%;
  color: #fff;
  font-size: 22px;
  cursor: default;
  z-index: 10;
}
.shop-lightbox .lb-close:hover { background: rgba(240, 110, 100, 0.95); }
.shop-lightbox .lb-info {
  background:
    linear-gradient(180deg, rgba(20, 50, 100, 0.85), rgba(10, 25, 60, 0.95));
  border-left: 1px solid rgba(150, 200, 255, 0.3);
  color: #fff;
  padding: 24px 20px;
  display: flex; flex-direction: column; gap: 12px;
  font-family: "Segoe UI", sans-serif;
}
.shop-lightbox .lb-title {
  font-size: 20px; font-weight: 300;
  letter-spacing: 1px;
}
.shop-lightbox .lb-meta {
  font-size: 11px; color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.5px;
}
.shop-lightbox .lb-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, 64px);
  gap: 6px;
}
.shop-lightbox .lb-thumb {
  width: 64px; height: 64px;
  background-size: cover; background-position: center;
  border: 2px solid transparent;
  border-radius: 4px;
  cursor: default;
}
.shop-lightbox .lb-thumb:hover  { border-color: rgba(180, 220, 255, 0.7); }
.shop-lightbox .lb-thumb.active { border-color: var(--brand-accent); box-shadow: 0 0 6px var(--brand-accent); }
.shop-lightbox .lb-etsy {
  margin-top: auto;
  padding: 10px 14px;
  text-align: center;
  font-size: 13px;
}

/* ---------- Gallery ---------- */
.gallery-app { height: 100%; overflow: auto; background: #000; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 4px;
  padding: 4px;
}
.gallery-tile {
  position: relative;
  aspect-ratio: 1;
  background:
    repeating-linear-gradient(45deg, #1a1a1a 0 14px, #0f0f0f 14px 28px);
  background-size: cover;
  background-position: center;
  cursor: default;
  overflow: hidden;
}
.gallery-tile.placeholder::after {
  content: attr(data-placeholder);
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 11px;
  text-align: center;
  padding: 12px;
}
.gallery-tile:hover { outline: 2px solid var(--brand-accent); outline-offset: -2px; }

.gallery-modal {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.92);
  display: flex; align-items: center; justify-content: center;
  z-index: 100;
}
.gallery-modal img { max-width: 92%; max-height: 92%; box-shadow: 0 0 32px rgba(80,200,255,0.4); }
.gallery-modal .close {
  position: absolute; top: 12px; right: 16px;
  color: #fff; font-size: 24px; font-weight: 200; cursor: default;
}

/* ---------- Music player ---------- */
.music-app {
  display: flex; flex-direction: column; height: 100%;
  background:
    radial-gradient(ellipse 60% 100% at 50% 0%, rgba(120, 200, 255, 0.18), transparent 60%),
    linear-gradient(180deg, #001830 0%, #000814 50%, #001830 100%);
  color: #fff;
  font-family: "Segoe UI", sans-serif;
}
.music-vis {
  flex: 1;
  position: relative;
  overflow: hidden;
  min-height: 200px;
}
.music-vis canvas { width: 100%; height: 100%; display: block; }
.music-now {
  position: absolute;
  bottom: 10px; left: 14px;
  text-shadow: 0 0 8px rgba(0,0,0,0.95);
}
.music-now-title { font-size: 16px; font-weight: 300; letter-spacing: 1px; }
.music-now-artist { font-size: 12px; color: rgba(255,255,255,0.65); }
.music-meta { font-size: 10px; color: rgba(255,255,255,0.4); margin-top: 4px; letter-spacing: 1px; }
.music-controls {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  background:
    linear-gradient(180deg, rgba(60, 110, 180, 0.2) 0%, rgba(0, 20, 50, 0.6) 100%);
  border-top: 1px solid rgba(150, 200, 255, 0.3);
}
.music-btn {
  appearance: none;
  background:
    radial-gradient(ellipse at 50% 25%, rgba(255,255,255,0.4) 0%, transparent 60%),
    linear-gradient(180deg, var(--aero-deep) 0%, var(--aero-dark) 100%);
  border: 1px solid rgba(150, 200, 255, 0.6);
  border-radius: 50%;
  color: #fff;
  width: 36px; height: 36px;
  font-size: 14px;
  cursor: default;
  box-shadow: inset 0 -2px 4px rgba(0,0,0,0.4);
}
.music-btn:hover { filter: brightness(1.18); }
.music-btn.large { width: 44px; height: 44px; font-size: 16px; }
.music-seek {
  flex: 1; height: 6px; background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(150, 200, 255, 0.3);
  border-radius: 3px; overflow: hidden;
}
.music-seek > div {
  width: 0; height: 100%;
  background: linear-gradient(90deg, var(--aero-dark), var(--brand-accent));
  transition: width 0.2s linear;
}
.music-time { font-size: 11px; color: rgba(255,255,255,0.7); font-variant-numeric: tabular-nums; }
.music-vol { display: flex; align-items: center; gap: 4px; }
.music-vol input[type=range] { width: 80px; }

/* ---------- Contact ---------- */
.contact-app {
  height: 100%;
  background: linear-gradient(180deg, #fff 0%, #f0f5fc 100%);
  color: var(--aero-text);
  padding: 36px;
  font-family: "Segoe UI", sans-serif;
  overflow: auto;
}
.contact-app h1 {
  font-size: 28px; font-weight: 200;
  letter-spacing: 4px;
  color: var(--brand-bg);
  text-transform: lowercase;
  margin: 0 0 24px;
}
.contact-row {
  display: flex; align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid rgba(120, 180, 240, 0.25);
  font-size: 14px;
}
.contact-row:first-of-type { border-top: none; }
.contact-row .label {
  width: 110px;
  font-size: 11px;
  color: var(--aero-dark);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 500;
}
.contact-row a { color: var(--aero-dark); font-weight: 500; cursor: default; }
.contact-row a:hover { color: var(--aero-deep); text-decoration: underline; }

/* ---------- Aquarium ---------- */
.aq-app {
  display: flex; flex-direction: column;
  height: 100%;
  background: #061f3e;
  color: #e8f0fa;
  font-family: "Segoe UI", sans-serif;
}
.aq-toolbar {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 12px;
  background:
    linear-gradient(180deg,
      rgba(40, 80, 150, 0.85) 0%,
      rgba(10, 30, 70, 0.85) 100%);
  border-bottom: 1px solid rgba(150, 200, 255, 0.3);
  color: #fff;
  font-size: 12px;
}
.aq-h { font-weight: 500; letter-spacing: 0.5px; }
.aq-stat { font-size: 11px; color: rgba(255,255,255,0.75); flex: 1; }
.aq-stat .aq-fish-count,
.aq-stat .aq-food-count { font-weight: bold; color: var(--brand-accent); }
.aq-controls { display: flex; gap: 6px; }
.aq-controls .aero-bb { font-size: 11px; padding: 4px 10px; }
.aq-tank {
  flex: 1;
  position: relative;
  overflow: hidden;
  min-height: 0;
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.6);
  border-top: 1px solid rgba(0, 0, 0, 0.6);
}
.aq-tank::before {
  /* glass reflection across the top of the tank */
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 30%;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0));
  pointer-events: none;
  z-index: 2;
}
.aq-canvas { display: block; width: 100%; height: 100%; cursor: crosshair; }

/* ---------- Wallpaper picker ---------- */
.wp-app {
  height: 100%; padding: 20px; overflow: auto;
  background: linear-gradient(180deg, #fff, #f0f5fc);
  color: var(--aero-text);
}
.wp-app h2 { margin: 0 0 12px; font-size: 14px; font-weight: 500; color: var(--brand-bg); }
.wp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}
.wp-tile {
  border: 2px solid transparent;
  border-radius: 4px;
  cursor: default;
  overflow: hidden;
  background: #fff;
}
.wp-tile:hover { border-color: var(--aero-deep); }
.wp-tile.selected { border-color: var(--aero-dark); box-shadow: 0 0 8px rgba(120,180,240,0.5); }
.wp-tile .preview { aspect-ratio: 4/3; background-size: cover; background-position: center; }
.wp-tile .name { padding: 4px 8px; font-size: 11px; }
.wp-drop {
  margin-top: 16px; padding: 18px;
  border: 2px dashed rgba(80, 130, 195, 0.5);
  background: rgba(255, 255, 255, 0.6);
  text-align: center;
  font-size: 12px;
  border-radius: 6px;
}
.wp-drop.over { background: rgba(120, 200, 255, 0.2); border-color: var(--aero-deep); }
