/* ========================================
   OpenClaw Learning Hub — Windows 95 Theme
   ======================================== */

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --win-bg: #c0c0c0;
  --win-border-light: #ffffff;
  --win-border-dark: #808080;
  --win-border-darker: #404040;
  --win-title-blue: linear-gradient(90deg, #000080, #1084d0);
  --win-title-inactive: linear-gradient(90deg, #808080, #b0b0b0);
  --win-body-bg: #ffffff;
  --desktop-teal: #008080;
  --taskbar-bg: linear-gradient(180deg, #c8c8c8, #a0a0a0);
  --badge-beginner: #27ae60;
  --badge-intermediate: #f39c12;
  --badge-advanced: #e74c3c;
  --badge-new: #3498db;
  --font-system: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;
}

html {
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-system);
  background: var(--desktop-teal);
  overflow: hidden;
  height: 100vh;
  width: 100vw;
  user-select: none;
  cursor: default;
}

/* ========== DESKTOP ========== */
#desktop {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--desktop-teal);
  overflow: hidden;
}

/* ========== DESKTOP ICONS ========== */
#desktop-icons {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 4px;
  max-height: calc(100vh - 52px);
  z-index: 1;
}

.desktop-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 82px;
  padding: 4px 2px 6px;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.1s;
}

.desktop-icon:hover {
  background: rgba(255,255,255,0.15);
}

.desktop-icon:active,
.desktop-icon.selected {
  background: rgba(0,0,128,0.4);
}

.desktop-icon .icon-img {
  width: 40px;
  height: 40px;
  margin-bottom: 3px;
}

.desktop-icon .icon-img svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(1px 1px 1px rgba(0,0,0,0.4));
}

.desktop-icon span {
  font-size: 11px;
  color: #fff;
  text-align: center;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
  line-height: 1.2;
  overflow-wrap: break-word;
  hyphens: none;
  word-break: normal;
}

/* ========== WINDOWS ========== */
.win95-window {
  position: absolute;
  background: var(--win-bg);
  border: 2px solid;
  border-color: var(--win-border-light) var(--win-border-darker) var(--win-border-darker) var(--win-border-light);
  box-shadow: 2px 2px 8px rgba(0,0,0,0.4), inset 1px 1px 0 var(--win-border-light);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 60px);
  min-width: 320px;
  z-index: 10;
}

.win95-window.hidden {
  display: none;
}

.win95-window.maximized {
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: calc(100vh - 40px) !important;
  max-height: none !important;
  border: none;
}

/* Title Bar */
.title-bar {
  background: var(--win-title-blue);
  padding: 3px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: grab;
  min-height: 24px;
  flex-shrink: 0;
}

.title-bar:active { cursor: grabbing; }

.win95-window.inactive .title-bar {
  background: var(--win-title-inactive);
}

.title-bar-text {
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-left: 2px;
  text-shadow: 1px 1px 0 rgba(0,0,0,0.3);
}

.title-bar-controls {
  display: flex;
  gap: 2px;
  flex-shrink: 0;
}

