/* ManzoLeads: RCL Portal — Frontend (Sea-wave + beach aesthetic) */
.mlrcl-front{
  --ml-ocean: rgba(0,142,199,1);
  --ml-deep: rgba(0,84,141,1);
  --ml-sand: rgba(255,210,128,1);
  --ml-foam: rgba(255,255,255,0.92);
  --ml-mist: rgba(0,142,199,0.25);

  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 14px 28px;
}

.mlrcl-hero-front{
  border-radius: 22px;
  padding: 18px 18px;
  background: linear-gradient(135deg, rgba(0,142,199,0.18), rgba(0,84,141,0.16), rgba(255,210,128,0.22));
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 14px 34px rgba(0,0,0,0.08);
}

.mlrcl-badge-front{
  display:inline-flex;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(0,0,0,0.06);
  font-weight: 900;
  color: rgba(0,84,141,0.95);
  margin-bottom: 10px;
}

.mlrcl-hero-front h2{ margin: 0 0 6px; font-size: 28px; }
.mlrcl-hero-front p{ margin: 0; color: rgba(7,50,74,0.70); font-weight: 800; }

.mlrcl-section{ margin-top: 18px; }
.mlrcl-sec-title{
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 1000;
  color: rgba(0,84,141,0.95);
}

.mlrcl-grid-2{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (max-width: 820px){
  .mlrcl-grid-2{ grid-template-columns: 1fr; }
}

.mlrcl-card{
  border-radius: 22px;
  padding: 14px;
  background: linear-gradient(135deg, rgba(255,255,255,0.92), rgba(255,255,255,0.78));
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 14px 32px rgba(0,0,0,0.08);
  transition: transform .25s ease, box-shadow .25s ease;
}

.mlrcl-card-top .mlrcl-photo-square{ aspect-ratio: 1 / 1; }
.mlrcl-card-mid .mlrcl-photo-square{ aspect-ratio: 1 / 1; }

.mlrcl-photo-square{
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow:hidden;
  border: 6px solid rgba(255,255,255,0.95);
  background: rgba(0,142,199,0.10);
  display:flex;
  align-items:center;
  justify-content:center;
}

.mlrcl-photo-square img{
  width:100%; height:100%; object-fit:cover; display:block;
}

.mlrcl-role{
  margin-top: 10px;
  font-weight: 1000;
  color: rgba(0,84,141,0.95);
}

.mlrcl-name{
  margin-top: 6px;
  font-weight: 1100;
  font-size: 18px;
  color: rgba(7,50,74,0.95);
}

.mlrcl-meta{
  margin-top: 4px;
  color: rgba(7,50,74,0.68);
  font-weight: 900;
}

.mlrcl-card-empty .mlrcl-name{ color: rgba(7,50,74,0.6); }

.mlrcl-grid-exco{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media (max-width: 980px){ .mlrcl-grid-exco{ grid-template-columns: repeat(3, 1fr);} }
@media (max-width: 760px){ .mlrcl-grid-exco{ grid-template-columns: repeat(2, 1fr);} }
@media (max-width: 520px){ .mlrcl-grid-exco{ grid-template-columns: 1fr;} }

.mlrcl-exco-card{
  border-radius: 22px;
  padding: 12px 12px;
  background: linear-gradient(135deg, rgba(255,255,255,0.92), rgba(255,255,255,0.78));
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 12px 26px rgba(0,0,0,0.08);
  text-align:center;
  transition: transform .25s ease, box-shadow .25s ease;
}

.mlrcl-photo-round{
  width: 86px;
  height: 86px;
  border-radius: 999px;
  overflow:hidden;
  border: 4px solid rgba(255,255,255,0.95);
  background: rgba(0,142,199,0.10);
  display:flex;
  align-items:center;
  justify-content:center;
  margin: 0 auto 8px;
}
.mlrcl-photo-round.sm{ width: 66px; height: 66px; border-width: 3px; }

.mlrcl-photo-round img{ width:100%; height:100%; object-fit:cover; display:block; }

.mlrcl-exco-role{
  margin-top: 6px;
  display:inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,142,199,0.10);
  border: 1px solid rgba(0,84,141,0.10);
  color: rgba(0,84,141,0.95);
  font-weight: 1000;
  font-size: 12px;
}

.mlrcl-prefects{ display:grid; gap: 12px; }
.mlrcl-grade-block{
  border-radius: 22px;
  padding: 12px;
  background: linear-gradient(135deg, rgba(0,142,199,0.08), rgba(255,210,128,0.14), rgba(255,255,255,0.88));
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 12px 26px rgba(0,0,0,0.06);
}

.mlrcl-grade-title{
  font-weight: 1100;
  color: rgba(0,84,141,0.95);
  margin-bottom: 10px;
}

.mlrcl-grade-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}
@media (max-width: 720px){ .mlrcl-grade-grid{ grid-template-columns: 1fr;} }

