/* there were some slight ai help with designs but just about everything is doen by me */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-0: #06080f;
  --ink: #dbe5f5;
  --muted: #8f9db7;
  --line: rgba(169, 190, 224, 0.28);
  --line-strong: rgba(194, 214, 245, 0.45);
  --accent-bright: #d7e6ff;
  --theme-stamp-image: url('files/winter.png');
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  color: var(--ink);
  background: var(--bg-0);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  display: flex;
  flex-direction: column;
  position: relative;
}

.background {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(1200px 700px at 8% 8%, rgba(132, 166, 225, 0.18), transparent 58%),
    radial-gradient(900px 600px at 88% 15%, rgba(55, 83, 125, 0.22), transparent 52%),
    radial-gradient(1000px 700px at 50% 100%, rgba(30, 46, 73, 0.22), transparent 60%),
    linear-gradient(155deg, #05060b 0%, #0a0f18 48%, #0e1522 100%);
}

.background::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.01) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.35;
}

.particles-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.particle {
  position: absolute;
}

.particle.dust {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(222, 234, 255, 0.75), rgba(130, 156, 201, 0.18));
  filter: blur(0.2px);
  animation: float-dust 18s linear infinite;
}

.particle.spark {
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: rgba(223, 236, 255, 0.8);
  box-shadow: 0 0 8px rgba(166, 196, 243, 0.8);
  animation: sparkle 3s ease-in-out infinite;
}

.particle.fog {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(129, 162, 217, 0.12), transparent 70%);
  filter: blur(18px);
  animation: drift 28s linear infinite;
}

@keyframes float-dust {
  0% { transform: translateY(100vh) translateX(0); opacity: 0; }
  10% { opacity: 0.9; }
  90% { opacity: 0.9; }
  100% { transform: translateY(-100vh) translateX(45px); opacity: 0; }
}

@keyframes sparkle {
  0%, 100% { opacity: 0.35; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.5); }
}

@keyframes drift {
  0% { transform: translateX(0) translateY(0); opacity: 0; }
  15% { opacity: 0.35; }
  85% { opacity: 0.35; }
  100% { transform: translateX(120px) translateY(-60px); opacity: 0; }
}

#boot {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background: radial-gradient(circle at center, rgba(165, 192, 245, 0.1), transparent 45%), linear-gradient(140deg, rgba(3, 5, 11, 0.98), rgba(9, 14, 24, 0.98));
}

#boot::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.22) 1px, transparent 1px, transparent 2px);
  opacity: 0.6;
}

.boot-container,
.boot-text,
.boot-progress {
  position: relative;
  z-index: 2;
}

.boot-glow {
  position: absolute;
  inset: -80px;
  background: radial-gradient(circle, rgba(168, 196, 245, 0.45), transparent 70%);
  filter: blur(36px);
  animation: pulse 2.2s ease-in-out infinite;
}

.boot-image {
  width: 280px;
  height: 280px;
  filter: drop-shadow(0 0 30px rgba(151, 184, 238, 0.55));
  animation: boot-float 3.2s ease-in-out infinite;
}

.boot-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.boot-text {
  font-size: 46px;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: var(--accent-bright);
  text-shadow: 0 0 30px rgba(167, 196, 247, 0.38);
}

.boot-progress {
  width: min(360px, 82vw);
}

.progress-label {
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 10px;
}

.progress-bar {
  width: 100%;
  height: 6px;
  border-radius: 99px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(112, 145, 196, 0.16);
}

.progress-fill {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, rgba(175, 203, 248, 0.45), rgba(221, 235, 255, 0.95), rgba(175, 203, 248, 0.45));
  animation: loading 3s ease-in-out forwards;
}

.boot-glitch {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: repeating-linear-gradient(0deg, rgba(174, 208, 255, 0.04) 0, rgba(174, 208, 255, 0.04) 2px, transparent 2px, transparent 4px);
}

#boot.glitching .boot-glitch {
  animation: glitch-tear 2s ease-out forwards;
}

@keyframes boot-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 0.85; }
}

@keyframes loading {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes glitch-tear {
  0% { opacity: 0; }
  14% { opacity: 1; transform: translateX(-6px) skewX(8deg); }
  35% { opacity: 0.8; transform: translateX(8px) skewX(-10deg); }
  56% { opacity: 0.5; transform: translateX(-5px) skewX(6deg); }
  100% { opacity: 0; transform: none; }
}

#login-screen {
  position: fixed;
  inset: 0;
  z-index: 4999;
  display: none;
  opacity: 0;
  align-items: center;
  justify-content: center;
  background: radial-gradient(900px 500px at 50% 20%, rgba(163, 193, 244, 0.14), transparent 70%), linear-gradient(165deg, rgba(5, 8, 15, 0.96), rgba(8, 14, 24, 0.95), rgba(11, 17, 29, 0.98));
}

#login-screen.glitch-out {
  animation: login-glitch-out 0.65s ease forwards;
}

