/* ==================== Extras: boot, Siri v2, Mission Control, NC ==================== */

/* ---- Boot screen ---- */
#boot-screen {
  position: fixed; inset: 0; z-index: 5000; background: #000;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 42px;
  transition: opacity 0.55s ease;
}
#boot-screen.fade { opacity: 0; pointer-events: none; }
#boot-screen .boot-logo { width: 84px; height: 84px; color: #fff; }
#boot-screen .boot-bar { width: 210px; height: 5px; border-radius: 3px; background: rgba(255,255,255,0.22); overflow: hidden; }
#boot-screen .boot-bar-fill { width: 0%; height: 100%; border-radius: 3px; background: #fff; animation: bootFill 1.5s ease forwards; }
@keyframes bootFill { to { width: 100%; } }

/* ---- Siri v2 ---- */
.siri-orb-img {
  width: 64px; height: 64px; object-fit: contain;
  filter: drop-shadow(0 0 28px rgba(120,120,255,0.5));
  transition: transform 0.3s ease;
}
.siri-panel.listening .siri-orb-img { transform: scale(1.12); animation: siriPulse 1.1s ease-in-out infinite; }
@keyframes siriPulse { 0%,100% { filter: drop-shadow(0 0 22px rgba(120,120,255,0.5)); } 50% { filter: drop-shadow(0 0 46px rgba(255,110,180,0.75)); } }
.siri-wave { display: none; align-items: flex-end; gap: 4px; height: 26px; }
.siri-panel.listening .siri-wave { display: flex; }
.siri-wave span {
  width: 4px; border-radius: 2px; background: linear-gradient(180deg,#4facfe,#a78bfa,#ff6b9d);
  animation: siriBar 0.9s ease-in-out infinite;
}
.siri-wave span:nth-child(1) { height: 40%; animation-delay: 0s; }
.siri-wave span:nth-child(2) { height: 90%; animation-delay: 0.12s; }
.siri-wave span:nth-child(3) { height: 60%; animation-delay: 0.24s; }
.siri-wave span:nth-child(4) { height: 100%; animation-delay: 0.36s; }
.siri-wave span:nth-child(5) { height: 50%; animation-delay: 0.48s; }
@keyframes siriBar { 0%,100% { transform: scaleY(0.4); } 50% { transform: scaleY(1); } }
.siri-transcript {
  width: 100%; max-height: 220px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px;
  padding: 4px 2px;
}
.siri-msg {
  max-width: 85%; padding: 8px 13px; border-radius: 16px; font-size: 13px; line-height: 1.45;
  animation: menuIn 0.18s ease;
}
.siri-msg.user { align-self: flex-end; background: #0a84ff; color: #fff; border-bottom-right-radius: 4px; }
.siri-msg.siri { align-self: flex-start; background: rgba(255,255,255,0.1); color: #f5f5f7; border-bottom-left-radius: 4px; }
.siri-input-row { display: flex; width: 100%; gap: 8px; align-items: center; }
.siri-input-row .siri-input { flex: 1; margin: 0; }
.siri-mic, .siri-voice-toggle {
  width: 38px; height: 38px; flex-shrink: 0; border-radius: 50%; border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.08); color: #f5f5f7; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: all 0.2s;
}
.siri-mic svg, .siri-voice-toggle svg { width: 17px; height: 17px; }
.siri-mic:hover, .siri-voice-toggle:hover { background: rgba(255,255,255,0.16); }
.siri-mic.live { background: #ff453a; border-color: #ff453a; box-shadow: 0 0 18px rgba(255,69,58,0.6); animation: siriPulse 1.1s infinite; }
.siri-voice-toggle { opacity: 0.45; }
.siri-voice-toggle.on { opacity: 1; background: rgba(10,132,255,0.35); border-color: rgba(10,132,255,0.6); }

/* ---- Mission Control ---- */
.mission-control {
  position: fixed; inset: 0; z-index: 1400; background: rgba(0,0,0,0.35);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.18s ease;
}
.mission-control.active { opacity: 1; }
.mission-control.hidden { display: none; }
.mc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 22px; padding: 40px; max-width: 900px; width: 100%; }
.mc-card {
  background: rgba(40,40,46,0.85); border: 1px solid rgba(255,255,255,0.14); border-radius: 16px;
  padding: 26px 16px; display: flex; flex-direction: column; align-items: center; gap: 12px;
  cursor: pointer; transition: transform 0.15s ease, border-color 0.15s ease;
  transform: scale(0.92);
}
.mission-control.active .mc-card { transform: scale(1); }
.mc-card:hover { transform: scale(1.05); border-color: rgba(10,132,255,0.6); }
.mc-card-title { font-size: 13px; font-weight: 600; color: #f5f5f7; }
.mc-empty, .nc-empty { color: rgba(255,255,255,0.55); font-size: 15px; text-align: center; padding: 30px; }
.window.mc-shrink { transform: scale(0.92); transition: transform 0.18s ease; }

/* ---- Notification Center ---- */
.notification-center {
  position: fixed; top: 32px; right: 0; bottom: 0; width: 330px; z-index: 1350;
  background: rgba(28,28,32,0.82); backdrop-filter: blur(26px); -webkit-backdrop-filter: blur(26px);
  border-left: 1px solid rgba(255,255,255,0.12); padding: 18px 14px; overflow-y: auto;
  transform: translateX(100%); transition: transform 0.25s cubic-bezier(0.4,0,0.2,1);
  display: flex; flex-direction: column; gap: 14px;
}
.notification-center.active { transform: translateX(0); }
.notification-center.hidden { display: none; }
.nc-header { padding: 4px 6px; }
.nc-date-big { font-size: 26px; font-weight: 700; color: #f5f5f7; }
.nc-date-sub { font-size: 13px; color: rgba(255,255,255,0.55); }
.nc-list { display: flex; flex-direction: column; gap: 10px; }
.nc-card {
  display: flex; gap: 10px; align-items: flex-start; background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.08); border-radius: 14px; padding: 11px 12px; cursor: pointer;
  transition: background 0.15s;
}
.nc-card:hover { background: rgba(255,255,255,0.15); }
.nc-icon { font-size: 20px; }
.nc-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.nc-body b { font-size: 13px; color: #f5f5f7; }
.nc-body span { font-size: 12px; color: rgba(255,255,255,0.65); line-height: 1.35; }
.nc-time { font-size: 11px; color: rgba(255,255,255,0.45); flex-shrink: 0; }
.nc-clear {
  align-self: center; padding: 6px 18px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08); color: #f5f5f7; font-size: 12px; cursor: pointer;
}
.nc-clear:hover { background: rgba(255,255,255,0.16); }

/* ---- GitHub app ---- */
.gh-header { display: flex; align-items: center; gap: 12px; }
.gh-avatar { width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg,#A18CD1,#FBC2EB); display: flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; flex-shrink: 0; object-fit: cover; }
.gh-follow { padding: 5px 14px; border-radius: 999px; background: #238636; color: #fff; font-size: 12px; font-weight: 600; text-decoration: none; flex-shrink: 0; }
.gh-follow:hover { background: #2ea043; }
.gh-stats { display: flex; gap: 10px; }
.gh-stat { flex: 1; text-align: center; background: rgba(255,255,255,0.06); border-radius: 10px; padding: 9px 4px; }
.gh-stat b { display: block; font-size: 17px; color: #f5f5f7; }
.gh-stat span { font-size: 11px; color: #a0a0a8; }
.gh-repos { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 9px; min-height: 0; }
.gh-repo { display: block; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 11px 13px; text-decoration: none; transition: background 0.15s; }
.gh-repo:hover { background: rgba(255,255,255,0.11); }
.gh-repo-top { display: flex; justify-content: space-between; align-items: center; }
.gh-repo-top b { color: #58a6ff; font-size: 13.5px; }
.gh-stars { font-size: 11px; color: #e3b341; }
.gh-repo p { margin: 5px 0; font-size: 12px; color: #a0a0a8; line-height: 1.4; }
.gh-repo-meta { display: flex; gap: 14px; font-size: 11px; color: rgba(255,255,255,0.5); }
.gh-lang { color: #f5f5f7; }
.gh-error { color: #a0a0a8; font-size: 13px; text-align: center; padding: 18px; }
.gh-error a { color: #58a6ff; }

/* ---- Calculator ---- */
.calc-app { height: 100%; display: flex; flex-direction: column; gap: 10px; padding: 14px; }
.calc-display { font-size: 42px; font-weight: 300; color: #f5f5f7; text-align: right; padding: 12px 8px; min-height: 64px; word-break: break-all; }
.calc-grid { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.calc-key { border: none; border-radius: 999px; font-size: 18px; color: #f5f5f7; background: rgba(255,255,255,0.12); cursor: pointer; transition: filter 0.1s; font-family: inherit; }
.calc-key:active { filter: brightness(1.5); }
.calc-key.fn { background: rgba(255,255,255,0.28); color: #000; font-weight: 600; }
.calc-key.op { background: #ff9f0a; font-weight: 600; }
.calc-key.zero { grid-column: span 2; }

/* ---- Photos ---- */
.photos-grid { flex: 1; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; min-height: 0; }
.photo-thumb { aspect-ratio: 16/10; border-radius: 10px; background-size: cover; background-position: center; cursor: pointer; border: 2px solid transparent; transition: transform 0.15s, border-color 0.15s; }
.photo-thumb:hover { transform: scale(1.04); }
.photo-thumb.current { border-color: #0a84ff; }

/* ---- 2048 ---- */
.g2048 { height: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 14px; outline: none; }
.g2048-top { width: 100%; max-width: 320px; display: flex; justify-content: space-between; align-items: center; }
.g2048-score { font-size: 14px; color: #a0a0a8; }
.g2048-score b { color: #f5f5f7; }
.g2048-new { padding: 6px 14px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.08); color: #f5f5f7; cursor: pointer; font-family: inherit; font-size: 12px; }
.g2048-board { position: relative; width: 320px; max-width: 100%; aspect-ratio: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; background: rgba(255,255,255,0.06); padding: 8px; border-radius: 12px; }
.g2048-cell { display: flex; align-items: center; justify-content: center; border-radius: 8px; background: rgba(255,255,255,0.05); font-weight: 700; font-size: 24px; color: #f5f5f7; }
.g2048-cell.v2 { background: rgba(255,255,255,0.12); }
.g2048-cell.v4 { background: rgba(255,255,255,0.2); }
.g2048-cell.v8 { background: #ff9f0a; }
.g2048-cell.v16 { background: #ff6961; }
.g2048-cell.v32 { background: #ff453a; }
.g2048-cell.v64 { background: #e0301e; }
.g2048-cell.v128 { background: #ffd60a; color: #333; font-size: 21px; }
.g2048-cell.v256 { background: #30d158; font-size: 21px; }
.g2048-cell.v512 { background: #0a84ff; font-size: 21px; }
.g2048-cell.v1024, .g2048-cell.v2048 { background: linear-gradient(135deg,#4facfe,#a78bfa,#ff6b9d); font-size: 18px; }
.g2048-over { position: absolute; inset: 8px; border-radius: 12px; background: rgba(0,0,0,0.72); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; font-size: 24px; font-weight: 700; color: #fff; }
.g2048-final { font-size: 14px; font-weight: 400; color: rgba(255,255,255,0.75); }
.g2048-hint { font-size: 11.5px; color: rgba(255,255,255,0.45); }

/* ---- Window edge snapping ---- */
.window.snapped-left, .window.snapped-right { border-radius: 0; }

/* ---- Mobile fallback card ---- */
#mobile-card {
  position: fixed; inset: 0; z-index: 6000; background: rgba(0,0,0,0.88);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  transition: opacity 0.4s ease;
}
#mobile-card.hide { opacity: 0; pointer-events: none; }
.mobile-card-inner {
  background: rgba(35,35,40,0.9); border: 1px solid rgba(255,255,255,0.14); border-radius: 24px;
  padding: 32px 26px; max-width: 340px; width: 100%; text-align: center;
  display: flex; flex-direction: column; gap: 10px;
}
.mobile-card-inner h2 { margin: 6px 0 0; color: #f5f5f7; font-size: 21px; }
.mobile-card-inner p { margin: 0; color: #a0a0a8; font-size: 12.5px; line-height: 1.45; }
.mobile-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.mobile-links a { padding: 10px; border-radius: 12px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.1); color: #f5f5f7; text-decoration: none; font-size: 13px; font-weight: 600; }
.mobile-links a:hover { background: rgba(255,255,255,0.16); }
#mobile-enter { margin-top: 14px; padding: 12px; border: none; border-radius: 12px; background: #0a84ff; color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; }
.mobile-note { font-size: 11px; color: rgba(255,255,255,0.4); }

/* ---- Contact copy buttons ---- */
.copy-btn {
  margin-left: 6px; padding: 1px 7px; border-radius: 6px; font-size: 11px;
  border: 1px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.07);
  color: #f5f5f7; cursor: pointer; transition: background 0.15s;
}
.copy-btn:hover { background: rgba(255,255,255,0.18); }

/* ==================== v3.0 feature pack styles ==================== */

/* ---- Spotlight intelligence ---- */
.spotlight-kind { margin-left: auto; font-size: 10px; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 0.5px; }
.spotlight-calc { font-size: 17px; padding: 14px 16px; }

/* ---- ⌘K Command palette ---- */
.cmdk-overlay { position: fixed; inset: 0; z-index: 1500; background: rgba(0,0,0,0.3); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: flex; align-items: flex-start; justify-content: center; padding-top: 16vh; animation: menuIn 0.14s ease; }
.cmdk-overlay.hidden { display: none; }
.cmdk-panel { width: 540px; max-width: 92vw; background: rgba(32,32,38,0.94); border: 1px solid rgba(255,255,255,0.14); border-radius: 16px; box-shadow: 0 28px 90px rgba(0,0,0,0.6); overflow: hidden; }
.cmdk-input { width: 100%; padding: 15px 18px; background: transparent; border: none; border-bottom: 1px solid rgba(255,255,255,0.09); color: #f5f5f7; font-size: 15px; font-family: inherit; outline: none; }
.cmdk-list { max-height: 330px; overflow-y: auto; padding: 6px; }
.cmdk-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px; font-size: 13.5px; color: #f5f5f7; cursor: pointer; }
.cmdk-item:hover, .cmdk-item.sel { background: rgba(10,132,255,0.32); }
.cmdk-kbd { font-size: 11px; color: rgba(255,255,255,0.4); border: 1px solid rgba(255,255,255,0.15); border-radius: 4px; padding: 1px 5px; }

/* ---- Menu bar extras ---- */
.menu-avail { display: flex; align-items: center; gap: 5px; font-size: 11px; color: rgba(255,255,255,0.85); padding: 2px 9px; border-radius: 999px; background: rgba(48,209,88,0.16); cursor: pointer; margin-right: 8px; white-space: nowrap; }
.avail-dot { width: 6px; height: 6px; border-radius: 50%; background: #30d158; box-shadow: 0 0 6px #30d158; animation: availPulse 2s infinite; }
@keyframes availPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.45; } }
.presence-chip { background: rgba(88,166,255,0.14); cursor: default; display: none; }
.presence-chip.show { display: flex; }
.menu-battery { display: flex; align-items: center; gap: 5px; margin-right: 8px; font-size: 11px; color: rgba(255,255,255,0.85); }
.bat-body { width: 22px; height: 11px; border: 1px solid rgba(255,255,255,0.5); border-radius: 3px; display: inline-flex; padding: 1px; position: relative; }
.bat-body::after { content: ''; position: absolute; right: -3px; top: 3px; width: 2px; height: 3px; background: rgba(255,255,255,0.5); border-radius: 0 1px 1px 0; }
.bat-fill { background: #30d158; border-radius: 1px; }
.bat-bolt { font-size: 9px; }

/* ---- Guestbook ---- */
.gb-form { display: flex; flex-direction: column; gap: 8px; }
.gb-form input { padding: 9px 12px; border-radius: 9px; border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.06); color: #f5f5f7; font-family: inherit; font-size: 13px; outline: none; }
.gb-form input:focus { border-color: rgba(10,132,255,0.6); }
.gb-form button { padding: 9px; border: none; border-radius: 9px; background: #0a84ff; color: #fff; font-weight: 600; font-family: inherit; font-size: 13px; cursor: pointer; }
.gb-form button:hover { background: #0066cc; }
.gb-list { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.gb-entry { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); border-radius: 11px; padding: 10px 12px; }
.gb-entry.pinned { border-color: rgba(10,132,255,0.45); background: rgba(10,132,255,0.09); }
.gb-top { display: flex; justify-content: space-between; font-size: 12.5px; }
.gb-top b { color: #f5f5f7; } .gb-top span { color: rgba(255,255,255,0.4); font-size: 11px; }
.gb-msg { font-size: 12.5px; color: rgba(255,255,255,0.75); margin-top: 4px; line-height: 1.4; }
.gb-empty { color: rgba(255,255,255,0.4); text-align: center; padding: 20px; font-size: 13px; }

/* ---- Music visualizer ---- */
.mu-viz { width: 100%; height: 56px; border-radius: 10px; background: rgba(0,0,0,0.25); }

/* ---- GitHub heatmap ---- */
.hm-grid { display: flex; gap: 3px; }
.hm-week { display: flex; flex-direction: column; gap: 3px; }
.hm-cell { width: 11px; height: 11px; border-radius: 2.5px; background: rgba(255,255,255,0.06); }
.hm-cell.lv1 { background: #0e4429; } .hm-cell.lv2 { background: #006d32; }
.hm-cell.lv3 { background: #26a641; } .hm-cell.lv4 { background: #39d353; }
.hm-legend { display: flex; align-items: center; gap: 4px; margin-top: 10px; font-size: 11px; color: rgba(255,255,255,0.45); }

/* ---- Case study modal ---- */
.case-overlay { position: fixed; inset: 0; z-index: 1600; background: rgba(0,0,0,0.45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: flex; align-items: center; justify-content: center; animation: menuIn 0.18s ease; padding: 20px; }
.case-panel { position: relative; width: 560px; max-width: 94vw; max-height: 84vh; overflow-y: auto; background: rgba(30,30,36,0.97); border: 1px solid rgba(255,255,255,0.14); border-radius: 20px; padding: 28px; box-shadow: 0 30px 100px rgba(0,0,0,0.65); }
.case-close { position: absolute; top: 14px; right: 14px; width: 28px; height: 28px; border-radius: 50%; border: none; background: rgba(255,255,255,0.1); color: #f5f5f7; cursor: pointer; font-size: 12px; }
.case-close:hover { background: rgba(255,69,58,0.8); }
.case-tag { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; color: #0a84ff; margin-bottom: 6px; }
.case-panel h2 { margin: 0 0 2px; font-size: 22px; color: #f5f5f7; }
.case-sub { font-size: 12.5px; color: rgba(255,255,255,0.5); margin-bottom: 16px; }
.case-sec { margin-bottom: 14px; }
.case-sec h4 { margin: 0 0 6px; font-size: 13px; color: #0a84ff; text-transform: uppercase; letter-spacing: 0.6px; }
.case-sec p, .case-sec li { font-size: 13px; color: rgba(255,255,255,0.78); line-height: 1.55; margin: 0; }
.case-sec ul { margin: 0; padding-left: 18px; }
.case-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin: 14px 0; }
.case-metric { background: rgba(10,132,255,0.1); border: 1px solid rgba(10,132,255,0.28); border-radius: 10px; padding: 9px 11px; font-size: 12px; color: #f5f5f7; text-align: center; }
.case-lesson { font-style: italic; color: rgba(255,255,255,0.85) !important; }
.case-link { display: inline-block; margin-top: 6px; padding: 8px 18px; border-radius: 999px; background: #0a84ff; color: #fff; text-decoration: none; font-size: 13px; font-weight: 600; }
.case-link:hover { background: #0066cc; }
.case-btn { margin-top: 8px; padding: 5px 12px; border-radius: 7px; border: 1px solid rgba(10,132,255,0.5); background: rgba(10,132,255,0.14); color: #58a6ff; font-size: 11.5px; font-weight: 600; cursor: pointer; font-family: inherit; }
.case-btn:hover { background: rgba(10,132,255,0.3); }

/* ---- Blog ---- */
.blog-app { overflow: hidden; }
.blog-list, .blog-reader { flex: 1; overflow-y: auto; min-height: 0; }
.blog-reader.hidden, .blog-list.hidden { display: none; }
.blog-row { padding: 13px 14px; border-radius: 12px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.07); margin-bottom: 10px; cursor: pointer; transition: background 0.15s, transform 0.15s; }
.blog-row:hover { background: rgba(255,255,255,0.1); transform: translateX(3px); }
.blog-tag { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: 0.8px; color: #bf5af2; text-transform: uppercase; margin-bottom: 4px; }
.blog-title { font-size: 15px; font-weight: 600; color: #f5f5f7; margin-bottom: 3px; }
.blog-excerpt { font-size: 12px; color: rgba(255,255,255,0.6); line-height: 1.4; }
.blog-date { font-size: 11px; color: rgba(255,255,255,0.35); margin-top: 5px; }
.blog-back { align-self: flex-start; padding: 6px 14px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.14); background: rgba(255,255,255,0.07); color: #f5f5f7; font-size: 12px; cursor: pointer; margin-bottom: 12px; font-family: inherit; }
.blog-back:hover { background: rgba(255,255,255,0.15); }
#blog-body h2 { color: #f5f5f7; margin: 4px 0 2px; }
#blog-body p { font-size: 13.5px; color: rgba(255,255,255,0.8); line-height: 1.65; }
#blog-body strong { color: #f5f5f7; }

/* ---- Playground ---- */
.pg-bar { display: flex; align-items: center; gap: 8px; }
.pg-label { font-size: 12px; color: #a0a0a8; font-family: 'SF Mono', monospace; }
.pg-run { margin-left: auto; padding: 6px 16px; border: none; border-radius: 8px; background: #30d158; color: #062b13; font-weight: 700; font-size: 12.5px; cursor: pointer; font-family: inherit; }
.pg-run:hover { filter: brightness(1.1); }
.pg-clear { padding: 6px 12px; border: 1px solid rgba(255,255,255,0.14); border-radius: 8px; background: rgba(255,255,255,0.07); color: #f5f5f7; font-size: 12px; cursor: pointer; font-family: inherit; }
.pg-editor { flex: 1; min-height: 140px; background: #16161c; border: 1px solid rgba(255,255,255,0.09); border-radius: 10px; color: #f5f5f7; font-family: 'SF Mono', Menlo, monospace; font-size: 12.5px; line-height: 1.55; padding: 12px 14px; resize: none; outline: none; tab-size: 2; }
.pg-console { height: 34%; overflow-y: auto; background: #101014; border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; padding: 10px 12px; font-family: 'SF Mono', Menlo, monospace; font-size: 12px; }
.pg-line { padding: 1.5px 0; white-space: pre-wrap; word-break: break-word; }
.pg-line.log { color: #d4d4d8; } .pg-line.warn { color: #ffd60a; } .pg-line.err { color: #ff453a; }

/* ---- Messages (testimonials) ---- */
.msg-app { display: flex; height: 100%; }
.msg-sidebar { width: 190px; flex-shrink: 0; border-right: 1px solid rgba(255,255,255,0.08); overflow-y: auto; }
.msg-thread { display: flex; gap: 9px; align-items: center; padding: 10px; cursor: pointer; border-radius: 10px; margin: 4px; }
.msg-thread:hover, .msg-thread.active { background: rgba(255,255,255,0.09); }
.msg-avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg,#0a84ff,#bf5af2); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.msg-thread-info { min-width: 0; } .msg-thread-info b { display: block; font-size: 12px; color: #f5f5f7; } .msg-thread-info span { display: block; font-size: 10.5px; color: rgba(255,255,255,0.5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.msg-head { padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.msg-head b { display: block; font-size: 13px; color: #f5f5f7; } .msg-head span { font-size: 11px; color: rgba(255,255,255,0.45); }
.msg-flow { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.msg-bubble { max-width: 78%; padding: 8px 12px; border-radius: 16px; font-size: 13px; line-height: 1.45; }
.msg-bubble.theirs { align-self: flex-start; background: rgba(255,255,255,0.12); color: #f5f5f7; border-bottom-left-radius: 4px; }
.msg-bubble.mine { align-self: flex-end; background: #0a84ff; color: #fff; border-bottom-right-radius: 4px; }
.msg-read { align-self: flex-end; font-size: 10px; color: rgba(255,255,255,0.35); }

/* ---- Calendar scheduling ---- */
.cal-schedule { margin-top: 16px; border-top: 1px solid rgba(255,255,255,0.08); padding-top: 14px; }
.cal-avail { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: #f5f5f7; flex-wrap: wrap; }
.cal-avail-sub { font-size: 11px; color: rgba(255,255,255,0.5); width: 100%; padding-left: 13px; }
.cal-slots { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.cal-slot { padding: 6px 11px; border-radius: 999px; border: 1px solid rgba(10,132,255,0.4); background: rgba(10,132,255,0.1); color: #58a6ff; font-size: 11.5px; cursor: pointer; font-family: inherit; }
.cal-slot:hover { background: rgba(10,132,255,0.28); }
.cal-book { display: inline-block; padding: 8px 16px; border-radius: 9px; background: #0a84ff; color: #fff; text-decoration: none; font-size: 12.5px; font-weight: 600; }
.cal-book:hover { background: #0066cc; }

/* ---- QR app ---- */
.qr-box { padding: 12px; background: #fff; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.4); }
.qr-box canvas { width: 200px; height: 200px; image-rendering: pixelated; display: block; }
.qr-url { font-size: 11.5px; color: #58a6ff; font-family: 'SF Mono', monospace; }
.qr-dl { padding: 8px 18px; border-radius: 9px; border: 1px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.08); color: #f5f5f7; font-size: 12.5px; font-weight: 600; cursor: pointer; font-family: inherit; }
.qr-dl:hover { background: rgba(255,255,255,0.16); }

/* ---- Guided tour ---- */
#tour-bubble { position: fixed; bottom: 110px; left: 50%; transform: translateX(-50%) translateY(10px); z-index: 1700; max-width: 380px; padding: 13px 18px; border-radius: 16px; background: rgba(30,30,36,0.95); border: 1px solid rgba(10,132,255,0.5); color: #f5f5f7; font-size: 13.5px; line-height: 1.5; box-shadow: 0 14px 44px rgba(0,0,0,0.55), 0 0 24px rgba(10,132,255,0.25); opacity: 0; transition: opacity 0.3s, transform 0.3s; cursor: pointer; text-align: center; }
#tour-bubble.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#tour-bubble::after { content: 'click to skip'; display: block; font-size: 10px; color: rgba(255,255,255,0.35); margin-top: 5px; }

/* ---- Screen saver ---- */
#screen-saver { position: fixed; inset: 0; z-index: 4500; background: #000; cursor: none; }
#screen-saver canvas { width: 100%; height: 100%; display: block; }

/* ---- Achievements ---- */
.ach-toast { position: fixed; top: 44px; right: 16px; z-index: 4600; display: flex; align-items: center; gap: 11px; padding: 12px 16px; border-radius: 15px; background: rgba(32,32,38,0.96); border: 1px solid rgba(255,214,10,0.4); box-shadow: 0 14px 40px rgba(0,0,0,0.5); transform: translateX(120%); transition: transform 0.35s cubic-bezier(0.34,1.3,0.64,1); max-width: 320px; }
.ach-toast.show { transform: translateX(0); }
.ach-icon { font-size: 26px; }
.ach-toast b { display: block; font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: #ffd60a; }
.ach-toast span { font-size: 12.5px; color: #f5f5f7; }

/* ---- Konami party mode ---- */
.party-mode .wallpaper { animation: partyHue 1.2s linear infinite !important; }
@keyframes partyHue { from { filter: hue-rotate(0deg) saturate(1.6); } to { filter: hue-rotate(360deg) saturate(1.6); } }

/* ---- Terminal matrix ---- */
.matrix-rain { display: block; width: 100%; border-radius: 8px; margin-top: 6px; }
