:root {
  --bg-a: #8cc8f2;
  --bg-b: #2f8ee8;
  --bg-c: #0e6adb;
  --text: rgba(8, 32, 60, 0.92);
  --muted: rgba(35, 66, 99, 0.68);
  --panel: rgba(235, 248, 255, 0.33);
  --panel-strong: rgba(240, 250, 255, 0.46);
  --line: rgba(255, 255, 255, 0.30);
  --shadow: 0 26px 70px rgba(5, 43, 108, 0.28), inset 0 1px 0 rgba(255,255,255,0.58);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  overflow: hidden;
  background:
    linear-gradient(to bottom, rgba(255,255,255,0.06), rgba(255,255,255,0.00) 30%),
    url("assets/grassos-wallpaper.png") center center / cover no-repeat fixed;
  background-color: #61a7d6;
}

button, input { font: inherit; }
button { color: inherit; }

.desktop {
  position: relative;
  min-height: 100vh;
  width: 100%;
}

.desktop::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(255,255,255,0.05), transparent 22%),
    radial-gradient(circle at 50% 105%, rgba(255,255,255,0.10), transparent 24%);
}

.desktop-icon {
  position: absolute;
  left: 24px;
  width: 108px;
  border: 0;
  background: transparent;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.96);
  text-shadow: 0 1px 2px rgba(0,0,0,0.22);
  cursor: default;
}


.desktop-icon-primary {
  top: 28px;
}

.desktop-icon-secondary {
  top: 146px;
}

.desktop-icon:hover .large,
.desktop-icon:focus-visible .large {
  transform: translateY(-1px) scale(1.02);
}

.desktop-icon:focus-visible,
.taskbar-button:focus-visible,
.tray-button:focus-visible,
.start-tile:focus-visible,
.network-card:focus-visible,
.panel-footer button:focus-visible {
  outline: 2px solid rgba(255,255,255,0.9);
  outline-offset: 3px;
}

.icon-label {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.18;
  text-align: center;
}

.icon-label-wide {
  max-width: 94px;
}

.app-icon {
  position: relative;
  border-radius: 24px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.78), 0 10px 22px rgba(18, 60, 111, 0.22);
  overflow: hidden;
  transition: transform .18s ease, filter .18s ease;
}

.app-icon-image {
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(14, 83, 180, 0.18));
  transition: transform .18s ease, filter .18s ease;
}

.app-icon-image.large {
  width: 58px;
  height: 58px;
}

.app-icon-image.small {
  width: 42px;
  height: 42px;
}

.app-icon-image.tiny {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
}

.browser-icon {
  background: linear-gradient(145deg, #dff6ff 8%, #f4fbff 32%, #d1efff 100%);
}

.browser-icon.large { width: 58px; height: 58px; }
.browser-icon.small { width: 42px; height: 42px; border-radius: 18px; }
.browser-icon.tiny { width: 34px; height: 34px; border-radius: 14px; flex: 0 0 auto; }

.browser-icon::before,
.browser-icon::after,
.browser-icon span {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.browser-icon::before {
  inset: 7% 7% 20% 20%;
  background: conic-gradient(from 240deg, #1aa1d4 0deg, #3fd2ff 48deg, #1b86e4 165deg, transparent 165deg);
}

.browser-icon::after {
  inset: 18% 14% 14% 16%;
  background: conic-gradient(from 30deg, #7fe44f 10deg, #15993c 125deg, transparent 125deg);
}

.browser-icon span {
  inset: 25%;
  background: linear-gradient(180deg, #f3fbff, #c7e9ff);
  width: 44%;
  height: 44%;
  margin: auto;
  box-shadow: inset 0 -2px 5px rgba(85, 151, 196, 0.2);
}

.taskbar-wrap {
  position: absolute;
  inset-inline: 0;
  bottom: 26px;
  display: flex;
  justify-content: center;
  padding-inline: 16px;
  z-index: 10;
}

.taskbar,
.panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.34), rgba(214,238,255,.16));
  border: 1px solid rgba(255,255,255,.34);
  box-shadow: var(--shadow);
  backdrop-filter: blur(30px) saturate(190%);
  -webkit-backdrop-filter: blur(30px) saturate(190%);
}

.taskbar::before,
.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,.30), transparent 36%),
    radial-gradient(circle at 20% 0%, rgba(255,255,255,.28), transparent 32%),
    radial-gradient(circle at 92% 100%, rgba(255,255,255,.12), transparent 28%);
}