@keyframes fadeInLogin {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes login-glitch-out {
  0% { opacity: 1; transform: none; }
  25% { opacity: 0.8; transform: translateX(-8px) skewX(5deg); }
  58% { opacity: 0.4; transform: translateX(10px) skewX(-9deg); }
  100% { opacity: 0; transform: none; }
}

.login-terminal {
  width: min(470px, 92vw);
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(16, 24, 38, 0.8), rgba(8, 13, 22, 0.85));
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(184, 208, 245, 0.14) inset, 0 0 45px rgba(150, 179, 225, 0.18);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.terminal-header {
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-bottom: 1px solid rgba(175, 197, 230, 0.26);
  background: rgba(166, 191, 228, 0.08);
}

.header-title {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}

.login-content {
  padding: 34px 30px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.login-avatar {
  width: 78px;
  height: 78px;
  min-width: 78px;
  min-height: 78px;
  flex: 0 0 78px;
  border-radius: 9999px;
  -webkit-border-radius: 9999px;
  overflow: hidden;
  position: relative;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.login-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: inherit;
  -webkit-border-radius: inherit;
  clip-path: circle(50% at 50% 50%);
}

@media (max-width: 560px) {
  .login-avatar { width: 64px; height: 64px; }
}

.login-name {
  font-size: 25px;
  font-weight: 600;
  color: var(--accent-bright);
  letter-spacing: 0.02em;
  margin-bottom: 6px;
}

.login-line {
  width: 100%;
  max-width: 290px;
  text-align: left;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.login-prompt,
.login-user,
#password-display {
  color: var(--ink);
}

#password-display {
  letter-spacing: 0.18em;
}

.login-cursor {
  animation: blink 1s steps(1, end) infinite;
  margin-left: 2px;
  color: var(--accent-bright);
}

@keyframes blink {
  0%, 49%, 100% { opacity: 1; }
  50%, 99% { opacity: 0; }
}

.login-actions {
  width: 100%;
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.login-action-btn,
.login-secondary-btn {
  width: 100%;
  border-radius: 12px;
  padding: 11px 16px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  font-weight: 700;
  transition: all 0.25s ease;
  cursor: pointer;
}

.login-action-btn {
  border: 1px solid rgba(214, 228, 250, 0.45);
  background: linear-gradient(160deg, rgba(152, 183, 231, 0.34), rgba(111, 138, 185, 0.25));
  color: #f2f7ff;
}

.login-secondary-btn {
  border: 1px solid var(--line);
  background: rgba(122, 149, 194, 0.16);
  color: var(--ink);
}

.login-action-btn:hover:not(:disabled),
.login-secondary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(157, 188, 239, 0.2);
}

.login-action-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

#desktop {
  display: none;
  flex: 1;
  flex-direction: column;
  position: relative;
  z-index: 10;
}

.main-content {
  flex: 1;
  overflow-y: auto;
  padding: 34px 24px 76px;
  position: relative;
}

.section-title {
  margin-bottom: 18px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
}

.profile-grid {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  width: auto;
  max-width: none;
}

.profile-card {
  width: fit-content;
  min-width: 176px;
  border-radius: 14px;
  border: 1px solid rgba(226, 239, 255, 0.24);
  background:
    linear-gradient(150deg, rgba(22, 36, 58, 0.5), rgba(9, 16, 28, 0.42)),
    radial-gradient(circle at 25% 0%, rgba(213, 231, 255, 0.12), transparent 52%);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 10px 22px rgba(4, 9, 18, 0.24);
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  cursor: pointer;
  transition: 0.25s ease;
}

.profile-card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35), 0 0 26px rgba(144, 174, 223, 0.18);
  transform: translateY(-2px);
}

.profile-avatar-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
}

.profile-name {
  font-size: 15px;
  font-weight: 600;
}

.profile-button {
  border: 1px solid rgba(198, 217, 245, 0.45);
  border-radius: 10px;
  background: rgba(163, 192, 239, 0.15);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  padding: 7px 14px;
  min-width: 84px;
}

.window,
.profile-window,
.app-menu,
.audio-widget-fixed {
  background: linear-gradient(160deg, rgba(13, 20, 32, 0.88), rgba(7, 12, 21, 0.92));
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 20px 38px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
}

.window {
  position: fixed;
  display: none;
  flex-direction: column;
  z-index: 1999;
}

.window.active {
  display: flex;
}

.window.dragging,
.profile-window.dragging {
  z-index: 2999;
  opacity: 0.96;
}

.window-header {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  user-select: none;
  touch-action: none;
}

.window-title {
  font-size: 12px;
  color: var(--ink);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.window-close {
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 20px;
  cursor: pointer;
}

.window-close:hover {
  color: var(--accent-bright);
}

.window-content {
  flex: 1;
  padding: 12px;
  font-size: 11px;
  color: var(--muted);
  overflow-y: auto;
  font-family: 'Courier New', Courier, monospace;
}

#terminal-window {
  bottom: 60px;
  right: 20px;
  width: min(500px, calc(100vw - 24px));
  height: min(350px, calc(100vh - 90px));
}

.terminal-footer {
  padding: 10px 12px;
  border-top: 1px solid var(--line);
}

.terminal-input-field {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7, 11, 18, 0.75);
  color: var(--ink);
  font-size: 11px;
  padding: 8px 10px;
}

.terminal-input-field:focus {
  outline: none;
  border-color: var(--line-strong);
}

.terminal-line {
  margin-bottom: 7px;
}

.terminal-prompt {
  color: var(--accent-bright);
}

#info-window {
  bottom: 60px;
  right: 20px;
  width: min(450px, calc(100vw - 24px));
  height: min(400px, calc(100vh - 90px));
}

#files-window,
#gallery-window,
#posts-window {
  bottom: 60px;
  right: 20px;
  width: min(760px, calc(100vw - 24px));
  height: min(520px, calc(100vh - 90px));
}

#message-window,
#jerimiah-window {
  bottom: 60px;
  right: 20px;
  width: min(560px, calc(100vw - 24px));
  height: min(420px, calc(100vh - 90px));
}

#gallery-preview-window {
  bottom: 60px;
  right: 20px;
  width: min(900px, calc(100vw - 24px));
  height: min(640px, calc(100vh - 90px));
}

.files-window-content {
  padding: 0;
}

.file-explorer-shell {
  height: 100%;
  display: grid;
  grid-template-columns: 180px 1fr;
}

.file-explorer-sidebar {
  border-right: 1px solid rgba(219, 234, 255, 0.18);
  padding: 12px 10px;
  background: rgba(154, 182, 226, 0.06);
}

.explorer-sidebar-title {
  color: var(--accent-bright);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 9px;
  margin-bottom: 10px;
}

.explorer-sidebar-item {
  font-size: 10px;
  color: var(--muted);
  padding: 7px 8px;
  border-radius: 8px;
  text-transform: lowercase;
  letter-spacing: 0.06em;
}

.explorer-sidebar-item.active {
  background: rgba(155, 186, 236, 0.18);
  color: var(--ink);
}

