/* BigFreela — estados de acesso por plano do freelancer */
:root {
  --bf-plan-ink: #0b1550;
  --bf-plan-blue: #234bd9;
  --bf-plan-blue-soft: #eef4ff;
  --bf-plan-yellow: #ffc629;
  --bf-plan-paper: #f7f4ea;
  --bf-plan-line: #d9d3c3;
}

.bf-plan-hub {
  margin: 0 0 22px;
  overflow: visible !important;
}

.bf-plan-hub-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 17px;
}

.bf-plan-hub-head h2 {
  margin: 0;
  color: var(--bf-plan-ink);
  font: 800 clamp(22px, 3vw, 31px)/1.08 "Space Grotesk", "Plus Jakarta Sans", sans-serif;
}

.bf-plan-hub-head p {
  max-width: 760px;
  margin: 7px 0 0;
  color: #5f6178;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
}

.bf-plan-current {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: none;
  min-height: 35px;
  padding: 7px 12px;
  border: 1.5px solid var(--bf-plan-ink);
  border-radius: 999px;
  background: #fff;
  color: var(--bf-plan-ink);
  font-size: 10.5px;
  font-weight: 900;
}

.bf-plan-current::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bf-plan-blue);
  content: "";
}

.bf-plan-limit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 14px;
}

.bf-plan-limit {
  min-width: 0;
  padding: 11px 13px;
  border: 1.5px solid #aab9e4;
  border-radius: 15px;
  background: var(--bf-plan-blue-soft);
}

.bf-plan-limit span,
.bf-plan-limit strong {
  display: block;
}

.bf-plan-limit span {
  color: #5f6178;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .045em;
}

.bf-plan-limit strong {
  margin-top: 4px;
  color: var(--bf-plan-ink);
  font: 800 14px/1.25 "Space Grotesk", "Plus Jakarta Sans", sans-serif;
}

.bf-plan-resource-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.bf-plan-resource {
  position: relative;
  min-width: 0;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 17px;
  overflow: hidden;
  border: 1.5px solid var(--bf-plan-line);
  border-radius: 19px;
  background: linear-gradient(145deg, #fff, #f8faff);
  color: var(--bf-plan-ink);
  text-decoration: none !important;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.bf-plan-resource:hover {
  transform: translateY(-2px);
  border-color: var(--bf-plan-ink);
  box-shadow: 3px 3px 0 rgba(11, 21, 80, .14);
}

.bf-plan-resource-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: none;
  border: 1.5px solid var(--bf-plan-ink);
  border-radius: 12px;
  background: var(--bf-plan-yellow);
  font-size: 17px;
  font-weight: 900;
}

.bf-plan-resource strong {
  display: block;
  padding-right: 28px;
  font-size: 13px;
  line-height: 1.25;
}

.bf-plan-resource > small:not(.bf-plan-access-message) {
  display: block;
  color: #5f6178;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.5;
}

.bf-plan-access-message {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: auto;
  color: #38539a;
  font-size: 9.5px;
  font-weight: 900;
  line-height: 1.35;
}

.bf-plan-unlocked .bf-plan-access-message::before {
  color: #0b8750;
  content: "✓";
}

.bf-plan-locked {
  border-color: #9fa8c1 !important;
  background: linear-gradient(145deg, #fbfbfc, #edf0f6) !important;
  color: #555d76 !important;
  cursor: pointer !important;
}

.bf-plan-lock-icon {
  position: absolute;
  top: 13px;
  right: 13px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--bf-plan-ink);
  border-radius: 10px;
  background: #fff;
  color: var(--bf-plan-ink);
  font-size: 13px;
  line-height: 1;
  box-shadow: 2px 2px 0 rgba(11, 21, 80, .12);
}

.bf-plan-locked .bf-plan-resource-icon {
  background: #e4e7ee;
}

.bf-plan-locked .bf-plan-access-message {
  color: #1c367f;
}

.bf-plan-locked .bf-plan-access-message::before {
  content: "\1F512";
  font-size: 11px;
}

/* Links já existentes em menus, cards e atalhos. */
a.bf-plan-locked,
button.bf-plan-locked {
  position: relative;
}

a.bf-plan-locked:not(.bf-plan-resource),
button.bf-plan-locked:not(.bf-plan-resource) {
  padding-right: 42px !important;
  outline: 2px dashed rgba(11, 21, 80, .28);
  outline-offset: -3px;
}

.bf-plan-inline-note {
  display: block;
  width: 100%;
  margin-top: 4px;
  color: #27459a;
  font-size: 8.5px;
  font-weight: 900;
  line-height: 1.25;
}

.bf-plan-upgrade-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  margin-top: 7px;
  padding: 7px 12px;
  border: 1.5px solid var(--bf-plan-ink);
  border-radius: 999px;
  background: var(--bf-plan-yellow);
  color: var(--bf-plan-ink) !important;
  font-size: 10px;
  font-weight: 900;
  text-decoration: none !important;
}