.taskbar::after,
.panel::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  pointer-events: none;
  z-index: -1;
  border: 1px solid rgba(255,255,255,.13);
}

.taskbar {
  width: min(1120px, calc(100vw - 64px));
  min-height: 98px;
  border-radius: 26px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 26px;
}

.taskbar-button,
.tray-button {
  border: 0;
  background: transparent;
  cursor: default;
}

.taskbar-button:hover,
.tray-button:hover,
.taskbar-button.is-active,
.tray-button.is-active {
  background: rgba(255,255,255,.18);
}

.brand-button {
  height: 62px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 14px 0 6px;
  border-radius: 18px;
}

.brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(76, 160, 45, 0.22));
}

.brand-name {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.divider {
  width: 1px;
  align-self: stretch;
  background: linear-gradient(to bottom, transparent, rgba(53,91,132,.22), transparent);
}

.divider-grow { margin-left: auto; }

.search-box {
  height: 58px;
  min-width: min(360px, 26vw);
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 999px;
  padding: 0 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.30), rgba(237,247,255,.18));
  border: 1px solid rgba(255,255,255,.24);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), inset 0 -1px 0 rgba(255,255,255,.10), 0 8px 18px rgba(58,102,150,.08);
  color: rgba(57,84,110,.88);
}

.search-box svg,
.search-panel-input svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.search-box span {
  font-size: 15px;
  font-weight: 400;
}

.pinned-app {
  position: relative;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
}

/* Aktif nokta yok: Tarayıcı sabitlenmiş ama kapalı. */

.system-tray {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 0 0 auto;
}

.tray-icons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tray-button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 13px;
}

.tray-icon {
  width: 20px;
  height: 20px;
  color: rgba(21,42,66,.92);
}

.stroke-icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.time-date {
  min-width: 130px;
  text-align: right;
  line-height: 1.28;
}

.time {
  font-size: 14px;
  font-weight: 500;
}

.date {
  font-size: 14px;
  color: var(--muted);
}

.panel {
  position: absolute;
  z-index: 20;
  border-radius: 28px;
  color: var(--text);
  transform-origin: bottom center;
  animation: panelIn .18s ease both;
}

.panel[hidden] { display: none; }

@keyframes panelIn {
  from { opacity: 0; transform: translateY(8px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.start-panel {
  left: max(24px, calc(50% - 560px));
  bottom: 140px;
  width: min(460px, calc(100vw - 32px));
  padding: 20px;
}

.search-panel {
  left: var(--search-panel-left, 50%);
  bottom: 140px;
  transform: none;
  width: min(520px, calc(100vw - 32px));
  padding: 18px;
}

.quick-panel {
  right: max(24px, calc(50% - 560px));
  bottom: 140px;
  width: min(360px, calc(100vw - 32px));
  padding: 18px;
}

.panel-header,
.quick-header,
.panel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.panel-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.panel-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.panel-brand strong,
.quick-header strong {
  display: block;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.panel-brand span,
.quick-header span,
.panel-footer span,
.start-tile small,
.network-card small,
.search-item small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.build-pill {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.22);
  border: 1px solid rgba(255,255,255,.22);
  color: var(--muted);
  font-size: 12px;
}

.start-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-block: 20px;
}

.start-tile,
.network-card,
.search-item,
.panel-footer button {
  border: 1px solid rgba(255,255,255,.20);
  background: linear-gradient(180deg, rgba(255,255,255,.24), rgba(255,255,255,.09));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22);
  color: inherit;
  cursor: default;
}

.start-tile:hover,
.network-card:hover,
.search-item:hover,
.panel-footer button:hover {
  background: linear-gradient(180deg, rgba(255,255,255,.34), rgba(255,255,255,.14));
}

.start-tile {
  min-height: 82px;
  border-radius: 20px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.tile-icon {
  width: 34px;
  height: 34px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.22);
  font-size: 22px;
  font-weight: 700;
}

.muted-tile { opacity: .88; }

.panel-footer {
  border-top: 1px solid rgba(255,255,255,.18);
  padding-top: 14px;
}

.panel-footer button {
  border-radius: 14px;
  padding: 9px 13px;
}

.search-panel-input {
  height: 56px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 18px;
  padding: 0 16px;
  color: rgba(57,84,110,.92);
  background: rgba(255,255,255,.25);
  border: 1px solid rgba(255,255,255,.25);
}

.search-panel-input input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 16px;
}

