/* MOHAB Full-Bleed 3D Vehicle Configurator for Shopline 3.0 */
.mohab-config-root {
  --mcfg-green: #384521;
  --mcfg-green-hover: #2c361a;
  --mcfg-gold: #d28f26;
  --mcfg-gold-hover: #b87b1e;
  --mcfg-nav-h: 48px;
  --mcfg-hud-ink: #ffffff;
  --mcfg-hud-muted: rgba(255, 255, 255, 0.64);
  --mcfg-hud-line: rgba(255, 255, 255, 0.24);
  font-family: "DIN Condensed", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  line-height: 1.4;
  color: var(--mcfg-hud-ink);
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  background: #6f7379;
}

.mohab-config-root *,
.mohab-config-root *::before,
.mohab-config-root *::after {
  box-sizing: border-box;
}

/* Full-bleed viewport showroom extending cleanly behind the translucent MOHAB navbar */
.mohab-config-root .mcfg {
  position: relative !important;
  width: 100% !important;
  height: 100vh !important;
  min-height: 640px !important;
  overflow: hidden !important;
  background: radial-gradient(120% 80% at 50% 8%, #4b4f54 0%, #7d8187 58%, #73777d 100%);
  user-select: none;
  -webkit-user-select: none;
  margin-top: 0 !important;
}

.mohab-config-root .mcfg[data-theme="dark"] {
  background: radial-gradient(110% 75% at 50% 10%, #23272e 0%, #111419 60%, #0d0f13 100%);
}

/* 3D WebGL stage locked full-bleed (prevents Shopline high-DPI canvas drift) */
.mohab-config-root .mcfg__stage {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
  cursor: grab;
  z-index: 1;
}

.mohab-config-root .mcfg__stage:active {
  cursor: grabbing;
}

.mohab-config-root .mcfg__stage canvas {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  outline: none !important;
}

/* ---- Minimalist Chery-Style Opening Splash Loader ---- */
.mohab-config-root .mcfg__loader {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background: radial-gradient(100% 80% at 50% 30%, #8b8f95 0%, #5b5f65 100%);
  transition: opacity 0.46s ease, visibility 0.46s ease;
}

.mohab-config-root .mcfg[data-theme="dark"] .mcfg__loader {
  background: radial-gradient(100% 80% at 50% 30%, #242830 0%, #0d0f13 100%);
}

.mohab-config-root .mcfg__loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.mohab-config-root .mcfg__loader-brand {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.2);
}

.mohab-config-root .mcfg__loader-ring-wrap {
  position: relative;
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
}

.mohab-config-root .mcfg__loader-svg {
  width: 82px;
  height: 82px;
  transform: rotate(-90deg);
}

.mohab-config-root .mcfg__loader-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.22);
  stroke-width: 2.5;
}

.mohab-config-root .mcfg__loader-progress {
  fill: none;
  stroke: #ffffff;
  stroke-width: 2.8;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.2s ease-out;
}

.mohab-config-root .mcfg__loader-pct {
  position: absolute;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}

.mohab-config-root .mcfg__loader-sub {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

/* Status / error toast */
.mohab-config-root .mcfg__status {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 25;
  padding: 12px 22px;
  border-radius: 999px;
  background: rgba(16, 18, 22, 0.84);
  color: #ffffff;
  font-size: 13px;
  letter-spacing: 0.04em;
  backdrop-filter: blur(12px);
  text-align: center;
  max-width: 82%;
}

.mohab-config-root .mcfg__status[hidden] {
  display: none;
}

/* ---- Top Center Segmented Switcher (Chery VR signature hairline tabs) ---- */
.mohab-config-root .mcfg__top {
  position: absolute;
  top: 66px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 12;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 170px);
  pointer-events: none;
}

.mohab-config-root .mcfg__vehicle-label {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.76);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
  white-space: nowrap;
}

.mohab-config-root .mcfg__tabs {
  display: flex;
  align-items: center;
  pointer-events: auto;
  overflow-x: auto;
  scrollbar-width: none;
  max-width: 100%;
}

.mohab-config-root .mcfg__tabs::-webkit-scrollbar {
  display: none;
}

.mohab-config-root .mcfg__tab {
  position: relative;
  appearance: none;
  border: 0;
  background: transparent;
  padding: 6px 24px 10px;
  color: rgba(255, 255, 255, 0.62);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.28);
  transition: color 0.2s ease;
}

.mohab-config-root .mcfg__tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background: rgba(24, 26, 30, 0.45);
  transition: background 0.22s ease, height 0.22s ease;
}

.mohab-config-root .mcfg[data-theme="dark"] .mcfg__tab::after {
  background: rgba(255, 255, 255, 0.2);
}

.mohab-config-root .mcfg__tab:hover {
  color: rgba(255, 255, 255, 0.9);
}

