/* AutoCAD Dark Theme Mimic Stylesheet */
:root {
  --acad-bg-darkest: #14171c;
  --acad-titlebar-bg: #191c22;
  --acad-tabstrip-bg: #1e242d;
  --acad-tab-inactive: #9da7b7;
  --acad-tab-hover: #262e39;
  --acad-tab-active-bg: #2b313a;
  --acad-tab-active-text: #ffffff;
  --acad-tab-active-accent: #007acc;
  
  --acad-ribbon-bg: #2b313a;
  --acad-panel-footer-bg: #222730;
  --acad-panel-border: #3b4452;
  --acad-column-sep: #353d49;
  --acad-text-main: #dce2eb;
  --acad-text-dim: #8b96a5;
  
  /* Exact sampled hover color #272f3a and border #3b4554 / #4a5768 */
  --acad-btn-hover-bg: #272f3a;
  --acad-btn-hover-border: #4a5768;
  --acad-btn-active-bg: #1a2028;
  --acad-btn-active-border: #007acc;
  
  /* Exact sampled AutoCAD Tooltip colors */
  --acad-tt-bg: #ededed;
  --acad-tt-border: #767676;
  --acad-tt-title: #111111;
  --acad-tt-body: #333333;
  --acad-tt-divider: #cccccc;
  --acad-tt-subtext: #666666;
  
  --acad-font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --acad-font-mono: "Consolas", "Courier New", monospace;
}

/* Scoped AutoCAD Container */
.autocad-simulator-section {
  position: relative;
  background: transparent !important;
  border: none !important;
  overflow: visible;
}

.autocad-simulator-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 16px;
}

.autocad-window,
.autocad-window * {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

/* App Shell Wrapper */
.autocad-window {
  width: 100%;
  max-width: 1360px;
  background-color: var(--acad-bg-darkest);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: visible;
  margin: 0 auto;
  user-select: none;
  font-family: var(--acad-font-ui);
  color: var(--acad-text-main);
}

/* Responsive adjustments for smaller laptop monitors */
@media (max-height: 880px) {
  .autocad-simulator-container {
    padding: 10px 24px;
  }
  .autocad-window {
    max-width: 1240px;
  }
}

@media (max-height: 750px) {
  .autocad-simulator-container {
    padding: 6px 16px;
  }
  .autocad-window {
    max-width: 1200px;
  }
}

/* 1. Window Title Bar */
.title-bar {
  height: 30px;
  background-color: var(--acad-titlebar-bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  border-bottom: 1px solid #14171d;
  font-size: 11px;
  color: #adb7c4;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
}

.title-bar-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.acad-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 19px;
  height: 19px;
  background: #d82424;
  color: #ffffff;
  font-weight: 800;
  font-size: 11.5px;
  border-radius: 2px;
  letter-spacing: -0.5px;
}

.quick-access-toolbar {
  display: flex;
  align-items: center;
  gap: 2px;
}

.qat-btn {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  color: #aab5c2;
  cursor: pointer;
  transition: background 0.12s;
}

.qat-btn:hover {
  background-color: #272f3a;
  color: #ffffff;
}

.qat-btn svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

.title-bar-center {
  display: flex;
  align-items: center;
  font-size: 11px;
  color: #8c97a6;
  font-weight: 400;
}

.title-bar-center strong {
  color: #cdd5df;
  margin-left: 4px;
}

.title-bar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-box {
  background: #121418;
  border: 1px solid #2b323c;
  border-radius: 2px;
  padding: 2px 7px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  color: #667282;
  pointer-events: none;
  cursor: default;
  user-select: none;
}

.search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: #667282;
  font-size: 10.5px;
  width: 130px;
  pointer-events: none;
  cursor: default;
  user-select: none;
}

.window-controls {
  display: flex;
  align-items: center;
}

.win-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #adb7c4;
  font-size: 11px;
  transition: background 0.12s;
}

.win-btn:hover {
  background-color: #2c333e;
}

.win-btn.close:hover {
  background-color: #e81123;
  color: #ffffff;
}

/* 2. Ribbon Tabs Strip */
.ribbon-tabs-bar {
  height: 27px;
  background-color: var(--acad-tabstrip-bg);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 6px;
  border-bottom: 1px solid #14171d;
}

/* Mobile swipe hint hidden on desktop */
.mobile-swipe-hint {
  display: none;
}