.search-panel-input input::placeholder { color: rgba(57,84,110,.7); }

.search-section-title {
  margin: 16px 4px 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.search-results {
  display: grid;
  gap: 9px;
}

.search-item {
  width: 100%;
  border-radius: 17px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.search-item .result-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.22);
  font-weight: 700;
}

.search-item .result-icon.image-icon {
  background: rgba(255,255,255,.12);
}

.result-icon-image {
  width: 30px;
  height: 30px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 5px 10px rgba(10, 55, 120, 0.14));
}

.quick-header {
  margin-bottom: 14px;
}

.network-card {
  width: 100%;
  min-height: 68px;
  border-radius: 20px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  margin-top: 10px;
}

.network-card.active {
  border-color: rgba(126, 223, 114, .38);
  background: linear-gradient(180deg, rgba(235,255,232,.30), rgba(255,255,255,.10));
}

.network-signal {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: flex;
  align-items: end;
  gap: 4px;
  justify-content: center;
}

.network-signal i {
  display: block;
  width: 5px;
  border-radius: 999px;
  background: #1f9d44;
  box-shadow: 0 0 10px rgba(77, 228, 81, .38);
}

.network-signal i:nth-child(1) { height: 11px; }
.network-signal i:nth-child(2) { height: 19px; }
.network-signal i:nth-child(3) { height: 27px; }

.network-dot {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 14px;
  background: rgba(255,255,255,.22);
  position: relative;
}

.network-dot::after {
  content: "";
  position: absolute;
  inset: 11px;
  border-radius: 50%;
  background: rgba(40, 74, 105, .55);
}

.network-dot.glow::after {
  background: #1f9d44;
  box-shadow: 0 0 16px rgba(77, 228, 81, .48);
}

.volume-control {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 20px;
  background: rgba(255,255,255,.17);
  border: 1px solid rgba(255,255,255,.18);
}

.round-control {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.20);
  border-radius: 16px;
  background: rgba(255,255,255,.20);
  color: inherit;
}

.volume-control input[type="range"] {
  width: 100%;
  accent-color: #2f8ee8;
}

.toast {
  position: absolute;
  left: 50%;
  bottom: 150px;
  z-index: 40;
  translate: -50% 10px;
  min-width: 240px;
  max-width: calc(100vw - 40px);
  padding: 13px 16px;
  border-radius: 18px;
  text-align: center;
  color: var(--text);
  background: rgba(245, 250, 255, .50);
  border: 1px solid rgba(255,255,255,.32);
  box-shadow: 0 18px 40px rgba(5,43,108,.22), inset 0 1px 0 rgba(255,255,255,.50);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, translate .18s ease;
}

.toast.show {
  opacity: 1;
  translate: -50% 0;
}

@media (max-width: 980px) {
  .taskbar {
    width: calc(100vw - 28px);
    gap: 14px;
    padding: 14px 18px;
  }

  .brand-name { display: none; }

  .search-box {
    min-width: 180px;
    flex: 1 1 auto;
  }
}

@media (max-width: 720px) {
  .desktop-icon {
    left: 12px;
    transform: scale(.92);
    transform-origin: top left;
  }

  .desktop-icon-primary {
    top: 20px;
  }

  .desktop-icon-secondary {
    top: 132px;
  }

  .taskbar-wrap {
    bottom: 14px;
    padding-inline: 8px;
  }

  .taskbar {
    width: calc(100vw - 16px);
    min-height: 84px;
    border-radius: 22px;
    padding: 12px 14px;
    gap: 10px;
  }

  .search-box {
    min-width: 0;
    width: 52px;
    padding: 0;
    justify-content: center;
  }

  .search-box span,
  .time-date,
  .divider:first-of-type {
    display: none;
  }

  .brand-logo {
    width: 36px;
    height: 36px;
  }

  .pinned-app {
    width: 50px;
    height: 50px;
  }

  .system-tray {
    gap: 10px;
  }

  .start-grid {
    grid-template-columns: 1fr;
  }

  .start-panel,
  .search-panel,
  .quick-panel {
    left: 8px;
    right: 8px;
    bottom: 112px;
    width: auto;
    transform: none;
  }
}

