.module-controls {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.module-controls label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #ffffff;
}

/* =========================
   COLLAPSIBLE PANELS
========================= */

.panel-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  cursor:pointer;
}

.panel.collapsible{
  padding:12px 16px;
}

.panel.collapsible .panel-content{
  display:none;
}

.panel.collapsible.active .panel-content{
  display:block;
}

.panel-content{
  width:100%;
  box-sizing:border-box;
  padding-right:4px;

  display:flex;
  flex-direction:column;
  gap:6px;
}

.toggle{
  font-size:16px;
  opacity:0.7;
  transition:transform 0.2s ease;
}

.collapsible.active .toggle{
  transform:rotate(45deg);
}

/* =========================
   ADVANCED STYLE SECTION
========================= */

.advanced-style{
  margin-top:10px;
  padding-top:10px;

  border-top:1px solid rgba(255,255,255,0.08);

  opacity:0.9;
}

/* =========================
   HELP ICON
========================= */

.help{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  width:14px;
  height:14px;

  font-size:10px;
  font-weight:600;

  border-radius:50%;

  background:#1f2937;
  color:#9ca3af;

  cursor:pointer;

  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.help:hover{
  background:#374151;
  color:#ffffff;
}

/* =========================
   TOOLTIPS
========================= */

[data-help]{
  position:relative;
}

[data-help]::after{
  content:attr(data-help);

  position:absolute;
  bottom:140%;
  left:50%;

  transform:translateX(-50%);

  background:#111827;
  color:#e5e7eb;

  padding:6px 8px;
  border-radius:6px;

  font-size:11px;
  line-height:1.3;

  min-width:140px;
  max-width:220px;

  text-align:center;

  opacity:0;
  pointer-events:none;

  transition:opacity 0.2s ease;

  z-index:9999;
}

[data-help]:hover::after{
  opacity:1;
}

/* =========================
   CHECKBOX SYSTEM
========================= */

.variation-bar input[type="checkbox"],
.variation-toggles input[type="checkbox"]{
  transform:scale(0.75);

  width:14px;
  height:14px;

  accent-color:#3b82f6;

  cursor:pointer;
}

/* =========================
   DIMMED FIELD GROUPS
========================= */

.field-group.dimmed{

  opacity:0.32;

  filter:grayscale(0.25);

  pointer-events:none;

  transition:
    opacity 0.25s ease,
    filter 0.25s ease;

}

/* ===== LABELS ===== */

.field-group.dimmed label{
  opacity:0.72;

}

/* ===== INPUTS / SELECTS ===== */

.field-group.dimmed select,
.field-group.dimmed input{
  background:rgba(255,255,255,0.08);
  color:rgba(255,255,255,0.45);
  border-color:rgba(255,255,255,0.08);
  min-height:42px;

  line-height:1.4;

  padding-top:0;
  padding-bottom:0;
}

/* =========================
   LOCK STATUS FORCE FIX
========================= */

#lockStatus{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  margin-top:18px !important;
  min-height:42px !important;
  width:100% !important;
  padding:10px 16px !important;
  border-radius:12px !important;
  background:rgba(8,15,30,0.92) !important;
  border:1px solid rgba(90,140,255,0.22) !important;
  color:#e5f0ff !important;
  font-size:13px !important;
  font-weight:600 !important;
  line-height:1.4 !important;
  text-align:center !important;
  opacity:1 !important;
  box-sizing:border-box !important;
  overflow:visible !important;
  position:relative !important;
  z-index:20 !important;

}

/* =========================
   FLOATING POPUP STATUS
========================= */

.floating-message,
.popup-message,
.status-message,
.toast{
  position:fixed !important;
  top:90px !important;
  left:50% !important;
  transform:translateX(-50%) !important;
  z-index:999999 !important;
  padding:12px 18px !important;
  border-radius:12px !important;
  background:rgba(8,15,30,0.96) !important;
  color:#ffffff !important;
  border:1px solid rgba(90,140,255,0.28) !important;
  box-shadow:
    0 8px 30px rgba(0,0,0,0.45),
    0 0 12px rgba(60,140,255,0.18) !important;
  font-size:13px !important;
  font-weight:600 !important;
  white-space:nowrap !important;
  overflow:visible !important;
}