.ribbon-tabs-list {
  display: flex;
  align-items: flex-end;
  height: 100%;
  gap: 1px;
}

.ribbon-tab {
  height: 26px;
  padding: 0 9px;
  display: flex;
  align-items: center;
  font-size: 10.5px;
  color: var(--acad-tab-inactive);
  cursor: default;
  pointer-events: none;
  user-select: none;
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
  transition: background 0.12s, color 0.12s;
  white-space: nowrap;
}

.ribbon-tab.active {
  background-color: var(--acad-tab-active-bg);
  color: var(--acad-tab-active-text);
  font-weight: 600;
  border-top: 2px solid var(--acad-tab-active-accent);
  pointer-events: none;
  cursor: default;
}

/* 3. Ribbon Body & Panels */
.ribbon-body {
  height: 106px;
  background-color: var(--acad-ribbon-bg);
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid #161a20;
  overflow: visible !important;
  position: relative;
  z-index: 5000 !important;
}

/* Ribbon Panel */
.ribbon-panel {
  display: flex;
  flex-direction: column;
  height: 106px;
  min-height: 106px;
  max-height: 106px;
  box-sizing: border-box;
  border-right: 1px solid var(--acad-panel-border);
  position: relative;
  flex-shrink: 0;
  overflow: visible !important;
}

.panel-content {
  height: 87px;
  min-height: 87px;
  max-height: 87px;
  flex: 0 0 87px;
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  padding: 2px 4px;
  overflow: visible !important;
}

.panel-column {
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2px;
  overflow: visible !important;
}

.column-separator {
  width: 1px;
  background-color: var(--acad-column-sep);
  margin: 2px 3px;
  align-self: stretch;
}

/* Ribbon Buttons */
.ribbon-btn,
.split-btn {
  display: flex;
  align-items: center;
  height: 25px;
  box-sizing: border-box;
  border-radius: 2px;
  cursor: pointer;
  position: relative;
  border: 1px solid transparent;
  transition: background-color 0.1s, border-color 0.1s;
  background-color: transparent;
}

.ribbon-btn {
  padding: 1px 4px;
  gap: 4px;
}

/* General Engineering 2-row layout */
.ribbon-panel[data-panel="General Engineering"] .ribbon-btn {
  height: 38px;
  padding: 2px 6px;
}

.ribbon-panel[data-panel="General Engineering"] .btn-icon {
  width: 24px;
  height: 24px;
}

/* Split Button Layout */
.split-btn {
  padding: 0;
  overflow: visible !important;
}

.split-btn-primary {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 1px 4px;
  height: 100%;
  flex: 1;
  min-width: 0;
  border-radius: 2px 0 0 2px;
}

.split-btn-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 100%;
  padding: 0 1px;
  border-radius: 0 2px 2px 0;
  border-left: 1px solid transparent;
  flex-shrink: 0;
}

.arrow-icon {
  font-size: 7.5px;
  color: #8c97a6;
  pointer-events: none;
  transition: transform 0.15s, color 0.15s;
}

/* Button Icons - Large and Crisp */
.btn-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  image-rendering: -webkit-optimize-contrast;
}

.btn-label {
  font-size: 10px;
  color: var(--acad-text-main);
  white-space: nowrap;
  font-weight: 400;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 110px;
}

.split-btn-primary .btn-label {
  max-width: 95px;
}

/* Hover States (Exact AutoCAD Match from Image 1 & 2) */
.ribbon-btn:hover {
  background-color: var(--acad-btn-hover-bg);
  border-color: var(--acad-btn-hover-border);
}

.split-btn:hover {
  background-color: var(--acad-btn-hover-bg);
  border-color: var(--acad-btn-hover-border);
}

.split-btn:hover .split-btn-arrow {
  border-left-color: rgba(255, 255, 255, 0.1);
}

.split-btn-primary:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.split-btn-arrow:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.split-btn-arrow:hover .arrow-icon {
  color: #ffffff;
}

/* Active / Pressed States */
.ribbon-btn:active,
.split-btn-primary:active {
  background-color: var(--acad-btn-active-bg);
  border-color: var(--acad-btn-active-border);
}

/* Open Split Button (Matches User Image 1 & 2 Blue Border) */
.split-btn.open {
  background-color: var(--acad-btn-hover-bg);
  border-color: #007acc !important;
  z-index: 6000 !important;
}