.mohab-config-root .mcfg__tab.is-active {
  color: #ffffff;
}

.mohab-config-root .mcfg__tab.is-active::after {
  height: 2.5px;
  background: #ffffff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.45);
}

/* ---- Left & Right Floating Action Rails (Chery HUD style) ---- */
.mohab-config-root .mcfg__rail {
  position: absolute;
  top: 136px;
  z-index: 12;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.mohab-config-root .mcfg__rail--left {
  left: 28px;
}

.mohab-config-root .mcfg__rail--right {
  right: 28px;
}

.mohab-config-root .mcfg__rail-btn {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #ffffff;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.mohab-config-root .mcfg__rail-btn[hidden] {
  display: none;
}

.mohab-config-root .mcfg__rail-btn:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

.mohab-config-root .mcfg__rail-icon {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.mohab-config-root .mcfg__rail-btn:hover .mcfg__rail-icon {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.52);
}

.mohab-config-root .mcfg__rail-btn.is-active .mcfg__rail-icon {
  background: rgba(255, 255, 255, 0.92);
  border-color: #ffffff;
  color: #1d1d1f;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
}

/* Signature Brand Gold hero badge on Right Rail (echoing Chery crimson badge) */
.mohab-config-root .mcfg__rail-btn--gold .mcfg__rail-icon {
  width: 44px;
  height: 44px;
  background: var(--mcfg-gold);
  border-color: rgba(255, 255, 255, 0.45);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(210, 143, 38, 0.46);
}

.mohab-config-root .mcfg__rail-btn--gold:hover .mcfg__rail-icon {
  background: var(--mcfg-gold-hover);
  border-color: #ffffff;
}

.mohab-config-root .mcfg__rail-btn--gold.is-bump .mcfg__rail-icon {
  animation: mcfg-bump 0.36s ease;
}

@keyframes mcfg-bump {
  0% { transform: scale(1); }
  45% { transform: scale(1.18); }
  100% { transform: scale(1); }
}

.mohab-config-root .mcfg__rail-badge {
  position: absolute;
  top: -4px;
  right: -5px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--mcfg-green);
  border: 1.5px solid #ffffff;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.mohab-config-root .mcfg__rail-badge[hidden] {
  display: none;
}

.mohab-config-root .mcfg__rail-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
}

.mohab-config-root .mcfg__zoom-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

.mohab-config-root .mcfg__zoom-btn {
  appearance: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.mohab-config-root .mcfg__zoom-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.55);
}

/* ---- 3D Pulsing Hotspots on Vehicle (Chery VR dots) ---- */
.mohab-config-root .mcfg__hotspot {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 9;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.mohab-config-root .mcfg__hotspot.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.mohab-config-root .mcfg__hotspot-btn {
  position: relative;
  transform: translate(-50%, -50%);
  appearance: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(4px);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  transition: transform 0.2s ease, background 0.2s ease;
}

.mohab-config-root .mcfg__hotspot-btn::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  animation: mcfg-pulse 2.2s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.mohab-config-root .mcfg__hotspot-core {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.85);
  transition: background 0.2s ease;
}

.mohab-config-root .mcfg__hotspot.has-mounted .mcfg__hotspot-core {
  background: var(--mcfg-gold);
  box-shadow: 0 0 12px rgba(210, 143, 38, 0.9);
}

.mohab-config-root .mcfg__hotspot-btn:hover {
  transform: translate(-50%, -50%) scale(1.12);
  background: rgba(255, 255, 255, 0.38);
}

@keyframes mcfg-pulse {
  0% { transform: scale(0.82); opacity: 0.85; }
  100% { transform: scale(1.6); opacity: 0; }
}

