/* Mr Pharmacist — premium examination membership layer.
   Only Smart Question Bank catalog access presentation is affected. */

.mrph-exam-access-badge{
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:24px;
  margin-inline-start:auto;
  padding:4px 10px;
  border:1px solid transparent;
  border-radius:999px;
  font-size:8px;
  font-weight:850;
  line-height:1;
  letter-spacing:.12em;
  text-transform:uppercase;
  white-space:nowrap;
}

.mrph-exam-access-badge i{
  width:6px;
  height:6px;
  flex:0 0 6px;
  border-radius:50%;
  background:currentColor;
  box-shadow:0 0 0 3px color-mix(in srgb,currentColor 14%,transparent);
}

.mrph-exam-access-badge.is-free{
  color:#19777d;
  border-color:rgba(30,133,138,.14);
  background:rgba(53,194,190,.075);
}

.mrph-exam-access-badge.is-member{
  color:#8a6b32;
  border-color:rgba(180,142,74,.22);
  background:linear-gradient(135deg,rgba(247,239,218,.92),rgba(255,251,240,.88));
}

.mrph-exam-access-badge.is-locked{
  color:#9a7737;
  border-color:rgba(188,150,77,.28);
  background:linear-gradient(135deg,rgba(248,239,217,.97),rgba(255,252,243,.94));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.9);
}

.mrph-exam-grid .mrph-exam-card.mrph-exam-card-membership{
  border-color:rgba(153,119,55,.16);
}

.mrph-exam-grid .mrph-exam-card.mrph-exam-card-locked{
  background:
    radial-gradient(circle at 86% 10%,rgba(196,158,83,.10),transparent 18rem),
    linear-gradient(180deg,rgba(255,255,255,.995),rgba(248,250,249,.985));
  border-color:rgba(168,132,63,.24);
  box-shadow:0 18px 44px rgba(5,39,56,.085),inset 0 1px 0 rgba(255,255,255,.95);
}

.mrph-exam-grid .mrph-exam-card.mrph-exam-card-locked:hover{
  transform:translateY(-1px);
  border-color:rgba(168,132,63,.36);
  box-shadow:0 22px 50px rgba(5,39,56,.105),inset 0 1px 0 rgba(255,255,255,.98);
}

.mrph-exam-grid .mrph-exam-card.mrph-exam-card-locked::before{
  color:rgba(235,245,244,.94);
  background:
    radial-gradient(circle at 50% 28%,rgba(68,189,190,.24),transparent 4.5rem),
    linear-gradient(160deg,#041826,#073443 62%,#80672f 140%);
}

.mrph-exam-grid .mrph-exam-card.mrph-exam-card-locked .mrph-exam-card-foot{
  position:relative;
  background:
    radial-gradient(circle at 50% 14%,rgba(194,157,82,.10),transparent 10rem),
    linear-gradient(180deg,rgba(250,251,249,.92),rgba(242,246,245,.96));
}

.mrph-exam-membership-note{
  display:block;
  max-width:190px;
  margin:0 auto;
  color:#7b705c;
  font-size:9px;
  font-weight:700;
  line-height:1.45;
  letter-spacing:.035em;
  text-align:center;
}

.mrph-exam-grid .mrph-exam-primary.mrph-exam-membership-button{
  position:relative;
  overflow:hidden;
  color:#fffaf0;
  border-color:rgba(218,185,113,.40);
  background:
    radial-gradient(circle at 15% 10%,rgba(218,185,113,.22),transparent 8rem),
    linear-gradient(135deg,#081f2d,#123e4b 66%,#675229 150%);
  box-shadow:0 12px 27px rgba(5,39,56,.18),inset 0 1px 0 rgba(255,255,255,.10);
}

.mrph-exam-grid .mrph-exam-primary.mrph-exam-membership-button::before{
  content:"";
  width:7px;
  height:7px;
  margin-inline-end:8px;
  border:1px solid rgba(255,244,211,.88);
  border-radius:50%;
  box-shadow:0 0 0 3px rgba(218,185,113,.10);
}

.mrph-exam-grid .mrph-exam-primary.mrph-exam-membership-button:hover{
  filter:brightness(1.055);
  border-color:rgba(229,199,132,.58);
}

[dir="rtl"] .mrph-exam-membership-note{
  letter-spacing:0;
}

@media(max-width:980px){
  .mrph-exam-membership-note{
    max-width:none;
    margin:0;
    text-align:start;
  }
  .mrph-exam-grid .mrph-exam-card.mrph-exam-card-locked .mrph-exam-card-foot{
    justify-content:space-between;
  }
}

@media(max-width:640px){
  .mrph-exam-access-badge{
    padding:4px 8px;
    font-size:7px;
    letter-spacing:.08em;
  }
  .mrph-exam-grid .mrph-exam-card.mrph-exam-card-locked .mrph-exam-card-foot{
    display:grid;
    grid-template-columns:1fr;
    gap:9px;
  }
  .mrph-exam-membership-note{
    order:2;
    text-align:center;
  }
}

@media(prefers-reduced-motion:reduce){
  .mrph-exam-grid .mrph-exam-card.mrph-exam-card-locked,
  .mrph-exam-grid .mrph-exam-primary.mrph-exam-membership-button{
    transition:none!important;
  }
}
