/* ========================================
   Premium Gate — Lock overlay & license UI
   ======================================== */

/* Lock overlay — covers premium section content */
.premium-gate-overlay {
  position: relative;
  background: rgba(15, 23, 42, 0.85);
  border-radius: 0.75rem;
  padding: 2rem 1.5rem;
  text-align: center;
  color: #f1f5f9;
  margin: 0.5rem 0;
}

.premium-gate-overlay h3 {
  font-family: 'Russo One', sans-serif;
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
  color: #fbbf24;
}

.premium-gate-overlay p {
  font-size: 0.9rem;
  color: #cbd5e1;
  margin: 0 0 1rem;
}

/* License key input row */
.premium-gate-form {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.premium-gate-input {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.9rem;
  padding: 0.5rem 0.75rem;
  border: 2px solid #334155;
  border-radius: 0.5rem;
  background: #1e293b;
  color: #f1f5f9;
  width: 220px;
  max-width: 60vw;
  outline: none;
  transition: border-color 0.2s;
}

.premium-gate-input:focus {
  border-color: #0d9488;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.25);
}

.premium-gate-input::placeholder {
  color: #64748b;
}

.premium-gate-activate-btn {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.5rem 1.25rem;
  border: none;
  border-radius: 0.5rem;
  background: #0d9488;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.premium-gate-activate-btn:hover {
  background: #0f766e;
}

.premium-gate-activate-btn:active {
  transform: scale(0.97);
}

.premium-gate-activate-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Ko-fi link */
.premium-gate-buy {
  display: inline-block;
  font-size: 0.85rem;
  color: #38bdf8;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.premium-gate-buy:hover {
  color: #7dd3fc;
}

/* Error message */
.premium-gate-error {
  color: #f87171;
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: 0.5rem;
  min-height: 1.2em;
}

/* Success state inside overlay */
.premium-gate-success {
  color: #4ade80;
  font-size: 1rem;
  font-weight: 700;
  margin: 0.5rem 0;
}

/* Header badge */
.premium-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-family: 'Nunito', sans-serif;
  font-size: 0.7rem;
  font-weight: 800;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.5);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  margin-left: 0.5rem;
  vertical-align: middle;
  letter-spacing: 0.02em;
}

.premium-header-badge--hidden {
  display: none;
}

/* Deactivate link */
.premium-gate-deactivate {
  display: inline-block;
  font-size: 0.75rem;
  color: #94a3b8;
  cursor: pointer;
  text-decoration: underline;
  margin-top: 0.25rem;
  background: none;
  border: none;
  font-family: inherit;
}

.premium-gate-deactivate:hover {
  color: #f87171;
}

/* Hide premium body when locked */
.premium-section[data-locked="true"] .premium-body {
  display: none;
}

/* Responsive */
@media (max-width: 480px) {
  .premium-gate-overlay {
    padding: 1.25rem 1rem;
  }

  .premium-gate-input {
    width: 100%;
    max-width: 100%;
  }

  .premium-gate-form {
    flex-direction: column;
  }

  .premium-gate-activate-btn {
    width: 100%;
  }
}
