/*
Theme Name: thedeppangel XP
Theme URI: https://thedeppangel.com
Author: Unerv Gupta
Author URI: https://thedeppangel.com
Description: Windows XP themed website for thedeppangel.com – a skills school where kids build SaaS tools.
Version: 1.0.0
Text Domain: thedeppangel-xp
Tags: windows-xp, retro, education, saas
*/

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: Tahoma, Verdana, Geneva, 'Segoe UI', sans-serif;
  font-size: 11px;
  color: #000;
  cursor: default;
  user-select: none;
}

body.xp-body {
  background: #008080; /* fallback */
  overflow: hidden;
}

a { color: #0055E5; text-decoration: underline; }
a:hover { color: #CC0000; }

/* ============================================================
   BLISS DESKTOP BACKGROUND
   ============================================================ */
.xp-desktop {
  width: 100vw;
  height: 100vh;
  position: relative;
  overflow: hidden;
  padding-bottom: 40px; /* taskbar height */
  background-image:
    /* sun glow top right */
    radial-gradient(ellipse 35% 25% at 85% 15%, rgba(255, 255, 180, 0.28) 0%, transparent 60%),
    /* cloud wisps */
    radial-gradient(ellipse 18% 7% at 22% 33%, rgba(255, 255, 255, 0.42) 0%, transparent 55%),
    radial-gradient(ellipse 24% 7% at 62% 24%, rgba(255, 255, 255, 0.38) 0%, transparent 55%),
    radial-gradient(ellipse 12% 6% at 42% 31%, rgba(255, 255, 255, 0.30) 0%, transparent 50%),
    radial-gradient(ellipse 14% 5% at 72% 38%, rgba(255, 255, 255, 0.25) 0%, transparent 50%),
    /* far background hills */
    radial-gradient(ellipse 200% 90% at 50% 135%, #2D8A1A 0%, #4CAF30 18%, transparent 42%),
    /* left hill */
    radial-gradient(ellipse 110% 85% at -12% 115%, #3A9E20 0%, #55C235 22%, transparent 48%),
    /* right hill */
    radial-gradient(ellipse 110% 85% at 112% 115%, #2E8A18 0%, #4EB52C 22%, transparent 48%),
    /* main foreground meadow */
    radial-gradient(ellipse 220% 65% at 50% 125%, #3DAA22 0%, #60C040 28%, transparent 52%),
    /* horizon haze */
    linear-gradient(180deg,
      transparent 52%,
      rgba(180, 225, 140, 0.15) 62%,
      rgba(150, 215, 100, 0.35) 70%,
      #62C035 77%,
      #50B828 84%,
      #3E9818 92%,
      #347A14 100%
    ),
    /* sky gradient — the heart of Bliss */
    linear-gradient(180deg,
      #1A5FA0 0%,
      #2678BB 12%,
      #3D96CE 26%,
      #5AAFDE 40%,
      #78C3E9 53%,
      #A5D9F2 64%,
      #C5E8F8 72%,
      #DAEEFA 79%,
      #ECF7FD 85%,
      #F5FAFF 90%
    );
  background-size: cover;
}

/* ============================================================
   DESKTOP ICONS
   ============================================================ */
.desktop-icons {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 10;
}

.desktop-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 72px;
  cursor: pointer;
  padding: 4px;
  border-radius: 2px;
  gap: 3px;
}

.desktop-icon:hover {
  background: rgba(49, 106, 197, 0.3);
  border: 1px dotted rgba(255, 255, 255, 0.7);
  padding: 3px;
}

.desktop-icon.selected {
  background: rgba(49, 106, 197, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 3px;
}

.desktop-icon .icon-gfx {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  line-height: 1;
  filter: drop-shadow(1px 1px 1px rgba(0,0,0,0.4));
}

.desktop-icon .icon-label {
  font-size: 11px;
  color: #fff;
  text-shadow: 1px 1px 2px #000, -1px -1px 2px #000, 1px -1px 2px #000, -1px 1px 2px #000;
  text-align: center;
  line-height: 1.2;
  max-width: 72px;
  word-break: break-word;
}

/* ============================================================
   XP WINDOW BASE
   ============================================================ */
.xp-window {
  position: absolute;
  min-width: 320px;
  background: #ECE9D8;
  border: 1px solid #0A246A;
  border-radius: 8px 8px 4px 4px;
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.55),
    inset 0 0 0 1px rgba(255, 255, 255, 0.25),
    2px 2px 0 rgba(0, 0, 0, 0.2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: 100;
}

.xp-window.focused {
  z-index: 200;
}

.xp-window.minimized {
  display: none;
}

/* ============================================================
   XP TITLE BAR
   ============================================================ */
.xp-titlebar {
  background: linear-gradient(180deg,
    #0A246A 0%,
    #1A46A8 8%,
    #3A6EC0 18%,
    #4E88CC 28%,
    #5A96D6 36%,
    #5294D2 44%,
    #3A72C0 52%,
    #2060B8 60%,
    #164EB0 68%,
    #0E40A8 76%,
    #0C3A9A 84%,
    #0A2E88 92%,
    #0A246A 100%
  );
  height: 30px;
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3px 0 6px;
  cursor: move;
  border-radius: 7px 7px 0 0;
  flex-shrink: 0;
}

.xp-titlebar::before {
  content: '';
  position: absolute;
  top: 1px;
  left: 8px;
  right: 8px;
  height: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.18) 0%, transparent 100%);
  border-radius: 4px;
  pointer-events: none;
}

.xp-titlebar-left {
  display: flex;
  align-items: center;
  gap: 5px;
  overflow: hidden;
  flex: 1;
}

.xp-titlebar-icon {
  font-size: 15px;
  line-height: 1;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.4));
}

.xp-titlebar-title {
  font-size: 12px;
  font-weight: bold;
  color: #fff;
  text-shadow: 1px 1px 2px rgba(0, 0, 50, 0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.xp-titlebar-buttons {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  margin-left: 4px;
}

/* Title bar buttons */
.xp-titlebar-buttons button {
  width: 22px;
  height: 21px;
  border-radius: 3px;
  border: 1px solid;
  cursor: pointer;
  font-size: 11px;
  font-weight: bold;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Marlett', Tahoma, sans-serif;
  padding: 0;
  position: relative;
  transition: filter 0.05s;
}

.xp-btn-minimize {
  background: linear-gradient(180deg, #F0EFE8 0%, #D6D3C8 40%, #C5C1B6 60%, #D0CEC3 100%);
  border-color: #888 #555 #555 #888;
  color: #000;
}

.xp-btn-maximize {
  background: linear-gradient(180deg, #F0EFE8 0%, #D6D3C8 40%, #C5C1B6 60%, #D0CEC3 100%);
  border-color: #888 #555 #555 #888;
  color: #000;
}

.xp-btn-close {
  background: linear-gradient(180deg, #FF8080 0%, #E83030 30%, #CC1010 60%, #E04040 100%);
  border-color: #FF9090 #880000 #880000 #FF9090;
  color: #fff;
  text-shadow: 0 1px 1px rgba(0,0,0,0.5);
}

.xp-btn-close:hover {
  background: linear-gradient(180deg, #FF9090 0%, #FF3030 30%, #DD1010 60%, #EE4040 100%);
  filter: brightness(1.1);
}

.xp-btn-minimize:hover,
.xp-btn-maximize:hover {
  background: linear-gradient(180deg, #FFFEF8 0%, #E8E5DC 40%, #D8D4C8 60%, #E4E0D4 100%);
}

.xp-btn-minimize:active,
.xp-btn-maximize:active,
.xp-btn-close:active {
  filter: brightness(0.9);
  transform: translateY(1px);
}

/* ============================================================
   XP MENU BAR
   ============================================================ */
.xp-menubar {
  background: #ECE9D8;
  border-bottom: 1px solid #ACA899;
  padding: 2px 4px;
  display: flex;
  gap: 2px;
  flex-shrink: 0;
}

.xp-menubar span {
  padding: 2px 8px;
  cursor: pointer;
  border-radius: 2px;
  font-size: 11px;
}

.xp-menubar span:hover {
  background: #316AC5;
  color: #fff;
}

/* ============================================================
   XP TOOLBAR
   ============================================================ */
.xp-toolbar {
  background: linear-gradient(180deg, #F5F4EF 0%, #E8E6DC 100%);
  border-bottom: 1px solid #ACA899;
  padding: 3px 6px;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.xp-toolbar-btn {
  background: linear-gradient(180deg, #FFFEF8 0%, #ECE9D8 100%);
  border: 1px solid transparent;
  border-radius: 2px;
  padding: 3px 8px;
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: Tahoma, Verdana, sans-serif;
  color: #000;
}

.xp-toolbar-btn:hover {
  background: linear-gradient(180deg, #FFF8DC 0%, #F0E8A8 100%);
  border-color: #D4A000;
}

.xp-toolbar-separator {
  width: 1px;
  height: 20px;
  background: linear-gradient(180deg, transparent, #ACA899, transparent);
  margin: 0 3px;
}

/* ============================================================
   XP ADDRESS BAR
   ============================================================ */
.xp-addressbar {
  background: #ECE9D8;
  border-bottom: 1px solid #ACA899;
  padding: 3px 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  flex-shrink: 0;
}

.xp-addressbar label {
  color: #000;
  font-weight: bold;
  white-space: nowrap;
}

.xp-addressbar-input {
  flex: 1;
  height: 20px;
  border: 2px solid;
  border-color: #7F9DB9 #fff #fff #7F9DB9;
  background: #fff;
  font-family: Tahoma, Verdana, sans-serif;
  font-size: 11px;
  padding: 0 4px;
  color: #000;
  outline: none;
}

/* ============================================================
   XP WINDOW BODY LAYOUT (sidebar + content)
   ============================================================ */
.xp-window-body {
  display: flex;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}

.xp-sidebar {
  width: 160px;
  min-width: 160px;
  background: linear-gradient(180deg, #5580C0 0%, #1A3C7A 30%, #1A3C7A 70%, #153070 100%);
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  flex-shrink: 0;
}

.xp-sidebar-section h4 {
  font-size: 11px;
  font-weight: bold;
  color: #FFD700;
  padding: 4px 6px;
  border-bottom: 1px solid rgba(255, 215, 0, 0.3);
  margin-bottom: 6px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.xp-sidebar-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 6px;
  font-size: 11px;
  color: #fff;
  cursor: pointer;
  border-radius: 2px;
  text-decoration: none;
  line-height: 1.3;
}

.xp-sidebar-link:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #FFE080;
}

.xp-sidebar-link .link-icon {
  font-size: 14px;
  flex-shrink: 0;
}

/* ============================================================
   XP CONTENT AREA
   ============================================================ */
.xp-content {
  flex: 1;
  overflow: auto;
  padding: 12px;
  background: #fff;
  min-height: 0;
}

.xp-content-inner {
  background: #ECE9D8;
  padding: 12px;
}

/* XP scrollbar styling */
.xp-content::-webkit-scrollbar {
  width: 16px;
  height: 16px;
}

.xp-content::-webkit-scrollbar-track {
  background: #F0EEE4;
  border: 1px solid #ACA899;
}

.xp-content::-webkit-scrollbar-thumb {
  background: linear-gradient(to right, #D0CDC4, #B8B4AA, #D0CDC4);
  border: 1px solid #ACA899;
}

.xp-content::-webkit-scrollbar-button {
  background: linear-gradient(180deg, #F0EEE4 0%, #D0CDC4 100%);
  border: 1px solid #ACA899;
  display: block;
  height: 16px;
}

.xp-content::-webkit-scrollbar-corner {
  background: #ECE9D8;
}

/* ============================================================
   XP STATUS BAR
   ============================================================ */
.xp-statusbar {
  height: 22px;
  background: #ECE9D8;
  border-top: 1px solid #ACA899;
  display: flex;
  align-items: center;
  padding: 0 6px;
  font-size: 11px;
  gap: 2px;
  flex-shrink: 0;
}

.xp-statusbar-panel {
  border: 1px solid;
  border-color: #7A7671 #E0DDD5 #E0DDD5 #7A7671;
  padding: 0 6px;
  height: 16px;
  display: flex;
  align-items: center;
  font-size: 11px;
}

/* ============================================================
   XP BUTTONS (generic)
   ============================================================ */
.xp-button {
  background: linear-gradient(180deg,
    #FFFEF8 0%,
    #F8F6EE 20%,
    #ECE9D8 50%,
    #DDD9C4 80%,
    #E8E4D0 100%
  );
  border: 2px solid;
  border-color: #FFFFFF #7A7671 #7A7671 #FFFFFF;
  border-radius: 3px;
  padding: 4px 16px;
  font-family: Tahoma, Verdana, sans-serif;
  font-size: 11px;
  cursor: pointer;
  color: #000;
  text-align: center;
  box-shadow: 1px 1px 0 #ACA899, inset 1px 1px 0 rgba(255,255,255,0.6);
  min-width: 75px;
  height: 23px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.xp-button:hover {
  background: linear-gradient(180deg,
    #FFFEF8 0%,
    #FEF8D0 20%,
    #F8F0A8 50%,
    #F0E888 80%,
    #F8F0A8 100%
  );
  border-color: #FFD700 #AA8800 #AA8800 #FFD700;
}

.xp-button:active {
  background: linear-gradient(180deg,
    #E8E4D0 0%,
    #DDD9C4 50%,
    #ECE9D8 100%
  );
  border-color: #7A7671 #FFFFFF #FFFFFF #7A7671;
  transform: translateY(1px);
}

.xp-button:focus {
  outline: 1px dotted #000;
  outline-offset: -4px;
}

.xp-button-primary {
  background: linear-gradient(180deg,
    #5E9FE8 0%,
    #3A7ACC 30%,
    #2060C0 60%,
    #3070CC 100%
  );
  border-color: #80C0FF #002080 #002080 #80C0FF;
  color: #fff;
  text-shadow: 0 1px 1px rgba(0,0,0,0.4);
}

.xp-button-primary:hover {
  background: linear-gradient(180deg,
    #6EAFF8 0%,
    #4A8ADD 30%,
    #3070D0 60%,
    #4080DD 100%
  );
  border-color: #90D0FF #002090 #002090 #90D0FF;
}

.xp-button-wizard {
  background: linear-gradient(180deg,
    #5EAFE8 0%,
    #3A8ACC 30%,
    #2070C0 60%,
    #3080CC 100%
  );
  border-color: #90D0FF #001870 #001870 #90D0FF;
  color: #fff;
  font-weight: bold;
  font-size: 12px;
  padding: 5px 20px;
  height: 27px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  box-shadow: 0 2px 4px rgba(0,0,50,0.3), inset 0 1px 0 rgba(255,255,255,0.3);
}

/* ============================================================
   XP FORM ELEMENTS
   ============================================================ */
.xp-input, .xp-select, .xp-textarea {
  border: 2px solid;
  border-color: #7F9DB9 #DFDFDF #DFDFDF #7F9DB9;
  background: #fff;
  font-family: Tahoma, Verdana, sans-serif;
  font-size: 11px;
  color: #000;
  padding: 2px 4px;
  outline: none;
  height: 22px;
  width: 100%;
}

.xp-input:focus, .xp-select:focus, .xp-textarea:focus {
  border-color: #316AC5 #B8D0E8 #B8D0E8 #316AC5;
  background: #F0F8FF;
}

.xp-textarea {
  height: auto;
  resize: vertical;
  padding: 4px;
}

.xp-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M0 0l6 8 6-8z' fill='%23000'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 20px;
  appearance: none;
  -webkit-appearance: none;
}

.xp-form-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 10px;
}

.xp-form-row label {
  font-size: 11px;
  font-weight: bold;
  color: #000;
}

.xp-form-row.inline {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.xp-form-row.inline label {
  min-width: 130px;
  text-align: right;
}

/* ============================================================
   XP FOLDER ICONS
   ============================================================ */
.xp-file-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 8px;
  padding: 8px;
  background: #fff;
}

.xp-folder-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 4px;
  cursor: pointer;
  border-radius: 2px;
  gap: 4px;
  text-align: center;
}

.xp-folder-item:hover {
  background: #CBE0F8;
  outline: 1px solid #3070C8;
}

.xp-folder-item.selected {
  background: #316AC5;
  outline: 1px solid #80B0E8;
}

.xp-folder-item.selected .folder-label {
  color: #fff;
}

.folder-icon-svg {
  width: 40px;
  height: 34px;
  position: relative;
  flex-shrink: 0;
}

/* CSS folder icon */
.folder-icon {
  width: 40px;
  height: 34px;
  position: relative;
}

.folder-icon::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 28px;
  background: linear-gradient(180deg, #F0C040 0%, #D89800 40%, #C88000 70%, #D09010 100%);
  border-radius: 0 3px 3px 2px;
  border: 1px solid #A07000;
  box-shadow: inset 0 1px 0 rgba(255,255,200,0.5), inset 0 -1px 0 rgba(0,0,0,0.2);
}

.folder-icon::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 18px;
  height: 8px;
  background: linear-gradient(180deg, #F0C040 0%, #D89800 100%);
  border-radius: 3px 3px 0 0;
  border: 1px solid #A07000;
  border-bottom: none;
}

.folder-label {
  font-size: 11px;
  color: #000;
  line-height: 1.2;
  max-width: 88px;
  word-break: break-word;
  text-align: center;
}

/* ============================================================
   WINDOW: ABOUT / MY COMPUTER
   ============================================================ */
#window-about {
  width: 600px;
  top: 30px;
  left: 40px;
}

#window-about .xp-content {
  padding: 20px;
  background: #fff;
  user-select: text;
}

.about-hero {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
}

.about-logo {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #316AC5 0%, #1A4088 50%, #0A2860 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  flex-shrink: 0;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.3);
  border: 2px solid #1A4088;
}

.about-text h1 {
  font-size: 16px;
  font-weight: bold;
  color: #0A246A;
  margin-bottom: 4px;
}

.about-text .tagline {
  font-size: 12px;
  color: #316AC5;
  font-weight: bold;
  margin-bottom: 8px;
  font-style: italic;
}

.about-text p {
  font-size: 11px;
  line-height: 1.6;
  color: #333;
  user-select: text;
}

.xp-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, #ACA899, transparent);
  margin: 12px 0;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.feature-item {
  background: linear-gradient(180deg, #EEF4FF 0%, #DDE8F8 100%);
  border: 1px solid #7A9DC8;
  border-radius: 4px;
  padding: 8px 10px;
  font-size: 11px;
}

.feature-item strong {
  color: #0A246A;
  display: block;
  margin-bottom: 3px;
}

/* ============================================================
   WINDOW: FOUNDER
   ============================================================ */
#window-founder {
  width: 380px;
  top: 30px;
  left: 660px;
}

.founder-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: #fff;
  user-select: text;
}

.founder-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid #316AC5;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  background: linear-gradient(135deg, #5588CC 0%, #2255AA 50%, #1A3D80 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  position: relative;
  overflow: hidden;
}

.founder-avatar::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 52px;
  height: 36px;
  background: linear-gradient(180deg, #4A80CC 0%, #2A60B0 100%);
  border-radius: 40px 40px 0 0;
}

.founder-avatar::after {
  content: '👤';
  position: absolute;
  top: 10px;
  font-size: 28px;
}

.founder-name {
  font-size: 15px;
  font-weight: bold;
  color: #0A246A;
  text-align: center;
}

.founder-title {
  font-size: 11px;
  color: #666;
  text-align: center;
  margin-top: -8px;
}

.founder-bio {
  font-size: 11px;
  line-height: 1.6;
  color: #333;
  text-align: center;
  padding: 0 8px;
}

.founder-links {
  display: flex;
  gap: 8px;
}

.xp-link-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(180deg, #EEF4FF 0%, #D8E8FC 100%);
  border: 1px solid #7A9DC8;
  border-radius: 3px;
  padding: 4px 12px;
  font-size: 11px;
  color: #0A246A;
  cursor: pointer;
  text-decoration: none;
  font-family: Tahoma, Verdana, sans-serif;
  box-shadow: 1px 1px 0 rgba(255,255,255,0.8) inset;
}

.xp-link-button:hover {
  background: linear-gradient(180deg, #F8F4D0 0%, #F0E890 100%);
  border-color: #C0A000;
  color: #000;
}

/* ============================================================
   WINDOW: SKILLS
   ============================================================ */
#window-skills {
  width: 580px;
  top: 420px;
  left: 40px;
}

#window-skills .xp-content {
  background: #fff;
  min-height: 200px;
}

.skills-header {
  background: linear-gradient(180deg, #EEF4FF 0%, #D8E8FC 100%);
  border-bottom: 1px solid #7A9DC8;
  padding: 8px 12px;
  font-size: 11px;
  color: #0A246A;
}

/* ============================================================
   WINDOW: COHORT
   ============================================================ */
#window-cohort {
  width: 520px;
  top: 50px;
  left: 290px;
  z-index: 150;
}

.wizard-header {
  background: linear-gradient(180deg, #ECE9D8 0%, #D8D5C8 100%);
  border-bottom: 1px solid #ACA899;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.wizard-icon {
  width: 48px;
  height: 48px;
  font-size: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wizard-header-text h2 {
  font-size: 14px;
  font-weight: bold;
  color: #0A246A;
  margin-bottom: 3px;
}

.wizard-header-text p {
  font-size: 11px;
  color: #555;
  line-height: 1.4;
}

.wizard-body {
  padding: 14px 16px;
  background: #fff;
  overflow-y: auto;
  max-height: 380px;
  user-select: text;
}

.wizard-footer {
  background: linear-gradient(180deg, #ECE9D8 0%, #DDD9C8 100%);
  border-top: 1px solid #ACA899;
  padding: 8px 16px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  align-items: center;
}

.form-section-title {
  font-size: 12px;
  font-weight: bold;
  color: #0A246A;
  border-bottom: 1px solid #B0B8D0;
  padding-bottom: 4px;
  margin-bottom: 10px;
}

/* ============================================================
   XP DIALOG / MESSAGE BOX
   ============================================================ */
.xp-dialog-overlay {
  position: fixed;
  inset: 0;
  background: transparent;
  z-index: 9000;
  display: none;
  align-items: center;
  justify-content: center;
}

.xp-dialog-overlay.visible {
  display: flex;
}

.xp-dialog {
  background: #ECE9D8;
  border: 2px solid #0A246A;
  border-radius: 8px 8px 4px 4px;
  box-shadow: 4px 4px 16px rgba(0, 0, 0, 0.6);
  min-width: 320px;
  max-width: 420px;
  overflow: hidden;
}

.xp-dialog .xp-titlebar {
  cursor: default;
}

.xp-dialog-body {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 20px;
}

.dialog-icon {
  font-size: 32px;
  flex-shrink: 0;
}

.dialog-message {
  font-size: 12px;
  line-height: 1.5;
  color: #000;
  user-select: text;
  flex: 1;
}

.xp-dialog-footer {
  padding: 8px 20px 12px;
  display: flex;
  justify-content: center;
  gap: 8px;
  border-top: 1px solid #ACA899;
}

/* ============================================================
   XP TASKBAR
   ============================================================ */
.xp-taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(180deg,
    #1C5EB4 0%,
    #1A5AB0 10%,
    #1C60BC 20%,
    #2068C4 30%,
    #2268C8 40%,
    #2068C4 50%,
    #1C60BC 60%,
    #1A5AB0 70%,
    #1858AC 80%,
    #1254A8 90%,
    #1050A4 100%
  );
  border-top: 1px solid #3A84D0;
  display: flex;
  align-items: center;
  padding: 0 3px;
  z-index: 5000;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.4);
  gap: 3px;
}

.xp-taskbar::before {
  content: '';
  position: absolute;
  top: 1px;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
}

/* START BUTTON */
.xp-start-btn {
  height: 34px;
  background: linear-gradient(180deg,
    #58B038 0%,
    #3EA020 15%,
    #2E8A10 30%,
    #287808 50%,
    #2E8810 70%,
    #3A9818 85%,
    #50AA28 100%
  );
  border: none;
  border-radius: 0 12px 12px 0;
  padding: 0 14px 0 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Franklin Gothic Medium', 'Arial Narrow', Tahoma, sans-serif;
  font-size: 14px;
  font-weight: bold;
  font-style: italic;
  color: #fff;
  text-shadow: 1px 1px 3px rgba(0, 50, 0, 0.8);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.3),
    0 0 8px rgba(0, 150, 0, 0.4),
    2px 0 4px rgba(0, 0, 0, 0.3);
  position: relative;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  margin-right: 4px;
}

.xp-start-btn:hover {
  background: linear-gradient(180deg,
    #68C048 0%,
    #4EB030 15%,
    #3E9A20 30%,
    #388818 50%,
    #3E9820 70%,
    #4AAA28 85%,
    #60BA38 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.4),
    0 0 12px rgba(0, 200, 0, 0.5),
    2px 0 4px rgba(0, 0, 0, 0.3);
}

.xp-start-btn:active {
  background: linear-gradient(180deg,
    #287808 0%,
    #2E8810 50%,
    #58B038 100%
  );
}

.start-orb {
  width: 22px;
  height: 22px;
  background: radial-gradient(circle at 35% 35%, #FFD080 0%, #E8A000 35%, #C07000 60%, #804000 100%);
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.3);
  box-shadow: inset 0 -2px 4px rgba(0,0,0,0.3), 0 0 4px rgba(255, 200, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
  font-style: normal;
  font-weight: normal;
  flex-shrink: 0;
}

.xp-taskbar-divider {
  width: 1px;
  height: 28px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.3), rgba(0,0,0,0.3), transparent);
  margin: 0 2px;
  flex-shrink: 0;
}

/* TASKBAR WINDOW BUTTONS */
.xp-taskbar-windows {
  display: flex;
  flex: 1;
  gap: 3px;
  overflow: hidden;
  align-items: center;
}

.xp-taskbar-window-btn {
  height: 28px;
  max-width: 160px;
  min-width: 60px;
  flex: 0 1 140px;
  background: linear-gradient(180deg,
    #3878CC 0%,
    #2060B8 30%,
    #1A54B0 50%,
    #2060B8 70%,
    #3070BC 100%
  );
  border: 1px solid #1848A0;
  border-radius: 3px;
  color: #fff;
  font-family: Tahoma, Verdana, sans-serif;
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 6px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.2),
    0 1px 2px rgba(0,0,0,0.3);
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.xp-taskbar-window-btn:hover {
  background: linear-gradient(180deg,
    #5090DC 0%,
    #3878CC 30%,
    #306CC4 50%,
    #3878CC 70%,
    #4A84CC 100%
  );
}

.xp-taskbar-window-btn.active {
  background: linear-gradient(180deg,
    #1848A8 0%,
    #2060C0 30%,
    #2868C8 50%,
    #2060C0 70%,
    #1A50B0 100%
  );
  border-color: #0838A0;
  box-shadow:
    inset 1px 1px 3px rgba(0,0,0,0.4),
    0 1px 2px rgba(0,0,0,0.3);
}

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

.taskbar-btn-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* SYSTEM TRAY */
.xp-systray {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(180deg,
    #0E48A8 0%,
    #0C40A0 30%,
    #0A3898 60%,
    #0C40A0 100%
  );
  border: 1px solid #0838A0;
  border-radius: 3px;
  height: 28px;
  padding: 0 8px;
  flex-shrink: 0;
  margin-left: auto;
}

.systray-icons {
  display: flex;
  gap: 2px;
  align-items: center;
}

.systray-icon {
  font-size: 14px;
  cursor: pointer;
  opacity: 0.85;
}

.systray-icon:hover {
  opacity: 1;
}

.systray-separator {
  width: 1px;
  height: 20px;
  background: rgba(255,255,255,0.15);
  margin: 0 4px;
}

.xp-clock {
  font-size: 11px;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  cursor: default;
  font-family: Tahoma, Verdana, sans-serif;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* ============================================================
   START MENU
   ============================================================ */
.xp-start-menu {
  position: fixed;
  bottom: 40px;
  left: 0;
  width: 340px;
  background: #ECE9D8;
  border: 1px solid #0A246A;
  border-radius: 8px 8px 0 0;
  box-shadow: 4px -4px 16px rgba(0, 0, 0, 0.5);
  z-index: 4999;
  overflow: hidden;
  display: none;
}

.xp-start-menu.open {
  display: block;
}

.start-menu-header {
  background: linear-gradient(180deg, #0A246A 0%, #316AC5 100%);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.start-menu-user-icon {
  width: 48px;
  height: 48px;
  background: radial-gradient(circle at 40% 35%, #8AACF0 0%, #4470CC 50%, #2050B0 100%);
  border-radius: 6px;
  border: 2px solid rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.start-menu-username {
  font-size: 14px;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.start-menu-body {
  display: flex;
  min-height: 200px;
}

.start-menu-left {
  flex: 1;
  padding: 4px 0;
  border-right: 1px solid #ACA899;
  background: #fff;
}

.start-menu-right {
  width: 140px;
  padding: 4px 0;
  background: #D8D4CC;
}

.start-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  cursor: pointer;
  font-size: 12px;
  color: #000;
}

.start-menu-item:hover {
  background: #316AC5;
  color: #fff;
}

.start-menu-item .sm-icon {
  font-size: 18px;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.start-menu-item .sm-label {
  flex: 1;
  font-weight: bold;
}

.start-menu-item .sm-sub {
  font-size: 10px;
  color: #666;
  line-height: 1.2;
  font-weight: normal;
}

.start-menu-item:hover .sm-sub { color: rgba(255,255,255,0.8); }

.start-menu-separator {
  height: 1px;
  background: #ACA899;
  margin: 4px 0;
}

.start-menu-right-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  cursor: pointer;
  font-size: 11px;
  color: #000;
}

.start-menu-right-item:hover {
  background: #316AC5;
  color: #fff;
}

.start-menu-footer {
  background: linear-gradient(180deg, #D0CCB8 0%, #C0BCB0 100%);
  border-top: 1px solid #ACA899;
  padding: 5px 8px;
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

/* ============================================================
   NOTIFICATION / TOOLTIP
   ============================================================ */
.xp-tooltip {
  position: fixed;
  background: #FFFFCC;
  border: 1px solid #888;
  padding: 4px 8px;
  font-size: 11px;
  font-family: Tahoma, sans-serif;
  box-shadow: 2px 2px 4px rgba(0,0,0,0.2);
  z-index: 9999;
  pointer-events: none;
  display: none;
}

/* ============================================================
   LOADING / PROGRESS BAR
   ============================================================ */
.xp-progress-bar {
  height: 20px;
  background: #fff;
  border: 2px solid;
  border-color: #7F9DB9 #DFDFDF #DFDFDF #7F9DB9;
  overflow: hidden;
  border-radius: 0;
}

.xp-progress-fill {
  height: 100%;
  background: repeating-linear-gradient(
    90deg,
    #316AC5 0px,
    #4A84D8 8px,
    #316AC5 16px
  );
  background-size: 32px 100%;
  animation: xpProgressAnim 1s linear infinite;
  transition: width 0.3s;
}

@keyframes xpProgressAnim {
  from { background-position: 0 0; }
  to { background-position: 32px 0; }
}

/* ============================================================
   FORM SUCCESS STATE
   ============================================================ */
.form-success-message {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px;
  text-align: center;
}

.form-success-message.visible {
  display: flex;
}

.form-success-icon {
  font-size: 48px;
}

.form-success-title {
  font-size: 14px;
  font-weight: bold;
  color: #0A246A;
}

.form-success-text {
  font-size: 11px;
  color: #333;
  line-height: 1.6;
  user-select: text;
}

/* ============================================================
   PAGE / POST TEMPLATES (non-front-page)
   ============================================================ */
body.page-template-default .xp-desktop,
body.single .xp-desktop {
  overflow-y: auto;
  overflow-x: hidden;
  padding: 30px;
}

.xp-page-window {
  position: relative;
  margin: 0 auto;
  max-width: 800px;
  z-index: 1;
}

.xp-post-title {
  font-size: 16px;
  font-weight: bold;
  color: #0A246A;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #316AC5;
}

.xp-post-content {
  font-size: 12px;
  line-height: 1.7;
  color: #333;
  user-select: text;
}

.xp-post-content p { margin-bottom: 12px; }
.xp-post-content h2 { font-size: 14px; color: #0A246A; margin: 16px 0 8px; }
.xp-post-content h3 { font-size: 13px; color: #1A50A0; margin: 12px 0 6px; }

/* ============================================================
   RESPONSIVE — MOBILE ADAPTATIONS
   ============================================================ */
@media (max-width: 900px) {
  body, html { overflow: auto; }

  .xp-desktop {
    height: auto;
    min-height: 100vh;
    overflow: auto;
    padding: 10px 10px 50px;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .desktop-icons { display: none; }

  .xp-window {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    max-width: 100%;
    min-width: 0;
  }

  #window-about, #window-founder, #window-skills, #window-cohort {
    display: flex !important;
  }

  .xp-window-body { flex-direction: column; }
  .xp-sidebar { width: 100%; min-width: 0; flex-direction: row; flex-wrap: wrap; }

  .about-features { grid-template-columns: 1fr; }
  .xp-file-list { grid-template-columns: repeat(3, 1fr); }

  .xp-taskbar-windows { display: none; }
  .xp-start-btn span:not(.start-orb) { display: none; }
}

@media (max-width: 500px) {
  .xp-file-list { grid-template-columns: repeat(2, 1fr); }
  #window-cohort { width: 100% !important; }
  .wizard-body { max-height: none; }
}

/* ============================================================
   XP CURSOR OVERRIDES
   ============================================================ */
.xp-titlebar { cursor: move; }
button, .desktop-icon, .xp-folder-item, .start-menu-item,
.xp-taskbar-window-btn, .xp-link-button { cursor: pointer; }
.xp-input, .xp-textarea { cursor: text; user-select: text; }
.xp-select { cursor: pointer; }

/* ============================================================
   SELECTION COLOR (XP blue)
   ============================================================ */
::selection {
  background: #316AC5;
  color: #fff;
}

/* ============================================================
   COHORT FORM INLINE LAYOUT
   ============================================================ */
.xp-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
}

.xp-form-grid .span-2 {
  grid-column: 1 / -1;
}

@media (max-width: 500px) {
  .xp-form-grid { grid-template-columns: 1fr; }
  .xp-form-grid .span-2 { grid-column: auto; }
}

/* required asterisk */
.req { color: #CC0000; }