.file-explorer-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.explorer-toolbar {
  border-bottom: 1px solid rgba(219, 234, 255, 0.18);
  padding: 10px 12px;
  font-size: 10px;
  color: var(--muted);
}

.explorer-list-header {
  display: grid;
  grid-template-columns: 1fr 130px 80px;
  gap: 10px;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-bright);
  padding: 8px 12px;
  border-bottom: 1px solid rgba(219, 234, 255, 0.16);
}

.explorer-file-list {
  overflow: auto;
  padding: 6px;
}

.explorer-file-row {
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: transparent;
  display: grid;
  grid-template-columns: 1fr 130px 80px;
  gap: 10px;
  align-items: center;
  text-align: left;
  padding: 8px 6px;
  color: var(--muted);
  font-size: 10px;
  cursor: pointer;
}

.explorer-file-row:hover {
  background: rgba(147, 174, 218, 0.14);
  color: var(--ink);
}

.explorer-file-row-disabled {
  cursor: default;
  opacity: 0.75;
}

.explorer-file-row-disabled:hover {
  background: transparent;
  color: var(--muted);
}

.explorer-file-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.explorer-file-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.explorer-file-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.message-window-content {
  padding: 14px;
}

.notepad-text {
  margin: 0;
  border: 1px solid rgba(220, 236, 255, 0.22);
  border-radius: 12px;
  background: rgba(10, 17, 29, 0.52);
  padding: 12px;
  white-space: pre-wrap;
  color: #d8e7ff;
  line-height: 1.55;
}

.jerimiah-window-content {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.jerimiah-image {
  width: min(100%, 420px);
  max-height: 100%;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid rgba(220, 236, 255, 0.22);
}

.gallery-window-content {
  padding: 10px;
}

.gallery-list-view {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}

.gallery-row {
  border: 1px solid rgba(220, 236, 255, 0.15);
  border-radius: 10px;
  background: rgba(10, 17, 29, 0.32);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 7px;
  text-align: left;
  padding: 8px;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}

.gallery-row-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(220, 236, 255, 0.2);
}

.gallery-row-video {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(220, 236, 255, 0.2);
  background: rgba(6, 10, 18, 0.7);
}

.gallery-row-name {
  font-size: 10px;
  color: var(--ink);
  word-break: break-word;
  line-height: 1.35;
}

.gallery-row-type {
  font-size: 9px;
  color: var(--accent-bright);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.gallery-row:hover {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 1px rgba(194, 214, 245, 0.12) inset;
}

.gallery-preview-window-content {
  padding: 10px;
}

.gallery-preview-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gallery-preview-image,
.gallery-preview-video {
  width: 100%;
  max-height: min(74vh, 520px);
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid rgba(220, 236, 255, 0.2);
  background: rgba(5, 10, 18, 0.7);
}

.gallery-preview-caption {
  font-size: 10px;
  color: var(--muted);
  word-break: break-word;
}

.gallery-empty {
  font-size: 10px;
  color: var(--muted);
  padding: 16px;
}

.posts-window-content {
  padding: 12px;
}

.posts-forum-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.posts-feed {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.forum-post {
  border: 1px solid rgba(220, 236, 255, 0.2);
  border-radius: 12px;
  background: rgba(12, 20, 34, 0.44);
  padding: 10px;
}

.forum-post-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.forum-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(220, 236, 255, 0.25);
}

.forum-author {
  font-size: 10px;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: lowercase;
}

.forum-post-text {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
  margin-bottom: 10px;
}

.forum-like-btn {
  border: 1px solid rgba(220, 236, 255, 0.22);
  background: rgba(153, 181, 228, 0.12);
  color: var(--muted);
  border-radius: 8px;
  font-size: 10px;
  letter-spacing: 0.04em;
  padding: 5px 9px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.forum-like-btn:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.forum-like-btn.is-liked {
  color: #d6e6ff;
  border-color: rgba(180, 212, 255, 0.4);
  background: rgba(112, 154, 214, 0.2);
}

.forum-like-btn:disabled {
  cursor: default;
  opacity: 0.8;
}

.forum-like-icon {
  font-size: 12px;
  line-height: 1;
}

.forum-like-count {
  color: var(--accent-bright);
}

.info-section {
  margin: 8px 0;
  padding: 10px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: rgba(155, 182, 222, 0.08);
}

.info-label {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--accent-bright);
  margin-bottom: 4px;
}

.info-value {
  font-size: 10px;
  line-height: 1.5;
  color: var(--muted);
}

.taskbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 50px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border-top: 1px solid var(--line);
  background: rgba(7, 11, 19, 0.82);
  backdrop-filter: blur(14px);
}

.taskbar-os-btn,
.taskbar-icon-btn {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(153, 181, 228, 0.14);
  cursor: pointer;
}

.taskbar-os-btn img,
.taskbar-icon-btn img {
  width: 18px;
  height: 18px;
}

.taskbar-terminal-btn,
.taskbar-item {
  border: 1px solid var(--line);
  background: rgba(153, 181, 228, 0.12);
  color: var(--muted);
  border-radius: 8px;
  font-size: 10px;
  padding: 6px 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.taskbar-terminal-btn:hover,
.taskbar-item:hover,
.taskbar-os-btn:hover,
.taskbar-icon-btn:hover {
  border-color: var(--line-strong);
  color: var(--ink);
  box-shadow: 0 0 0 1px rgba(194, 214, 245, 0.12) inset;
}

.taskbar-items {
  display: flex;
  align-items: center;
  gap: 8px;
}

.taskbar-spacer {
  flex: 1;
}

.taskbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.taskbar-clock {
  font-size: 10px;
  color: var(--muted);
  padding: 6px 8px;
}

.app-menu {
  position: fixed;
  left: 12px;
  bottom: 60px;
  width: 220px;
  z-index: 1999;
  display: none;
  padding: 10px;
}

.app-menu.active {
  display: block;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.app-icon {
  height: 62px;
  width: 100%;
  padding: 0;
  margin: 0;
  position: relative;
  overflow: hidden;
  appearance: none;
  font: inherit;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(151, 180, 226, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
}

.app-icon:hover {
  border-color: var(--line-strong);
}

.app-icon img {
  width: 24px;
  height: 24px;
}

.app-icon.app-icon-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  filter: grayscale(0.8);
}

.app-icon.app-icon-disabled:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--line);
  background: rgba(151, 180, 226, 0.12);
}