.split-btn.open .arrow-icon {
  color: #ffffff;
}

/* Active / Playing Tool Highlight (Visible when video tutorial is active) */
.ribbon-btn.is-playing,
.split-btn.is-playing {
  background-color: rgba(0, 162, 237, 0.28) !important;
  border-color: #00b4d8 !important;
  box-shadow: 0 0 10px rgba(0, 180, 216, 0.65), inset 0 0 4px rgba(0, 180, 216, 0.3) !important;
  position: relative !important;
}

.ribbon-btn.is-playing .btn-label,
.split-btn.is-playing .btn-label {
  color: #ffffff !important;
  font-weight: 600 !important;
  text-shadow: 0 0 4px rgba(0, 180, 216, 0.6);
}

.dropdown-item.is-playing {
  background-color: rgba(0, 162, 237, 0.28) !important;
  border-left: 3px solid #00f0ff !important;
  color: #ffffff !important;
}

/* Radar Pulse Badge on the Playing Tool */
.tool-playing-badge {
  position: absolute;
  top: 1px;
  right: 1px;
  width: 9px;
  height: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 50;
}

.tool-playing-badge .playing-dot {
  width: 6px;
  height: 6px;
  background-color: #00f0ff;
  border-radius: 50%;
  box-shadow: 0 0 6px #00f0ff;
}

.tool-playing-badge .playing-ping {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: #00f0ff;
  opacity: 0.85;
  animation: tool-ping 1.3s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes tool-ping {
  0% {
    transform: scale(0.9);
    opacity: 0.9;
  }
  75%, 100% {
    transform: scale(2.6);
    opacity: 0;
  }
}

/* Ribbon Panel Footer - strictly 19px across all panels for perfect horizontal alignment */
.panel-footer {
  height: 19px;
  min-height: 19px;
  max-height: 19px;
  flex: 0 0 19px;
  box-sizing: border-box;
  background-color: var(--acad-panel-footer-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid #1f242c;
  cursor: default;
}

.panel-title {
  font-size: 10px;
  color: var(--acad-text-dim);
  font-weight: 500;
  letter-spacing: 0.15px;
  text-align: center;
  padding: 0 4px;
  white-space: nowrap;
}

/* 4. Dropdown Menu Popup - Floats on TOP of Modelspace / Video Area! */
.autocad-window .dropdown-menu {
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  background-color: #1e242d !important;
  border: 1px solid #3d4a5c !important;
  border-radius: 2px !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(0, 122, 204, 0.3) !important;
  z-index: 9999999 !important;
  min-width: 220px;
  padding: 4px 0;
  display: none;
  flex-direction: column;
}

.autocad-window .split-btn.open .dropdown-menu,
.autocad-window .split-btn.open > .dropdown-menu,
.split-btn.open > .dropdown-menu {
  display: flex !important;
}

.autocad-window .dropdown-item {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 6px 12px !important;
  cursor: pointer !important;
  background: transparent !important;
  color: #e2e8f0 !important;
  text-decoration: none !important;
  transition: background 0.1s;
}

.autocad-window .dropdown-item:hover {
  background-color: #2e3948 !important;
  color: #ffffff !important;
}

.autocad-window .dropdown-item .btn-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.autocad-window .dropdown-item .item-label {
  font-size: 11px;
  color: #e2e8f0 !important;
  flex: 1;
  white-space: nowrap;
  font-weight: 500;
}

.autocad-window .dropdown-item .item-cli {
  font-size: 10.5px;
  color: #7b8b9f !important;
  font-family: var(--acad-font-mono);
  margin-left: 12px;
  font-weight: 600;
}

/* 5. AutoCAD Floating Tooltip (Matches Image 2) */
.autocad-tooltip {
  position: fixed !important;
  z-index: 99999999 !important;
  background-color: #ededed !important;
  border: 1px solid #767676 !important;
  border-radius: 2px !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5) !important;
  padding: 8px 11px !important;
  max-width: 320px !important;
  min-width: 190px !important;
  pointer-events: none !important;
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transition: opacity 0.15s ease !important;
  font-family: var(--acad-font-ui) !important;
}

.autocad-tooltip.visible {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.autocad-tooltip .tt-title {
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #111111 !important;
  line-height: 1.25 !important;
  margin-bottom: 4px !important;
}

.autocad-tooltip .tt-description {
  font-size: 11px !important;
  line-height: 1.4 !important;
  color: #333333 !important;
  margin-bottom: 6px !important;
}

.autocad-tooltip .tt-divider {
  border-top: 1px solid #cccccc !important;
  margin: 6px 0 !important;
}

.autocad-tooltip .tt-command-row {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  margin-bottom: 4px !important;
}

.autocad-tooltip .tt-command-icon {
  width: 18px !important;
  height: 18px !important;
  object-fit: contain !important;
  display: block !important;
}

.autocad-tooltip .tt-command-cli {
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #111111 !important;
  font-family: var(--acad-font-ui) !important;
}

.autocad-tooltip .tt-footer {
  font-size: 10px !important;
  color: #666666 !important;
}

/* 6. AutoCAD ModelSpace Viewport */
.modelspace-wrapper {
  position: relative;
  z-index: 1 !important;
  width: 100%;
  aspect-ratio: 1920 / 854;
  background-color: #000000;
  overflow: hidden;
  /* Eliminate small native cursor completely - only the full-screen AutoCAD crosshair is visible */
  cursor: none !important;
}

.modelspace-wrapper * {
  cursor: none !important;
}

.modelspace-img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none !important; /* Critical so mouse tracking is continuous with zero bubbling glitches */
  cursor: none !important;
}

.modelspace-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: none;
  background-color: #000000;
  cursor: default !important;
  pointer-events: none;
}

