/* study-nav.css */

.sb-btn.is-active,
.sb-btn[aria-current="page"] {
  background: rgba(11, 99, 206, 0.07);
  border-color: rgba(11, 99, 206, 0.12);
  color: #07111f;
  font-weight: 650;
}

.sb-btn.is-active .ico,
.sb-btn[aria-current="page"] .ico {
  color: #0b63ce;
  opacity: 1;
}

.sb-btn .mini-badge {
  flex: 0 0 auto;
  margin-left: auto;
  min-height: 18px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.045);
  color: rgba(15, 23, 42, 0.58);
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  transition:
    background 0.16s ease,
    color 0.16s ease;
}

html[data-das-plan="pro"] .sb-btn .mini-badge {
  background: rgba(25, 118, 210, 0.1);
  color: #1976d2;
}

.study-dock {
  display: none !important;
}

html:not([data-das-plan]) [data-pro-lock],
html[data-das-plan="loading"] [data-pro-lock],
html[data-das-plan="loading"] [data-pro-panel] {
  display: none !important;
}

.pro-lock-card {
  width: min(660px, calc(100% - 32px));
  margin: 88px auto 0;
  padding: 26px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 22px;
  background: #ffffff;
  text-align: center;
}

.pro-lock-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(15, 76, 129, 0.06);
  color: #0f4c81;
  font-size: 18px;
  font-weight: 700;
}

.pro-lock-card h1,
.pro-lock-card h2 {
  margin: 0;
  color: #0b0f19;
  font-size: clamp(24px, 4vw, 34px);
  letter-spacing: -0.055em;
  line-height: 1.06;
}

.pro-lock-card p {
  max-width: 460px;
  margin: 12px auto 0;
  color: rgba(11, 15, 25, 0.62);
  font-size: 15px;
  line-height: 1.55;
}

.pro-lock-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.pro-lock-actions .study-primary-btn {
  background: #111827;
  border-color: #111827;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.14);
}

.pro-lock-actions .study-primary-btn:hover {
  background: #000000;
  border-color: #000000;
  transform: translateY(-1px);
}

.study-primary-btn,
.study-secondary-btn {
  min-height: 42px;
  border-radius: 999px;
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.study-primary-btn {
  background: #0f4c81;
  color: #ffffff;
}

.study-primary-btn:hover {
  background: #0a3d6b;
}

.study-secondary-btn {
  background: #ffffff;
  color: #111827;
  border-color: rgba(15, 23, 42, 0.11);
}

.study-secondary-btn:hover {
  border-color: rgba(15, 76, 129, 0.22);
}

.study-primary-btn:disabled,
.study-secondary-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.study-toast {
  position: fixed;
  left: 50%;
  bottom: calc(22px + var(--safe-bottom));
  z-index: 300;
  transform: translateX(-50%);
  max-width: min(520px, calc(100vw - 28px));
  padding: 11px 14px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #ffffff;
  color: #111827;
  font-size: 13px;
  font-weight: 620;
}

.study-toast.is-error {
  border-color: rgba(220, 38, 38, 0.22);
  color: #991b1b;
}

.study-toast[hidden] {
  display: none !important;
}

@media (max-width: 1024px) {
  .pro-lock-card {
    margin-top: 42px;
    padding: 24px 18px;
    border-radius: 20px;
  }
}