/* GrassOS boot + login overlay */
.auth-shell {
  position: fixed;
  inset: 0;
  z-index: 1000;
  color: rgba(242, 250, 255, 0.96);
  background:
    radial-gradient(circle at 50% 30%, rgba(81, 192, 255, 0.20), transparent 35%),
    radial-gradient(circle at 72% 78%, rgba(95, 225, 64, 0.14), transparent 24%),
    rgba(3, 11, 22, 0.88);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  transition: opacity .42s ease, visibility .42s ease;
}

body.is-unlocked .auth-shell {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.boot-screen,
.login-screen {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  transition: opacity .42s ease, transform .42s ease, visibility .42s ease;
}

.login-screen {
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
}

body.is-login .boot-screen {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-14px) scale(.98);
}

body.is-login .login-screen {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.boot-card,
.login-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.26);
  box-shadow:
    0 32px 90px rgba(0, 20, 55, .38),
    inset 0 1px 0 rgba(255,255,255,.42);
  background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.07));
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
}

.boot-card::before,
.login-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(255,255,255,.26), rgba(255,255,255,0) 42%),
    radial-gradient(circle at 30% 0%, rgba(255,255,255,.22), transparent 34%),
    radial-gradient(circle at 88% 100%, rgba(110, 231, 80, .16), transparent 28%);
}

.boot-card {
  width: min(360px, calc(100vw - 48px));
  border-radius: 34px;
  padding: 42px 34px 34px;
  text-align: center;
}

.boot-logo {
  width: 90px;
  height: 90px;
  object-fit: contain;
  margin: 0 auto 18px;
  display: block;
  filter: drop-shadow(0 0 24px rgba(112, 255, 80, .28));
  animation: bootPulse 1.8s ease-in-out infinite;
}

.boot-title {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.boot-subtitle {
  margin-top: 7px;
  font-size: 14px;
  color: rgba(230, 245, 255, .72);
}

.boot-progress {
  margin-top: 26px;
  height: 7px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.14);
}

.boot-progress span {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #36a5ff, #56f15f);
  box-shadow: 0 0 18px rgba(86, 241, 95, .34);
  animation: bootLoad 1.28s ease-in-out infinite;
}

@keyframes bootPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 20px rgba(112, 255, 80, .20)); }
  50% { transform: scale(1.035); filter: drop-shadow(0 0 30px rgba(112, 255, 80, .36)); }
}

@keyframes bootLoad {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(250%); }
}

.login-card {
  width: min(390px, calc(100vw - 48px));
  border-radius: 34px;
  padding: 34px;
}

.login-logo {
  width: 74px;
  height: 74px;
  object-fit: contain;
  display: block;
  margin: 0 auto 14px;
  filter: drop-shadow(0 0 22px rgba(112, 255, 80, .22));
}