.mlrcl-prefect-card{
  border-radius: 22px;
  padding: 12px;
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 12px 26px rgba(0,0,0,0.08);
  display:flex;
  gap: 10px;
  align-items:center;
  transition: transform .25s ease, box-shadow .25s ease;
}
.mlrcl-prefect-card .mlrcl-name{ font-size: 16px; margin-top: 0; }
.mlrcl-prefect-card .mlrcl-meta{ font-size: 12px; }

.mlrcl-empty-front{
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px dashed rgba(0,84,141,0.22);
  background: rgba(255,255,255,0.85);
  color: rgba(7,50,74,0.70);
  font-weight: 900;
}

/* Hover sea-mist glow */
.mlrcl-hover:hover{
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.12), 0 0 0 4px rgba(0,142,199,0.10), 0 0 26px rgba(0,142,199,0.18);
}

/* Scroll reveal animations */
.mlrcl-reveal{
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s ease, transform .7s ease;
}
.mlrcl-reveal.mlrcl-in{
  opacity: 1;
  transform: translateY(0);
}

/* Gentle footer wave */
.mlrcl-footwave{
  margin-top: 18px;
  height: 110px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 20% 60%, rgba(255,255,255,0.45), rgba(255,255,255,0) 55%),
    radial-gradient(circle at 50% 70%, rgba(0,142,199,0.20), rgba(0,0,0,0) 60%),
    radial-gradient(circle at 80% 55%, rgba(255,210,128,0.28), rgba(0,0,0,0) 62%),
    linear-gradient(135deg, rgba(0,142,199,0.12), rgba(255,210,128,0.18));
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 12px 28px rgba(0,0,0,0.06);
}


/* Professional photo-frame border + shadows (thick white frame) */
.mlrcl-photo-square{
  border: 10px solid rgba(255,255,255,0.98);
  box-shadow:
    0 18px 42px rgba(0,0,0,0.18),
    0 0 0 2px rgba(0,0,0,0.06) inset,
    0 0 0 1px rgba(255,255,255,0.55);
  background: linear-gradient(135deg, rgba(255,255,255,0.85), rgba(0,142,199,0.08));
}
.mlrcl-photo-round{
  box-shadow:
    0 16px 34px rgba(0,0,0,0.14),
    0 0 0 2px rgba(0,0,0,0.06) inset,
    0 0 0 1px rgba(255,255,255,0.55);
}

/* Beach theme surface tint */
.mlrcl-front{
  background: radial-gradient(circle at 20% 0%, rgba(0,142,199,0.10), rgba(0,0,0,0) 55%),
              radial-gradient(circle at 85% 10%, rgba(255,210,128,0.18), rgba(0,0,0,0) 50%);
}

/* Lightbox modal */
.mlrcl-lightbox{
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 20, 35, 0.72);
  backdrop-filter: blur(6px);
}
.mlrcl-lightbox.mlrcl-open{ display:flex; }
.mlrcl-lightbox-inner{
  width: min(920px, 96vw);
  border-radius: 22px;
  padding: 14px;
  background: linear-gradient(135deg, rgba(255,255,255,0.92), rgba(255,255,255,0.78));
  border: 1px solid rgba(255,255,255,0.20);
  box-shadow: 0 22px 60px rgba(0,0,0,0.35);
  transform: translateY(10px) scale(0.985);
  opacity: 0;
  transition: transform .22s ease, opacity .22s ease;
}
.mlrcl-open .mlrcl-lightbox-inner{
  transform: translateY(0) scale(1);
  opacity: 1;
}
.mlrcl-lightbox-imgwrap{
  border-radius: 18px;
  overflow:hidden;
  background: rgba(0,142,199,0.08);
  border: 10px solid rgba(255,255,255,0.98);
  box-shadow: 0 16px 40px rgba(0,0,0,0.18), 0 0 0 2px rgba(0,0,0,0.06) inset;
}
.mlrcl-lightbox img{
  width: 100%;
  height: auto;
  display:block;
}
.mlrcl-lightbox-close{
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.14);
  color: #fff;
  font-weight: 1000;
  cursor: pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow: 0 10px 22px rgba(0,0,0,0.25);
}
.mlrcl-lightbox-close:hover{ background: rgba(255,255,255,0.22); }
.mlrcl-lightbox-note{
  margin-top: 10px;
  text-align:center;
  color: rgba(255,255,255,0.82);
  font-weight: 800;
  font-size: 12px;
}


