/* ============================================================
   ILIMITADO LOV — Options Page
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');


* { box-sizing: border-box; margin: 0; padding: 0; }

/* ============================================================
   Animated Gradient Border
   ============================================================ */
.gradient-border {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  padding: 1.5px;
  background: conic-gradient(from var(--border-angle, 0deg),
    transparent 30%,
    #FF5A00 38%,
    #FF2D55 44%,
    #A259FF 50%,
    #5B8CFF 56%,
    transparent 64%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: border-spin 4s linear infinite;
  display: none;
}

@property --border-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes border-spin {
  to { --border-angle: 360deg; }
}

:root {
  /* Brand gradient */
  --orange: #8B5CF6;
  --red: #7C3AED;
  --purple: #8B5CF6;
  --blue: #6D28D9;

  /* Base */
  --bg-primary: #0A0A0B;
  --bg-secondary: #111113;
  --bg-tertiary: #1A1A1D;
  --bg-card: #0F0F11;
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-medium: rgba(255, 255, 255, 0.1);

  /* Text */
  --text-primary: #E8E8E8;
  --text-secondary: #999;
  --text-muted: #666;

  /* Semantic */
  --success: #22C55E;
  --error: #FF3B3B;
  --warning: #FFE60A;

  /* Fonts */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Orbitron', sans-serif;
  --font-mono: 'Space Grotesk', 'JetBrains Mono', ui-monospace, monospace;
}

/* ============================================================
   Background Orbs
   ============================================================ */
.bg-orbs {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  display: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.12;
  animation: orb-drift 20s ease-in-out infinite alternate;
}

.orb-1 {
  width: 500px; height: 500px;
  background: var(--purple);
  top: -150px; left: -100px;
  animation-duration: 22s;
}

.orb-2 {
  width: 400px; height: 400px;
  background: var(--orange);
  bottom: -120px; right: -80px;
  animation-duration: 18s;
  animation-delay: -6s;
}

.orb-3 {
  width: 300px; height: 300px;
  background: var(--blue);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation-duration: 25s;
  animation-delay: -12s;
}

@keyframes orb-drift {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(40px, -30px) scale(1.1); }
  66%  { transform: translate(-20px, 20px) scale(0.95); }
  100% { transform: translate(30px, 10px) scale(1.05); }
}

/* ============================================================
   Body & Container
   ============================================================ */
body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 13px;
  line-height: 1.6;
  min-height: 100vh;
  padding: 40px 24px;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 680px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ============================================================
   Header
   ============================================================ */
header {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent 5%, rgba(162, 89, 255, 0.2) 50%, transparent 95%) 1;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.brand-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  filter: drop-shadow(0 0 8px rgba(162, 89, 255, 0.4));
}

.brand-banner {
  height: 36px;
  width: auto;
  border-radius: 8px;
  object-fit: contain;
  filter: drop-shadow(0 2px 10px rgba(162, 89, 255, 0.25));
}

.brand-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.12em;
  background: linear-gradient(90deg,
    var(--orange), var(--red), var(--purple), var(--blue),
    var(--purple), var(--red), var(--orange)
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: text-scan 3s linear infinite;
}

@keyframes text-scan {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.brand-coding {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text-primary);
  opacity: 0.85;
}

.tagline {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
}

.version {
  position: absolute;
  top: 4px;
  right: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  padding: 3px 8px;
  border-radius: 6px;
}

/* ============================================================
   License Status Bar
   ============================================================ */
.license-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 12px 18px;
  margin-bottom: 24px;
  transition: border-color 0.4s ease;
}

.license-status-bar[data-status="valid"] {
  border-color: rgba(0, 255, 163, 0.2);
}

.license-status-bar[data-status="invalid"],
.license-status-bar[data-status="expired"] {
  border-color: rgba(255, 59, 59, 0.2);
}

.license-status-bar[data-status="unknown"] {
  border-color: rgba(255, 255, 255, 0.06);
}

.lsb-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lsb-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  flex-shrink: 0;
  transition: all 0.4s ease;
}

.license-status-bar[data-status="valid"] .lsb-dot {
  background: var(--success);
  box-shadow: 0 0 8px rgba(0, 255, 163, 0.6);
}

.license-status-bar[data-status="invalid"] .lsb-dot,
.license-status-bar[data-status="expired"] .lsb-dot,
.license-status-bar[data-status="wrong_email"] .lsb-dot {
  background: var(--error);
  box-shadow: 0 0 8px rgba(255, 59, 59, 0.6);
}

.license-status-bar[data-status="unknown"] .lsb-dot {
  background: var(--text-muted);
  animation: dot-blink 1.5s ease-in-out infinite;
}

@keyframes dot-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.lsb-text {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  transition: color 0.3s;
}

.license-status-bar[data-status="valid"] .lsb-text {
  color: var(--success);
}

.license-status-bar[data-status="invalid"] .lsb-text,
.license-status-bar[data-status="expired"] .lsb-text {
  color: var(--error);
}

.lsb-badge {
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  text-transform: uppercase;
  transition: all 0.3s;
}

.license-status-bar[data-status="valid"] .lsb-badge {
  background: rgba(0, 255, 163, 0.08);
  color: var(--success);
  border: 1px solid rgba(0, 255, 163, 0.15);
}

