/* Optional: lagani pop-in efekt kad se Buy prozor pojavi */
.buy-window {
  animation: buyPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes buyPop {
  0% {
    transform: translateY(-20px) scale(0.95);
    opacity: 0;
  }
  100% {
    transform: none;
    opacity: 1;
  }
}
@import url("https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap");

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

body {
  font-family: "Press Start 2P", "Courier New", monospace;
  overflow: hidden;
  height: 100vh;
  width: 100vw;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
}

/* Login Screen */
.login-screen {
  background: linear-gradient(45deg, #9945ff 0%, #14f195 100%);
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.login-screen::before {
  content: "";
  position: absolute;
  width: 200%;
  height: 200%;
  background: repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.03) 0px,
      transparent 2px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.03) 0px,
      transparent 2px
    );
  background-size: 20px 20px;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(20px, 20px);
  }
}

.login-box {
  background: linear-gradient(
    145deg,
    #ece9d8,
    #d4d0c8
  ); /* XP bež-siva pozadina */
  border: 3px solid;
  border-color: #ffffff #404040 #404040 #ffffff; /* tipičan XP bevel efekat (svjetlo gore/lijevo, tamno dole/desno) */
  padding: 25px;
  box-shadow: 0 0 30px rgba(0, 170, 255, 0.5),
    /* plavi glow – daje osjećaj “focus” */ inset 0 1px 0
      rgba(255, 255, 255, 0.8),
    /* unutrašnji highlight */ 0 10px 30px rgba(0, 0, 0, 0.4); /* vanjska sjena */
  min-width: 450px;
  animation: loginBoxAppear 1s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  z-index: 1;
}

@keyframes loginBoxAppear {
  from {
    opacity: 0;
    transform: scale(0.7) translateY(-100px) rotateX(20deg);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0) rotateX(0deg);
  }
}

.xp-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 0 8px 0;
}

.xp-product-image {
  width: 250px; /* adjusted to fit banner */
  height: auto;
  display: block;
  margin: 0;
  image-rendering: pixelated;
}

/* lift the logo visually without moving the edition text (edition stays at the bottom) */
.xp-product-image {
  transform: translateY(5em);
  transform-origin: center bottom;
  transition: transform 0.15s ease;
}

.login-logo {
  text-align: center;
  margin-bottom: 25px;
}

.login-logo h1 {
  font-size: 20px;
  color: #5fcb87;
  font-weight: bold;
  text-shadow: 2px 2px 0 #84efab, 4px 4px 10px rgba(0, 170, 255, 0.5),
    0 0 20px rgba(0, 255, 255, 0.3);
  animation: titleGlow 2s ease-in-out infinite;
}

@keyframes titleGlow {
  0%,
  100% {
    text-shadow: 2px 2px 0 #15161b, 4px 4px 10px rgba(0, 170, 255, 0.5),
      0 0 20px rgba(0, 255, 255, 0.3);
  }
  50% {
    text-shadow: 2px 2px 0 #15161b, 4px 4px 10px rgba(0, 170, 255, 0.8),
      0 0 30px rgba(0, 255, 255, 0.6);
  }
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-group label {
  font-size: 8px;
  font-weight: bold;
  color: #14f195;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.5);
}

.input-group input {
  padding: 10px;
  border: 2px solid;
  border-color: #84efab #5fcb87 #5fcb87 #84efab;
  background: white;
  font-family: "Courier New", monospace;
  font-size: 12px;
  box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.2);
}

.login-button {
  padding: 10px 20px;
  background: linear-gradient(180deg, #5fcb87 0%, #84efab 100%);
  border: 2px solid;
  border-color: #84efab #5fcb87 #5fcb87 #84efab;
  font-family: "Press Start 2P", monospace;
  font-size: 10px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 10px;
  color: white;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  transition: all 0.2s;
  box-shadow: 0 4px 0 #15161b, 0 6px 10px rgba(0, 0, 0, 0.3);
}

.login-button:hover {
  background: linear-gradient(180deg, #5fcb87 0%, #84efab 100%);
  box-shadow: 0 4px 0 #15161b, 0 6px 20px rgba(0, 170, 255, 0.5);
  transform: translateY(-2px);
}

.login-button:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #84efab, 0 3px 5px rgba(0, 0, 0, 0.3);
}

.error-message {
  color: #ff0000;
  font-size: 8px;
  min-height: 16px;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.3);
}

/* Desktop */
.desktop {
  background: linear-gradient(45deg, #9945ff 0%, #14f195 100%),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 10px,
      rgba(255, 255, 255, 0.03) 10px,
      rgba(255, 255, 255, 0.03) 20px
    );

  height: 100vh;
  position: relative;
  animation: desktopFadeIn 1.5s ease-out;
}