.login-card h1 {
  margin: 0;
  text-align: center;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.login-card p {
  margin: 10px 0 24px;
  text-align: center;
  color: rgba(230, 245, 255, .72);
  font-size: 14px;
}

.login-field {
  display: block;
  margin-top: 14px;
}

.login-field span {
  display: block;
  margin: 0 0 7px 2px;
  color: rgba(232, 246, 255, .76);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.login-field input {
  width: 100%;
  height: 52px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 18px;
  padding: 0 16px;
  outline: 0;
  color: rgba(244, 250, 255, .96);
  background: rgba(255,255,255,.12);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.18),
    0 10px 24px rgba(0, 20, 55, .10);
}

.login-field input::placeholder {
  color: rgba(230, 245, 255, .38);
}

.login-field input:focus {
  border-color: rgba(128, 230, 255, .54);
  box-shadow:
    0 0 0 4px rgba(72, 190, 255, .14),
    inset 0 1px 0 rgba(255,255,255,.22);
}

.login-error {
  min-height: 18px;
  margin: 11px 2px 0;
  color: #ffd9d9;
  font-size: 13px;
}

.login-submit {
  width: 100%;
  height: 52px;
  margin-top: 12px;
  border: 0;
  border-radius: 18px;
  color: rgba(3, 20, 31, .92);
  font-weight: 700;
  background: linear-gradient(135deg, #eefaff, #5ee46e);
  box-shadow:
    0 16px 34px rgba(62, 220, 80, .18),
    inset 0 1px 0 rgba(255,255,255,.72);
  cursor: pointer;
}

.login-submit:hover {
  filter: brightness(1.04);
}

.login-hint {
  margin-top: 16px;
  text-align: center;
  color: rgba(230, 245, 255, .56);
  font-size: 12px;
}

body.is-booting .desktop,
body.is-login .desktop {
  filter: blur(8px) saturate(.9);
  transform: scale(1.01);
}

.desktop {
  transition: filter .42s ease, transform .42s ease;
}

/* v13: daha gerçekçi Windows-benzeri açılış + giriş ekranı */
.auth-shell {
  background:
    linear-gradient(180deg, rgba(4, 12, 24, 0.22), rgba(4, 12, 24, 0.54)),
    url("assets/grassos-wallpaper.png") center center / cover no-repeat fixed;
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
}

.boot-screen {
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.login-screen {
  background:
    radial-gradient(circle at 50% 38%, rgba(255,255,255,0.12), transparent 28%),
    rgba(0, 18, 36, 0.18);
}

.boot-card,
.login-card {
  width: min(420px, calc(100vw - 48px));
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  text-align: center;
}

.boot-card::before,
.login-card::before {
  display: none;
}

.boot-logo {
  width: 116px;
  height: 116px;
  margin: 0 auto 20px;
  filter:
    drop-shadow(0 0 18px rgba(103, 232, 86, 0.20))
    drop-shadow(0 0 36px rgba(62, 168, 255, 0.16));
  animation: windowsBootLogo 2.4s ease-in-out infinite;
}

.boot-title {
  font-size: 34px;
  font-weight: 650;
  letter-spacing: -0.045em;
  color: rgba(248, 252, 255, 0.98);
}

.boot-subtitle {
  margin-top: 9px;
  font-size: 14px;
  color: rgba(235, 246, 255, 0.62);
}

.boot-progress {
  display: none;
}

.boot-loader {
  margin: 34px auto 0;
  height: 26px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
}

.boot-loader span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(246, 252, 255, 0.92);
  box-shadow: 0 0 12px rgba(255,255,255,0.22);
  animation: bootDots 1.15s ease-in-out infinite;
}

.boot-loader span:nth-child(2) { animation-delay: .10s; }
.boot-loader span:nth-child(3) { animation-delay: .20s; }
.boot-loader span:nth-child(4) { animation-delay: .30s; }
.boot-loader span:nth-child(5) { animation-delay: .40s; }

@keyframes windowsBootLogo {
  0%, 100% {
    transform: scale(1);
    opacity: .96;
  }
  50% {
    transform: scale(1.025);
    opacity: 1;
  }
}

@keyframes bootDots {
  0%, 80%, 100% {
    opacity: .25;
    transform: translateY(0) scale(.82);
  }
  35% {
    opacity: 1;
    transform: translateY(-5px) scale(1);
  }
}

.login-card {
  width: min(360px, calc(100vw - 48px));
}

.login-logo {
  width: 104px;
  height: 104px;
  margin: 0 auto 18px;
  filter:
    drop-shadow(0 14px 32px rgba(0, 20, 50, .22))
    drop-shadow(0 0 28px rgba(105, 240, 80, .14));
}

.login-card h1 {
  margin: 0;
  color: rgba(248, 252, 255, 0.98);
  font-size: 31px;
  font-weight: 650;
  letter-spacing: -0.04em;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.28);
}

.login-card p {
  margin: 10px 0 28px;
  color: rgba(238, 247, 255, 0.70);
  font-size: 14px;
}

.login-field {
  margin-top: 12px;
}

.login-field span {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.login-field input {
  height: 50px;
  color: rgba(255,255,255,0.96);
  background: rgba(5, 24, 48, 0.34);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 10px;
  box-shadow:
    0 12px 34px rgba(0, 12, 35, 0.18),
    inset 0 1px 0 rgba(255,255,255,0.14);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  text-align: center;
}

.login-field input::placeholder {
  color: rgba(238, 248, 255, .48);
}

.login-field input:focus {
  border-color: rgba(255,255,255,0.54);
  background: rgba(7, 28, 54, 0.46);
  box-shadow:
    0 0 0 3px rgba(108, 214, 255, .18),
    0 16px 38px rgba(0, 12, 35, 0.20),
    inset 0 1px 0 rgba(255,255,255,0.18);
}

.login-submit {
  height: 50px;
  margin-top: 14px;
  border-radius: 10px;
  color: rgba(7, 28, 42, .94);
  background: linear-gradient(135deg, rgba(246,252,255,0.96), rgba(121, 233, 114, 0.96));
  box-shadow:
    0 18px 42px rgba(40, 180, 76, .18),
    inset 0 1px 0 rgba(255,255,255,.76);
}

.login-error {
  min-height: 18px;
  margin-top: 12px;
  color: rgba(255, 226, 226, 0.96);
  text-shadow: 0 1px 12px rgba(0,0,0,.24);
}

.login-hint {
  margin-top: 18px;
  color: rgba(238, 248, 255, 0.60);
  text-shadow: 0 1px 14px rgba(0,0,0,.20);
}

body.is-booting .desktop,
body.is-login .desktop {
  filter: blur(12px) saturate(.86) brightness(.86);
  transform: scale(1.018);
}

/* v14: Desktop file system, grid snapping, dragging, creation menu */
.desktop-icons {
  position: absolute;
  top: 24px;
  left: 20px;
  right: 20px;
  bottom: 148px;
  z-index: 3;
  pointer-events: auto;
  touch-action: manipulation;
}

.desktop-item {
  position: absolute;
  width: 108px;
  touch-action: none;
  min-height: 104px;
  border: 0;
  background: transparent;
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.96);
  text-shadow: 0 1px 3px rgba(0,0,0,0.28);
  cursor: default;
  user-select: none;
  border-radius: 16px;
  transition: background .14s ease, box-shadow .14s ease, transform .08s ease;
}

.desktop-item:hover,
.desktop-item.is-selected {
  background: rgba(255,255,255,0.12);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
}

.desktop-item.is-dragging {
  opacity: .94;
  z-index: 50;
  transition: none;
  cursor: grabbing;
  background: rgba(255,255,255,0.14);
  box-shadow: 0 18px 40px rgba(0, 26, 72, .18), inset 0 0 0 1px rgba(255,255,255,0.18);
}

.desktop-item .app-icon-image {
  width: 58px;
  height: 58px;
  pointer-events: none;
}

.desktop-item .icon-label {
  width: 100%;
  min-height: 18px;
  padding: 2px 5px;
  border-radius: 7px;
  font-size: 14px;
  line-height: 1.15;
  text-align: center;
  overflow-wrap: anywhere;
  pointer-events: auto;
}

.desktop-item.is-selected .icon-label {
  background: rgba(29, 114, 221, 0.30);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.16);
}