.win-btn {
  width: 18px;
  height: 18px;
  background: var(--win-bg);
  border: 2px solid;
  border-color: var(--win-border-light) var(--win-border-dark) var(--win-border-dark) var(--win-border-light);
  cursor: pointer;
  position: relative;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.win-btn:active {
  border-color: var(--win-border-dark) var(--win-border-light) var(--win-border-light) var(--win-border-dark);
}

.minimize-btn::after {
  content: '';
  width: 8px;
  height: 2px;
  background: #000;
  position: absolute;
  bottom: 3px;
}

.maximize-btn::after {
  content: '';
  width: 10px;
  height: 10px;
  border: 1px solid #000;
  border-top-width: 2px;
  position: absolute;
}

.close-btn::before,
.close-btn::after {
  content: '';
  width: 10px;
  height: 2px;
  background: #000;
  position: absolute;
}
.close-btn::before { transform: rotate(45deg); }
.close-btn::after { transform: rotate(-45deg); }

/* Menu Bar */
.menu-bar {
  background: var(--win-bg);
  border-bottom: 1px solid var(--win-border-dark);
  padding: 2px 4px;
  display: flex;
  gap: 2px;
  flex-shrink: 0;
}

.menu-bar span {
  padding: 2px 8px;
  font-size: 12px;
  cursor: pointer;
  border-radius: 0;
}

.menu-bar span:hover {
  background: #000080;
  color: #fff;
}

/* Window Body */
.window-body {
  background: var(--win-body-bg);
  border: 2px solid;
  border-color: var(--win-border-dark) var(--win-border-light) var(--win-border-light) var(--win-border-dark);
  margin: 2px;
  padding: 12px;
  flex: 1;
  overflow: hidden;
}

.window-body.scrollable {
  overflow-y: auto;
  scrollbar-width: thin;
}

/* Win95 Scrollbar */
.window-body.scrollable::-webkit-scrollbar {
  width: 16px;
}
.window-body.scrollable::-webkit-scrollbar-track {
  background: #c0c0c0;
  border: 1px solid #808080;
}
.window-body.scrollable::-webkit-scrollbar-thumb {
  background: #c0c0c0;
  border: 2px solid;
  border-color: #fff #808080 #808080 #fff;
}
.window-body.scrollable::-webkit-scrollbar-button {
  background: #c0c0c0;
  border: 2px solid;
  border-color: #fff #808080 #808080 #fff;
  height: 16px;
}

/* ========== BUTTONS ========== */
.win95-btn {
  background: var(--win-bg);
  border: 2px solid;
  border-color: var(--win-border-light) var(--win-border-darker) var(--win-border-darker) var(--win-border-light);
  padding: 4px 16px;
  font-family: var(--font-system);
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  color: #000;
}

.win95-btn:active {
  border-color: var(--win-border-darker) var(--win-border-light) var(--win-border-light) var(--win-border-darker);
  padding: 5px 15px 3px 17px;
}

.win95-btn:hover {
  background: #d4d0c8;
}

.win95-btn.primary {
  font-weight: 700;
  outline: 1px solid #000;
  outline-offset: -4px;
}

.win95-btn.discord-btn {
  background: #5865F2;
  color: #fff;
  font-weight: 600;
  border-color: #7289da #4752c4 #4752c4 #7289da;
}

.win95-btn.discord-btn:hover {
  background: #4752c4;
}

.win95-btn.discord-btn:active {
  border-color: #4752c4 #7289da #7289da #4752c4;
}

.watch-btn {
  flex-shrink: 0;
  min-width: 60px;
}

.explore-btn {
  margin-top: 8px;
}

/* ========== BADGES ========== */
.badge {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 2px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #fff;
  text-transform: uppercase;
}

.badge.beginner { background: var(--badge-beginner); }
.badge.intermediate { background: var(--badge-intermediate); }
.badge.advanced { background: var(--badge-advanced); }
.badge.new-badge { background: var(--badge-new); }

/* ========== WELCOME WINDOW ========== */
.welcome-content {
  text-align: center;
  padding: 8px;
}

.welcome-robot {
  margin-bottom: 12px;
}

.welcome-content h2 {
  font-size: 16px;
  margin-bottom: 8px;
  color: #000080;
}

.welcome-content p {
  font-size: 12px;
  margin-bottom: 16px;
  color: #333;
  line-height: 1.5;
}

.getting-started {
  background: #ffffcc;
  border: 1px solid #e6e6b3;
  padding: 10px 14px;
  text-align: left;
  margin-bottom: 16px;
}

.getting-started h3 {
  font-size: 12px;
  margin-bottom: 6px;
  color: #333;
}

.getting-started ul {
  list-style: none;
  padding: 0;
}

.getting-started li {
  font-size: 11px;
  padding: 3px 0 3px 16px;
  position: relative;
  color: #444;
}

.getting-started li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--badge-beginner);
  font-weight: 700;
}

/* Discord Banner in Welcome */
.discord-banner {
  background: linear-gradient(135deg, #5865F2, #4752c4);
  color: #fff;
  padding: 12px 16px;
  border-radius: 3px;
  margin: 12px 0;
  text-align: center;
}

.discord-banner h3 {
  font-size: 13px;
  margin-bottom: 4px;
}

.discord-banner p {
  font-size: 11px;
  color: #ddd;
  margin-bottom: 8px;
}

/* ========== ARTICLE LIST ========== */
.article-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.article-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid #dfdfdf;
  cursor: pointer;
  transition: background 0.1s;
  gap: 12px;
}

.article-item:hover {
  background: #e8e8ff;
}