.app-icon.app-icon-disabled::after {
  display: none;
}

.app-soon-ribbon {
  position: absolute;
  top: 12px;
  left: -26px;
  min-width: 130px;
  text-align: center;
  transform: rotate(-24deg);
  background: rgba(170, 173, 182, 0.28);
  border-top: 1px solid rgba(224, 231, 245, 0.45);
  border-bottom: 1px solid rgba(224, 231, 245, 0.45);
  color: #dce4f6;
  font-size: 8px;
  letter-spacing: 0.15em;
  padding: 2px 0;
}

.app-label {
  font-size: 9px;
  color: #eef4ff;
}

.audio-widget-fixed {
  position: fixed;
  bottom: 60px;
  right: 20px;
  width: min(340px, calc(100vw - 24px));
  z-index: 1999;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.audio-widget-fixed.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.audio-widget-header {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
}

.audio-widget-title {
  font-size: 12px;
  color: var(--ink);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.audio-widget-close {
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 20px;
  cursor: pointer;
}

.audio-widget-content {
  padding: 14px;
}

.audio-cover-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.audio-vinyl {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: radial-gradient(circle at 30% 30%, #cad7ef, #1a2231 65%);
  display: grid;
  place-items: center;
  animation: spin 4.5s linear infinite;
}

.audio-vinyl.paused {
  animation-play-state: paused;
}

.audio-vinyl-cover {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: rgba(10, 16, 28, 0.8);
  display: grid;
  place-items: center;
  color: var(--ink);
  overflow: hidden;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.audio-now-playing {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(149, 175, 215, 0.08);
  padding: 10px;
  margin-bottom: 10px;
}

.audio-title {
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.audio-artist {
  color: var(--muted);
  font-size: 10px;
  margin-top: 2px;
}

.audio-progress {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
}

.audio-time {
  font-size: 9px;
  color: var(--muted);
  min-width: 30px;
}

.audio-progress-bar,
.music-progress-bar {
  height: 5px;
  flex: 1;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: rgba(136, 165, 211, 0.16);
  overflow: hidden;
  cursor: pointer;
}

.audio-progress-fill,
.music-progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #8eaedb, #d8e7ff);
}

.audio-controls {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
}

.audio-btn {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(149, 176, 220, 0.2);
  color: var(--ink);
  cursor: pointer;
}

.audio-btn:hover {
  border-color: var(--line-strong);
}

.audio-volume {
  display: flex;
  align-items: center;
  gap: 8px;
}

.audio-volume-slider {
  flex: 1;
  appearance: none;
  height: 4px;
  border-radius: 99px;
  background: rgba(149, 176, 220, 0.28);
}

.audio-volume-slider::-webkit-slider-thumb {
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(213, 228, 250, 0.45);
  background: #dce9ff;
}

.audio-volume-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(213, 228, 250, 0.45);
  background: #dce9ff;
}

.profile-window {
  position: fixed;
  width: min(740px, calc(100vw - 24px));
  height: min(620px, calc(100vh - 80px));
  z-index: 2100;
  display: flex;
  flex-direction: column;
}

.profile-shell {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.profile-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(175deg, rgba(5, 10, 18, 0.42), rgba(5, 10, 18, 0.8));
}

.profile-content {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 24px 24px 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.profile-avatar-wrap {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  padding: 4px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(145deg, rgba(181, 207, 248, 0.2), rgba(83, 111, 159, 0.06));
  box-shadow: 0 0 30px rgba(154, 184, 236, 0.2);
}

.profile-avatar-large {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.profile-username {
  margin-top: 14px;
  font-size: 30px;
  font-weight: 700;
  color: var(--accent-bright);
}

.profile-title-text {
  margin-top: 6px;
  color: #dbe8ff;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.profile-bio {
  margin-top: 14px;
  width: min(560px, 100%);
  min-height: 74px;
  border: 1px solid rgba(218, 230, 248, 0.22);
  border-radius: 14px;
  background: rgba(11, 20, 35, 0.58);
  backdrop-filter: blur(8px);
  padding: 14px 16px;
  color: #ecf3ff;
  font-size: 13px;
  line-height: 1.6;
}

.type-cursor {
  margin-left: 1px;
  color: var(--accent-bright);
  animation: blink 1s steps(1, end) infinite;
}

.profile-music-widget {
  margin-top: 16px;
  width: min(560px, 100%);
  border: 1px solid rgba(218, 230, 248, 0.22);
  border-radius: 14px;
  background: rgba(11, 20, 35, 0.58);
  backdrop-filter: blur(10px);
  padding: 12px;
}

.profile-music-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.music-cover {
  width: 58px;
  height: 58px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(214, 230, 255, 0.18);
}

.music-info {
  flex: 1;
  text-align: left;
}

.music-title {
  font-size: 13px;
  color: #f2f7ff;
  font-weight: 700;
}

.music-artist {
  margin-top: 3px;
  color: #bdd2f4;
  font-size: 11px;
}

.music-btn {
  min-width: 68px;
  border: 1px solid rgba(218, 230, 248, 0.4);
  border-radius: 999px;
  background: linear-gradient(155deg, rgba(164, 191, 235, 0.34), rgba(115, 142, 189, 0.28));
  color: #edf4ff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 10px;
  font-weight: 700;
  padding: 8px 10px;
  cursor: pointer;
}

.profile-socials {
  margin-top: 18px;
  width: min(560px, 100%);
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.profile-social-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  text-decoration: none;
}

.profile-social-logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  transition: all 0.25s ease;
}

.profile-social-link:hover .profile-social-logo,
.profile-social-link.active .profile-social-logo {
  box-shadow: 0 0 24px rgba(180, 208, 255, 0.65);
  transform: scale(1.08);
}

.social-label {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ecf3ff;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  border-radius: 99px;
  background: rgba(141, 171, 219, 0.36);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(167, 193, 236, 0.5);
}

@media (max-width: 860px) {
  .profile-window {
    width: calc(100vw - 16px);
    height: calc(100vh - 70px);
    left: 8px !important;
    top: 8px !important;
  }
}

@media (max-width: 560px) {
  .main-content {
    padding: 20px 10px 70px;
  }

  .profile-grid {
    max-width: none;
    width: 100%;
  }

  .profile-card {
    width: 100%;
  }

  .profile-content {
    padding: 18px 12px 16px;
  }

  .profile-avatar-wrap {
    width: 108px;
    height: 108px;
  }

  .profile-username {
    font-size: 24px;
  }

  .profile-music-row {
    flex-wrap: wrap;
    justify-content: center;
  }

  .music-info {
    text-align: center;
    width: 100%;
  }
}

.background::before {
  content: '';
  position: absolute;
  inset: -20% -10%;
  background:
    radial-gradient(45% 30% at 20% 35%, rgba(88, 160, 220, 0.28), transparent 72%),
    radial-gradient(35% 28% at 68% 26%, rgba(98, 255, 212, 0.22), transparent 75%),
    radial-gradient(42% 30% at 82% 62%, rgba(120, 156, 255, 0.24), transparent 74%);
  filter: blur(42px) saturate(115%);
  animation: aurora-flow 18s ease-in-out infinite alternate;
  opacity: 0.82;
}

.background::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    var(--theme-stamp-image),
    linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.01) 1px, transparent 1px);
  background-size: 360px 360px, 24px 24px, 24px 24px;
  background-repeat: no-repeat, repeat, repeat;
  background-position: center calc(50% - 28px), 0 0, 0 0;
  animation: stamp-breathe 9s ease-in-out infinite, submerged-hue 24s linear infinite;
  opacity: 0.2;
  filter: blur(0.8px) saturate(115%);
  mix-blend-mode: screen;
}

@keyframes aurora-flow {
  0% { transform: translateX(-3%) translateY(1%) rotate(-2deg) scale(1); }
  50% { transform: translateX(3%) translateY(-1%) rotate(2deg) scale(1.06); }
  100% { transform: translateX(-1%) translateY(2%) rotate(-1deg) scale(1.02); }
}

@keyframes stamp-breathe {
  0%, 100% { opacity: 0.22; filter: blur(0) saturate(100%); }
  50% { opacity: 0.34; filter: blur(1px) saturate(115%); }
}

@keyframes submerged-warp {
  0% {
    transform: translate3d(0, 0, 0) scale(1) skewX(0deg);
    background-position: center center, 0 0, 0 0;
  }
  50% {
    transform: translate3d(0, 6px, 0) scale(1.03) skewX(0.8deg);
    background-position: center 52%, 8px 4px, -6px 3px;
  }
  100% {
    transform: translate3d(0, -4px, 0) scale(1.01) skewX(-0.7deg);
    background-position: center 48%, -10px 7px, 6px 5px;
  }
}

@keyframes submerged-hue {
  0% { filter: blur(0.8px) saturate(115%) hue-rotate(0deg); }
  50% { filter: blur(1.4px) saturate(130%) hue-rotate(18deg); }
  100% { filter: blur(0.8px) saturate(115%) hue-rotate(0deg); }
}

body::before,
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 55;
  opacity: 0;
}