/* Official badge watermark overlay (uses --mlrcl-badge-url) */
.mlrcl-photo-square,
.mlrcl-photo-round{
  position: relative;
}
.mlrcl-photo-square::after,
.mlrcl-photo-round::after{
  content: "";
  position: absolute;
  width: 42px;
  height: 42px;
  right: 10px;
  bottom: 10px;
  background-image: var(--mlrcl-badge-url);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.22;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,0.18));
  pointer-events: none;
}
.mlrcl-photo-round::after{
  right: 8px;
  bottom: 8px;
  width: 34px;
  height: 34px;
}

/* Legacy (Passing the Torch) */
.mlrcl-legacy-wrap{ margin-top: 18px; }
.mlrcl-legacy-toggle{
  width: 100%;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(0,84,141,0.18);
  background: linear-gradient(135deg, rgba(0,142,199,0.14), rgba(255,210,128,0.18), rgba(255,255,255,0.86));
  color: rgba(0,84,141,0.98);
  font-weight: 1000;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease;
}
.mlrcl-legacy-toggle:hover{
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(0,0,0,0.12), 0 0 26px rgba(0,142,199,0.18);
}
.mlrcl-legacy-panel{
  margin-top: 12px;
  border-radius: 18px;
  padding: 12px;
  background: rgba(255,255,255,0.84);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}
.mlrcl-legacy-head{ display:flex; justify-content:space-between; align-items:baseline; gap:10px; flex-wrap:wrap; }
.mlrcl-legacy-title{ font-weight: 1100; color: rgba(0,84,141,0.95); }
.mlrcl-legacy-sub{ color: rgba(7,50,74,0.62); font-weight: 800; font-size: 12px; }

.mlrcl-legacy-list{ margin-top: 10px; display:grid; gap: 8px; }
.mlrcl-legacy-item{
  display:grid;
  grid-template-columns: 170px 1fr 140px;
  gap: 10px;
  align-items:center;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(0,142,199,0.06);
  border: 1px solid rgba(0,0,0,0.06);
}
@media (max-width: 760px){
  .mlrcl-legacy-item{ grid-template-columns: 1fr; }
}
.mlrcl-legacy-pos{ font-weight: 1000; color: rgba(0,84,141,0.95); }
.mlrcl-legacy-name{ font-weight: 1000; color: rgba(7,50,74,0.95); }
.mlrcl-legacy-meta{ text-align:right; color: rgba(7,50,74,0.62); font-weight: 900; }
@media (max-width: 760px){ .mlrcl-legacy-meta{ text-align:left; } }

/* Watermark in lightbox too */
.mlrcl-lightbox-imgwrap{ position: relative; }
.mlrcl-lightbox-imgwrap::after{
  content:"";
  position:absolute;
  width: 54px;
  height: 54px;
  right: 14px;
  bottom: 14px;
  background-image: var(--mlrcl-badge-url);
  background-size: contain;
  background-repeat:no-repeat;
  background-position:center;
  opacity: 0.18;
  pointer-events:none;
  filter: drop-shadow(0 8px 14px rgba(0,0,0,0.18));
}


/* Year selector */
.mlrcl-year-filter{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:10px}
.mlrcl-year-filter label{font-weight:600}
.mlrcl-year-filter select{padding:8px 10px;border-radius:10px;border:1px solid rgba(0,0,0,.15);background:#fff;min-width:140px}