.article-item:nth-child(even) {
  background: #f8f8f8;
}
.article-item:nth-child(even):hover {
  background: #e8e8ff;
}

.article-info {
  flex: 1;
  min-width: 0;
}

.article-info h3 {
  font-size: 12.5px;
  color: #000080;
  margin-bottom: 3px;
  line-height: 1.3;
}

.article-info p {
  font-size: 11px;
  color: #555;
  line-height: 1.4;
  margin-bottom: 4px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.article-meta .time {
  font-size: 10px;
  color: #888;
}

.article-meta .views {
  font-size: 10px;
  color: #aaa;
}

/* ========== ARTICLE DETAIL ========== */
.article-detail {
  padding: 4px;
  line-height: 1.5;
}

.article-detail h2 {
  font-size: 16px;
  color: #000080;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid #000080;
}

.article-detail h3 {
  font-size: 13px;
  color: #333;
  margin: 14px 0 6px;
}

.article-detail p {
  font-size: 12px;
  color: #333;
  margin-bottom: 8px;
}

.article-detail ul, .article-detail ol {
  padding-left: 20px;
  margin-bottom: 10px;
}

.article-detail li {
  font-size: 12px;
  color: #444;
  margin-bottom: 4px;
  line-height: 1.5;
}

.info-box {
  background: #f0f8ff;
  border: 1px solid #b0d4f1;
  padding: 12px 14px;
  margin: 12px 0;
}

.info-box h3 {
  margin-top: 0;
  color: #000080;
}

.warning-box {
  background: #fff8e1;
  border: 1px solid #ffcc80;
  padding: 12px 14px;
  margin: 12px 0;
}

.code-block {
  background: #1e1e1e;
  color: #d4d4d4;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  border: 2px solid;
  border-color: var(--win-border-dark) var(--win-border-light) var(--win-border-light) var(--win-border-dark);
  overflow-x: auto;
  margin: 8px 0;
  line-height: 1.5;
  white-space: pre;
}

.code-block .keyword { color: #569cd6; }
.code-block .string { color: #ce9178; }
.code-block .comment { color: #6a9955; }
.code-block .function { color: #dcdcaa; }

.related-videos {
  margin: 16px 0;
}

.related-videos h3 {
  margin-bottom: 8px;
}

.related-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.related-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  background: #f5f5f5;
  border: 1px solid #ddd;
  cursor: pointer;
  font-size: 11px;
  color: #000080;
}

.related-item:hover {
  background: #e8e8ff;
}

.related-item .play-icon {
  width: 20px;
  height: 20px;
  background: #e74c3c;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.related-item .play-icon::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 6px solid #fff;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  margin-left: 2px;
}

.bottom-line {
  background: #f0fff0;
  border: 1px solid #b2dfb2;
  padding: 10px 14px;
  margin: 12px 0;
}

.bottom-line h3 {
  color: #27ae60;
  margin-top: 0;
}

.mark-watched-bar {
  display: flex;
  justify-content: center;
  padding: 12px 0;
  border-top: 1px solid #ddd;
  margin-top: 16px;
}

/* Quick Links Grid */
.link-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 8px;
}

.link-grid .win95-btn {
  text-align: center;
}

/* ========== MODEL GRID ========== */
.model-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.model-card {
  background: #f9f9f9;
  border: 2px solid;
  border-color: var(--win-border-light) var(--win-border-dark) var(--win-border-dark) var(--win-border-light);
  padding: 12px;
  text-align: center;
  cursor: pointer;
  transition: background 0.1s;
}

.model-card:hover {
  background: #e8e8ff;
}

.model-icon {
  margin-bottom: 8px;
  display: flex;
  justify-content: center;
}

.model-card h3 {
  font-size: 12px;
  color: #000080;
  margin-bottom: 6px;
}

.model-card p {
  font-size: 10.5px;
  color: #555;
  line-height: 1.4;
  margin-bottom: 8px;
}

.model-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}

.model-meta .time {
  font-size: 10px;
  color: #888;
}

/* Completion Tracker */
.completion-tracker {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid #ddd;
  margin-top: 4px;
  font-size: 11px;
  color: #666;
}

.tracker-bar {
  flex: 1;
  height: 14px;
  background: #fff;
  border: 2px solid;
  border-color: var(--win-border-dark) var(--win-border-light) var(--win-border-light) var(--win-border-dark);
}

.tracker-fill {
  height: 100%;
  background: var(--badge-beginner);
  transition: width 0.3s;
}

.trophy {
  font-size: 16px;
}

/* ========== SETUP GRID ========== */
.setup-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.setup-card {
  background: #f9f9f9;
  border: 2px solid;
  border-color: var(--win-border-light) var(--win-border-dark) var(--win-border-dark) var(--win-border-light);
  padding: 14px 12px;
  text-align: center;
  cursor: pointer;
  transition: background 0.1s;
}

.setup-card:hover {
  background: #e8e8ff;
}

.setup-card svg {
  margin-bottom: 8px;
}

.setup-card h3 {
  font-size: 12px;
  color: #000080;
  margin-bottom: 4px;
}

.setup-card p {
  font-size: 10.5px;
  color: #555;
  line-height: 1.3;
  margin-bottom: 8px;
}

/* ========== LEARNING PATHS GRID ========== */
.paths-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.path-card {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: #f9f9f9;
  border: 2px solid;
  border-color: var(--win-border-light) var(--win-border-dark) var(--win-border-dark) var(--win-border-light);
  cursor: pointer;
  transition: background 0.1s;
}

.path-card:hover {
  background: #e8e8ff;
}

.path-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
}

.path-info {
  flex: 1;
  min-width: 0;
}

.path-info h3 {
  font-size: 12px;
  color: #000080;
  margin-bottom: 2px;
}

.path-rating {
  font-size: 11px;
  color: #f39c12;
  margin-bottom: 4px;
}

.path-rating span {
  color: #888;
  font-size: 10px;
}

.path-info p {
  font-size: 10.5px;
  color: #555;
  line-height: 1.3;
  margin-bottom: 4px;
}

.path-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}

