/* Free access: a signed-up student without an active plan (XT.auth.isFreeTier).
   Dashboard panel + puzzles banner and daily-limit card. Uses xt-flicker from styles.streak.css. */

/* Dashboard */
.xt-free-panel {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 1.5rem;
  margin-bottom: 1.5rem; padding: 1.6rem 1.7rem; border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 122, 0, 0.1), rgba(22, 22, 34, 0.9) 55%);
  border: 1px solid rgba(255, 122, 0, 0.28);
}
.xt-free-panel h2 { margin: 0 0 0.5rem; color: #fff; font-size: 1.45rem; font-weight: 800; letter-spacing: -0.01em; }
.xt-free-panel p { margin: 0 0 1.2rem; color: #b5b5c5; font-size: 0.95rem; line-height: 1.55; max-width: 46ch; }
.xt-free-panel__actions { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; }
.xt-free-panel__actions .btn { font-size: 0.88rem; padding: 0.65rem 1.2rem; }
.xt-free-panel__link { color: #FF9A3D; font-weight: 700; font-size: 0.88rem; text-decoration: none; padding: 0 0.3rem; }
.xt-free-panel__link:hover { text-decoration: underline; color: #FFB066; }
.xt-free-panel__locked ul { margin: 0; padding: 0; list-style: none; }
.xt-free-panel__locked { padding: 1rem 1.1rem; border-radius: 14px; background: rgba(0, 0, 0, 0.25); border: 1px solid rgba(255, 255, 255, 0.06); align-self: start; }
.xt-free-panel__locked h3 { margin: 0 0 0.6rem; color: #8e8ea3; font-size: 0.82rem; font-weight: 700; }
.xt-free-panel__locked li { display: flex; align-items: center; gap: 0.65rem; padding: 0.42rem 0; color: #d0d0dc; font-size: 0.9rem; }
.xt-free-panel__locked li + li { border-top: 1px solid rgba(255, 255, 255, 0.05); }
.xt-free-panel__locked li i:first-child { width: 1.2rem; text-align: center; color: #8e8ea3; }
.xt-free-panel__locked li .fa-lock { margin-left: auto; font-size: 0.7rem; color: #5f5f72; }
@media (max-width: 860px) {
  .xt-free-panel { grid-template-columns: 1fr; padding: 1.3rem 1.2rem; }
}

/* Puzzles page */
.xt-free-banner {
  display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap;
  margin: 0 0 0.75rem; padding: 0.55rem 0.9rem; border-radius: 10px;
  background: rgba(255, 122, 0, 0.08); border: 1px solid rgba(255, 122, 0, 0.25);
  color: #d5d5e0; font-size: 0.86rem;
}
.xt-free-banner i { color: #FF7A00; }
.xt-free-banner strong { color: #fff; }
.xt-free-banner a { margin-left: auto; color: #FF9A3D; font-weight: 700; text-decoration: none; }
.xt-free-banner a:hover { text-decoration: underline; }

.xt-free-limit {
  position: absolute; inset: 0; z-index: 30;
  display: grid; place-items: center; padding: 1rem;
  background: rgba(10, 10, 16, 0.78);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  border-radius: inherit;
}
.xt-free-limit__card {
  max-width: 340px; text-align: center; padding: 1.5rem 1.4rem;
  border-radius: 16px; background: #1d1d2b; border: 1px solid rgba(255, 122, 0, 0.35);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  animation: xt-burst-in-card 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.xt-free-limit__flame {
  width: 52px; height: 52px; margin: 0 auto 0.8rem; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.4rem; color: #fff;
  background: radial-gradient(circle at 50% 70%, #FFC531, #FF7A00 70%);
  box-shadow: 0 0 22px rgba(255, 122, 0, 0.45);
}
.xt-free-limit__flame i { animation: xt-flicker 1.6s ease-in-out infinite; transform-origin: 50% 85%; }
.xt-free-limit__card h2 { margin: 0 0 0.45rem; color: #fff; font-size: 1.2rem; }
.xt-free-limit__card p { margin: 0 0 1.1rem; color: #b5b5c5; font-size: 0.9rem; line-height: 1.5; }
.xt-free-limit__actions { display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap; }
.xt-free-limit__actions .btn { font-size: 0.85rem; padding: 0.6rem 1.1rem; }
@keyframes xt-burst-in-card { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .xt-free-limit__card, .xt-free-limit__flame i { animation: none !important; }
}
