/* ==========================================================
   LICENČNÉ KĽÚČE ZADARMO (licencie.html)
   ========================================================== */
.lic-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin: 0 0 22px; }
.lic-search {
  flex: 1;
  min-width: 220px;
  max-width: 420px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  background: #ffffff;
  border: 3px solid var(--ink);
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--ink);
}
.lic-search input { flex: 1; border: 0; outline: 0; padding: 11px 0; font: inherit; font-weight: 600; background: transparent; }
.lic-filters { display: flex; flex-wrap: wrap; gap: 8px; }

.lic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; margin-bottom: 40px; }
.lic-loading { grid-column: 1 / -1; text-align: center; padding: 40px; font-weight: 700; color: var(--text-muted); }

.lic-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  background: #ffffff;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  animation: licIn 0.45s cubic-bezier(0.34, 1.4, 0.64, 1) both;
}
.lic-card:nth-child(2) { animation-delay: 0.05s; }
.lic-card:nth-child(3) { animation-delay: 0.1s; }
.lic-card:nth-child(4) { animation-delay: 0.15s; }
@keyframes licIn { from { opacity: 0; transform: translateY(18px) scale(0.97); } }
.lic-new {
  position: absolute;
  top: -12px;
  right: 16px;
  padding: 3px 12px;
  font-size: 0.8rem;
  font-weight: 800;
  color: #ffffff;
  background: var(--red);
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  transform: rotate(4deg);
}
.lic-head { display: flex; align-items: center; gap: 12px; }
.lic-head h3 { margin: 0; font-size: 1.1rem; line-height: 1.2; }
.lic-logo {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  font-size: 1.5rem;
  background: var(--bg);
  border: 2.5px solid var(--ink);
  border-radius: 14px;
}
.lic-logo img { width: 34px; height: 34px; object-fit: contain; }
.lic-type {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 10px;
  font-size: 0.78rem;
  font-weight: 800;
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 999px;
}
.lic-note { margin: 0; color: var(--text-muted); font-size: 0.92rem; line-height: 1.45; }
.lic-expiry { font-size: 0.85rem; font-weight: 700; color: var(--success); }
.lic-expiry.is-soon { color: var(--red); }

.lic-key {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px 10px 14px;
  background: var(--ink);
  border-radius: 12px;
}
.lic-key code {
  flex: 1;
  min-width: 0;
  color: #4ade80;
  font-family: Consolas, Menlo, monospace;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1px;
  word-break: break-all;
  filter: blur(0);
}
.lic-key:not(.is-revealed) code { filter: blur(3px); user-select: none; }
.lic-key.is-revealed code { animation: licReveal 0.4s ease; }
@keyframes licReveal { from { filter: blur(8px); color: #ffffff; } }
.lic-key .btn { flex-shrink: 0; padding: 8px 14px; font-size: 0.85rem; box-shadow: 2px 2px 0 #ffffff55; border-color: #ffffff; }
.lic-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.lic-actions .btn-chip { text-decoration: none; color: var(--ink); }
.lic-upsell { margin-top: auto; font-weight: 800; font-size: 0.9rem; color: var(--blue); }
.lic-upsell:hover { text-decoration: underline; }

.lic-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 46px 20px;
  text-align: center;
  background: #ffffff;
  border: 3px dashed var(--ink);
  border-radius: var(--radius);
}
.lic-empty span { font-size: 3rem; }
.lic-empty strong { font-size: 1.2rem; }
.lic-empty p { margin: 0 0 8px; color: var(--text-muted); }

.lic-how {
  max-width: 860px;
  margin: 0 auto 30px;
  padding: 24px 26px;
  background: #ffffff;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 4px 4px 0 var(--ink);
}
.lic-how h2 { margin: 0 0 10px; font-family: var(--font-display); font-weight: 400; font-size: 1.8rem; }
.lic-how ol { margin: 0; padding-left: 22px; line-height: 1.8; font-weight: 600; }

@media (max-width: 560px) {
  .lic-key { flex-direction: column; align-items: stretch; }
  .lic-key .btn { width: 100%; }
  .lic-how { padding: 20px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .lic-card, .lic-key.is-revealed code { animation: none; }
}