body::before {
  background:
    repeating-linear-gradient(0deg, rgba(190, 218, 255, 0.045) 0, rgba(190, 218, 255, 0.045) 2px, transparent 2px, transparent 5px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02), transparent 24%, rgba(255, 255, 255, 0.02));
}

body::after {
  background: linear-gradient(180deg, transparent 0%, rgba(162, 196, 255, 0.22) 50%, transparent 100%);
  clip-path: inset(46% 0 49% 0);
}

body.atmo-flicker::before {
  animation: atmo-flicker 0.24s steps(2, end) 1;
}

body.atmo-glitch::before {
  animation: atmo-glitch 0.38s linear 1;
}

body.atmo-tear::after {
  animation: atmo-tear 0.32s ease-out 1;
}

@keyframes atmo-flicker {
  0%, 100% { opacity: 0; }
  20% { opacity: 0.18; }
  40% { opacity: 0; }
  70% { opacity: 0.22; }
}

@keyframes atmo-glitch {
  0% { opacity: 0; transform: translateX(0); }
  20% { opacity: 0.24; transform: translateX(-8px); }
  45% { opacity: 0.16; transform: translateX(10px); }
  70% { opacity: 0.2; transform: translateX(-6px); }
  100% { opacity: 0; transform: translateX(0); }
}

@keyframes atmo-tear {
  0% { opacity: 0; clip-path: inset(47% 0 50% 0); }
  25% { opacity: 0.36; clip-path: inset(42% 0 45% 0); transform: translateX(-8px); }
  100% { opacity: 0; clip-path: inset(52% 0 44% 0); transform: translateX(10px); }
}

.profile-window {
  border: 1px solid rgba(210, 229, 255, 0.38);
  background: linear-gradient(140deg, rgba(22, 34, 58, 0.45), rgba(8, 14, 24, 0.38));
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.5),
    inset 0 0 0 1px rgba(229, 240, 255, 0.18),
    0 0 24px rgba(156, 197, 255, 0.2);
  backdrop-filter: blur(20px) saturate(150%);
}

.profile-window .window-header {
  background: linear-gradient(120deg, rgba(210, 230, 255, 0.14), rgba(145, 182, 237, 0.09));
  border-bottom: 1px solid rgba(214, 232, 255, 0.24);
}