/* Centered Solana logo overlay on desktop */
.desktop-logo {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  pointer-events: none;
  width: 320px;
  max-width: 40vw;
  opacity: 1;
  filter: drop-shadow(5px 5px 4px rgba(0, 0, 0, 0.533));
  user-select: none;
}

.desktop::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 20% 30%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(0, 255, 255, 0.1) 0%,
      transparent 50%
    );
  animation: etherealPulse 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes etherealPulse {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

@keyframes desktopFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
}

.hidden {
  display: none !important;
}

/* Desktop Icons */
.desktop-icons {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 25px;
  height: calc(100vh - 50px);
  position: relative;
  z-index: 1;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  pointer-events: none;
}

.desktop-icon {
  width: 100px;
  text-align: center;
  cursor: pointer;
  padding: 12px;
  border-radius: 8px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: iconFloat 4s ease-in-out infinite;
  position: relative;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  pointer-events: auto;
}

.desktop-icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.4s ease;
}

.desktop-icon:hover::before {
  width: 120%;
  height: 120%;
}

.desktop-icon:nth-child(1) {
  animation-delay: 0s;
}
.desktop-icon:nth-child(2) {
  animation-delay: 0.6s;
}
.desktop-icon:nth-child(3) {
  animation-delay: 1.2s;
}
.desktop-icon:nth-child(4) {
  animation-delay: 1.8s;
}
.desktop-icon:nth-child(5) {
  animation-delay: 2.4s;
}
.desktop-icon:nth-child(6) {
  animation-delay: 3s;
}

@keyframes iconFloat {
  0%,
  100% {
    transform: translateY(0px) scale(1) rotateZ(0deg);
  }
  25% {
    transform: translateY(-8px) scale(1.03) rotateZ(1deg);
  }
  50% {
    transform: translateY(-15px) scale(1.05) rotateZ(-1deg);
  }
  75% {
    transform: translateY(-8px) scale(1.03) rotateZ(1deg);
  }
}

.desktop-icon:hover {
  backdrop-filter: blur(15px);
  border: 2px solid rgba(255, 255, 255, 0.5);
  transform: translateY(-10px) scale(1.15) rotateZ(0deg) !important;
}

.icon-image {
  font-size: 48px;
  margin-bottom: 8px;
  transition: all 0.4s ease;
  position: relative;
  z-index: 1;
}

.icon-image img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  image-rendering: pixelated;
  animation: iconGlow 2s ease-in-out infinite;
}

@keyframes iconGlow {
  0%,
  100% {
    filter: drop-shadow(3px 3px 6px rgba(0, 0, 0, 0.5))
      drop-shadow(0 0 10px rgba(0, 170, 255, 0.3));
  }
  50% {
    filter: drop-shadow(3px 3px 6px rgba(0, 0, 0, 0.5))
      drop-shadow(0 0 20px rgba(0, 255, 255, 0.6));
  }
}

.desktop-icon:hover .icon-image {
  transform: scale(1.1) rotateY(5deg) rotateX(5deg);
  filter: drop-shadow(5px 5px 10px rgba(0, 0, 0, 0.6))
    drop-shadow(0 0 25px rgba(0, 255, 255, 0.8));
}

.desktop-icon:hover .icon-image img {
  animation: iconSpin 0.6s ease-in-out;
}

@keyframes iconSpin {
  0% {
    transform: rotateY(0deg);
  }
  50% {
    transform: rotateY(180deg);
  }
  100% {
    transform: rotateY(360deg);
  }
}

.icon-label {
  color: white;
  font-size: 8px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9), 0 0 10px rgba(0, 170, 255, 0.5);
  font-weight: 600;
  position: relative;
  z-index: 1;
  letter-spacing: 1px;
}

.desktop-icon:hover .icon-label {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9), 0 0 20px rgba(0, 255, 255, 0.8);
}