/* Fila prioritária: a ajuda comum permanece sempre disponível. */
.bf-priority-support-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  flex-wrap: wrap;
}

.bf-priority-support-actions .bf-plan-locked {
  opacity: 1;
  flex-wrap: wrap;
  white-space: normal;
}

.bf-priority-support-actions .bf-plan-inline-note {
  flex-basis: 100%;
}

/* Destaque público Platinum, aplicado apenas com direito autoritativo. */
body.bf-profile-highlight-active [data-bf-plan-effect="profile_highlight"] {
  border-color: #101d65 !important;
  box-shadow: 0 0 0 4px var(--bf-plan-yellow), 8px 8px 0 var(--bf-plan-ink) !important;
}

.bf-platinum-profile-seal {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 6px 10px;
  border: 1.5px solid var(--bf-plan-ink);
  border-radius: 999px;
  background: var(--bf-plan-yellow);
  color: var(--bf-plan-ink);
  font-size: 9px;
  font-weight: 900;
  box-shadow: 2px 2px 0 var(--bf-plan-ink);
}

/* Bloqueio de deep link. */
body.bf-plan-page-gated {
  overflow: hidden !important;
}

.bf-plan-page-gate {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(5, 10, 47, .82);
  backdrop-filter: blur(10px);
}

.bf-plan-page-gate-card {
  width: min(520px, 100%);
  padding: 30px;
  border: 2px solid var(--bf-plan-ink);
  border-radius: 28px;
  background: linear-gradient(145deg, #fff, var(--bf-plan-blue-soft));
  color: var(--bf-plan-ink);
  text-align: center;
  box-shadow: 8px 8px 0 var(--bf-plan-yellow);
}

.bf-plan-page-gate-icon {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  margin: 0 auto 17px;
  border: 2px solid var(--bf-plan-ink);
  border-radius: 21px;
  background: var(--bf-plan-yellow);
  font-size: 27px;
  box-shadow: 4px 4px 0 var(--bf-plan-ink);
}

.bf-plan-page-gate-card h1 {
  margin: 0;
  font: 800 clamp(25px, 5vw, 36px)/1.05 "Space Grotesk", "Plus Jakarta Sans", sans-serif;
}

.bf-plan-page-gate-card p {
  margin: 13px auto 0;
  color: #515b7b;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.65;
}

.bf-plan-page-gate-actions {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.bf-plan-page-gate-actions a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 17px;
  border: 2px solid var(--bf-plan-ink);
  border-radius: 999px;
  background: #fff;
  color: var(--bf-plan-ink) !important;
  font-size: 11px;
  font-weight: 900;
  text-decoration: none !important;
}

.bf-plan-page-gate-actions a:first-child {
  background: linear-gradient(180deg, #6ea1ff, var(--bf-plan-blue));
  color: #fff !important;
}

@media (max-width: 1050px) {
  .bf-plan-resource-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .bf-plan-hub-head { flex-direction: column; }
  .bf-plan-limit-grid { grid-template-columns: 1fr; }
  .bf-plan-resource-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
  .bf-plan-resource-grid { grid-template-columns: 1fr; }
  .bf-plan-resource { min-height: 132px; }
  .bf-plan-page-gate-card { padding: 24px 18px; }
  .bf-plan-page-gate-actions { flex-direction: column; }
  .bf-plan-page-gate-actions a { width: 100%; }
}