.desktop-item.protected .icon-label {
  cursor: default;
}

.rename-input {
  width: 100%;
  height: auto;
  min-height: 24px;
  padding: 2px 5px;
  border: 1px solid rgba(255,255,255,0.62);
  outline: 0;
  border-radius: 7px;
  color: rgba(8, 32, 60, 0.95);
  background: rgba(245, 250, 255, 0.92);
  text-align: center;
  font: inherit;
  line-height: 1.15;
  box-shadow: 0 8px 24px rgba(0, 20, 50, .16), inset 0 1px 0 rgba(255,255,255,.78);
}

.context-menu {
  position: absolute;
  z-index: 120;
  min-width: 224px;
  padding: 7px;
  border-radius: 18px;
  color: rgba(8, 32, 60, 0.92);
  background: linear-gradient(180deg, rgba(245,250,255,.70), rgba(218,241,255,.46));
  border: 1px solid rgba(255,255,255,.40);
  box-shadow: 0 22px 54px rgba(0, 30, 84, .25), inset 0 1px 0 rgba(255,255,255,.62);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  animation: contextIn .12s ease both;
}

.context-menu[hidden] {
  display: none;
}

.context-menu button {
  width: 100%;
  min-height: 38px;
  border: 0;
  border-radius: 12px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: default;
}

.context-menu button:hover,
.context-menu button:focus-visible {
  background: rgba(255,255,255,.42);
  outline: none;
}

.context-menu .danger-action:hover,
.context-menu .danger-action:focus-visible {
  background: rgba(255, 98, 98, .16);
}

.context-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  background: rgba(255,255,255,.34);
  color: rgba(8, 32, 60, .82);
}

.context-separator {
  height: 1px;
  margin: 6px 4px;
  background: rgba(25, 65, 110, .12);
}

@keyframes contextIn {
  from { opacity: 0; transform: translateY(4px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 720px) {
  .desktop-icons {
    top: 16px;
    left: 10px;
    right: 10px;
    bottom: 112px;
  }

  .desktop-item {
    width: 100px;
    min-height: 98px;
  }

  .desktop-item .app-icon-image {
    width: 54px;
    height: 54px;
  }

  .context-menu {
    min-width: 210px;
  }
}

.panel-footer button:disabled {
  opacity: .62;
  cursor: wait;
}
