.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;
}

/* =========================
   CERS SELECT
========================= */

.cers-select{
    position:relative;
    width:100%;
}

.cers-select-button{
    width:100%;
    height:34px;
    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:0 10px;

    background:#4e61a8;
    color:#eef3ff;

    border:1px solid rgba(255,255,255,.10);
    border-radius:6px;

    cursor:pointer;

    font-size:13px;
}

.cers-select-button:hover{
    background:#566ab5;
}

.cers-select-arrow{
    font-size:11px;
    opacity:.8;
}

.cers-select-menu{
    display:none;

    position:absolute;
    top:100%;
    left:0;
    right:0;
    margin-top:4px;
    background:#18244a;
    border:1px solid rgba(255,255,255,.08);
    border-radius:8px;
    overflow:hidden;
    z-index:500;
}

.cers-select-option{
    padding:9px 12px;
    cursor:pointer;
    color:#eef3ff;
    transition:.15s;
}

.cers-select-option:hover{
    background:#2b3d73;
}

/* =========================
   BUTTON SYSTEM
========================= */

.button{
  position:relative;

  display:inline-flex;
  align-items:center;
  justify-content:center;

  padding:10px 18px;

  border:none;
  border-radius:8px;

  cursor:pointer;

  font-weight:600;
  font-size:13px;

  transition:all 0.15s ease;

  box-shadow:0 4px 12px rgba(0,0,0,0.35);
}

.button::before{
  content:"";

  position:absolute;
  top:0;
  left:0;

  width:100%;
  height:50%;

  background:linear-gradient(
    to bottom,
    rgba(255,255,255,0.25),
    rgba(255,255,255,0.05)
  );

  border-radius:8px 8px 0 0;

  pointer-events:none;
  opacity:0.6;
}

.button:hover{
  transform:translateY(-2px);
  box-shadow:0 6px 18px rgba(0,0,0,0.45);
}

.button:active{
  transform:translateY(1px);

  box-shadow:
    inset 0 2px 6px rgba(0,0,0,0.4),
    0 2px 6px rgba(0,0,0,0.25);
}

.top-buttons,
.bottom-buttons{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:10px;

  margin-top:8px;
  flex-wrap:wrap;
}


/* =========================
   BUTTON VARIANTS
========================= */


/* ==========================================================
   BUTTONS
========================================================== */

.button{
    font-family:var(--font-primary);
    font-size:var(--font-size-sm);
    font-weight:600;
}

.btn-learn{
    background:linear-gradient(90deg,#2563eb,#3b82f6);
    color:#ffffff;
}

.btn-learn:hover{
    box-shadow:0 0 12px rgba(59,130,246,.45);
}

.btn-support{
    background:linear-gradient(90deg,#14b8a6,#0f766e);
    color:#ffffff;
}

.btn-support:hover{
    box-shadow:0 0 12px rgba(20,184,166,.45);
}

.btn-generate{
  background:linear-gradient(90deg,#4facfe,#00f2fe);
  color:#002b36;
}

.btn-generate:hover{
  box-shadow:0 0 12px rgba(0,242,254,0.6);
}

.btn-reset{
  background:linear-gradient(90deg,#64748b,#475569);
  color:#ffffff;
}

.btn-reset:hover{
  box-shadow:0 0 12px rgba(148,163,184,0.35);
}

.btn-regenerate{
  background:linear-gradient(90deg,#38bdf8,#0ea5e9);
  color:#022c22;
}

.btn-regenerate:hover{
  box-shadow:0 0 12px rgba(14,165,233,0.5);
}

.btn-variation{
  background:linear-gradient(90deg,#a855f7,#ec4899);
  color:#ffffff;
}

.btn-variation:hover{
  box-shadow:0 0 12px rgba(236,72,153,0.5);
}

.btn-enhance{
  background:linear-gradient(90deg,#fde047,#facc15);
  color:#3b2f00;
}

.btn-enhance:hover{
  box-shadow:0 0 12px rgba(250,204,21,0.5);
}

.btn-lock{
  background:linear-gradient(90deg,#e5e7eb,#ffffff);
  color:#111827;
}

.btn-lock:hover{
    box-shadow:0 0 12px rgba(203,213,225,.45);
}

.btn-unlock{
  background:linear-gradient(90deg,#fb923c,#f97316);
  color:#ffffff;
}

.btn-unlock:hover{
  box-shadow:0 0 12px rgba(249,115,22,0.5);
}

.btn-save{
  background:linear-gradient(90deg,#34d399,#10b981);
  color:#022c22;
}

.btn-save:hover{
    box-shadow:0 0 12px rgba(16,185,129,.45);
}

.btn-copy{
  background:linear-gradient(90deg,#ff0f7b,#ec4899);
  color:#ffffff;
}

.btn-copy:hover{
    box-shadow:0 0 12px rgba(236,72,153,.45);
}

.btn-delete{
  background:linear-gradient(90deg,#ef4444,#dc2626);
  color:#ffffff;
}

.btn-delete:hover{
    box-shadow:0 0 12px rgba(220,38,38,.45);
}

.btn-copy,
.btn-delete{
  opacity:0.85;
}

/* =========================
   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
========================= */
#lockStatus{
  display:none;
  margin:12px auto 0;
  padding:8px 14px;
  width:fit-content;
  max-width:80%;
  border-radius:10px;
  background:rgba(8,15,30,0.92);
  border:1px solid rgba(90,140,255,0.22);
  color:#e5f0ff;
  font-size:12px;
  font-weight:600;
  text-align:center;
  box-shadow:
    0 6px 20px rgba(0,0,0,0.25);
}

/* =========================
   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;
}