/* Taskbar */
.taskbar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50px;
  background: linear-gradient(180deg, #84efab 0%, #0055ff 100%);
  border-top: 3px solid #5fcb87;
  display: flex;
  align-items: center;
  padding: 4px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.start-button {
  background: linear-gradient(180deg, #66ff66 0%, #00aa00 100%);
  border: 2px solid;
  border-color: #99ff99 #006600 #006600 #99ff99;
  padding: 8px 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: bold;
  cursor: pointer;
  margin-right: 8px;
  color: white;
  font-size: 10px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  box-shadow: 0 3px 0 #006600, 0 5px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.2s;
}

.start-button:hover {
  background: linear-gradient(180deg, #99ff99 0%, #00cc00 100%);
  box-shadow: 0 3px 0 #006600, 0 5px 15px rgba(0, 255, 0, 0.4);
  transform: translateY(-2px);
}

.start-button:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #006600, 0 2px 5px rgba(0, 0, 0, 0.3);
}

.start-icon {
  font-size: 16px;
  animation: startIconPulse 2s ease-in-out infinite;
}

@keyframes startIconPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.taskbar-tasks {
  flex: 1;
}

.taskbar-tray {
  border-left: 2px solid rgba(255, 255, 255, 0.3);
  padding: 0 15px;
  background: rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ===== START MENU (Windows XP style) ===== */
.start-button {
  background: linear-gradient(180deg, #66ff66 0%, #00aa00 100%);
  border: 2px solid;
  border-color: #99ff99 #006600 #006600 #99ff99;
  padding: 8px 16px;
  color: #fff;
  font-weight: 700;
  text-transform: lowercase;
  border-radius: 4px;
  cursor: pointer;
}
.start-button:active {
  transform: translateY(1px);
}

/* container */
.start-menu {
  position: absolute;
  left: 6px;
  bottom: 54px; /* iznad taskbara (50px) */
  width: 560px;
  background: #eae6d9;
  border: 3px solid;
  border-color: #ffffff #404040 #404040 #ffffff; /* XP bevel */
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  display: grid;
  grid-template-columns: 140px 1fr;
  z-index: 9999;
}

/* plava lijeva traka */
.start-menu-left {
  background: linear-gradient(180deg, #3b6ea5, #1e4aa9);
  color: #fff;
  padding: 10px;
  display: flex;
  align-items: end;
}
.start-user {
  width: 100%;
  font: 700 14px Tahoma, Verdana, sans-serif;
  text-align: left;
  padding: 6px 8px;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 3px;
}

/* desni dio – liste */
.start-menu-right {
  background: #ece9d8;
  display: grid;
  grid-template-rows: 1fr auto;
}

.start-primary,
.start-secondary {
  list-style: none;
  margin: 8px;
  padding: 6px;
  background: #fff;
  border: 2px solid #c0c0c0;
}
.start-secondary {
  margin-top: 0;
}

.start-primary li,
.start-secondary li {
  font: 12px Tahoma, Verdana, sans-serif;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 4px;
  position: relative;
  cursor: default;
}

.start-primary li:hover,
.start-secondary li:hover {
  background: #cfe5ff;
  border: 1px solid #7da2ce;
  padding: 5px 7px; /* kompenzira border */
}

.start-secondary .shutdown {
  color: #b00000;
  font-weight: 700;
}
.start-secondary .logoff {
  color: #003399;
  font-weight: 700;
}

.mi {
  width: 18px;
  text-align: center;
}

/* submenu */
.submenu {
  position: absolute;
  top: 0;
  left: 100%;
  margin-left: 2px;
  min-width: 220px;
  background: #fff;
  border: 2px solid #c0c0c0;
  display: none;
  z-index: 10000;
}
.start-primary li:hover > .submenu {
  display: block;
}

.submenu li {
  padding: 6px 8px;
  white-space: nowrap;
}
.submenu li:hover {
  background: #cfe5ff;
  border: 1px solid #7da2ce;
  padding: 5px 7px;
}

/* show/hide helper */
.hidden {
  display: none !important;
}

.mute-toggle {
  background: transparent;
  border: none;
  font-size: 16px;
  cursor: pointer;
  padding: 4px 8px;
  transition: all 0.2s;
  border-radius: 4px;
}

.mute-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
}

.clock {
  font-size: 10px;
  font-weight: bold;
  color: white;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Window */
.window {
  position: absolute;
  background: linear-gradient(145deg, #ece9d8, #d4d0c8);
  border: 3px solid;
  border-color: #ffffff #404040 #404040 #ffffff;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 170, 255, 0.3);
  min-width: 450px;
  max-width: 650px;
  z-index: 10;
}

.welcome-window {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: windowBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes windowBounce {
  0% {
    opacity: 0;
    transform: translate(-50%, -60%) scale(0.8);
  }
  60% {
    transform: translate(-50%, -48%) scale(1.05);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.window-titlebar {
  background: linear-gradient(180deg, #222222 0%, #111111 100%);
  color: white;
  padding: 8px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: move;
  border-bottom: 2px solid #000000;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.window-title {
  font-weight: bold;
  font-size: 10px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.window-controls {
  display: flex;
  gap: 4px;
}

.window-btn {
  width: 24px;
  height: 24px;
  background: linear-gradient(145deg, #e0e0e0, #c0c0c0);
  border: 2px solid;
  border-color: #ffffff #808080 #808080 #ffffff;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  transition: all 0.2s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.window-btn:hover {
  background: linear-gradient(145deg, #f0f0f0, #d0d0d0);
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.window-btn:active {
  border-color: #808080 #ffffff #ffffff #808080;
  transform: translateY(1px);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.window-btn.close:hover {
  background: linear-gradient(145deg, #ff6666, #ff0000);
  color: white;
}

.window-content {
  padding: 20px;
  background: white;
  border: 2px solid;
  border-color: #808080 #ffffff #ffffff #808080;
  margin: 6px;
  font-size: 10px;
  line-height: 1.6;
}

.window-content h2 {
  color: #111111;
  margin-bottom: 15px;
  font-size: 14px;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.3);
}

.window-content p {
  margin-bottom: 12px;
  line-height: 1.8;
}

.welcome-header {
  position: relative;
  margin-bottom: 15px;
}

.welcome-header h2 {
  margin: 0;
}

.welcome-header .copy-ca-btn {
  position: absolute;
  top: -8px;
  right: 85px;
}

.welcome-header .twitter-icon {
  position: absolute;
  top: -13px;
  right: 0;
}

.browser-header .copy-ca-btn {
  position: absolute;
  top: 15px;
  right: 150px;
}

.welcome-content .copy-ca-btn {
  order: 2;
}

.welcome-content .twitter-icon {
  order: 1;
}

.copy-ca-btn {
  padding: 8px 16px;
  background: linear-gradient(45deg, #9945ff, #14f195);
  border: 2px solid;
  border-color: #66ffaa #008844 #008844 #66ffaa;
  border-radius: 8px;
  font-family: "Press Start 2P", monospace;
  font-size: 8px;
  font-weight: bold;
  cursor: pointer;
  color: white;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
  box-shadow: 0 4px 0 #9945ff, 0 6px 15px rgba(0, 0, 0, 0.6);
  white-space: nowrap;
}

.copy-ca-btn:hover {
  background: linear-gradient(145deg, #66ffaa, #00ff88);
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #008844, 0 8px 20px rgba(0, 255, 136, 0.4);
}

.copy-ca-btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #008844, 0 3px 8px rgba(0, 0, 0, 0.6);
}

.copy-ca-btn.copied {
  background: linear-gradient(145deg, #ffd700, #ffa500);
  border-color: #ffed4e #cc8400 #cc8400 #ffed4e;
  box-shadow: 0 4px 0 #cc8400, 0 6px 15px rgba(255, 215, 0, 0.6);
}

/* Browser Window Styles */
.browser-window {
  animation: browserSlideIn 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 10;
}

@keyframes browserSlideIn {
  from {
    opacity: 0;
    transform: translate(-50%, -60%) scale(0.8) rotateX(10deg);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotateX(0deg);
  }
}

.browser-content {
  max-height: 500px;
  overflow-y: auto;
}

.browser-content::-webkit-scrollbar {
  width: 18px;
}

.browser-content::-webkit-scrollbar-track {
  background: linear-gradient(90deg, #d4d0c8, #ece9d8);
  border: 2px solid;
  border-color: #808080 #ffffff #ffffff #808080;
}

.browser-content::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #84efab, #0055ff);
  border: 2px solid;
  border-color: #5fcb87 #15161b #15161b #5fcb87;
}

.browser-content::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(90deg, #5fcb87, #84efab);
}

.browser-header {
  background: linear-gradient(135deg, #0055ff, #00aaff);
  color: white;
  padding: 20px;
  margin: -20px -20px 20px -20px;
  border-bottom: 4px solid #00ffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  position: relative;
}

.browser-header h2 {
  color: white;
  margin: 0;
  font-size: 14px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.twitter-icon {
  position: absolute;
  top: 5px;
  right: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.6);
}

.twitter-icon:hover {
  background: rgba(255, 255, 255, 0.35);
  border-color: rgba(255, 255, 255, 0.7);
  transform: scale(1.15) rotate(5deg);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.9), 0 0 30px rgba(0, 0, 0, 0.7);
}

.twitter-icon svg {
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8));
}

.info-section {
  background: linear-gradient(145deg, #f5f5f5, #e5e5e5);
  padding: 15px;
  margin-bottom: 15px;
  border: 3px solid;
  border-color: #ffffff #999999 #999999 #ffffff;
  border-radius: 6px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.info-section h3 {
  color: #0055ff;
  margin-bottom: 12px;
  font-size: 11px;
  border-bottom: 3px solid #00aaff;
  padding-bottom: 6px;
  text-shadow: 1px 1px 0 rgba(0, 170, 255, 0.2);
}

.info-section p {
  margin-bottom: 10px;
}

.info-section ul {
  margin-left: 20px;
  margin-top: 10px;
}

.info-section li {
  margin-bottom: 8px;
  line-height: 1.6;
}

/* Control Panel Styles */
.control-panel-section {
  background: linear-gradient(145deg, #f0f0f0, #e0e0e0);
  padding: 15px;
  margin-bottom: 15px;
  border: 3px solid;
  border-color: #ffffff #999999 #999999 #ffffff;
  border-radius: 6px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.control-panel-section h3 {
  color: #0055ff;
  margin-bottom: 12px;
  font-size: 11px;
  border-bottom: 3px solid #00aaff;
  padding-bottom: 6px;
}

.control-panel-section p {
  margin-bottom: 8px;
}

/* Mail Window Styles */
.mail-content {
  max-height: 500px;
  overflow-y: auto;
}

.mail-content::-webkit-scrollbar {
  width: 18px;
}

.mail-content::-webkit-scrollbar-track {
  background: linear-gradient(90deg, #d4d0c8, #ece9d8);
  border: 2px solid;
  border-color: #808080 #ffffff #ffffff #808080;
}

.mail-content::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #84efab, #0055ff);
  border: 2px solid;
  border-color: #5fcb87 #15161b #15161b #5fcb87;
}

.mail-content::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(90deg, #5fcb87, #84efab);
}

.mail-header {
  background: linear-gradient(135deg, #0055ff, #00aaff);
  color: white;
  padding: 20px;
  margin: -20px -20px 20px -20px;
  border-bottom: 4px solid #00ffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.mail-header h2 {
  color: white;
  margin: 0;
  font-size: 14px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.email-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.email-item {
  background: linear-gradient(145deg, #ffffff, #f5f5f5);
  padding: 15px;
  border: 3px solid;
  border-color: #ffffff #999999 #999999 #ffffff;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.email-item:hover {
  background: linear-gradient(145deg, #e6f7ff, #ccf0ff);
  border-color: #5fcb87 #0055ff #0055ff #5fcb87;
  transform: translateX(5px);
  box-shadow: 0 4px 10px rgba(0, 170, 255, 0.3);
}

.email-from {
  font-size: 9px;
  color: #0055ff;
  margin-bottom: 6px;
}

.email-subject {
  font-size: 10px;
  font-weight: bold;
  margin-bottom: 8px;
  color: #000;
}

.email-preview {
  font-size: 8px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 8px;
}

.email-date {
  font-size: 7px;
  color: #888;
  text-align: right;
}

/* Desktop Buddy Styles */
.desktop-buddy {
  position: fixed;
  bottom: 150px;
  left: 50%;
  transform: translateX(-50%);
  margin-left: 150px;
  z-index: 1000;
  animation: buddySlideIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: move;
}

@keyframes buddySlideIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(100px) scale(0.5) rotate(-10deg);
    margin-left: 150px;
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1) rotate(0deg);
    margin-left: 150px;
  }
}

.buddy-mascot {
  width: 180px;
  height: 180px;
  object-fit: contain;
  display: block;
  cursor: move;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.4));
  animation: buddyBounce 2.5s ease-in-out infinite;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

@keyframes buddyBounce {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-12px) rotate(-3deg);
  }
  50% {
    transform: translateY(-18px) rotate(0deg);
  }
  75% {
    transform: translateY(-12px) rotate(3deg);
  }
}

.buddy-mascot:hover {
  transform: scale(1.1) rotate(5deg) !important;
  filter: drop-shadow(0 12px 30px rgba(0, 170, 255, 0.6));
}

.buddy-close {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 28px;
  height: 28px;
  background: linear-gradient(145deg, #ff6666, #ff0000);
  border: 2px solid white;
  border-radius: 50%;
  color: white;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(255, 0, 0, 0.5);
  transition: all 0.2s;
  z-index: 3;
  line-height: 1;
  padding: 0;
}

.buddy-close:hover {
  background: linear-gradient(145deg, #ff3333, #cc0000);
  transform: scale(1.15) rotate(90deg);
  box-shadow: 0 6px 18px rgba(255, 0, 0, 0.7);
}

.buddy-close:active {
  transform: scale(0.95) rotate(90deg);
}

/* Speech Bubbles */
.speech-bubble {
  position: absolute;
  background: white;
  border: 3px solid #0055ff;
  border-radius: 15px;
  padding: 12px 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  animation: bubblePop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 5;
}

@keyframes bubblePop {
  0% {
    opacity: 0;
    transform: scale(0.3) translateY(20px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.bot-bubble {
  bottom: 190px;
  right: -20px;
  min-width: 250px;
  max-width: 350px;
  background: linear-gradient(145deg, #e6f7ff, #ffffff);
  border-color: #0055ff;
}

.user-bubble {
  bottom: 190px;
  right: -20px;
  min-width: 280px;
  background: linear-gradient(145deg, #f0f0f0, #ffffff);
  border-color: #00aa00;
  display: flex;
  gap: 8px;
  align-items: center;
}

.bubble-tail {
  position: absolute;
  bottom: -12px;
  right: 40px;
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 15px solid #0055ff;
}

.bubble-tail::after {
  content: "";
  position: absolute;
  bottom: 3px;
  left: -9px;
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 12px solid #e6f7ff;
}

.user-bubble .bubble-tail {
  border-top-color: #00aa00;
}

.user-bubble .bubble-tail::after {
  border-top-color: #f0f0f0;
}

.bubble-content {
  font-family: "Courier New", monospace;
  font-size: 11px;
  line-height: 1.6;
  color: #000;
}

.user-input {
  flex: 1;
  padding: 8px 10px;
  border: 2px solid #808080;
  border-radius: 8px;
  font-family: "Courier New", monospace;
  font-size: 11px;
  background: white;
}

.user-input:focus {
  outline: none;
  border-color: #0055ff;
  box-shadow: 0 0 8px rgba(0, 85, 255, 0.3);
}

.send-btn {
  padding: 8px 15px;
  background: linear-gradient(180deg, #66ff66 0%, #00aa00 100%);
  border: 2px solid;
  border-color: #99ff99 #006600 #006600 #99ff99;
  border-radius: 8px;
  font-family: "Press Start 2P", monospace;
  font-size: 8px;
  font-weight: bold;
  cursor: pointer;
  color: white;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  transition: all 0.2s;
  box-shadow: 0 3px 0 #006600;
}

.send-btn:hover {
  background: linear-gradient(180deg, #99ff99 0%, #00cc00 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 0 #006600;
}

.send-btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #006600;
}

/* Recycle Bin Styles */
.recyclebin-content {
  text-align: center;
  padding: 30px;
}

.recyclebin-header {
  margin-bottom: 30px;
}

.recyclebin-header h2 {
  color: #0055ff;
  margin-bottom: 10px;
}

.recyclebin-header p {
  color: #555;
  font-size: 9px;
}

.empty-bin-illustration {
  padding: 40px;
}

.bin-icon {
  font-size: 80px;
  opacity: 0.3;
  animation: binFloat 3s ease-in-out infinite;
}

@keyframes binFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

.empty-message {
  font-size: 12px;
  color: #888;
  margin: 20px 0 10px;
  font-weight: bold;
}

.empty-submessage {
  font-size: 8px;
  color: #aaa;
}

/* Shutdown/Boot Overlay Styles */
.shutdown-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #000000;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.5s ease;
}

.shutdown-overlay::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #000000;
  z-index: -1;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.shutdown-content {
  text-align: center;
  color: white;
}

.shutdown-logo {
  font-size: 32px;
  font-weight: bold;
  color: #00ffff;
  margin-bottom: 30px;
  text-shadow: 0 0 20px #00ffff, 0 0 40px #0055ff,
    2px 2px 4px rgba(0, 0, 0, 0.5);
  animation: logoGlow 2s ease-in-out infinite;
}

@keyframes logoGlow {
  0%,
  100% {
    text-shadow: 0 0 20px #00ffff, 0 0 40px #0055ff,
      2px 2px 4px rgba(0, 0, 0, 0.5);
  }
  50% {
    text-shadow: 0 0 30px #00ffff, 0 0 60px #0055ff, 0 0 80px #00aaff,
      2px 2px 4px rgba(0, 0, 0, 0.5);
  }
}

.shutdown-message {
  font-size: 16px;
  margin-bottom: 30px;
  color: #aaa;
}

.shutdown-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(255, 255, 255, 0.1);
  border-top-color: #00ffff;
  border-radius: 50%;
  margin: 0 auto;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.boot-logo {
  font-size: 32px;
  font-weight: bold;
  color: #00ffff;
  margin-bottom: 30px;
  text-shadow: 0 0 20px #00ffff, 0 0 40px #0055ff,
    2px 2px 4px rgba(0, 0, 0, 0.5);
  animation: bootPulse 1.5s ease-in-out infinite;
}

@keyframes bootPulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.05);
  }
}

.boot-message {
  font-size: 16px;
  margin-bottom: 30px;
  color: #aaa;
}

.boot-progress {
  width: 300px;
  height: 30px;
  background: rgba(255, 255, 255, 0.1);
  border: 3px solid #00ffff;
  border-radius: 15px;
  margin: 0 auto;
  padding: 3px;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.3), inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.boot-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #0055ff, #00aaff, #00ffff);
  border-radius: 12px;
  animation: loadProgress 2.5s ease-in-out forwards;
  box-shadow: 0 0 15px #00ffff, 0 0 30px #0055ff;
}

@keyframes loadProgress {
  0% {
    width: 0%;
  }
  100% {
    width: 100%;
  }
}

/* CRT Boot Screen Styles */
.crt-flicker {
  animation: crtFlicker 0.5s infinite, crtPowerOn 1s ease-out;
}

@keyframes crtFlicker {
  0%,
  100% {
    opacity: 1;
  }
  10% {
    opacity: 0.8;
  }
  20% {
    opacity: 1;
  }
  30% {
    opacity: 0.9;
  }
  40% {
    opacity: 1;
  }
  50% {
    opacity: 0.95;
  }
  60% {
    opacity: 1;
  }
  70% {
    opacity: 0.85;
  }
  80% {
    opacity: 1;
  }
  90% {
    opacity: 0.9;
  }
}

@keyframes crtPowerOn {
  0% {
    transform: scaleY(0.001) scaleX(1);
    filter: brightness(10);
  }
  20% {
    transform: scaleY(0.05) scaleX(1);
  }
  40% {
    transform: scaleY(0.3) scaleX(1);
    filter: brightness(5);
  }
  60% {
    transform: scaleY(0.7) scaleX(1);
    filter: brightness(2);
  }
  80% {
    transform: scaleY(0.95) scaleX(1);
    filter: brightness(1.5);
  }
  100% {
    transform: scaleY(1) scaleX(1);
    filter: brightness(1);
  }
}

.boot-screen {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.crt-scanlines {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 255, 255, 0.03) 0px,
    rgba(0, 255, 255, 0.03) 1px,
    transparent 1px,
    transparent 2px
  );
  pointer-events: none;
  z-index: 1;
  animation: scanlineMove 8s linear infinite;
}

@keyframes scanlineMove {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(100px);
  }
}

.boot-text {
  font-family: "Courier New", monospace;
  color: #00ff00;
  font-size: 16px;
  text-align: left;
  padding: 40px;
  background: rgba(0, 0, 0, 0.8);
  border: 3px solid #00ff00;
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.5), inset 0 0 20px rgba(0, 255, 0, 0.1);
  position: relative;
  z-index: 2;
  text-shadow: 0 0 5px #00ff00;
}

.boot-line {
  margin: 8px 0;
  opacity: 0;
  animation: bootLineAppear 0.3s ease-out forwards;
}

.boot-line:nth-child(1) {
  animation-delay: 0.2s;
}
.boot-line:nth-child(2) {
  animation-delay: 0.5s;
}
.boot-line:nth-child(3) {
  animation-delay: 0.8s;
}
.boot-line:nth-child(4) {
  animation-delay: 1.1s;
}
.boot-line:nth-child(5) {
  animation-delay: 1.4s;
}
.boot-line:nth-child(6) {
  animation-delay: 1.7s;
}
.boot-line:nth-child(7) {
  animation-delay: 2s;
}

@keyframes bootLineAppear {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.blink-cursor {
  animation: bootLineAppear 0.3s ease-out forwards,
    cursorBlink 1s step-end infinite;
  animation-delay: 2s, 2.3s;
}

@keyframes cursorBlink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

/* Maximized Window State */
.window.maximized {
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  max-width: 100vw !important;
  height: calc(100vh - 50px) !important;
  transform: none !important;
  border-radius: 0;
}

.window.maximized .window-content {
  max-height: calc(100vh - 120px);
}

.window.maximized .browser-content,
.window.maximized .mail-content {
  max-height: calc(100vh - 150px);
}

/* === XP LOGIN – precizne boje i stil === */
:root {
  --xp-beige-1: #ece9d8;
  --xp-beige-2: #d4d0c8;
  --xp-blue-1: #3b6ea5; /* gornji svjetliji */
  --xp-blue-2: #1e4aa9; /* donji tamniji */
  --xp-blue-3: #0a246a; /* linija/akcent */
  --xp-input: #7f9db9; /* XP border plavičast */
  --xp-grey: #c0c0c0;
  --xp-grey-dark: #808080;
}

/* koristi Tahoma samo na loginu da bude XP – ostatak sistema ostaje tvoj font */
.xp-login {
  font-family: Tahoma, Verdana, sans-serif;
}

/* tvoja kutija već ima bevel; samo je malo “xp-iziramo” kroz klase ispod */
.xp-titlebar {
  background: linear-gradient(to bottom, var(--xp-blue-1), var(--xp-blue-2));
  color: #fff;
  padding: 6px 10px;
  font-weight: 700;
  border-bottom: 2px solid var(--xp-blue-3);
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.4);
}

.xp-banner {
  /* increase height and center content so logo + edition text fit */
  height: 110px;
  background: linear-gradient(to right, #333333, #222222 60%, #111111 100%);
  border-bottom: 2px solid rgba(255, 255, 255, 0.5);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  padding-top: 6px;
}

/* “Windows XP Professional” feeling bez MS logotipa */
.xp-product {
  /* span full banner width so the logo can be centered while edition sits right */
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px; /* stable position for edition */
  text-align: center;
  color: #fff;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.35);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center; /* center the logo horizontally */
  padding-right: 12px; /* keep a small inset from the right edge for edition */
}
.xp-product-line1 {
  font-size: 18px;
  letter-spacing: 0.5px;
}
.xp-product-line2 {
  font-size: 22px;
  font-weight: 800;
  margin-top: -4px;
}
.xp-edition {
  font-size: 12px;
  opacity: 1;
  margin-top: 6px;
  color: #ffffff;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
  z-index: 3;
}

/* keep the edition text right-aligned under the centered logo */
.xp-product .xp-edition {
  /* absolutely position the edition text so it's not affected by image transforms */
  position: absolute;
  right: 12px;
  bottom: 8px;
  margin-top: 0;
}

.xp-body {
  background: linear-gradient(145deg, var(--xp-beige-1), var(--xp-beige-2));
  padding: 16px 16px 12px;
  border-top: 2px solid #fff;
}

.xp-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
}
.xp-label {
  width: 110px;
  color: #000;
  font-size: 12px;
}
.xp-input {
  flex: 1;
  height: 24px;
  padding: 2px 6px;
  font-size: 12px;
  background: #fff;
  border: 1px solid var(--xp-input);
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.6);
}
.xp-input:focus {
  outline: none;
  border-color: #3a6ea5;
  box-shadow: 0 0 0 1px #3a6ea5;
}

/* XP dugmad */
.xp-buttons {
  display: flex;
  gap: 8px;
  justify-content: flex-start;
  margin-top: 12px;
  flex-wrap: wrap;
}
.xp-btn {
  min-width: 88px;
  height: 26px;
  padding: 0 12px;
  background: linear-gradient(to bottom, #f2f2f2, #dcdcdc);
  border: 2px solid;
  border-color: #ffffff var(--xp-grey-dark) var(--xp-grey-dark) #ffffff; /* bevel */
  font-size: 12px;
  font-weight: 700;
  color: #000;
  cursor: pointer;
}
.xp-btn:active {
  border-color: var(--xp-grey-dark) #ffffff #ffffff var(--xp-grey-dark);
  background: linear-gradient(to bottom, #dcdcdc, #f2f2f2);
}
.xp-primary {
  background: linear-gradient(to bottom, #e6f0ff, #bbd0ff);
  border-color: #ffffff #4f6db3 #4f6db3 #ffffff;
}
.xp-warn {
  min-width: 110px;
}
.xp-secondary {
  min-width: 110px;
}

/* greška ispod dugmadi – XP stil sitan crveni */
.xp-error {
  margin-top: 8px;
  min-height: 16px;
  color: #c00000;
  font-size: 11px;
}

/* Dimenzije login prozora: malo uže kao na originalu */
.login-box.xp-login {
  min-width: 420px;
  max-width: 460px;
  padding: 0; /* sve paddinge rješavaju xp-* sekcije iznad */
  box-shadow: 0 0 18px rgba(0, 102, 204, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 8px 26px rgba(0, 0, 0, 0.35);
}

.buy-section {
  background: #f8f8f8;
  border-radius: 16px;
  padding: 20px;
  margin-top: 20px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.buy-section h2 {
  margin-bottom: 10px;
  font-size: 1.5em;
}

.buy-description {
  color: #555;
  margin-bottom: 8px;
}

.buy-ca-box {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.ca-text {
  font-family: monospace;
  font-size: 14px;
  color: #333;
  background: #fff;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
}

.copy-ca-btn {
  background-color: #111;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
  transition: 0.2s ease;
}

.copy-ca-btn:hover {
  background-color: #333;
}

.buy-description {
  color: #555;
  margin: 12px 0 6px;
  text-align: center;
}
.buy-ca-box {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.ca-text {
  font-family: monospace;
  font-size: 14px;
  color: #333;
  background: #fff;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
}
.copy-ca-btn {
  background-color: #111;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
  transition: 0.2s ease;
}
.copy-ca-btn:hover {
  background-color: #333;
}
.copy-ca-btn.copied {
  background: #2e7d32;
}
.buy-hint {
  font-size: 12px;
  color: #666;
  text-align: center;
  margin-top: 10px;
}
