/* ════════════════════════════════════════════════════════════════════
   VD PREMIUM LOCK STYLES (Mini-Aşama B.3-PREMIUM)
   Toast + Modal + Kart overlay + Watchlist + AI yorum + CTA bant
   ════════════════════════════════════════════════════════════════════ */

/* ════════════ PREMIUM TOAST (kilitli coin tıklama) ════════════ */
.vd-premium-toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-100%);
  z-index: 10000;
  max-width: 480px;
  min-width: 300px;
  background: rgba(20, 14, 25, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 209, 255, 0.45);
  border-left: 3px solid #00D1FF;
  border-radius: 8px;
  padding: 12px 18px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", system-ui, sans-serif;
  color: var(--text, #e6ecf3);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: 0.1px;
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1), opacity 0.25s;
}

.vd-premium-toast.vd-premium-toast-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.vd-premium-toast-hide {
  opacity: 0 !important;
  transform: translateX(-50%) translateY(-20px) !important;
}

.vd-premium-toast-icon {
  font-size: 16px;
  flex-shrink: 0;
}

.vd-premium-toast-text {
  flex: 1;
}

@media (max-width: 640px) {
  .vd-premium-toast {
    left: 12px;
    right: 12px;
    max-width: none;
    min-width: 0;
    transform: translateY(-100%);
  }
  .vd-premium-toast.vd-premium-toast-visible {
    transform: translateY(0);
  }
  .vd-premium-toast-hide {
    transform: translateY(-20px) !important;
  }
}

/* ════════════ PREMIUM MODAL ════════════ */
.vd-premium-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(5, 8, 13, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.vd-premium-modal-overlay.vd-premium-modal-visible {
  opacity: 1;
  pointer-events: auto;
}

.vd-premium-modal {
  background: linear-gradient(180deg, #0a1626 0%, #06101d 100%);
  border: 1px solid rgba(0, 209, 255, 0.35);
  border-radius: 14px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.7), 0 0 60px rgba(0, 209, 255, 0.1);
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px 28px 24px;
  position: relative;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.3, 1);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", system-ui, sans-serif;
}

.vd-premium-modal-overlay.vd-premium-modal-visible .vd-premium-modal {
  transform: translateY(0) scale(1);
}

.vd-premium-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: transparent;
  border: none;
  color: var(--text3, #6b7785);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.15s;
}

.vd-premium-modal-close:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text, #e6ecf3);
}

.vd-premium-modal-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text, #e6ecf3);
  margin-bottom: 16px;
  letter-spacing: -0.2px;
  line-height: 1.3;
}