/* While video is playing: normal mouse shape */
.modelspace-wrapper.video-playing,
.modelspace-wrapper.video-playing * {
  cursor: default !important;
}

/* Over the CTA action button, use pointer */
.modelspace-cta,
.modelspace-cta *,
.cta-btn,
.cta-btn * {
  cursor: pointer !important;
}

/* Full-Screen AutoCAD Maximum Cursor (Canvas-based: 100% Solid Pure White, immune to extensions) */
.acad-crosshair-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 95;
}

/* Bigger & Deeply Tempting Call-to-Action in Model Space Center */
.modelspace-cta {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: auto;
}

.modelspace-cta.hidden {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translate(-50%, -50%) scale(0.92);
}

/* Dual Concentric Pulsing Radar Rings */
.cta-pulse-ring,
.cta-pulse-ring-2 {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 44px;
  border: 2px solid rgba(14, 165, 233, 0.85);
  pointer-events: none;
}

.cta-pulse-ring {
  animation: ctaPulse1 2.4s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

.cta-pulse-ring-2 {
  animation: ctaPulse2 2.4s cubic-bezier(0.24, 0, 0.38, 1) 1.2s infinite;
}

@keyframes ctaPulse1 {
  0% {
    transform: scale(0.98);
    opacity: 0.95;
    box-shadow: 0 0 12px rgba(14, 165, 233, 0.8);
  }
  60% {
    transform: scale(1.18);
    opacity: 0.2;
    box-shadow: 0 0 30px rgba(14, 165, 233, 0.4);
  }
  100% {
    transform: scale(1.28);
    opacity: 0;
  }
}

@keyframes ctaPulse2 {
  0% {
    transform: scale(0.98);
    opacity: 0.85;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.7);
  }
  60% {
    transform: scale(1.28);
    opacity: 0.15;
    box-shadow: 0 0 35px rgba(56, 189, 248, 0.3);
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

/* Ultra-Tempting Glowing Cyber CTA Button */
.cta-btn {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 36px;
  background: linear-gradient(135deg, rgba(6, 15, 33, 0.96) 0%, rgba(2, 60, 120, 0.96) 45%, rgba(0, 140, 224, 0.98) 100%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 2px solid #38bdf8;
  border-radius: 44px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.9), 0 0 35px rgba(0, 160, 255, 0.6), inset 0 0 18px rgba(56, 189, 248, 0.25);
  cursor: pointer !important;
  color: #ffffff;
  outline: none;
  transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
  user-select: none;
}

/* Animated Shimmer Light Reflection Sweep Across the Button */
.cta-btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -75%;
  width: 50%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: rotate(28deg);
  animation: ctaShimmer 3.2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes ctaShimmer {
  0% {
    left: -75%;
  }
  40% {
    left: 125%;
  }
  100% {
    left: 125%;
  }
}

.cta-btn * {
  cursor: pointer !important;
}

.cta-btn:hover {
  background: linear-gradient(135deg, rgba(2, 44, 98, 0.98) 0%, rgba(0, 122, 220, 0.98) 50%, rgba(14, 165, 233, 1) 100%);
  border-color: #7dd3fc;
  box-shadow: 0 22px 65px rgba(0, 122, 204, 0.8), 0 0 55px rgba(56, 189, 248, 0.8), inset 0 0 25px rgba(255, 255, 255, 0.4);
  transform: scale(1.06);
}

.cta-btn:active {
  transform: scale(0.97);
}

.cta-play-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  border-radius: 50%;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6), 0 0 20px rgba(56, 189, 248, 0.7);
  flex-shrink: 0;
  transition: transform 0.24s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cta-btn:hover .cta-play-icon {
  transform: scale(1.16) rotate(6deg);
  background: linear-gradient(135deg, #0ea5e9, #7dd3fc);
}

.cta-text-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.cta-main-text {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: #ffffff;
  line-height: 1.25;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 0 12px rgba(56, 189, 248, 0.4);
}

.cta-sub-text {
  font-size: 11.5px;
  color: #bae6fd;
  font-weight: 500;
  letter-spacing: 0.15px;
  margin-top: 3px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.cta-btn:hover .cta-sub-text {
  color: #f0f9ff;
}

.cta-badge {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 5px 12px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(234, 179, 8, 0.35));
  border: 1.5px solid #facc15;
  color: #fef08a;
  border-radius: 16px;
  margin-left: 8px;
  box-shadow: 0 0 14px rgba(250, 204, 21, 0.4);
  white-space: nowrap;
}

.cta-btn:hover .cta-badge {
  background: rgba(255, 255, 255, 0.25);
  border-color: #ffffff;
  color: #ffffff;
}

.cta-btn:hover .cta-sub-text {
  color: #e0f2fe;
}

.cta-badge {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  background: rgba(0, 122, 204, 0.35);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  border-radius: 12px;
  margin-left: 4px;
}

.cta-btn:hover .cta-badge {
  background: rgba(255, 255, 255, 0.2);
  border-color: #ffffff;
  color: #ffffff;
}

/* 7. Interactive AutoCAD Command Line Bar */
.autocad-cmdline-dock {
  background-color: #171b22;
  border-top: 1px solid #222934;
  padding: 4px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--acad-font-mono);
  font-size: 11px;
  color: #d1d9e6;
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
  cursor: default !important;
}

.cmd-input {
  cursor: text !important;
}

.cmd-prefix {
  color: #8c97a8;
  font-weight: 600;
}

.cmd-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--acad-font-mono);
  font-size: 11px;
  color: #ffffff;
}