.profile-content {
  background: linear-gradient(170deg, rgba(10, 18, 31, 0.48), rgba(7, 13, 24, 0.36));
  backdrop-filter: blur(14px) saturate(135%);
}

.profile-bio,
.profile-music-widget {
  border: 1px solid rgba(222, 236, 255, 0.26);
  background: linear-gradient(145deg, rgba(18, 30, 52, 0.58), rgba(8, 16, 28, 0.52));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.profile-card,
.profile-button,
.music-btn,
.profile-social-link {
  position: relative;
  overflow: hidden;
}

.profile-card::after,
.profile-button::after,
.music-btn::after,
.profile-social-link::after {
  content: '';
  position: absolute;
  top: 0;
  left: -140%;
  width: 58%;
  height: 100%;
  background: linear-gradient(100deg, transparent 0%, rgba(233, 244, 255, 0.58) 45%, transparent 100%);
  transform: skewX(-20deg);
  transition: left 0.55s ease;
  pointer-events: none;
}

.profile-card:hover::after,
.profile-button:hover::after,
.music-btn:hover::after,
.profile-social-link:hover::after {
  left: 145%;
}

.profile-button:hover,
.music-btn:hover,
.profile-social-link:hover {
  box-shadow: 0 0 20px rgba(182, 214, 255, 0.3);
}

.profile-social-link {
  padding: 4px 8px;
  border-radius: 16px;
}

:root {
  --atmo-alpha: 0.24;
  --aurora-boost: 1;
}

.background {
  overflow: hidden;
}

.background::before {
  filter: blur(42px) saturate(calc(115% * var(--aurora-boost)));
}

.background::after {
  opacity: 0.24;
}

.background .sigil-wrap {
  display: none;
}

.background::selection {
  background: transparent;
}

body::before,
body::after {
  opacity: 0;
}

body::before {
  background:
    repeating-linear-gradient(0deg, rgba(190, 218, 255, var(--atmo-alpha)) 0, rgba(190, 218, 255, var(--atmo-alpha)) 2px, transparent 2px, transparent 5px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02), transparent 24%, rgba(255, 255, 255, 0.02));
}

.profile-shell {
  backdrop-filter: none;
}

.profile-video-bg {
  filter: none;
}

.profile-overlay {
  background:
    linear-gradient(180deg, rgba(3, 8, 14, 0.24), rgba(4, 10, 18, 0.52));
}

.profile-content {
  background: transparent;
  backdrop-filter: none;
}