.path-meta .time {
  font-size: 10px;
  color: #888;
}

/* ========== CLIPPY ========== */
#clippy {
  position: fixed;
  bottom: 48px;
  right: 16px;
  z-index: 200;
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

#clippy.hidden { display: none; }

.clippy-bubble {
  background: #ffffcc;
  border: 2px solid #000;
  border-radius: 8px 8px 8px 0;
  padding: 10px 14px;
  max-width: 220px;
  box-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  position: relative;
}

.clippy-bubble p {
  font-size: 11px;
  line-height: 1.4;
  margin-bottom: 8px;
  color: #333;
}

.clippy-img {
  flex-shrink: 0;
  animation: clippy-bounce 2s ease-in-out infinite;
}

@keyframes clippy-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* ========== TASKBAR ========== */
#taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 36px;
  background: var(--win-bg);
  border-top: 2px solid var(--win-border-light);
  display: flex;
  align-items: center;
  padding: 2px 4px;
  gap: 4px;
  z-index: 300;
}

#start-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--win-bg);
  border: 2px solid;
  border-color: var(--win-border-light) var(--win-border-darker) var(--win-border-darker) var(--win-border-light);
  padding: 2px 8px;
  font-family: var(--font-system);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  height: 28px;
}

#start-btn:active,
#start-btn.active {
  border-color: var(--win-border-darker) var(--win-border-light) var(--win-border-light) var(--win-border-darker);
}

#taskbar-windows {
  flex: 1;
  display: flex;
  gap: 2px;
  overflow-x: auto;
  padding: 0 4px;
}

.taskbar-item {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--win-bg);
  border: 2px solid;
  border-color: var(--win-border-light) var(--win-border-darker) var(--win-border-darker) var(--win-border-light);
  padding: 2px 8px;
  font-size: 11px;
  cursor: pointer;
  height: 24px;
  max-width: 160px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  flex-shrink: 0;
}

.taskbar-item.active {
  border-color: var(--win-border-darker) var(--win-border-light) var(--win-border-light) var(--win-border-darker);
  background: #e0e0e0;
  font-weight: 700;
}

#taskbar-clock {
  font-size: 11px;
  padding: 2px 12px;
  border: 2px solid;
  border-color: var(--win-border-dark) var(--win-border-light) var(--win-border-light) var(--win-border-dark);
  height: 24px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* ========== START MENU ========== */
#start-menu {
  position: fixed;
  bottom: 38px;
  left: 2px;
  width: 220px;
  background: var(--win-bg);
  border: 2px solid;
  border-color: var(--win-border-light) var(--win-border-darker) var(--win-border-darker) var(--win-border-light);
  box-shadow: 2px 2px 6px rgba(0,0,0,0.4);
  z-index: 400;
}