.cmd-hint {
  font-size: 10px;
  color: #556273;
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVE STYLES
   ========================================================================== */
@media (max-width: 900px) {
  .autocad-simulator-container {
    padding: 8px 6px 20px 6px !important;
    overflow-x: auto;
  }

  .autocad-window {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 6px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
    border: 1px solid #1c232d !important;
    margin: 0 !important;
    overflow: hidden !important;
  }

  /* 1. Mobile Title Bar */
  .title-bar {
    height: 28px;
    padding: 0 8px;
  }
  .title-bar-left .quick-access-toolbar {
    display: none !important;
  }
  .title-bar-center {
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 78vw;
    color: #c5cedb;
  }
  .title-bar-right .search-box,
  .title-bar-right .window-controls {
    display: none !important;
  }

  /* 2. Mobile Swipe Helper Hint */
  .mobile-swipe-hint {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(90deg, #102436 0%, #0d3859 100%);
    border-bottom: 1px solid #1a517a;
    padding: 4px 10px;
    font-size: 10px;
    color: #bae6fd;
    user-select: none;
    line-height: 1.3;
  }
  .mobile-swipe-hint.dismissed {
    display: none !important;
  }
  .mobile-swipe-hint .hint-close {
    background: transparent;
    border: none;
    color: #7dd3fc;
    font-size: 14px;
    line-height: 1;
    padding: 0 4px;
    cursor: pointer;
  }

  /* 3. Mobile Ribbon Tabs - Hide middle dummy tabs so NSV Sprinkler is directly visible without scrolling */
  .ribbon-tabs-bar {
    height: 26px;
    padding: 0 6px;
    overflow: hidden !important;
  }
  .ribbon-tabs-bar::-webkit-scrollbar {
    display: none;
  }
  .ribbon-tabs-list {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    gap: 2px;
  }
  .ribbon-tabs-list .ribbon-tab:not(.active):not(:first-child):not(:nth-last-child(2)) {
    display: none !important;
  }
  .ribbon-tab {
    height: 24px;
    padding: 0 9px;
    font-size: 9.5px;
    flex-shrink: 0;
  }

  /* 4. Mobile Ribbon Body - Smooth Touch Swiping */
  .ribbon-body {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    height: 106px;
    scrollbar-width: thin;
    scrollbar-color: #3b4554 #1e242d;
    box-shadow: inset -12px 0 16px -8px rgba(0, 0, 0, 0.7);
  }
  .ribbon-body::-webkit-scrollbar {
    height: 4px;
  }
  .ribbon-body::-webkit-scrollbar-track {
    background: #1e242d;
  }
  .ribbon-body::-webkit-scrollbar-thumb {
    background: #3b4554;
    border-radius: 2px;
  }

  .ribbon-btn, .split-btn {
    touch-action: pan-x;
  }
  .split-btn-arrow {
    width: 18px; /* Slightly wider touch target */
  }

  /* 5. Mobile ModelSpace Viewport */
  .modelspace-wrapper {
    width: 100% !important;
    aspect-ratio: 1920 / 854;
    max-height: calc(100vh - 190px);
    background-color: #000;
  }

  /* 6. Mobile CTA Button */
  .modelspace-cta {
    width: 92%;
    max-width: 92%;
  }
  .cta-btn {
    width: 100%;
    max-width: 100%;
    padding: 10px 14px;
    gap: 10px;
    border-radius: 26px;
    border-width: 1.5px;
  }
  .cta-play-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
  }
  .cta-play-icon svg {
    width: 16px;
    height: 16px;
  }
  .cta-main-text {
    font-size: 11.5px;
    line-height: 1.25;
  }
  .cta-sub-text {
    display: none !important;
  }
  .cta-badge {
    font-size: 8.5px;
    padding: 2px 6px;
    margin-left: auto;
  }

  /* 7. Mobile Command Line Dock */
  .autocad-cmdline-dock {
    padding: 4px 8px;
    font-size: 10px;
    border-radius: 0 !important;
  }
  .autocad-cmdline-dock .cmd-hint {
    display: none !important;
  }
  .autocad-cmdline-dock .cmd-input {
    font-size: 10px;
  }

  /* 8. Mobile Dropdown Menu */
  .autocad-window .dropdown-menu {
    max-width: 85vw;
  }
  .autocad-window .dropdown-item {
    padding: 9px 12px;
  }

  /* 9. Mobile Floating Tooltip */
  .autocad-tooltip {
    max-width: calc(100vw - 20px) !important;
    font-size: 10px;
  }
}

/* Landscape Mode on Mobile & Tablets */
@media (max-width: 900px) and (orientation: landscape) {
  .mobile-swipe-hint {
    display: none !important;
  }
  .title-bar {
    height: 24px;
  }
  .ribbon-tabs-bar {
    height: 22px;
  }
  .ribbon-tab {
    height: 20px;
    font-size: 9px;
    padding: 0 6px;
  }
  .ribbon-body {
    height: 94px;
  }
  .ribbon-panel {
    height: 94px;
    min-height: 94px;
    max-height: 94px;
  }
  .panel-content {
    height: 76px;
    min-height: 76px;
    max-height: 76px;
  }
  .ribbon-btn, .split-btn {
    height: 22px;
    padding: 1px 3px;
  }
  .btn-icon {
    width: 17px;
    height: 17px;
  }
  .btn-label {
    font-size: 9px;
    max-width: 80px;
  }
  .panel-footer {
    height: 17px;
    min-height: 17px;
    max-height: 17px;
  }
  .panel-title {
    font-size: 8.5px;
  }
  .modelspace-wrapper {
    aspect-ratio: auto;
    height: calc(100vh - 164px);
  }
  .autocad-cmdline-dock {
    height: 22px;
    padding: 2px 8px;
  }
}

/* Cursor & Crosshair rules */
.modelspace-wrapper,
.modelspace-wrapper * {
  cursor: none !important;
}
.modelspace-wrapper.video-playing,
.modelspace-wrapper.video-playing * {
  cursor: default !important;
}
.modelspace-wrapper .cta-btn,
.modelspace-wrapper .cta-btn * {
  cursor: pointer !important;
}
.acad-crosshair-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 95;
}