/* ===== SS STYLE base wrapper ===== */
.mirolabs-alt-wrap{ margin: 10px 20px 20px 0; }
.mirolabs-alt-wrap *{ box-sizing: border-box; }

/* ===== HERO (SS STYLE) ===== */
.mirolabs-alt-wrap .af-hero{
  margin: 0 0 18px;
  border-radius: 12px;
  padding: 14px 16px;

  background: linear-gradient(180deg, #f3f4f6 0%, #eef2f7 100%);
  border: 1px solid #d6d9de;
  border-left: 6px solid #f59e0b;
  box-shadow: 0 8px 20px rgba(15,23,42,0.07);

  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 14px;
  align-items: center;

  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.mirolabs-alt-wrap .af-hero-pill{
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(214,217,222,0.95);
  display:flex;
  align-items:center;
  justify-content:center;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(15,23,42,0.06);
}
.mirolabs-alt-wrap .af-hero-pill-inner{
  width: 100%;
  height: 100%;
  display:flex;
  align-items:center;
  justify-content:center;
}
.mirolabs-alt-wrap .af-hero-pill-inner img{
  width: 112%;
  height: 112%;
  object-fit: contain;
  display:block;
}
.mirolabs-alt-wrap .af-hero-pill-fallback{
  font-weight: 700;
  letter-spacing: .04em;
  font-size: 12px;
  color: #111827;
}

.mirolabs-alt-wrap .af-hero-main{ min-width:0; }
.mirolabs-alt-wrap .af-hero-title-row{
  display:flex;
  align-items:center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 2px;
}
.mirolabs-alt-wrap .af-hero-title{
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  color: #111827;
}
.mirolabs-alt-wrap .af-hero-tag{
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .06em;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(214,217,222,0.95);
  color: #374151;
  font-weight: 500;
}
.mirolabs-alt-wrap .af-hero-tag.alt{
  background: rgba(238,242,255,0.70);
  border-color: rgba(199,210,254,0.95);
  color: #1e3a8a;
}
.mirolabs-alt-wrap .af-hero-sub{
  margin: 0;
  font-size: 13px;
  font-weight: 400;
  color: #4b5563;
  line-height: 1.5;
}

.mirolabs-alt-wrap .af-hero-chips{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  margin-top: 10px;
}

.mirolabs-alt-wrap .af-chip-pro{
  position: relative;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(214,217,222,0.95);
  box-shadow: 0 2px 8px rgba(15,23,42,0.05);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  color: #111827;
  white-space: nowrap;
}
.mirolabs-alt-wrap .af-chip-pro::before{
  content:"";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #94a3b8;
  box-shadow: 0 0 0 3px rgba(148,163,184,0.18);
}
.mirolabs-alt-wrap .af-chip-sub{ color:#6b7280; font-weight:400; font-size:12px; }
.mirolabs-alt-wrap .af-chip-pro strong{ font-weight:500; color:#111827; }

.mirolabs-alt-wrap .af-chip-alt{
  background: rgba(245,158,11,0.10);
  border-color: rgba(245,158,11,0.22);
}
.mirolabs-alt-wrap .af-chip-alt::before{
  background: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245,158,11,0.18);
}
.mirolabs-alt-wrap .af-chip-safe{
  background: rgba(22,163,74,0.10);
  border-color: rgba(22,163,74,0.20);
}
.mirolabs-alt-wrap .af-chip-safe::before{
  background: #16a34a;
  box-shadow: 0 0 0 3px rgba(22,163,74,0.16);
}
.mirolabs-alt-wrap .af-chip-scan{
  background: rgba(37,99,235,0.08);
  border-color: rgba(37,99,235,0.18);
}
.mirolabs-alt-wrap .af-chip-scan::before{
  background: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.16);
}
.mirolabs-alt-wrap .af-chip-purple{
  background: rgba(124,58,237,0.12) !important;
  border-color: rgba(124,58,237,0.26) !important;
  color: #3b1a8a !important;
}
.mirolabs-alt-wrap .af-chip-purple::before{
  background:#7c3aed;
  box-shadow: 0 0 0 3px rgba(124,58,237,0.16);
}
.mirolabs-alt-wrap .af-chip-purple .af-chip-sub{ color: rgba(59,26,138,0.72) !important; }

.mirolabs-alt-wrap .af-hero-metrics{
  justify-self: end;
  align-self: stretch;
  min-width: 280px;

  background: rgba(255,255,255,0.58);
  border: 1px solid rgba(214,217,222,0.95);
  border-radius: 12px;
  padding: 10px 12px;

  display:flex;
  flex-direction: column;
  gap: 8px;

  box-shadow: 0 4px 14px rgba(15,23,42,0.06);
  position: relative;
  overflow: hidden;
}
.mirolabs-alt-wrap .af-hero-metrics::before{
  content:"";
  position:absolute;
  left:0; top:0; right:0;
  height: 2px;
  background: linear-gradient(90deg, rgba(245,158,11,0.8), rgba(37,99,235,0.55));
  opacity: .9;
}
.mirolabs-alt-wrap .af-tip-title{
  display:flex;
  align-items:center;
  gap: 8px;
  font-size: 13px;
  font-weight: 400;
  color: #111827;
}
.mirolabs-alt-wrap .af-tip-title strong{ font-weight:500; }
.mirolabs-alt-wrap .af-tip-ico{
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display:flex;
  align-items:center;
  justify-content:center;

  background: rgba(245,158,11,0.12);
  border: 1px solid rgba(245,158,11,0.22);
  font-size: 14px;
  line-height: 1;
}
.mirolabs-alt-wrap .af-tip-sub{
  font-size: 12px;
  font-weight: 400;
  color: #6b7280;
  line-height: 1.35;
}
.mirolabs-alt-wrap .af-tip-hl{
  display:inline-block;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(245,158,11,0.14);
  border: 1px solid rgba(245,158,11,0.22);
  color: #7c4a03;
  font-weight: 700;
}

/* helpers to remove inline style="" */
.mirolabs-alt-wrap .af-tip-sub-note{ margin-top:6px; color:#111827; }
.mirolabs-alt-wrap .af-mt10{ margin-top:10px; }

/* ===== Cards (SS STYLE) ===== */
.mirolabs-alt-wrap .af-card{
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  padding: 18px 20px;
  margin-bottom: 16px;
  box-shadow: 0 10px 30px rgba(15,23,42,0.06);
}
.mirolabs-alt-wrap .af-card-header{
  display:flex;
  justify-content: space-between;
  align-items:center;
  gap:10px;
  margin-bottom: 12px;
}
.mirolabs-alt-wrap .af-card-title{
  font-size: 15px;
  font-weight: 700;
  color: #111827;
}
.mirolabs-alt-wrap .af-card-sub{
  font-size: 12px;
  font-weight: 400;
  color: #6b7280;
}

.mirolabs-alt-wrap .af-toolbar{
  display:flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}
.mirolabs-alt-wrap .af-muted{ font-size:12px; color:#6b7280; }

.mirolabs-alt-wrap .af-card .button-primary,
.mirolabs-alt-wrap .af-card .button,
.mirolabs-alt-wrap .af-toolbar .button-primary,
.mirolabs-alt-wrap .af-toolbar .button{
  background: #D8B15A !important;
  border: none !important;
  color: #1a1a1a !important;
  box-shadow: 0 2px 8px rgba(216, 177, 90, 0.3) !important;
  font-weight: 600 !important;
  transition: background 0.2s ease !important;
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 13px;
}
.mirolabs-alt-wrap .af-card .button-primary:hover,
.mirolabs-alt-wrap .af-card .button:hover,
.mirolabs-alt-wrap .af-toolbar .button-primary:hover,
.mirolabs-alt-wrap .af-toolbar .button:hover{
  background: #C49A4A !important;
  color: #1a1a1a !important;
  color: #000000 !important;
}

/* ===== Help boxes (SS STYLE colored) ===== */
.mirolabs-alt-wrap .af-help-row{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}
.mirolabs-alt-wrap .af-help{
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  padding: 12px 12px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(15,23,42,0.05);
}
.mirolabs-alt-wrap .af-help strong{ font-weight: 800; color:#111827; display:block; margin-bottom: 6px; }
.mirolabs-alt-wrap .af-help ul{ margin: 0 0 0 16px; padding:0; }
.mirolabs-alt-wrap .af-help li{ margin: 2px 0; color:#374151; font-size: 12px; }

.mirolabs-alt-wrap .af-help-green{
  background: rgba(22,163,74,0.08);
  border-color: rgba(22,163,74,0.18);
}
.mirolabs-alt-wrap .af-help-blue{
  background: rgba(37,99,235,0.07);
  border-color: rgba(37,99,235,0.16);
}
.mirolabs-alt-wrap .af-help-orange{
  background: rgba(245,158,11,0.10);
  border-color: rgba(245,158,11,0.22);
}

/* ===== Settings table polish inside card ===== */
.mirolabs-alt-wrap .af-card .form-table{ margin-top: 8px; }
.mirolabs-alt-wrap .af-card .form-table th{ width: 320px; }
.mirolabs-alt-wrap .af-card .form-table td{ vertical-align: top; }
.mirolabs-alt-wrap .af-card .form-table label{ font-size: 12px; color:#111827; }
.mirolabs-alt-wrap .af-card input[type="checkbox"]{ transform: scale(1.0); margin-right: 6px; }

/* ===== Dashboard Box Styles ===== */
.mirolabs-alt-wrap .af-box{
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px;
  transition: all 0.2s ease;
}
.mirolabs-alt-wrap .af-box:hover{
  border-color: #d1d5db;
  box-shadow: 0 4px 12px rgba(15,23,42,0.06);
}

/* Dashboard Quick Access — grouped sections (less white, easier to read) */
.mirolabs-dashboard-quick-access {
  padding: 20px;
  background: #f4f6f8;
  border-radius: 12px;
  border: 1px solid #e2e6ea;
}
.mirolabs-dashboard-quick-title {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #d1d5db;
}
.mirolabs-dashboard-quick-section {
  margin-bottom: 24px;
  padding: 14px 16px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
}
.mirolabs-dashboard-quick-section:last-child { margin-bottom: 0; }
.mirolabs-dashboard-quick-section-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #4b5563;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px dashed #e5e7eb;
}
.mirolabs-dashboard-quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
}
.mirolabs-dashboard-quick-link {
  display: block;
  padding: 12px 14px;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
}
.mirolabs-dashboard-quick-link:hover {
  border-color: #2271b1;
  background: #eef4fc;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(34,113,177,0.15);
}
.mirolabs-dashboard-quick-link-title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 4px;
}
.mirolabs-dashboard-quick-link-desc {
  display: block;
  font-size: 12px;
  color: #4b5563;
  line-height: 1.4;
}

/* Dashboard quick links (legacy selector) */
.mirolabs-dashboard-wrap a[href*="admin.php?page="]{
  transition: all 0.2s ease;
}
.mirolabs-dashboard-wrap a[href*="admin.php?page="]:hover{
  border-color: #2271b1;
  background: #f8f9fa;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(34,113,177,0.12);
}

/* Dashboard Quick Access: switch + module cards + Pro badge (no inline CSS) */
.mirolabs-dashboard-wrap .mirolabs-notice-module-off { margin: 0 0 16px 0; }
.mirolabs-dashboard-wrap .mirolabs-dashboard-quick-desc { margin: 0 0 16px 0; font-size: 13px; color: #6b7280; }
.mirolabs-dashboard-wrap .mirolabs-switch { position: relative; display: inline-block; width: 48px; height: 26px; flex-shrink: 0; cursor: pointer; }
.mirolabs-dashboard-wrap .mirolabs-switch-input { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.mirolabs-dashboard-wrap .mirolabs-switch-slider { position: absolute; inset: 0; background: #cbd5e1; border-radius: 26px; transition: background .2s, box-shadow .2s; }
.mirolabs-dashboard-wrap .mirolabs-switch-slider::before { content: ""; position: absolute; width: 22px; height: 22px; left: 2px; top: 2px; background: #fff; border-radius: 50%; box-shadow: 0 2px 4px rgba(0,0,0,.25); transition: transform .25s ease; }
.mirolabs-dashboard-wrap .mirolabs-switch-input:checked + .mirolabs-switch-slider { background: #D8B15A; }
.mirolabs-dashboard-wrap .mirolabs-switch-input:checked + .mirolabs-switch-slider::before { transform: translateX(22px); }
.mirolabs-dashboard-wrap .mirolabs-switch:hover .mirolabs-switch-slider { box-shadow: 0 0 0 2px rgba(216,177,90,.35); }
.mirolabs-dashboard-wrap .mirolabs-module-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 8px; min-height: 60px; }
.mirolabs-dashboard-wrap .mirolabs-module-card-inner { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; }
.mirolabs-dashboard-wrap .mirolabs-module-card-link { flex: 1; min-width: 0; text-decoration: none; color: inherit; }
.mirolabs-dashboard-wrap .mirolabs-module-card-content { flex: 1; min-width: 0; }
.mirolabs-dashboard-wrap .mirolabs-module-card-title { display: block; font-size: 14px; font-weight: 600; color: #1f2937; }
.mirolabs-dashboard-wrap .mirolabs-module-card-desc { display: block; font-size: 12px; color: #6b7280; margin-top: 2px; }
.mirolabs-dashboard-wrap .mirolabs-module-card-off .mirolabs-module-card-title,
.mirolabs-dashboard-wrap .mirolabs-module-card-off .mirolabs-module-card-desc { opacity: 0.7; }
.mirolabs-dashboard-wrap .mirolabs-module-card-off-label { font-size: 11px; color: #9ca3af; margin-left: 8px; }
.mirolabs-dashboard-wrap .mirolabs-module-card-pro { background: #f9fafb; border-color: #e5e7eb; }
.mirolabs-dashboard-wrap .mirolabs-module-card-pro .mirolabs-module-card-title { color: #1f2937; }
.mirolabs-dashboard-wrap .mirolabs-pro-badge { display: inline-block; background: #D8B15A; color: #1f2937; font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 6px; text-decoration: none; white-space: nowrap; border: 1px solid #C49A4A; }
.mirolabs-dashboard-wrap .mirolabs-pro-badge:hover { background: #C49A4A; color: #1f2937; }

/* ===== Mobile ===== */
@media (max-width: 980px){
  .mirolabs-alt-wrap .af-hero{ grid-template-columns: 52px 1fr; }
  .mirolabs-alt-wrap .af-hero-metrics{ grid-column: 1 / -1; min-width: 0; }
  .mirolabs-alt-wrap .af-help-row{ grid-template-columns: 1fr; }
  .mirolabs-alt-wrap .af-card .form-table th{ width: auto; }
  .mirolabs-dashboard-quick-grid{ grid-template-columns: 1fr; }
}