#start-menu.hidden { display: none; }

.start-menu-header {
  background: linear-gradient(180deg, #000080, #1084d0);
  color: #fff;
  padding: 8px 10px;
  font-size: 14px;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 28px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.start-menu-header strong {
  font-weight: 700;
}

.start-menu-items {
  margin-left: 28px;
  padding: 4px 0;
}

.start-item {
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.start-item:hover {
  background: #000080;
  color: #fff;
}

.start-icon {
  font-size: 14px;
}

.start-divider {
  height: 1px;
  background: var(--win-border-dark);
  margin: 4px 12px;
  border-bottom: 1px solid var(--win-border-light);
}

/* Discord section in start menu */
.start-item.discord-item {
  color: #5865F2;
  font-weight: 600;
}
.start-item.discord-item:hover {
  background: #5865F2;
  color: #fff;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .model-grid,
  .setup-grid {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 600px) {
  #desktop-icons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: relative;
    top: 0;
    left: 0;
    padding: 8px;
    max-height: none;
    background: rgba(0,0,0,0.1);
  }

  .win95-window {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: calc(100vh - 36px) !important;
    max-height: none !important;
    border: none;
    z-index: 50 !important;
  }

  .model-grid,
  .setup-grid {
    grid-template-columns: 1fr;
  }

  #clippy { display: none; }
}

/* ========== SELECTION HIGHLIGHT ========== */
::selection {
  background: #000080;
  color: #fff;
}

/* ========== ANIMATION — Window Open ========== */
@keyframes window-open {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.win95-window:not(.hidden) {
  animation: window-open 0.15s ease-out;
}

/* ========== DISCORD CTA FLOATING ========== */
.discord-cta {
  position: fixed;
  bottom: 48px;
  left: 16px;
  z-index: 199;
  display: flex;
  align-items: center;
  gap: 8px;
}

.discord-cta a {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #5865F2;
  color: #fff;
  text-decoration: none;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-system);
  border: 2px solid;
  border-color: #7289da #4752c4 #4752c4 #7289da;
  box-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  transition: background 0.15s;
}

.discord-cta a:hover {
  background: #4752c4;
}

.discord-cta a:active {
  border-color: #4752c4 #7289da #7289da #4752c4;
}

.discord-cta svg {
  flex-shrink: 0;
}

/* ========== INSTALL WIZARD ========== */

/* Pulsing glow on desktop icon */
.install-wizard-icon .icon-img svg {
  animation: icon-pulse 2s ease-in-out infinite;
}
@keyframes icon-pulse {
  0%, 100% { filter: drop-shadow(1px 1px 1px rgba(0,0,0,0.4)); }
  50% { filter: drop-shadow(0 0 8px rgba(39,174,96,0.6)) drop-shadow(1px 1px 1px rgba(0,0,0,0.4)); }
}

#wizard-container {
  display: flex;
  flex-direction: column;
  min-height: 420px;
}

#wizard-row {
  display: flex;
  flex: 1;
  min-height: 0;
}

/* Sidebar */
#wizard-sidebar {
  width: 130px;
  background: linear-gradient(180deg, #000080, #1084d0);
  padding: 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}

.wizard-step-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 2px;
  cursor: default;
}

.wizard-step-indicator span {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  white-space: nowrap;
}

.wizard-step-indicator.active span {
  color: #fff;
  font-weight: 600;
}

.wizard-step-indicator.completed span {
  color: rgba(255,255,255,0.8);
}

.step-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.4);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px solid transparent;
}

.step-dot.active {
  background: #fff;
  color: #000080;
  border-color: #fff;
}

.step-dot.completed {
  background: #27ae60;
  color: #fff;
  border-color: #27ae60;
}

/* Content area */
#wizard-content {
  flex: 1;
  padding: 20px 24px;
  overflow-y: auto;
  background: #fff;
}

.wizard-step h2 {
  font-size: 16px;
  color: #000080;
  margin-bottom: 8px;
}

.wizard-step p {
  font-size: 12px;
  color: #333;
  line-height: 1.5;
  margin-bottom: 10px;
}

.wizard-hero {
  text-align: center;
  margin-bottom: 12px;
}

