/* ============================================================
   LOCKED TAB UX — non-Pro users see this when clicking
   Whales / Intel / Trading / Smart Money tabs.

   Design notes:
   - Matches DeFade's cyber aesthetic (JetBrains Mono, gradient)
   - Cyan-to-purple gradient on the lock icon and CTA button
   - Feature list reuses .stat-style spacing from main.css
   - PRO badge on tab buttons hints at upsell before click
   ============================================================ */

/* ---- PRO badge on tab buttons (free users) ---- */
.tab-btn.locked {
  position: relative;
}
.tab-btn.locked .tab-pro-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 6px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.8px;
  border-radius: 3px;
  vertical-align: middle;
  background: linear-gradient(90deg, #00d4ff, #b066ff);
  color: #0a0a0f;
  text-transform: uppercase;
  line-height: 1;
}
/* Subtle dimming on the icon/label so the badge reads as the focal point */
.tab-btn.locked .tab-icon,
.tab-btn.locked .tab-label {
  opacity: 0.72;
  transition: opacity 0.15s ease;
}
.tab-btn.locked:hover .tab-icon,
.tab-btn.locked:hover .tab-label,
.tab-btn.locked.active .tab-icon,
.tab-btn.locked.active .tab-label {
  opacity: 1;
}

/* ---- Locked tab panel content ---- */
.locked-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px 56px;
  text-align: center;
  max-width: 520px;
  margin: 32px auto;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}

/* Subtle gradient glow behind the lock — matches brand cyan→purple */
.locked-tab::before {
  content: "";
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.10) 0%, rgba(176, 102, 255, 0.06) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.locked-tab > * {
  position: relative;
  z-index: 1;
}

/* ---- Lock icon ---- */
.locked-tab-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.12), rgba(176, 102, 255, 0.12));
  border: 1px solid rgba(0, 212, 255, 0.25);
  font-size: 32px;
  line-height: 1;
}
.locked-tab-icon svg {
  width: 32px;
  height: 32px;
  stroke: url(#defade-lock-gradient);
}

/* ---- Headline ---- */
.locked-tab-title {
  font-family: 'Chakra Petch', 'JetBrains Mono', ui-monospace, monospace;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin: 0 0 6px;
  background: linear-gradient(90deg, #00d4ff, #b066ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #00d4ff; /* fallback */
}

.locked-tab-sub {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13px;
  color: var(--text2, #8a8a9c);
  margin: 0 0 22px;
  line-height: 1.5;
}

/* ---- Feature list ---- */
.locked-tab-features {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
  text-align: left;
  display: inline-block;
}
.locked-tab-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13px;
  color: var(--text, #e6e6f0);
  padding: 6px 0;
  line-height: 1.4;
}
.locked-tab-features li::before {
  content: "✓";
  display: inline-block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(176, 102, 255, 0.15));
  color: #00d4ff;
  line-height: 18px;
}

/* ---- Upgrade CTA ---- */
.locked-tab-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  background: linear-gradient(90deg, #00d4ff, #b066ff);
  color: #0a0a0f;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.25);
}
.locked-tab-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(0, 212, 255, 0.4);
}
.locked-tab-cta:active {
  transform: translateY(0);
}

.locked-tab-footer {
  margin-top: 18px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  color: var(--text2, #8a8a9c);
  opacity: 0.8;
}
.locked-tab-footer a {
  color: #00d4ff;
  text-decoration: none;
}
.locked-tab-footer a:hover {
  text-decoration: underline;
}

/* ---- Inline locked module (per-module fallback when API returns
        { locked: true } despite tab-level gating — defense in depth) ---- */
.locked-module {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(0, 212, 255, 0.04);
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: 8px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13px;
  color: var(--text2, #8a8a9c);
}
.locked-module-icon {
  font-size: 18px;
  flex-shrink: 0;
}
.locked-module-text {
  flex: 1;
}
.locked-module a {
  color: #00d4ff;
  text-decoration: none;
  font-weight: 700;
}
.locked-module a:hover {
  text-decoration: underline;
}

/* ---- Scan rate-limit banner (top of page when free user
        hits 5/day cap) ---- */
.scan-limit-banner {
  position: relative;
  padding: 14px 44px 14px 18px;
  margin: 0 0 18px;
  background: linear-gradient(90deg, rgba(255, 136, 0, 0.10), rgba(176, 102, 255, 0.08));
  border: 1px solid rgba(255, 136, 0, 0.25);
  border-radius: 10px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13px;
  color: var(--text, #e6e6f0);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.scan-limit-banner-icon {
  font-size: 20px;
  flex-shrink: 0;
}
.scan-limit-banner-text {
  flex: 1;
  min-width: 200px;
  line-height: 1.4;
}
.scan-limit-banner-text strong {
  color: #ff8800;
}
.scan-limit-banner-cta {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  background: linear-gradient(90deg, #00d4ff, #b066ff);
  color: #0a0a0f;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.scan-limit-banner-cta:hover {
  filter: brightness(1.1);
}
.scan-limit-banner-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--text2, #8a8a9c);
  font-size: 16px;
  cursor: pointer;
  border-radius: 4px;
  line-height: 1;
}
.scan-limit-banner-close:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text, #e6e6f0);
}

/* ---- Mobile tweaks ---- */
@media (max-width: 480px) {
  .locked-tab {
    padding: 36px 18px 40px;
    margin: 20px 12px;
  }
  .locked-tab-title {
    font-size: 19px;
  }
  .locked-tab-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 14px;
  }
  .tab-btn.locked .tab-pro-badge {
    font-size: 8px;
    padding: 1px 4px;
    margin-left: 4px;
  }
  .scan-limit-banner {
    padding: 12px 14px;
  }
  .scan-limit-banner-cta {
    width: 100%;
    justify-content: center;
    margin-top: 4px;
  }
}