.profile-bio,
.profile-music-widget {
  border: 1px solid rgba(227, 239, 255, 0.28);
  background: linear-gradient(145deg, rgba(14, 24, 40, 0.6), rgba(8, 15, 26, 0.56));
  backdrop-filter: blur(12px) saturate(135%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 30px rgba(2, 6, 12, 0.32);
}

.profile-bio {
  min-height: 84px;
}

.app-icon {
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.app-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(215, 231, 255, 0.18), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.app-icon:hover {
  border-color: rgba(205, 225, 255, 0.4);
  background: rgba(146, 176, 222, 0.15);
  transform: translateY(-1px);
  box-shadow: 0 0 16px rgba(150, 185, 232, 0.14);
}

.app-icon:hover::after {
  opacity: 0.65;
}

.profile-card::after,
.profile-button::after,
.music-btn::after,
.profile-social-link::after {
  width: 42%;
  background: linear-gradient(100deg, transparent 0%, rgba(231, 243, 255, 0.32) 45%, transparent 100%);
  transition: left 0.65s ease;
}

.profile-button:hover,
.music-btn:hover,
.profile-social-link:hover {
  box-shadow: 0 0 12px rgba(182, 214, 255, 0.18);
}

@keyframes atmo-flicker {
  0%, 100% { opacity: 0; }
  20% { opacity: calc(var(--atmo-alpha) * 0.8); }
  40% { opacity: 0; }
  70% { opacity: calc(var(--atmo-alpha) * 1.1); }
}

@keyframes atmo-glitch {
  0% { opacity: 0; transform: translateX(0); }
  20% { opacity: calc(var(--atmo-alpha) * 1.2); transform: translateX(-6px); }
  45% { opacity: calc(var(--atmo-alpha) * 0.85); transform: translateX(8px); }
  70% { opacity: calc(var(--atmo-alpha) * 1.05); transform: translateX(-4px); }
  100% { opacity: 0; transform: translateX(0); }
}

@keyframes atmo-tear {
  0% { opacity: 0; clip-path: inset(47% 0 50% 0); }
  25% { opacity: calc(var(--atmo-alpha) * 1.4); clip-path: inset(42% 0 45% 0); transform: translateX(-8px); }
  100% { opacity: 0; clip-path: inset(52% 0 44% 0); transform: translateX(10px); }
}

.profile-bio {
  min-height: 0 !important;
  height: auto !important;
  padding-top: 12px;
  padding-bottom: 12px;
}

.profile-bio,
.profile-music-widget {
  border: 1px solid rgba(231, 242, 255, 0.32) !important;
  background:
    linear-gradient(145deg, rgba(22, 36, 58, 0.52), rgba(10, 18, 30, 0.46)),
    radial-gradient(circle at 15% 0%, rgba(207, 226, 255, 0.12), transparent 48%) !important;
  backdrop-filter: blur(16px) saturate(175%) contrast(108%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(175%) contrast(108%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(160, 194, 241, 0.12),
    0 14px 30px rgba(3, 8, 16, 0.34),
    0 0 20px rgba(151, 188, 239, 0.12) !important;
}

.profile-social-link {
  overflow: visible !important;
  background: transparent !important;
  box-shadow: none !important;
}

.profile-social-link:hover,
.profile-social-link.active {
  background: transparent !important;
  box-shadow: none !important;
}

.profile-social-link::after {
  display: none !important;
}

.profile-social-logo {
  width: 30px !important;
  height: 30px !important;
  max-width: 30px !important;
  object-fit: contain !important;
  border-radius: 0 !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  filter: drop-shadow(0 1px 4px rgba(186, 214, 255, 0.35));
}

.profile-social-icon-shell {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(216, 232, 255, 0.28);
  background:
    radial-gradient(circle at 35% 25%, rgba(216, 232, 255, 0.25), rgba(132, 172, 232, 0.14) 45%, rgba(15, 25, 40, 0.2) 100%);
  backdrop-filter: blur(7px) saturate(125%);
  -webkit-backdrop-filter: blur(7px) saturate(125%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 6px 14px rgba(5, 10, 18, 0.26);
}

.profile-window {
  border-radius: 22px !important;
  overflow: hidden !important;
  clip-path: inset(0 round 22px);
}

.profile-window .window-header {
  border-radius: 22px 22px 0 0;
}

.profile-shell {
  border-radius: 0 0 22px 22px;
  overflow: hidden;
}

.profile-video-bg,
.profile-overlay {
  border-radius: 0 0 22px 22px;
}

.profile-content {
  border-radius: 0 0 22px 22px;
}

.profile-bio,
.profile-music-widget {
  border-color: rgba(227, 239, 255, 0.2);
  background: linear-gradient(145deg, rgba(16, 28, 44, 0.48), rgba(10, 18, 31, 0.45));
  backdrop-filter: blur(9px) saturate(122%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 8px 20px rgba(2, 6, 12, 0.22);
}

.profile-bio:hover,
.profile-music-widget:hover {
  border-color: rgba(227, 239, 255, 0.26);
}

.app-icon img {
  width: 30px;
  height: 30px;
  object-fit: cover;
  border-radius: 7px;
  border: 1px solid rgba(224, 238, 255, 0.22);
}

#boot::after,
#login-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(circle at 18% 28%, rgba(214, 232, 255, 0.1), transparent 34%),
    radial-gradient(circle at 82% 68%, rgba(156, 208, 255, 0.08), transparent 40%),
    radial-gradient(circle at 52% 45%, rgba(202, 236, 255, 0.08), transparent 46%);
  filter: blur(22px);
  animation: screen-ambient-drift 12s ease-in-out infinite alternate;
}

#boot::after {
  opacity: 0.9;
}

#login-screen::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(circle at 25% 35%, rgba(255, 255, 255, 0.18) 0 1px, transparent 2px) 0 0/140px 140px,
    radial-gradient(circle at 75% 75%, rgba(198, 228, 255, 0.12) 0 1px, transparent 2px) 0 0/180px 180px;
  animation: screen-sparkle 7s linear infinite;
}

.login-terminal,
.boot-container,
.boot-text,
.boot-progress {
  z-index: 2;
}

@keyframes screen-ambient-drift {
  0% { transform: translateY(0) scale(1); opacity: 0.7; }
  50% { transform: translateY(-10px) scale(1.03); opacity: 1; }
  100% { transform: translateY(6px) scale(1.01); opacity: 0.75; }
}

@keyframes screen-sparkle {
  0% { transform: translateX(0) translateY(0); opacity: 0.35; }
  50% { transform: translateX(10px) translateY(-8px); opacity: 0.6; }
  100% { transform: translateX(-6px) translateY(10px); opacity: 0.35; }
}

.audio-visualizer-wrap {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 50px;
  width: min(980px, calc(100vw - 70px));
  height: 160px;
  z-index: 25;
  border: none;
  background: transparent;
  overflow: visible;
  pointer-events: none;
  opacity: 0;
  transition: opacity 320ms ease;
  will-change: opacity;
}

.audio-visualizer-wrap.active {
  opacity: 0.98;
}

#audio-visualizer-canvas {
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 8px rgba(170, 206, 255, 0.36)) drop-shadow(0 0 18px rgba(166, 208, 255, 0.24));
}

html,
body {
  cursor: none;
}

#custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 18px;
  height: 18px;
  margin-left: -9px;
  margin-top: -9px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.85);
  mix-blend-mode: difference;
  pointer-events: none;
  z-index: 100000;
  transform: translate(-100px, -100px);
  transition: width 0.15s ease, height 0.15s ease, margin 0.15s ease, background 0.15s ease, border 0.15s ease;
}

#custom-cursor.cursor-hover {
  width: 28px;
  height: 28px;
  margin-left: -14px;
  margin-top: -14px;
  background: rgba(255, 255, 255, 1);
}

#custom-cursor.cursor-active {
  width: 12px;
  height: 12px;
  margin-left: -6px;
  margin-top: -6px;
}