.wizard-info-box {
  background: #f0f8ff;
  border: 1px solid #b0d4f1;
  padding: 10px 14px;
  margin: 10px 0;
  font-size: 12px;
}

.wizard-info-box h3 {
  font-size: 12px;
  color: #000080;
  margin-bottom: 4px;
}

.wizard-info-box ul,
.wizard-info-box ol {
  padding-left: 18px;
  margin: 4px 0;
}

.wizard-info-box li {
  font-size: 11.5px;
  color: #444;
  margin-bottom: 3px;
  line-height: 1.4;
}

/* Platform selection */
.platform-options {
  display: flex;
  gap: 10px;
  margin: 14px 0;
  justify-content: center;
}

.platform-option input[type="radio"] {
  display: none;
}

.platform-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 20px;
  background: #f9f9f9;
  border: 2px solid;
  border-color: var(--win-border-light) var(--win-border-dark) var(--win-border-dark) var(--win-border-light);
  cursor: pointer;
  transition: background 0.1s;
  min-width: 100px;
}

.platform-card:hover {
  background: #e8e8ff;
}

.platform-card span {
  font-size: 12px;
  font-weight: 600;
  color: #333;
}

.platform-option input:checked + .platform-card {
  background: #000080;
  border-color: #000080;
}

.platform-option input:checked + .platform-card span {
  color: #fff;
}

.platform-option input:checked + .platform-card svg path,
.platform-option input:checked + .platform-card svg rect {
  fill: #fff;
}

/* Deploy options */
.deploy-options {
  display: flex;
  gap: 12px;
  margin: 12px 0;
}

.deploy-option {
  flex: 1;
  cursor: pointer;
}

.deploy-option input[type="radio"] {
  display: none;
}

.deploy-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 12px;
  background: #f9f9f9;
  border: 2px solid;
  border-color: var(--win-border-light) var(--win-border-dark) var(--win-border-dark) var(--win-border-light);
  text-align: center;
  transition: background 0.1s;
}

.deploy-card:hover {
  background: #e8e8ff;
}

.deploy-card h3 {
  font-size: 13px;
  color: #000080;
  margin: 4px 0 2px;
}

.deploy-card p {
  font-size: 11px;
  color: #555;
  line-height: 1.3;
  margin: 0;
}

.deploy-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 2px;
  color: #fff;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

.deploy-tag.free { background: #27ae60; }
.deploy-tag.cloud { background: #3498db; }

.deploy-option input:checked + .deploy-card {
  background: #e8e8ff;
  border-color: #000080;
  box-shadow: inset 0 0 0 1px #000080;
}

/* Terminal / Install command */
.install-command-box {
  margin: 12px 0;
  border: 2px solid;
  border-color: var(--win-border-dark) var(--win-border-light) var(--win-border-light) var(--win-border-dark);
  overflow: hidden;
}

.terminal-header {
  background: #2c2c2c;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.terminal-dot.red { background: #ff5f57; }
.terminal-dot.yellow { background: #febc2e; }
.terminal-dot.green { background: #28c840; }

.terminal-title {
  font-size: 11px;
  color: #999;
  margin-left: 8px;
}

.terminal-body {
  background: #1e1e1e;
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: #4ec9b0;
  overflow-x: auto;
  line-height: 1.6;
}

.terminal-body code {
  color: inherit;
  font-family: inherit;
  user-select: all;
}

.copy-cmd-btn {
  width: 100%;
  text-align: center;
  border-top: 1px solid #444;
  font-weight: 600;
  padding: 6px 16px;
}

.copy-cmd-btn.copied {
  background: #27ae60;
  color: #fff;
  border-color: #27ae60;
}

/* Alt install methods */
.alt-methods {
  margin: 8px 0;
}

.alt-methods summary {
  font-size: 11px;
  color: #000080;
  cursor: pointer;
  padding: 4px 0;
}

.alt-method {
  margin: 8px 0;
  font-size: 11px;
}

.alt-method strong {
  display: block;
  margin-bottom: 3px;
  color: #333;
}

.code-inline {
  background: #1e1e1e;
  color: #d4d4d4;
  padding: 6px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  overflow-x: auto;
  white-space: nowrap;
  border: 1px solid #444;
  cursor: pointer;
  user-select: all;
}

/* Config steps */
.config-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 12px 0;
}

.config-step {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px;
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
}

.config-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #000080;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.config-step-info h3 {
  font-size: 12px;
  color: #000080;
  margin-bottom: 2px;
}

.config-step-info p {
  font-size: 11px;
  color: #555;
  margin: 0;
  line-height: 1.4;
}

/* Done links */
.done-links {
  margin: 14px 0 10px;
}

.done-links-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

/* Wizard footer */
#wizard-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background: var(--win-bg);
  border-top: 2px solid;
  border-color: var(--win-border-light) transparent transparent transparent;
}

.wizard-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  margin: 0 12px;
}

.wizard-progress-bar {
  flex: 1;
  height: 14px;
  background: #fff;
  border: 2px solid;
  border-color: var(--win-border-dark) var(--win-border-light) var(--win-border-light) var(--win-border-dark);
}

.wizard-progress-fill {
  height: 100%;
  background: #27ae60;
  transition: width 0.3s;
}

#wizard-step-label {
  font-size: 10px;
  color: #666;
  white-space: nowrap;
}