.license-status-bar[data-status="invalid"] .lsb-badge,
.license-status-bar[data-status="expired"] .lsb-badge {
  background: rgba(255, 59, 59, 0.08);
  color: var(--error);
  border: 1px solid rgba(255, 59, 59, 0.15);
}

/* ============================================================
   Cards (Sections)
   ============================================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 16px;
  transition: border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(162, 89, 255, 0.3), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.card:hover::before {
  opacity: 1;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(162, 89, 255, 0.1);
  color: var(--purple);
  flex-shrink: 0;
}

.card h2 {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-primary);
}

.card-desc {
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.5;
  margin-bottom: 18px;
}

/* ============================================================
   Input Fields
   ============================================================ */
.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.input-wrapper {
  position: relative;
}

.input {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  background: var(--bg-primary);
  border: 1px solid var(--border-medium);
  border-radius: 10px;
  color: var(--text-primary);
  padding: 12px 48px 12px 16px;
  width: 100%;
  transition: all 0.25s ease;
  outline: none;
}

/* Obfuscated key: blurred text until eye toggle */
.input.obfuscated {
  color: transparent;
  text-shadow: 0 0 8px rgba(162, 89, 255, 0.6);
}

.input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(162, 89, 255, 0.15), 0 0 20px rgba(162, 89, 255, 0.08);
}

.input::placeholder {
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0.15em;
  text-shadow: none;
}

.input-glow {
  position: absolute;
  bottom: -1px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple), transparent);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.input:focus ~ .input-glow {
  opacity: 1;
}

.show-toggle {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 8px;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.show-toggle:hover {
  color: var(--purple);
  background: rgba(162, 89, 255, 0.08);
}

/* ============================================================
   Buttons
   ============================================================ */
.actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  outline: none;
  letter-spacing: 0.02em;
}

.btn:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 2px;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: linear-gradient(135deg, #7C3AED, #6D28D9);
  color: white;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.25);
}

.btn-primary:hover:not(:disabled) {
  box-shadow: 0 6px 24px rgba(124, 58, 237, 0.4);
  transform: translateY(-1px);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border-medium);
  color: var(--text-secondary);
}

.btn-ghost:hover:not(:disabled) {
  border-color: rgba(162, 89, 255, 0.4);
  color: var(--purple);
  background: rgba(162, 89, 255, 0.06);
}

.btn-icon {
  font-size: 14px;
  transition: transform 0.2s;
}

.btn-primary:hover .btn-icon {
  transform: translateX(2px);
}

.lic-result {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.lic-result.ok {
  color: var(--success);
}

.lic-result.error {
  color: var(--error);
}

/* ============================================================
   License Details Panel
   ============================================================ */
.lic-details {
  margin-top: 22px;
  padding: 18px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  animation: details-in 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.lic-details::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--success), rgba(0, 255, 163, 0.1));
  border-radius: 2px;
}

@keyframes details-in {
  from { transform: translateY(8px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.lic-details[hidden] { display: none; }

.lic-details-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--success);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lic-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.lic-detail {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  transition: border-color 0.2s;
}

.lic-detail:hover {
  border-color: rgba(162, 89, 255, 0.15);
}

.lic-detail.full-width {
  grid-column: 1 / -1;
}

.lic-detail-label {
  font-size: 9px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lic-detail-value {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lic-detail-highlight {
  background: linear-gradient(135deg, var(--orange), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

/* Obfuscated values — hover to reveal */
.lic-detail-blur {
  filter: blur(4px);
  transition: filter 0.3s ease;
  cursor: help;
}

.lic-detail-blur:hover {
  filter: blur(0px);
}

/* Status colors on the detail value */
.lic-detail-value.status-valid { color: var(--success); }
.lic-detail-value.status-expired { color: var(--error); }
.lic-detail-value.status-invalid { color: var(--error); }
.lic-detail-value.status-warning { color: var(--warning); }

/* ============================================================
   Steps
   ============================================================ */
.steps {
  list-style: none;
  padding: 0;
  counter-reset: step;
}

.steps li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.55;
}

.steps li + li {
  border-top: 1px solid var(--border-subtle);
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: rgba(162, 89, 255, 0.1);
  color: var(--purple);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.steps b {
  color: var(--text-primary);
  font-weight: 600;
}

.steps code {
  font-family: var(--font-mono);
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--purple);
  font-size: 10.5px;
}

/* ============================================================
   Footer
   ============================================================ */
footer {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent 5%, rgba(162, 89, 255, 0.2) 50%, transparent 95%) 1;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 4px;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  background: linear-gradient(90deg, #8B5CF6, #7C3AED, #6D28D9);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: text-scan 3s linear infinite;
}

.footer-coding {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

.footer-copy {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ============================================================
   Animations
   ============================================================ */
.card {
  animation: card-in 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.card:nth-child(2) { animation-delay: 0.08s; }
.card:nth-child(3) { animation-delay: 0.16s; }

@keyframes card-in {
  from {
    transform: translateY(10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 600px) {
  body { padding: 20px 12px; }

  .card { padding: 18px; }

  .actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn { justify-content: center; }

  .lic-details-grid {
    grid-template-columns: 1fr;
  }

  .lic-detail.full-width {
    grid-column: 1;
  }
}

/* Lov Brand Logo */
.brand-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0.05em;
}
.brand-logo-o { color: #8B5CF6; }
.brand-version {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  margin-left: 1px;
  vertical-align: super;
}