.taskbar {
  background:
    linear-gradient(145deg, rgba(18, 32, 50, 0.42), rgba(10, 18, 30, 0.34)) !important;
  border-top: 1px solid rgba(218, 235, 255, 0.24) !important;
  box-shadow:
    0 -10px 30px rgba(2, 8, 16, 0.28),
    inset 0 1px 0 rgba(235, 245, 255, 0.12) !important;
  backdrop-filter: blur(16px) saturate(155%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(155%) !important;
}

.taskbar-os-btn,
.taskbar-icon-btn,
.taskbar-terminal-btn,
.taskbar-item {
  border: 1px solid rgba(220, 236, 255, 0.24) !important;
  background:
    linear-gradient(150deg, rgba(173, 203, 243, 0.17), rgba(66, 96, 138, 0.08)) !important;
  box-shadow:
    inset 0 1px 0 rgba(248, 252, 255, 0.2),
    0 4px 14px rgba(5, 12, 22, 0.2) !important;
  backdrop-filter: blur(10px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(10px) saturate(140%) !important;
}

.window,
.profile-window,
.audio-widget-fixed,
.app-menu {
  background:
    linear-gradient(160deg, rgba(21, 34, 54, 0.34), rgba(10, 18, 30, 0.28)) !important;
  border: 1px solid rgba(224, 238, 255, 0.22) !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  clip-path: inset(0 round 18px);
  background-clip: padding-box;
  isolation: isolate;
  box-shadow:
    0 22px 42px rgba(2, 8, 16, 0.32),
    inset 0 1px 0 rgba(244, 251, 255, 0.14),
    inset 0 -1px 0 rgba(145, 183, 235, 0.14) !important;
  backdrop-filter: blur(18px) saturate(165%) contrast(108%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(165%) contrast(108%) !important;
}

.profile-window {
  clip-path: inset(0 round 22px) !important;
}

.window-header,
.audio-widget-header,
.profile-window .window-header {
  background:
    linear-gradient(120deg, rgba(214, 232, 255, 0.11), rgba(128, 167, 221, 0.06)) !important;
  border-bottom: 1px solid rgba(220, 236, 255, 0.2) !important;
  border-radius: 18px 18px 0 0;
}

.window-content,
.audio-widget-content {
  background: linear-gradient(170deg, rgba(12, 22, 36, 0.2), rgba(9, 16, 28, 0.14));
  border-radius: 0 0 18px 18px;
}

.terminal-input-field {
  background: rgba(9, 16, 28, 0.42) !important;
  border-color: rgba(219, 235, 255, 0.22) !important;
  backdrop-filter: blur(8px) saturate(135%);
  -webkit-backdrop-filter: blur(8px) saturate(135%);
}

/* israel lol no goyim alowed */
body.theme-israel .background {
  background:
    radial-gradient(1200px 700px at 8% 8%, rgba(88, 154, 255, 0.24), transparent 58%),
    radial-gradient(900px 600px at 88% 15%, rgba(45, 113, 238, 0.24), transparent 52%),
    radial-gradient(1000px 700px at 50% 100%, rgba(127, 175, 255, 0.2), transparent 60%),
    linear-gradient(155deg, #041022 0%, #092041 48%, #0b2852 100%);
}

body.theme-israel .background::before {
  filter: blur(36px) saturate(140%);
  opacity: 0.78;
}

body.theme-israel .background::after {
  mix-blend-mode: screen;
  opacity: 0.3;
}

body.theme-israel .taskbar,
body.theme-israel .window,
body.theme-israel .profile-window,
body.theme-israel .audio-widget-fixed,
body.theme-israel .app-menu {
  background:
    linear-gradient(160deg, rgba(20, 47, 92, 0.48), rgba(9, 24, 50, 0.44)) !important;
  border-color: rgba(125, 178, 255, 0.32) !important;
  box-shadow:
    0 14px 30px rgba(4, 16, 38, 0.3),
    inset 0 1px 0 rgba(215, 233, 255, 0.18) !important;
}

body.theme-israel .taskbar-item,
body.theme-israel .taskbar-terminal-btn,
body.theme-israel .taskbar-os-btn,
body.theme-israel .taskbar-icon-btn,
body.theme-israel .profile-card,
body.theme-israel .profile-button,
body.theme-israel .music-btn {
  color: #d9ebff !important;
  border-color: rgba(122, 178, 255, 0.4) !important;
  background: linear-gradient(150deg, rgba(87, 140, 225, 0.28), rgba(25, 58, 114, 0.24)) !important;
}

body.theme-israel .section-title,
body.theme-israel .window-title,
body.theme-israel .info-label,
body.theme-israel .audio-widget-title,
body.theme-israel .profile-name,
body.theme-israel .profile-username,
body.theme-israel .music-title,
body.theme-israel .audio-title,
body.theme-israel .audio-artist {
  color: #eaf3ff !important;
}

/* this is for mobile */
@media (max-width: 860px) {
  .main-content {
    padding: 28px 16px 96px;
  }

  .section-title {
    font-size: 16px;
    margin-bottom: 22px;
  }

  .profile-grid {
    gap: 18px;
  }

  .profile-card {
    min-width: 190px;
    padding: 16px 18px;
    gap: 10px;
    border-radius: 16px;
  }

  .profile-avatar-icon {
    width: 78px;
    height: 78px;
  }

  .profile-name {
    font-size: 16px;
  }

  .profile-button {
    font-size: 12px;
    padding: 8px 14px;
  }

  .window-header,
  .audio-widget-header {
    min-height: 48px;
    padding: 0 14px;
  }

  .window-title,
  .audio-widget-title {
    font-size: 13px;
  }

  .window-content,
  .audio-widget-content {
    font-size: 12px;
  }

  .taskbar {
    height: 62px;
    padding: 0 12px;
    gap: 10px;
  }

  .taskbar-os-btn,
  .taskbar-icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 10px;
  }

  .taskbar-os-btn img,
  .taskbar-icon-btn img {
    width: 22px;
    height: 22px;
  }

  .taskbar-terminal-btn,
  .taskbar-item {
    font-size: 11px;
    padding: 8px 12px;
    border-radius: 10px;
  }

  .taskbar-clock {
    font-size: 12px;
    padding: 8px 10px;
  }

  .audio-btn {
    width: 40px;
    height: 40px;
  }

  .audio-time {
    font-size: 10px;
  }

  .audio-visualizer-wrap {
    width: calc(100vw - 16px);
    bottom: 50px;
    height: 108px;
  }

  .audio-widget-fixed {
    right: 8px;
    bottom: 68px;
    width: min(430px, calc(100vw - 16px));
  }

  #terminal-window,
  #info-window,
  #files-window,
  #gallery-window,
  #posts-window,
  #message-window,
  #jerimiah-window,
  #gallery-preview-window {
    right: 8px;
    bottom: 68px;
    width: calc(100vw - 16px);
    height: min(420px, calc(100vh - 145px));
  }
}

@media (max-width: 560px) {
  .profile-card {
    width: 100%;
    min-width: 100%;
    padding: 14px 14px;
  }

  .profile-avatar-icon {
    width: 72px;
    height: 72px;
  }

  .profile-button {
    min-width: 96px;
    font-size: 12px;
  }
}

@media (pointer: coarse), (max-width: 860px) {
  html,
  body {
    cursor: auto;
  }

  #custom-cursor {
    display: none !important;
  }
}

@media (pointer: fine) {
  html,
  body,
  *,
  *::before,
  *::after {
    cursor: none !important;
  }
}