.mohab-config-root .mcfg__hotspot-tip {
  position: absolute;
  top: 0;
  left: 22px;
  transform: translateY(-50%);
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(18, 20, 24, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mohab-config-root .mcfg__hotspot.is-left .mcfg__hotspot-tip {
  left: auto;
  right: 22px;
}

.mohab-config-root .mcfg__hotspot:hover .mcfg__hotspot-tip,
.mohab-config-root .mcfg__hotspot:focus-within .mcfg__hotspot-tip {
  opacity: 1;
}

.mohab-config-root .mcfg__hotspot-tip strong {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
}

.mohab-config-root .mcfg__hotspot-tip span {
  font-size: 11px;
  color: var(--mcfg-gold);
  letter-spacing: 0.04em;
}

/* ---- Bottom Center Frosted Semi-Arc Accessory Dock ---- */
.mohab-config-root .mcfg__dock {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  z-index: 14;
  width: min(740px, calc(100% - 32px));
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Circular apex chevron collapse handle */
.mohab-config-root .mcfg__dock-toggle {
  appearance: none;
  position: relative;
  z-index: 2;
  margin-bottom: -15px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #ffffff;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
  transition: background 0.2s ease, transform 0.28s ease;
}

.mohab-config-root .mcfg__dock-toggle:hover {
  background: rgba(255, 255, 255, 0.42);
}

.mohab-config-root .mcfg__dock-toggle svg {
  transition: transform 0.3s ease;
}

.mohab-config-root .mcfg__dock.is-collapsed .mcfg__dock-toggle svg {
  transform: rotate(180deg);
}

/* Translucent curved glass dome */
.mohab-config-root .mcfg__dock-shell {
  width: 100%;
  padding: 24px 28px 16px;
  border-radius: 50% 50% 0 0 / 48px 48px 0 0;
  background: radial-gradient(
    115% 130% at 50% 100%,
    rgba(255, 255, 255, 0.28) 0%,
    rgba(230, 234, 240, 0.16) 55%,
    rgba(195, 200, 208, 0.08) 100%
  );
  border-top: 1px solid rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 -10px 36px rgba(0, 0, 0, 0.14);
  transition: padding 0.3s ease, max-height 0.32s ease, opacity 0.25s ease;
}

.mohab-config-root .mcfg[data-theme="dark"] .mcfg__dock-shell {
  background: radial-gradient(
    115% 130% at 50% 100%,
    rgba(38, 42, 50, 0.78) 0%,
    rgba(20, 22, 28, 0.62) 65%,
    rgba(14, 16, 20, 0.42) 100%
  );
  border-top-color: rgba(255, 255, 255, 0.18);
}

.mohab-config-root .mcfg__dock.is-collapsed .mcfg__dock-body {
  display: none;
}

.mohab-config-root .mcfg__dock.is-collapsed .mcfg__dock-shell {
  width: auto;
  min-width: 290px;
  padding: 18px 24px 12px;
  border-radius: 32px 32px 0 0;
}

/* Accessory groups inside dock */
.mohab-config-root .mcfg__group {
  display: none;
  justify-content: center;
  align-items: stretch;
  gap: 16px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 4px 4px 12px;
}

.mohab-config-root .mcfg__group::-webkit-scrollbar {
  display: none;
}

.mohab-config-root .mcfg__group.is-active {
  display: flex;
  animation: mcfg-fade-up 0.25s ease both;
}

@keyframes mcfg-fade-up {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Circular swatch-style accessory card (Chery color-disc DNA × MOHAB gear) */
.mohab-config-root .mcfg-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 118px;
  max-width: 148px;
  padding: 8px 10px;
  border-radius: 16px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.18s ease;
}

.mohab-config-root .mcfg-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.mohab-config-root .mcfg-card:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}

.mohab-config-root .mcfg-card__thumb {
  position: relative;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: rgba(244, 242, 238, 0.92);
  border: 2.5px solid rgba(255, 255, 255, 0.45);
  overflow: hidden;
  display: grid;
  place-items: center;
  color: #384521;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.mohab-config-root .mcfg-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mohab-config-root .mcfg-card.is-selected {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.32);
}

.mohab-config-root .mcfg-card.is-selected .mcfg-card__thumb {
  border-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(210, 143, 38, 0.78), 0 6px 18px rgba(0, 0, 0, 0.28);
  transform: scale(1.04);
}

.mohab-config-root .mcfg-card__check {
  position: absolute;
  top: 4px;
  right: 20px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--mcfg-green);
  border: 2px solid #ffffff;
  color: #ffffff;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.mohab-config-root .mcfg-card.is-selected .mcfg-card__check {
  opacity: 1;
  transform: scale(1);
}

.mohab-config-root .mcfg-card__name {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #ffffff;
  text-align: center;
  line-height: 1.2;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

.mohab-config-root .mcfg-card__price {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
}

/* Normalize Shopline product/price component inside dark/frosted HUD */
.mohab-config-root .mcfg-card__price * {
  color: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  margin: 0 !important;
  padding: 0 !important;
  display: inline !important;
}

/* Bottom summary strip inside dock */
.mohab-config-root .mcfg__dock-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  flex-wrap: wrap;
}

.mohab-config-root .mcfg__dock.is-collapsed .mcfg__dock-bar {
  border-top: 0;
  padding-top: 0;
}

.mohab-config-root .mcfg__summary {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.mohab-config-root .mcfg__summary strong {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}

.mohab-config-root .mcfg__dock-cta {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 8px 20px;
  background: var(--mcfg-green);
  color: #ffffff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.24);
  transition: background 0.2s ease, transform 0.15s ease, opacity 0.2s ease;
}

.mohab-config-root .mcfg__dock-cta:hover:not(:disabled) {
  background: var(--mcfg-gold);
  transform: translateY(-1px);
}

.mohab-config-root .mcfg__dock-cta:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Subtle bottom-left orbit hint & bottom-right disclaimer */
.mohab-config-root .mcfg__hint {
  position: absolute;
  left: 28px;
  bottom: 18px;
  z-index: 8;
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  pointer-events: none;
}

.mohab-config-root .mcfg__disclaimer {
  position: absolute;
  right: 28px;
  bottom: 18px;
  z-index: 8;
  margin: 0;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.56);
  text-align: right;
  max-width: 260px;
  pointer-events: none;
}

/* ---- Right Frosted Slide-Over Build & Checkout Drawer ---- */
.mohab-config-root .mcfg__drawer-backdrop {
  position: absolute;
  inset: 0;
  z-index: 18;
  background: rgba(10, 12, 16, 0.36);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.mohab-config-root .mcfg__drawer-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mohab-config-root .mcfg__drawer {
  position: absolute;
  top: 64px;
  right: 16px;
  bottom: 16px;
  z-index: 20;
  width: min(370px, calc(100% - 32px));
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  background: rgba(22, 25, 30, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.42);
  color: #ffffff;
  transform: translateX(calc(100% + 28px));
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.mohab-config-root .mcfg__drawer.is-open {
  transform: translateX(0);
}

.mohab-config-root .mcfg__drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.mohab-config-root .mcfg__drawer-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mohab-config-root .mcfg__drawer-close {
  appearance: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.mohab-config-root .mcfg__drawer-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.mohab-config-root .mcfg__drawer-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 14px 20px;
}

.mohab-config-root .mcfg__build-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mohab-config-root .mcfg-build-item {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.mohab-config-root .mcfg-build-item__thumb {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: #f4f2ee;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: var(--mcfg-green);
}

.mohab-config-root .mcfg-build-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mohab-config-root .mcfg-build-item__name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #ffffff;
}

.mohab-config-root .mcfg-build-item__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
}

.mohab-config-root .mcfg-build-item__tag {
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(210, 143, 38, 0.22);
  color: #f4be63;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mohab-config-root .mcfg-build-item__remove {
  appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.75);
  font-size: 16px;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.mohab-config-root .mcfg-build-item__remove:hover {
  background: rgba(255, 80, 80, 0.25);
  color: #ffffff;
}

.mohab-config-root .mcfg__build-empty {
  margin: 28px 0;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.mohab-config-root .mcfg__feedback {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(56, 69, 33, 0.45);
  border: 1px solid rgba(210, 143, 38, 0.4);
  font-size: 12px;
  color: #f5f3ef;
  line-height: 1.45;
}

.mohab-config-root .mcfg__feedback.is-error {
  background: rgba(160, 40, 40, 0.35);
  border-color: rgba(255, 110, 110, 0.5);
}

.mohab-config-root .mcfg__feedback[hidden] {
  display: none;
}

.mohab-config-root .mcfg__drawer-foot {
  padding: 16px 20px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mohab-config-root .mcfg__drawer-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.mohab-config-root .mcfg__drawer-total strong {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}

.mohab-config-root .mcfg__drawer-cta {
  appearance: none;
  width: 100%;
  padding: 13px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--mcfg-green);
  color: #ffffff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.mohab-config-root .mcfg__drawer-cta:hover:not(:disabled) {
  background: var(--mcfg-gold);
}

.mohab-config-root .mcfg__drawer-cta:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ---- Responsive (Tablet & Mobile) ---- */
@media (max-width: 900px) {
  .mohab-config-root .mcfg__rail--left { left: 14px; top: 128px; gap: 14px; }
  .mohab-config-root .mcfg__rail--right { right: 14px; top: 128px; gap: 14px; }
  .mohab-config-root .mcfg__tab { padding: 6px 14px 9px; font-size: 14px; }
  .mohab-config-root .mcfg__hint,
  .mohab-config-root .mcfg__disclaimer { display: none; }
}

@media (max-width: 640px) {
  .mohab-config-root .mcfg {
    min-height: 580px !important;
  }
  .mohab-config-root .mcfg__top {
    top: 58px;
    max-width: calc(100% - 24px);
  }
  .mohab-config-root .mcfg__rail {
    top: 126px;
  }
  .mohab-config-root .mcfg__rail-icon {
    width: 34px;
    height: 34px;
  }
  .mohab-config-root .mcfg__rail-btn--gold .mcfg__rail-icon {
    width: 38px;
    height: 38px;
  }
  .mohab-config-root .mcfg__rail-label {
    font-size: 10px;
  }
  .mohab-config-root .mcfg__dock {
    width: 100%;
  }
  .mohab-config-root .mcfg__dock-shell {
    padding: 20px 14px 14px;
    border-radius: 32px 32px 0 0;
  }
  .mohab-config-root .mcfg-card {
    min-width: 96px;
    padding: 6px 6px;
  }
  .mohab-config-root .mcfg-card__thumb {
    width: 52px;
    height: 52px;
  }
}