.vd-premium-modal-intro {
  color: var(--text2, #a8b3c0);
  font-size: 13.5px;
  margin-bottom: 16px;
  line-height: 1.55;
}

.vd-premium-modal-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

.vd-premium-modal-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  color: var(--text, #e6ecf3);
  font-size: 14px;
  line-height: 1.5;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.vd-premium-modal-features li:last-child {
  border-bottom: none;
}

.vd-premium-modal-check {
  color: #00D1FF;
  font-weight: 700;
  flex-shrink: 0;
  font-size: 14px;
  margin-top: 1px;
}

.vd-premium-modal-warning {
  background: rgba(255, 122, 0, 0.08);
  border-left: 3px solid var(--orange, #ff7a00);
  border-radius: 0 6px 6px 0;
  padding: 12px 14px;
  margin: 16px 0 20px;
  color: var(--text, #e6ecf3);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.55;
}

.vd-premium-modal-cta {
  display: block;
  width: 100%;
  background: linear-gradient(90deg, #00D1FF 0%, #007BFF 100%);
  border: none;
  color: #fff;
  padding: 13px 20px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
  box-shadow: 0 4px 16px rgba(0, 209, 255, 0.3);
}

.vd-premium-modal-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(0, 209, 255, 0.45);
}

.vd-premium-modal-cta:active {
  transform: translateY(0);
}

.vd-premium-modal-footer {
  text-align: center;
  color: var(--text3, #6b7785);
  font-size: 12px;
  margin-top: 14px;
  line-height: 1.5;
}

@media (max-width: 480px) {
  .vd-premium-modal {
    padding: 24px 18px 18px;
  }
  .vd-premium-modal-title {
    font-size: 19px;
  }
}

/* ════════════ KART KİLİT OVERLAY (sinyal grid) ════════════ */
/* Mevcut .opp kartını override etmiyoruz, sadece overlay ekliyoruz */
.opp[data-vd-locked="true"] {
  position: relative;
  overflow: hidden;
  cursor: not-allowed !important;
}

.opp[data-vd-locked="true"] > *:not([data-vd-overlay="true"]) {
  filter: blur(5px);
  pointer-events: none;
  user-select: none;
}

.vd-lock-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 14, 20, 0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  cursor: pointer;
  transition: background 0.15s;
  border-radius: inherit;
}

.vd-lock-overlay:hover {
  background: rgba(10, 14, 20, 0.7);
}

.vd-lock-overlay-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.vd-lock-overlay-icon {
  font-size: 26px;
  filter: drop-shadow(0 2px 8px rgba(0, 209, 255, 0.5));
}

.vd-lock-overlay-text {
  background: rgba(0, 209, 255, 0.2);
  border: 1px solid rgba(0, 209, 255, 0.5);
  color: #fff;
  padding: 5px 14px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", system-ui, sans-serif;
}

/* ════════════ TI SEMBOL INLINE KİLİT (watchlist + best setup) ════════════ */
.ti-watch-sym[data-vd-locked="true"],
.ti-best-sym[data-vd-locked="true"] {
  filter: blur(3px);
  cursor: not-allowed !important;
  opacity: 0.65;
  user-select: none;
  pointer-events: none;
}

/* Lock ikonu net görünsün (blur etkilenmesin) */
.vd-lock-inline-icon {
  display: inline-block;
  filter: blur(0) !important;
  pointer-events: none;
  margin-right: 4px;
  font-size: 0.9em;
}

/* Lock'lu element üzerinde B.2'deki "→" ok'unu kaldır */
.ti-watch-sym[data-vd-locked="true"]::after,
.ti-best-sym[data-vd-locked="true"]::after {
  content: "" !important;
  display: none !important;
}

/* Lock'lu sembol container'ı (satır) üzerinde tooltip cursor */
.ti-watch-sym[data-vd-locked="true"] {
  position: relative;
}

/* ════════════ AI COMMENT LOCK ════════════ */
.vd-ai-lock-open {
  color: inherit;
  line-height: inherit;
}

.vd-ai-lock-last {
  margin-top: 6px;
}

.vd-ai-lock-blur {
  filter: blur(5px);
  user-select: none;
  pointer-events: none;
  margin: 6px 0;
  opacity: 0.85;
}

.vd-ai-lock-sentence {
  display: inline;
}

.vd-ai-lock-note {
  margin-top: 14px;
  padding: 12px 14px;
  background: rgba(0, 209, 255, 0.07);
  border: 1px solid rgba(0, 209, 255, 0.25);
  border-radius: 8px;
  font-size: 12.5px;
  line-height: 1.6;
}

.vd-ai-lock-line {
  color: var(--text, #e6ecf3);
  margin: 3px 0;
  font-weight: 500;
}

.vd-ai-lock-icon {
  display: inline-block;
  margin-right: 2px;
}

.vd-ai-lock-cta {
  display: block;
  margin-top: 10px;
  width: 100%;
  background: linear-gradient(90deg, #00D1FF 0%, #007BFF 100%);
  border: none;
  color: #fff;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}

.vd-ai-lock-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 209, 255, 0.3);
}

/* ════════════ PREMIUM CTA BANT (alt sabit) ════════════ */
.vd-premium-cta-band {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9970;
  background: linear-gradient(180deg, rgba(20, 14, 30, 0.92) 0%, rgba(14, 10, 22, 0.96) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(0, 209, 255, 0.35);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
  padding: 12px 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", system-ui, sans-serif;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.vd-premium-cta-band.vd-premium-cta-visible {
  transform: translateY(0);
}

.vd-premium-cta-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.vd-premium-cta-text {
  flex: 1;
  min-width: 0;
}

.vd-premium-cta-title {
  color: var(--text, #e6ecf3);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.1px;
}

.vd-premium-cta-subtitle {
  color: var(--text3, #6b7785);
  font-size: 11.5px;
  margin-top: 2px;
  line-height: 1.4;
}

.vd-premium-cta-btn {
  background: linear-gradient(90deg, #00D1FF 0%, #007BFF 100%);
  border: none;
  color: #fff;
  padding: 9px 20px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.4px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
  box-shadow: 0 3px 12px rgba(0, 209, 255, 0.3);
  flex-shrink: 0;
  white-space: nowrap;
}

.vd-premium-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 209, 255, 0.45);
}

@media (max-width: 640px) {
  .vd-premium-cta-band {
    padding: 10px 14px;
  }
  .vd-premium-cta-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    text-align: center;
  }
  .vd-premium-cta-title {
    font-size: 12.5px;
  }
  .vd-premium-cta-btn {
    width: 100%;
  }
}

/* ════════════ Z-INDEX HIYERAŞİ ════════════ */
/*
   Cookie banner:        9990
   Premium CTA bant:     9970
   Welcome modal:        9985
   Welcome toast:        9995  (B.2 funnel)
   Premium modal:        9999
   Premium toast:        10000 (en üst, kilit feedback)
   Telegram toast:       9994 (mevcut)
*/

/* ════════════════════════════════════════════════════════════════
   B.3-MAINT: Whitelist override (CSS son savunma hattı)
   
   Bu container'lar premium gating'den ETKİLENMEMELİDİR:
   - Ticker bar (üstteki kayan fiyat şeridi)
   - Market overview kartları (BTC/ETH/Dominance)
   - Header / app-header (admin rozetleri, gezinti)
   
   Bu kurallar, JS bir şekilde bu alanlara marker uygularsa bile
   görsel kilidin etkisiz kalmasını garanti eder.
   ════════════════════════════════════════════════════════════════ */

/* Ticker bar — her zaman tam görünür ve etkileşimli */
.ticker-wrap,
.ticker-wrap *,
.ticker-item,
.ticker-item *,
#tickerScroll,
#tickerScroll * {
  filter: none !important;
  pointer-events: auto !important;
  opacity: 1 !important;
  user-select: text !important;
}

/* Ticker bar içinde olası lock marker'larını görmezden gel */
.ticker-wrap [data-vd-locked],
.ticker-wrap [data-vd-ai-locked],
#tickerScroll [data-vd-locked],
#tickerScroll [data-vd-ai-locked],
.ticker-item [data-vd-locked],
.ticker-item [data-vd-ai-locked] {
  display: revert !important;
}

/* Market overview kartları — BTC, ETH, Dominance daima açık */
.market-overview,
.market-overview *,
.mkt-card,
.mkt-card *,
.mkt-header,
.mkt-price,
.mkt-chg,
.mkt-stats,
.mkt-stat,
.mkt-stat-val,
.mkt-signal {
  filter: none !important;
  opacity: 1 !important;
}

/* Market kartlarındaki olası lock marker'ları görmezden gel */
.market-overview [data-vd-locked],
.market-overview [data-vd-ai-locked],
.mkt-card [data-vd-locked],
.mkt-card [data-vd-ai-locked] {
  display: revert !important;
}

/* Market kartlarında lock overlay görünmesin */
.market-overview .vd-lock-overlay,
.mkt-card .vd-lock-overlay {
  display: none !important;
}

/* Header ve admin bar — daima erişilebilir */
header,
.app-header,
header *,
.app-header * {
  filter: none !important;
  pointer-events: auto !important;
}

/* ════════════════════════════════════════════════════════════════
   B.5 PUBLIC SITE — Premium Kod butonu + LoginScreen modal stilleri
   ════════════════════════════════════════════════════════════════ */

/* Topbar "🔑 Premium Kod" butonu — free kullanıcı için belirgin cyan */
.vd-premium-code-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid rgba(0, 209, 255, 0.4);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(0, 209, 255, 0.15), rgba(125, 90, 240, 0.15));
  color: #c8b6ff;
  font: 600 12px 'Inter', sans-serif;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.vd-premium-code-btn:hover {
  background: linear-gradient(135deg, rgba(0, 209, 255, 0.3), rgba(125, 90, 240, 0.3));
  border-color: rgba(0, 209, 255, 0.7);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 209, 255, 0.25);
}

.vd-premium-code-btn:active {
  transform: translateY(0);
}

/* LoginScreen kapatma "×" butonu (B.5: modal davranışı için) */
.vd-login-close {
  position: absolute;
  top: 20px;
  right: 24px;
  z-index: 10;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  color: rgba(255, 255, 255, 0.7);
  font-size: 24px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vd-login-close:hover {
  background: rgba(255, 61, 107, 0.15);
  border-color: rgba(255, 61, 107, 0.5);
  color: #fff;
  transform: rotate(90deg);
}

/* Premium modal içindeki "Kodum var" linki */
.vd-premium-modal-code-link {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 10px 16px;
  border: 1px solid rgba(0, 209, 255, 0.3);
  border-radius: 8px;
  background: transparent;
  color: #c8b6ff;
  font: 500 13px 'Inter', sans-serif;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.vd-premium-modal-code-link:hover {
  background: rgba(0, 209, 255, 0.1);
  border-color: rgba(0, 209, 255, 0.6);
  color: #fff;
}

/* Mobil ayarı — topbar'da yer kalmazsa Premium Kod butonu daralabilir */
@media (max-width: 640px) {
  .vd-premium-code-btn {
    padding: 6px 12px;
    font-size: 11px;
  }
  .vd-login-close {
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    font-size: 22px;
  }
}

/* ════════════════════════════════════════════════════════════════════
   DETAIL LOCK — Giriş/TP/SL fiyat haritası premium kilidi
   entry-grid + verdict panelini blur + dark overlay + CTA ile kilitler.
   Free + kilitli sembolden farklı sembolde devreye girer.
   ════════════════════════════════════════════════════════════════════ */

/* Kilitlenen panel sarmalayıcı — position context */
.vd-detail-lock-wrap {
  position: relative;
}

/* İçeriği blurla (overlay hariç) */
.vd-detail-lock-wrap[data-vd-detail-locked="true"] > *:not(.vd-detail-lock-overlay) {
  filter: blur(7px);
  pointer-events: none;
  user-select: none;
  transition: filter 0.2s;
}

/* Overlay */
.vd-detail-lock-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px;
  text-align: center;
  background: rgba(8, 12, 20, 0.62);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border-radius: inherit;
  cursor: default;
}

.vd-detail-lock-icon {
  font-size: 30px;
  filter: drop-shadow(0 2px 10px rgba(0, 209, 255, 0.55));
}

.vd-detail-lock-text {
  color: var(--text, #e8f4ff);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.5;
  max-width: 280px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

.vd-detail-lock-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #1565ff, #00a878);
  border: none;
  border-radius: 10px;
  padding: 9px 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #fff;
  cursor: pointer;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  box-shadow: 0 6px 18px rgba(21, 101, 255, 0.3);
  transition: transform 0.15s, box-shadow 0.15s;
}

.vd-detail-lock-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(21, 101, 255, 0.42);
}

@media (max-width: 600px) {
  .vd-detail-lock-text { font-size: 11.5px; max-width: 220px; }
  .vd-detail-lock-icon { font-size: 26px; }
  .vd-detail-lock-cta { padding: 8px 16px; font-size: 11.5px; }
}