/* Wizard responsive */
@media (max-width: 600px) {
  #wizard-sidebar { display: none; }
  #wizard-row { flex-direction: column; }
  .platform-options { flex-direction: column; align-items: center; }
  .deploy-options { flex-direction: column; }
}

/* ========== MENU BAR DROPDOWNS ========== */
.menu-bar {
  position: relative;
}

.menu-bar span {
  position: relative;
}

.menu-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--win-bg);
  border: 2px solid;
  border-color: var(--win-border-light) var(--win-border-darker) var(--win-border-darker) var(--win-border-light);
  box-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  min-width: 160px;
  z-index: 500;
  padding: 2px 0;
}

.menu-dropdown .menu-item {
  padding: 4px 24px 4px 12px;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}

.menu-dropdown .menu-item:hover {
  background: #000080;
  color: #fff;
}

.menu-dropdown .menu-item.disabled {
  color: #808080;
  cursor: default;
}

.menu-dropdown .menu-item.disabled:hover {
  background: transparent;
  color: #808080;
}

.menu-dropdown .menu-divider {
  height: 1px;
  background: var(--win-border-dark);
  margin: 3px 4px;
  border-bottom: 1px solid var(--win-border-light);
}

.menu-shortcut {
  font-size: 10px;
  color: #888;
  margin-left: auto;
}

.menu-dropdown .menu-item:hover .menu-shortcut {
  color: #ccc;
}

/* ========== CLAUDE CODE DOWNLOAD BANNER ========== */
.cc-download-banner {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  padding: 16px 18px;
  margin: 0;
  border-bottom: 2px solid var(--win-border-dark);
}

.cc-download-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.cc-download-header h3 {
  font-size: 15px;
  color: #fff;
  margin: 0 0 2px;
}

.cc-download-header p {
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  margin: 0;
}

.cc-download-buttons {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.cc-dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid;
  cursor: pointer;
  transition: all 0.15s;
}

.cc-dl-desktop {
  background: #d97706;
  color: #fff;
  border-color: #f59e0b #92400e #92400e #f59e0b;
}

.cc-dl-desktop:hover {
  background: #f59e0b;
}

.cc-dl-cli {
  background: #059669;
  color: #fff;
  border-color: #34d399 #065f46 #065f46 #34d399;
}

.cc-dl-cli:hover {
  background: #10b981;
}

.cc-download-commands {
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 10px 12px;
}

.cc-cmd-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.cc-cmd-label {
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  white-space: nowrap;
  min-width: 90px;
}

.cc-cmd-code {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #4ec9b0;
  background: rgba(0,0,0,0.4);
  padding: 4px 8px;
  cursor: pointer;
  user-select: all;
  flex: 1;
  overflow-x: auto;
  white-space: nowrap;
  border: 1px solid rgba(255,255,255,0.08);
  transition: background 0.15s;
}

.cc-cmd-code:hover {
  background: rgba(0,0,0,0.6);
  border-color: rgba(255,255,255,0.2);
}

.cc-cmd-code.copied {
  background: #059669;
  color: #fff;
  border-color: #059669;
}

.cc-cmd-code.copied::after {
  content: ' ✓ Copied!';
  font-family: var(--font-main);
  font-size: 10px;
}

.cc-cmd-hint {
  font-size: 10px;
  color: rgba(255,255,255,0.4);
  margin: 4px 0 0;
  font-style: italic;
}
