/* =========================================================
   ArgenPro Signal v4.4 — MODAL + tum v4.3 stilleri
   ========================================================= */

:root {
  --ap-blue: #3B82F6;
  --ap-blue-light: #60A5FA;
  --ap-blue-dark: #1D4ED8;
  --ap-blue-deep: #1E3A8A;
  --ap-blue-glow: rgba(59, 130, 246, 0.4);
  --ap-gold: #D4AF37;
  --ap-gold-light: #F4D56E;
  --ap-gold-dark: #B8860B;
  --ap-verde: #10B981;
  --ap-rosso: #EF4444;
  --ap-ink: #030712;
  --ap-carbon: #0B1220;
  --ap-surface: #111827;
  --ap-cream: #F3F4F6;
  --ap-bronze: #CD7F32;
  --ap-silver: #C0C0C0;
  --ap-diamond: #B9F2FF;
}

body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.15), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(29, 78, 216, 0.10), transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.04), transparent 60%),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.005) 0 2px, transparent 2px 6px);
  animation: apBgFloat 30s ease-in-out infinite;
}
@keyframes apBgFloat {
  0%, 100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(2%, -1%) scale(1.04); }
  66%      { transform: translate(-1%, 2%) scale(0.98); }
}
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 10% 20%, rgba(96, 165, 250, 0.5), transparent 40%),
    radial-gradient(1px 1px at 70% 80%, rgba(59, 130, 246, 0.4), transparent 40%),
    radial-gradient(1.5px 1.5px at 35% 65%, rgba(96, 165, 250, 0.45), transparent 40%),
    radial-gradient(1px 1px at 85% 35%, rgba(212, 175, 55, 0.3), transparent 40%);
  animation: apBlueDust 60s linear infinite;
  opacity: 0.7;
}
@keyframes apBlueDust { from { transform: translateY(0); } to { transform: translateY(-100px); } }
body { position: relative; }
body > * { position: relative; z-index: 1; }

header {
  background: linear-gradient(180deg, rgba(11, 18, 32, 0.85) 0%, rgba(3, 7, 18, 0.95) 100%) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
  border-bottom: 1px solid rgba(59, 130, 246, 0.20) !important;
}
header::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--ap-blue) 50%, transparent);
  opacity: 0.8;
  animation: apHeaderSheen 5s ease-in-out infinite;
}
@keyframes apHeaderSheen {
  0%, 100% { opacity: 0.4; transform: scaleX(0.8); }
  50%      { opacity: 0.9; transform: scaleX(1); }
}

.brand-mark {
  background: linear-gradient(135deg, rgba(59,130,246,0.15), rgba(29,78,216,0.25)) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 0 0 0 var(--ap-blue-glow) !important;
  animation: apBrandPulse 3s ease-in-out infinite;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
  cursor: pointer;
  color: transparent !important;
  font-size: 0 !important;
  border-radius: 10px !important;
}
.brand-mark:hover {
  transform: scale(1.12) rotate(-5deg) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 0 32px var(--ap-blue-glow) !important;
}
.brand-mark svg { width: 80% !important; height: 80% !important; display: block !important; }
@keyframes apBrandPulse {
  0%, 100% { box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 0 0 0 var(--ap-blue-glow); }
  50%      { box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 0 28px 8px rgba(59, 130, 246, 0.25); }
}

.brand-name {
  background: linear-gradient(135deg, var(--ap-cream) 0%, var(--ap-blue-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700 !important;
  letter-spacing: 0.5px;
}
.brand-sub { color: var(--ap-blue-light) !important; letter-spacing: 2px !important; }

.stat-value {
  font-family: 'JetBrains Mono', 'Consolas', monospace;
  font-variant-numeric: tabular-nums;
  font-weight: 700 !important;
  letter-spacing: -0.3px;
  text-shadow: 0 0 14px rgba(243, 244, 246, 0.2);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.stat-item { padding: 4px 8px; border-radius: 6px; transition: background 0.2s; }
.stat-item:hover { background: rgba(59, 130, 246, 0.08); }
.stat-item:hover .stat-value { color: var(--ap-blue-light) !important; text-shadow: 0 0 18px var(--ap-blue-glow); }

.tab.active { position: relative; color: var(--ap-cream) !important; }
.tab.active::after {
  content: '';
  position: absolute; left: 18px; right: 18px; bottom: -2px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--ap-blue), var(--ap-blue-light), var(--ap-blue), transparent);
  box-shadow: 0 0 12px var(--ap-blue), 0 0 24px var(--ap-blue-glow);
  border-radius: 2px;
  animation: apTabGlow 2s ease-in-out infinite;
}
@keyframes apTabGlow { 0%, 100% { opacity: 0.7; } 50% { opacity: 1; } }

.tab-badge {
  background: linear-gradient(135deg, var(--ap-blue), var(--ap-blue-dark)) !important;
  color: white !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 8px var(--ap-blue-glow);
}

.signal-card {
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.7), rgba(11, 18, 32, 0.7)) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s, border-color 0.3s !important;
  will-change: transform;
}
.signal-card:hover { transform: translateY(-4px) !important; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--ap-blue-glow) !important; }
.signal-card.buy:hover { box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 28px rgba(16, 185, 129, 0.25), 0 0 0 1px rgba(16, 185, 129, 0.4) !important; }
.signal-card.sell:hover { box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 28px rgba(239, 68, 68, 0.25), 0 0 0 1px rgba(239, 68, 68, 0.4) !important; }
.signal-card.buy  { border-left-color: var(--ap-verde) !important; border-left-width: 3px !important; }
.signal-card.sell { border-left-color: var(--ap-rosso) !important; border-left-width: 3px !important; }

.tier-PREMIUM {
  position: relative;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.20), rgba(212, 175, 55, 0.05)) !important;
  border: 1px solid rgba(212, 175, 55, 0.45) !important;
  color: var(--ap-gold-light) !important;
  font-weight: 700 !important; letter-spacing: 1px; text-transform: uppercase;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.20), inset 0 0 8px rgba(212, 175, 55, 0.08);
  animation: apGoldShimmer 4s ease-in-out infinite; overflow: hidden;
}
.tier-PREMIUM::before {
  content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  animation: apTierShine 3s ease-in-out infinite;
}
@keyframes apTierShine { 0% { left: -100%; } 60%, 100% { left: 100%; } }
@keyframes apGoldShimmer {
  0%, 100% { box-shadow: 0 0 12px rgba(212, 175, 55, 0.20), inset 0 0 8px rgba(212, 175, 55, 0.08); }
  50%      { box-shadow: 0 0 22px rgba(212, 175, 55, 0.40), inset 0 0 14px rgba(212, 175, 55, 0.15); }
}
.tier-STRONG {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.22), rgba(59, 130, 246, 0.05)) !important;
  border: 1px solid rgba(59, 130, 246, 0.45) !important;
  color: var(--ap-blue-light) !important;
  font-weight: 700 !important; letter-spacing: 1px; text-transform: uppercase;
  box-shadow: 0 0 14px rgba(59, 130, 246, 0.20);
}
.tier-MODERATE {
  background: linear-gradient(135deg, rgba(245, 166, 35, 0.15), rgba(245, 166, 35, 0.03)) !important;
  border: 1px solid rgba(245, 166, 35, 0.30) !important;
  color: #fbbf24 !important;
  font-weight: 700 !important; letter-spacing: 1px; text-transform: uppercase;
}
.tier-WATCH {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(168, 85, 247, 0.03)) !important;
  border: 1px solid rgba(168, 85, 247, 0.30) !important;
  color: #c084fc !important;
  font-weight: 700 !important; letter-spacing: 1px; text-transform: uppercase;
}

.user-badge { border-color: rgba(59, 130, 246, 0.25) !important; }
.user-badge .dot {
  background: var(--ap-verde) !important;
  box-shadow: 0 0 10px var(--ap-verde), 0 0 0 0 rgba(16, 185, 129, 0.5);
  animation: apLivePulse 2s ease-in-out infinite;
}
@keyframes apLivePulse {
  0%, 100% { box-shadow: 0 0 10px var(--ap-verde), 0 0 0 0 rgba(16, 185, 129, 0.7); }
  50%      { box-shadow: 0 0 14px var(--ap-verde), 0 0 0 10px rgba(16, 185, 129, 0); }
}

button[onclick*="scanNow"], button[onclick*="scan"], #btn-scan, .btn-scan, button.scan-btn {
  position: relative;
  background: linear-gradient(135deg, var(--ap-blue) 0%, var(--ap-blue-dark) 100%) !important;
  color: white !important; font-weight: 700 !important; letter-spacing: 0.5px;
  animation: apScanPulse 2.5s ease-in-out infinite;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
button[onclick*="scanNow"]:hover, button[onclick*="scan"]:hover, #btn-scan:hover, .btn-scan:hover, button.scan-btn:hover {
  transform: translateY(-2px); box-shadow: 0 8px 28px var(--ap-blue-glow) !important;
}
@keyframes apScanPulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--ap-blue-glow); }
  50%      { box-shadow: 0 0 0 10px rgba(59, 130, 246, 0); }
}

.btn-logout {
  background: rgba(239, 68, 68, 0.12) !important;
  border-color: rgba(239, 68, 68, 0.3) !important;
  color: var(--ap-rosso) !important; font-weight: 600 !important;
}
.btn-logout:hover { background: rgba(239, 68, 68, 0.22) !important; box-shadow: 0 0 16px rgba(239, 68, 68, 0.3); }

@keyframes apFadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
header, .stats-bar, .tabs { animation: apFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.signal-card { animation: apFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) backwards; }
.signal-card:nth-child(1) { animation-delay: 0.05s; }
.signal-card:nth-child(2) { animation-delay: 0.10s; }
.signal-card:nth-child(3) { animation-delay: 0.15s; }
.signal-card:nth-child(4) { animation-delay: 0.20s; }
.signal-card:nth-child(5) { animation-delay: 0.25s; }
.signal-card:nth-child(6) { animation-delay: 0.30s; }
.signal-card:nth-child(7) { animation-delay: 0.35s; }
.signal-card:nth-child(n+8) { animation-delay: 0.40s; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--ap-ink); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--ap-blue-dark), var(--ap-blue-deep));
  border-radius: 5px; border: 2px solid var(--ap-ink);
}

/* ═════════════════════════════════════════════
   YENI v4.4: GUZEL MODAL
   ═════════════════════════════════════════════ */
.ap-modal-overlay {
  position: fixed; inset: 0; z-index: 999999;
  background: rgba(3, 7, 18, 0.78);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  display: grid; place-items: center;
  animation: apModalIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.ap-modal-overlay.closing { animation: apModalOut 0.2s ease-out forwards; }
.ap-modal-panel {
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.98), rgba(11, 18, 32, 0.98));
  border: 1px solid rgba(59, 130, 246, 0.30);
  border-radius: 18px;
  padding: 32px 36px 28px;
  max-width: 420px; width: 90vw;
  text-align: center;
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.7),
    0 0 60px rgba(59, 130, 246, 0.15),
    inset 0 1px 0 rgba(255,255,255,0.05);
  animation: apModalPanelIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.ap-modal-panel.ap-modal-danger {
  border-color: rgba(239, 68, 68, 0.35);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7), 0 0 60px rgba(239, 68, 68, 0.15), inset 0 1px 0 rgba(255,255,255,0.05);
}
.ap-modal-panel.ap-modal-success {
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7), 0 0 60px rgba(16, 185, 129, 0.15), inset 0 1px 0 rgba(255,255,255,0.05);
}
.ap-modal-icon {
  font-size: 44px;
  line-height: 1;
  margin-bottom: 16px;
  animation: apModalIconPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s backwards;
}
.ap-modal-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--ap-cream);
  margin: 0 0 10px;
  letter-spacing: 0.3px;
}
.ap-modal-message {
  font-size: 14px;
  color: #9CA3AF;
  margin: 0 0 24px;
  line-height: 1.55;
}
.ap-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.ap-modal-btn {
  padding: 10px 22px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  min-width: 100px;
  outline: none;
}
.ap-modal-cancel {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--ap-cream);
}
.ap-modal-cancel:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}
.ap-modal-ok {
  background: linear-gradient(135deg, var(--ap-blue), var(--ap-blue-dark));
  color: white;
  box-shadow: 0 4px 14px var(--ap-blue-glow);
}
.ap-modal-ok:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px var(--ap-blue-glow);
}
.ap-modal-ok.ap-modal-ok-danger {
  background: linear-gradient(135deg, var(--ap-rosso), #b91c1c);
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4);
}
.ap-modal-ok.ap-modal-ok-danger:hover {
  box-shadow: 0 6px 22px rgba(239, 68, 68, 0.6);
}
.ap-modal-ok.ap-modal-ok-success {
  background: linear-gradient(135deg, var(--ap-verde), #047857);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}
@keyframes apModalIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes apModalOut { to { opacity: 0; } }
@keyframes apModalPanelIn {
  from { opacity: 0; transform: translateY(-20px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes apModalIconPop {
  from { transform: scale(0.3) rotate(-15deg); opacity: 0; }
  to   { transform: scale(1) rotate(0); opacity: 1; }
}

/* Filter chips, toast, welcome, sound, vs (v4.3'ten ayni) */
.wow-filter-bar {
  display: flex; gap: 8px;
  padding: 14px 24px;
  background: linear-gradient(180deg, rgba(11, 18, 32, 0.8), rgba(3, 7, 18, 0.6));
  border-bottom: 1px solid rgba(59, 130, 246, 0.15);
  backdrop-filter: blur(12px);
  flex-wrap: wrap; align-items: center;
  animation: apFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.wow-chip {
  padding: 7px 16px; border-radius: 20px;
  font-size: 12px; font-weight: 600;
  background: rgba(17, 24, 39, 0.7);
  border: 1px solid rgba(59, 130, 246, 0.18);
  color: var(--text-2);
  cursor: pointer; user-select: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex; align-items: center; gap: 6px;
}
.wow-chip:hover {
  background: rgba(59, 130, 246, 0.10);
  color: var(--ap-cream); border-color: rgba(59, 130, 246, 0.5);
  transform: translateY(-1px);
}
.wow-chip.active {
  background: linear-gradient(135deg, var(--ap-blue), var(--ap-blue-dark));
  color: white; border-color: var(--ap-blue);
  box-shadow: 0 0 16px var(--ap-blue-glow);
  font-weight: 700;
}
.wow-chip[data-filter="BUY"].active { background: linear-gradient(135deg, var(--ap-verde), #047857); color: white; box-shadow: 0 0 16px rgba(16, 185, 129, 0.5); }
.wow-chip[data-filter="SELL"].active { background: linear-gradient(135deg, var(--ap-rosso), #b91c1c); color: white; box-shadow: 0 0 16px rgba(239, 68, 68, 0.5); }
.wow-chip[data-filter="PREMIUM"].active { background: linear-gradient(135deg, var(--ap-gold-light), var(--ap-gold)); color: #000; box-shadow: 0 0 18px rgba(212, 175, 55, 0.6); }
.wow-chip[data-filter="STRONG"].active { background: linear-gradient(135deg, var(--ap-blue-light), var(--ap-blue)); color: white; box-shadow: 0 0 16px var(--ap-blue-glow); }

.wow-search {
  margin-left: auto; padding: 7px 14px;
  background: rgba(11, 18, 32, 0.7);
  border: 1px solid rgba(59, 130, 246, 0.20);
  border-radius: 20px; color: var(--ap-cream);
  font-size: 12px; font-family: 'JetBrains Mono', monospace;
  width: 160px; transition: all 0.3s; outline: none;
}
.wow-search:focus { border-color: var(--ap-blue); width: 240px; box-shadow: 0 0 16px var(--ap-blue-glow); background: rgba(17, 24, 39, 0.85); }
.wow-search::placeholder { color: #6B7280; }

.wow-toast-host {
  position: fixed; top: 80px; right: 20px; z-index: 9999;
  display: flex; flex-direction: column; gap: 10px; pointer-events: none;
  max-width: 90vw;
}
.wow-toast {
  pointer-events: auto;
  min-width: 280px; max-width: 380px; padding: 14px 18px;
  background: linear-gradient(135deg, rgba(11, 18, 32, 0.95), rgba(17, 24, 39, 0.95));
  backdrop-filter: blur(16px);
  border: 1px solid rgba(59, 130, 246, 0.30);
  border-left: 3px solid var(--ap-blue);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 24px var(--ap-blue-glow);
  animation: apToastIn 0.5s cubic-bezier(0.16, 1, 0.3, 1), apToastOut 0.5s 4.5s forwards;
  font-size: 13px; color: var(--ap-cream);
}
.wow-toast.premium { border-left-color: var(--ap-gold-light); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 28px rgba(212, 175, 55, 0.4); }
.wow-toast.strong { border-left-color: var(--ap-blue-light); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 24px var(--ap-blue-glow); }
.wow-toast .t-title { font-weight: 700; margin-bottom: 4px; }
.wow-toast .t-sub { font-size: 11px; color: #9CA3AF; }
@keyframes apToastIn { from { opacity: 0; transform: translateX(120%); } to { opacity: 1; transform: translateX(0); } }
@keyframes apToastOut { to { opacity: 0; transform: translateX(120%); } }

.wow-welcome {
  position: fixed; top: 70px; left: 50%; transform: translateX(-50%);
  padding: 16px 32px; z-index: 9998;
  background: linear-gradient(135deg, var(--ap-blue-light), var(--ap-blue) 50%, var(--ap-blue-dark));
  color: white; border-radius: 14px;
  font-size: 15px; font-weight: 700; letter-spacing: 0.5px;
  box-shadow: 0 12px 40px var(--ap-blue-glow), 0 0 60px rgba(59, 130, 246, 0.2);
  animation: apWelcomeIn 0.7s cubic-bezier(0.16, 1, 0.3, 1), apWelcomeOut 0.5s 4s forwards;
  display: flex; align-items: center; gap: 12px;
}
.wow-welcome::before { content: '★'; font-size: 18px; animation: apStarSpin 2s ease-in-out infinite; }
@keyframes apStarSpin { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(360deg); } }
@keyframes apWelcomeIn { from { opacity: 0; transform: translate(-50%, -30px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes apWelcomeOut { to { opacity: 0; transform: translate(-50%, -30px); } }

.wow-sound-toggle {
  position: fixed; bottom: 22px; right: 22px; z-index: 9997;
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--ap-surface), var(--ap-ink));
  border: 1px solid rgba(59, 130, 246, 0.4);
  display: grid; place-items: center;
  cursor: pointer; user-select: none;
  font-size: 18px; color: var(--ap-blue-light);
  transition: all 0.3s; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}
.wow-sound-toggle:hover { transform: scale(1.1); border-color: var(--ap-blue); box-shadow: 0 4px 24px var(--ap-blue-glow); }
.wow-sound-toggle.muted { opacity: 0.5; color: #6B7280; }

.wow-lambo-mode {
  position: fixed; inset: 0; z-index: 99999; pointer-events: none;
  background: radial-gradient(circle at center, var(--ap-blue-glow), transparent 60%);
  animation: apLamboBurst 1.2s ease-out forwards;
}
@keyframes apLamboBurst { 0% { opacity: 0; transform: scale(0.5); } 30% { opacity: 1; transform: scale(1.2); } 100% { opacity: 0; transform: scale(2); } }
body.wow-lambo-active .signal-card { animation: apLamboShake 0.4s ease-in-out !important; }
@keyframes apLamboShake { 0%, 100% { transform: translateY(0); } 25% { transform: translateY(-6px) rotate(0.3deg); } 75% { transform: translateY(-3px) rotate(-0.2deg); } }

.ap-avatar {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ap-blue), var(--ap-blue-dark));
  display: inline-grid; place-items: center;
  color: white; font-weight: 700; font-size: 11px;
  text-transform: uppercase;
  box-shadow: 0 0 8px var(--ap-blue-glow);
  border: 1.5px solid rgba(96, 165, 250, 0.5);
  margin-right: 4px; vertical-align: middle;
}

.ap-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 10px;
  font-size: 10px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  margin-left: 6px; vertical-align: middle;
}
.ap-badge-bronze { background: linear-gradient(135deg, #CD7F32, #8B5A2B); color: white; }
.ap-badge-silver { background: linear-gradient(135deg, #E5E7EB, #9CA3AF); color: #111827; }
.ap-badge-gold { background: linear-gradient(135deg, var(--ap-gold-light), var(--ap-gold)); color: #111827; box-shadow: 0 0 10px rgba(212, 175, 55, 0.4); }
.ap-badge-diamond {
  background: linear-gradient(135deg, #B9F2FF, #67E8F9);
  color: #111827;
  box-shadow: 0 0 14px rgba(103, 232, 249, 0.5);
  animation: apDiamondShine 3s ease-in-out infinite;
}
@keyframes apDiamondShine { 0%, 100% { box-shadow: 0 0 10px rgba(103, 232, 249, 0.3); } 50% { box-shadow: 0 0 20px rgba(103, 232, 249, 0.7); } }

.ap-ticker {
  display: flex; overflow: hidden;
  padding: 8px 0; gap: 0;
  background: linear-gradient(180deg, rgba(11, 18, 32, 0.95), rgba(3, 7, 18, 0.9));
  border-bottom: 1px solid rgba(59, 130, 246, 0.15);
  position: relative;
}
.ap-ticker-track {
  display: flex; gap: 40px; padding-left: 100%;
  animation: apTickerScroll 60s linear infinite;
  white-space: nowrap;
}
.ap-ticker:hover .ap-ticker-track { animation-play-state: paused; }
.ap-ticker-item {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-family: 'JetBrains Mono', monospace;
  color: var(--ap-cream);
}
.ap-ticker-item .sym { color: var(--ap-blue-light); font-weight: 600; }
.ap-ticker-item .price { font-weight: 700; }
.ap-ticker-item .change.up { color: var(--ap-verde); }
.ap-ticker-item .change.down { color: var(--ap-rosso); }
@keyframes apTickerScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.ap-sparkline { display: block; width: 100%; height: 32px; margin: 8px 0; opacity: 0.85; }
.signal-card:hover .ap-sparkline path { stroke-width: 2.5; }

.ap-shortcuts-overlay {
  position: fixed; inset: 0; z-index: 99998;
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(12px);
  display: grid; place-items: center;
  animation: apFadeIn 0.3s;
}
.ap-shortcuts-panel {
  background: linear-gradient(135deg, var(--ap-surface), var(--ap-carbon));
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 16px;
  padding: 28px 32px;
  max-width: 500px; width: 90vw;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7), 0 0 60px var(--ap-blue-glow);
}
.ap-shortcuts-panel h3 { color: var(--ap-blue-light); margin-bottom: 16px; font-size: 16px; letter-spacing: 1px; text-transform: uppercase; }
.ap-shortcut-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; color: var(--ap-cream); font-size: 13px;
  border-bottom: 1px solid rgba(59, 130, 246, 0.1);
}
.ap-shortcut-row:last-child { border-bottom: none; }
.ap-shortcut-row kbd {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 5px;
  padding: 3px 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--ap-blue-light);
  margin: 0 2px;
}

.ap-rain-host { position: fixed; inset: 0; z-index: 9996; pointer-events: none; overflow: hidden; }
.ap-rain-drop {
  position: absolute; top: -30px;
  width: 8px; height: 8px;
  background: radial-gradient(circle, var(--ap-gold-light), var(--ap-gold));
  border-radius: 50%;
  box-shadow: 0 0 8px var(--ap-gold);
  animation: apRainFall 2s ease-in forwards;
}
@keyframes apRainFall { from { transform: translateY(0) rotate(0deg); opacity: 1; } to { transform: translateY(110vh) rotate(720deg); opacity: 0; } }

body.ap-compact .signal-card { padding: 12px 16px !important; }
body.ap-compact .signal-card > * + * { display: none !important; }
body.ap-compact .signal-card > div:first-child,
body.ap-compact .signal-card > .sym,
body.ap-compact .signal-card > h3 { display: block !important; }

.ap-view-switch {
  display: inline-flex; gap: 4px;
  margin-left: 12px; padding: 3px;
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: 14px;
}
.ap-view-btn {
  padding: 4px 10px; border-radius: 11px;
  font-size: 11px; font-weight: 600;
  background: transparent; border: 0; color: #9CA3AF;
  cursor: pointer; transition: all 0.2s;
}
.ap-view-btn.active { background: linear-gradient(135deg, var(--ap-blue), var(--ap-blue-dark)); color: white; box-shadow: 0 0 8px var(--ap-blue-glow); }

@media (max-width: 768px) {
  .wow-filter-bar { padding: 10px 12px; gap: 6px; overflow-x: auto; flex-wrap: nowrap; }
  .wow-chip { padding: 6px 12px; font-size: 11px; white-space: nowrap; }
  .wow-search { width: 100%; margin: 8px 0 0 0; }
  .wow-toast-host { top: auto; bottom: 80px; right: 10px; left: 10px; }
  .wow-toast { min-width: 0; max-width: 100%; }
  .wow-welcome { padding: 12px 20px; font-size: 13px; }
  .wow-sound-toggle { width: 42px; height: 42px; bottom: 16px; right: 16px; }
  .ap-ticker-item { font-size: 11px; }
  .ap-shortcuts-panel { padding: 20px; }
  .ap-modal-panel { padding: 24px 20px; }
  .ap-modal-icon { font-size: 36px; }
  .ap-modal-title { font-size: 16px; }
}

/* ═════════════════════════════════════════════
   SIFRE DEGISTIR MODAL (v4.6)
   ═════════════════════════════════════════════ */
.ap-pwd-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 4px 0 22px;
}
.ap-pwd-input {
  background: rgba(11, 18, 32, 0.7);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 13px;
  color: var(--ap-cream);
  outline: none;
  transition: all 0.2s;
  font-family: 'JetBrains Mono', monospace;
}
.ap-pwd-input:focus {
  border-color: var(--ap-blue);
  background: rgba(17, 24, 39, 0.85);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.3);
}
.ap-pwd-input::placeholder { color: #6B7280; font-family: 'Inter', sans-serif; }
.ap-pwd-error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  color: #fca5a5;
  text-align: left;
}
.ap-modal-ok.ap-modal-ok-success,
.wow-toast.success {
  background: linear-gradient(135deg, var(--ap-verde), #047857) !important;
  color: white !important;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4) !important;
}
.wow-toast.success {
  border-left-color: var(--ap-verde) !important;
  background: linear-gradient(135deg, rgba(11, 18, 32, 0.95), rgba(17, 24, 39, 0.95)) !important;
}

/* Sifre degistir butonu (avatar yaninda) */
.ap-pwd-btn {
  background: rgba(59, 130, 246, 0.10);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: var(--ap-blue-light);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  transition: all 0.25s;
  vertical-align: middle;
}
.ap-pwd-btn:hover {
  background: rgba(59, 130, 246, 0.20);
  border-color: var(--ap-blue);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px var(--ap-blue-glow);
}

/* Admin: User satirinda sifre sifirla butonu (v4.7) */
.ap-reset-pwd-btn {
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: var(--ap-gold-light);
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  margin-left: 6px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
}
.ap-reset-pwd-btn:hover {
  background: rgba(212, 175, 55, 0.25);
  border-color: var(--ap-gold);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.3);
}


/* ============================================================
   ONLINE/OFFLINE DOT (v4.8.0)
   ============================================================ */
.ap-online-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
    background: #6b7280; /* gri = bilinmiyor */
    border: 2px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    transition: background 0.3s ease, box-shadow 0.3s ease;
    flex-shrink: 0;
}
.ap-online-dot.online {
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.7), 0 0 0 0 rgba(34, 197, 94, 0.5);
    animation: apOnlinePulse 2s ease-in-out infinite;
}
.ap-online-dot.offline {
    background: #ef4444;
    box-shadow: 0 0 4px rgba(239, 68, 68, 0.4);
}
@keyframes apOnlinePulse {
    0%, 100% { box-shadow: 0 0 8px rgba(34, 197, 94, 0.7), 0 0 0 0 rgba(34, 197, 94, 0.5); }
    50%      { box-shadow: 0 0 12px rgba(34, 197, 94, 0.9), 0 0 0 6px rgba(34, 197, 94, 0); }
}
.ap-online-dot-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    margin-left: 4px;
    vertical-align: middle;
    opacity: 0.8;
}
.ap-online-dot-label.online  { color: #22c55e; }
.ap-online-dot-label.offline { color: #ef4444; }


/* ============================================================
   PRO UPGRADE v4.9.0 - HARIKALAR DIYARI
   ============================================================ */

/* --- 1. QUALITY HIERARCHY --- */
.signal-card.ap-pro-PREMIUM {
    border: 2px solid rgba(244, 213, 110, 0.55) !important;
    background: linear-gradient(135deg,
        rgba(244, 213, 110, 0.04) 0%,
        rgba(15, 23, 42, 0.95) 60%) !important;
    box-shadow:
        0 0 24px rgba(244, 213, 110, 0.15),
        0 4px 24px rgba(0,0,0,0.5),
        inset 0 1px 0 rgba(244, 213, 110, 0.1) !important;
    transform: scale(1.005);
    position: relative;
}
.signal-card.ap-pro-PREMIUM::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(244, 213, 110, 0.8) 50%,
        transparent 100%);
    animation: apPremiumShimmer 3s ease-in-out infinite;
    border-radius: 12px 12px 0 0;
    pointer-events: none;
}
@keyframes apPremiumShimmer {
    0%, 100% { opacity: 0.4; }
    50%      { opacity: 1; }
}

.signal-card.ap-pro-STRONG {
    border: 1.5px solid rgba(34, 197, 94, 0.4) !important;
    box-shadow: 0 0 18px rgba(34, 197, 94, 0.1), 0 4px 16px rgba(0,0,0,0.4) !important;
}

.signal-card.ap-pro-MODERATE { opacity: 0.92; }

.signal-card.ap-pro-WATCH {
    opacity: 0.62;
    filter: saturate(0.7);
    transform: scale(0.98);
}
.signal-card.ap-pro-WATCH:hover {
    opacity: 1;
    filter: none;
    transform: scale(1);
}

/* --- 2. R:R BAR --- */
.ap-rr-bar {
    margin: 12px 16px 0;
    padding: 10px 12px;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.05);
}
.ap-rr-bar-label {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #8b949e;
    margin-bottom: 6px;
    font-weight: 600;
}
.ap-rr-bar-track {
    display: flex;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    background: rgba(255,255,255,0.03);
}
.ap-rr-bar-risk {
    background: linear-gradient(90deg, #ef4444, #dc2626);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
}
.ap-rr-bar-reward {
    background: linear-gradient(90deg, #22c55e, #16a34a);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
}
.ap-rr-bar-values {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    margin-top: 6px;
    font-family: 'SF Mono', 'Consolas', 'Courier New', monospace;
}
.ap-rr-bar-risk-val  { color: #ef4444; font-weight: 700; }
.ap-rr-bar-reward-val{ color: #22c55e; font-weight: 700; }
.ap-rr-bar-ratio { color: #f4d56e; font-weight: 700; }

/* --- 3. INDICATOR TOOLTIP --- */
.layer {
    position: relative;
    cursor: help;
}
.layer:hover .ap-layer-tooltip {
    opacity: 1;
    transform: translate(-50%, 0);
    pointer-events: auto;
}
.ap-layer-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translate(-50%, 6px);
    background: #0a0f1a;
    color: #f0f6fc;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    border: 1px solid rgba(244, 213, 110, 0.3);
    box-shadow: 0 8px 24px rgba(0,0,0,0.6);
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
    z-index: 100;
    pointer-events: none;
}

/* --- 4. SLIDE-IN ANIMATION --- */
@keyframes apSignalSlideIn {
    0%   { opacity: 0; transform: translateX(-30px) scale(0.97); }
    60%  { opacity: 1; transform: translateX(0) scale(1.01); }
    100% { opacity: 1; transform: translateX(0) scale(1); }
}
.signal-card.ap-pro-fresh {
    animation: apSignalSlideIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes apFreshFlash {
    0%, 100% { box-shadow: 0 0 0 0 rgba(244, 213, 110, 0); }
    50%      { box-shadow: 0 0 24px 4px rgba(244, 213, 110, 0.35); }
}
.signal-card.ap-pro-fresh.ap-pro-PREMIUM {
    animation: apSignalSlideIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both,
               apFreshFlash 1.5s ease-out 0.55s 1;
}

/* --- 5. SEMBOL ICON --- */
.ap-symbol-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    font-size: 14px;
    margin-right: 8px;
    vertical-align: middle;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
}
.signal-symbol {
    display: flex !important;
    align-items: center;
}

/* --- 6. MONOSPACE --- */
.trade-value, .signal-score {
    font-family: 'SF Mono', 'JetBrains Mono', 'Consolas', 'Courier New', monospace !important;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.5px;
}

/* --- 7. SON TARAMA BADGE --- */
#ap-last-scan-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    color: #22c55e;
    margin-left: 12px;
    vertical-align: middle;
    font-family: 'SF Mono', 'Consolas', monospace;
}
#ap-last-scan-badge.stale {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}
#ap-last-scan-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    animation: apScanPulse 2s ease-in-out infinite;
}
@keyframes apScanPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.4; transform: scale(0.8); }
}

.signal-card:hover .signal-score {
    transform: scale(1.08);
    transition: transform 0.3s;
}


/* ============================================================
   MOBILE RESPONSIVE v5.0.0 - Pro Trader UX on Mobile
   Phone:  <= 480px (iPhone, Android dikey)
   Tablet: 481-768px (iPad mini, tablet)
   ============================================================ */

/* ========== TABLET (481-768px) ========== */
@media (max-width: 768px) {
  /* Sinyal karti compact */
  .signal-card {
    padding: 14px !important;
    margin-bottom: 12px !important;
    border-radius: 10px !important;
  }

  /* Layer'lar 4 -> 2x2 grid */
  .layers {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    margin-bottom: 10px !important;
  }

  /* Trade grid 4 -> 2x2 */
  .trade-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    padding: 10px 0 !important;
  }

  /* R:R bar - daha kompakt */
  .ap-rr-bar {
    margin: 10px 0 0 !important;
    padding: 8px 10px !important;
  }

  /* Sembol icon biraz kucult */
  .ap-symbol-icon {
    width: 22px !important;
    height: 22px !important;
    font-size: 12px !important;
    margin-right: 6px !important;
  }

  /* Score biraz kucult */
  .signal-score {
    font-size: 24px !important;
  }
}

/* ========== PHONE (<= 480px) - asil savas ========== */
@media (max-width: 480px) {
  /* Header compact - logo + avatar yan yana, alt satira her sey */
  body {
    font-size: 14px;
  }

  /* Sinyal karti daha kompakt */
  .signal-card {
    padding: 12px !important;
    margin-bottom: 10px !important;
    border-radius: 10px !important;
  }

  /* Sinyal header - sembol uste, score sasa */
  .signal-header {
    margin-bottom: 10px !important;
  }
  .signal-symbol {
    font-size: 15px !important;
  }
  .signal-meta {
    font-size: 10px !important;
  }
  .signal-direction {
    font-size: 11px !important;
  }
  .signal-score {
    font-size: 22px !important;
  }
  .signal-score .pct {
    font-size: 14px !important;
  }

  /* Layer bar'lar daha kompakt */
  .layer-label {
    font-size: 9px !important;
    letter-spacing: 0.5px !important;
  }
  .layer-value {
    font-size: 10px !important;
  }
  .layer-bar {
    height: 3px !important;
  }

  /* Trade grid label/value compact */
  .trade-label {
    font-size: 9px !important;
    letter-spacing: 0.5px !important;
  }
  .trade-value {
    font-size: 14px !important;
    letter-spacing: 0 !important;
  }
  .trade-pos {
    font-size: 10px !important;
  }

  /* R:R bar mobile */
  .ap-rr-bar {
    margin: 8px 0 0 !important;
    padding: 7px 9px !important;
    border-radius: 6px !important;
  }
  .ap-rr-bar-label {
    font-size: 9px !important;
    margin-bottom: 5px !important;
  }
  .ap-rr-bar-track {
    height: 6px !important;
  }
  .ap-rr-bar-values {
    font-size: 10px !important;
    margin-top: 5px !important;
  }
  .ap-rr-bar-ratio {
    font-size: 10px !important;
  }

  /* Signal footer (Cikis/Favori/Not butonlari) */
  .signal-footer {
    flex-direction: column !important;
    gap: 8px !important;
    align-items: stretch !important;
  }
  .footer-info {
    font-size: 11px !important;
    text-align: center;
  }
  .footer-actions {
    display: flex !important;
    gap: 8px !important;
    width: 100%;
  }
  .footer-actions .btn-icon {
    flex: 1;
    min-height: 36px !important;
    font-size: 12px !important;
    padding: 8px 6px !important;
  }

  /* Tags compact */
  .tags {
    gap: 4px !important;
    margin-bottom: 10px !important;
  }
  .tag {
    font-size: 10px !important;
    padding: 3px 7px !important;
  }

  /* PREMIUM kart scale yapma - mobilde yer dar */
  .signal-card.ap-pro-PREMIUM {
    transform: none !important;
  }
  .signal-card.ap-pro-WATCH {
    transform: none !important;
    opacity: 0.8 !important;
  }

  /* Sembol icon mobile */
  .ap-symbol-icon {
    width: 20px !important;
    height: 20px !important;
    font-size: 11px !important;
    margin-right: 5px !important;
    border-radius: 4px !important;
  }

  /* === UST BAR (stats, tabs, filter-chips) === */
  /* AKTIF / CALISTIRILABILIR / FAV / NOT / SON TARAMA - yatay scroll */
  .stat-bar, .stats {
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 8px 12px !important;
  }
  .stat-bar::-webkit-scrollbar, .stats::-webkit-scrollbar {
    display: none;
  }
  .stat-item {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
  }

  /* Tabs (Tum Sinyaller / Favorilerim / Notlarim) - yatay scroll */
  .tabs {
    padding: 0 12px !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .tabs::-webkit-scrollbar { display: none; }
  .tab {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    padding: 10px 14px !important;
    font-size: 13px !important;
  }

  /* Filter chips bar - zaten wow_v4.css'te overflow-x var, ek dokunus */
  .wow-filter-bar {
    padding: 8px 12px !important;
    gap: 6px !important;
  }
  .wow-chip {
    flex-shrink: 0 !important;
    padding: 7px 12px !important;
    font-size: 11px !important;
    min-height: 32px;
  }

  /* Sembol arama - alta tasi, tam genislik */
  .wow-search {
    width: 100% !important;
    margin: 8px 0 0 !important;
    min-height: 38px;
    font-size: 14px;
  }

  /* === HEADER (logo + avatar + cikis) === */
  .app-header {
    padding: 10px 12px !important;
    flex-wrap: nowrap !important;
  }
  .brand, .brand-name {
    font-size: 15px !important;
  }
  .brand-sub {
    font-size: 10px !important;
  }
  /* Logo svg kucult */
  .brand svg, .logo svg {
    width: 32px !important;
    height: 32px !important;
  }
  /* Avatar + isim compact */
  .user-badge, .user-info {
    padding: 4px 8px !important;
    gap: 6px !important;
    font-size: 12px !important;
  }
  .user-avatar {
    width: 26px !important;
    height: 26px !important;
    font-size: 12px !important;
  }
  /* Cikis butonu kucult */
  .btn-logout, .logout-btn {
    padding: 6px 10px !important;
    font-size: 12px !important;
  }

  /* Son tarama badge mobile */
  #ap-last-scan-badge {
    margin-left: 6px !important;
    font-size: 10px !important;
    padding: 3px 8px !important;
  }

  /* Online dot mobile */
  .ap-online-dot {
    width: 8px !important;
    height: 8px !important;
  }

  /* Welcome banner mobile */
  .wow-welcome {
    padding: 10px 14px !important;
    font-size: 12px !important;
    border-radius: 8px !important;
  }

  /* Login form mobile */
  .login-card, .login-container {
    padding: 24px 20px !important;
    margin: 16px !important;
  }

  /* === TOUCH TARGETS === */
  /* iOS guideline: minimum 44px tap target */
  button, .btn, .btn-icon, a.btn {
    min-height: 40px;
  }

  /* === ANIMASYON HAFIFLET === */
  /* Mobilde performans icin slide-in suresi azalt */
  .signal-card.ap-pro-fresh {
    animation-duration: 0.35s !important;
  }
  /* PREMIUM shimmer hafiflet */
  .signal-card.ap-pro-PREMIUM::before {
    animation-duration: 4s !important;
    opacity: 0.6;
  }

  /* === TOOLTIP -> TAP TO SHOW === */
  /* Mobilde hover yok, tap'le aktive */
  .layer.tooltip-active .ap-layer-tooltip {
    opacity: 1 !important;
    transform: translate(-50%, 0) !important;
    pointer-events: auto !important;
  }

  /* === Sembol arama icon === */
  .wow-search-icon {
    font-size: 14px !important;
  }
}

/* ========== KUCUK PHONE (<= 360px - eski Android) ========== */
@media (max-width: 360px) {
  .signal-symbol {
    font-size: 14px !important;
  }
  .signal-score {
    font-size: 20px !important;
  }
  .layer-label, .trade-label {
    font-size: 8px !important;
  }
  .trade-value {
    font-size: 13px !important;
  }
}

/* ========== LANDSCAPE PHONE (yan cevirme) ========== */
@media (max-height: 480px) and (orientation: landscape) {
  /* Header daha alcak */
  .app-header {
    padding: 6px 12px !important;
  }
  /* Welcome banner gizle (yer kalsin) */
  .wow-welcome {
    display: none !important;
  }
}


/* ============================================================
   MOBILE POLISH v5.0.0a - Scroll ipuclari + compact header
   ============================================================ */

@media (max-width: 480px) {
  /* === 1. Yatay scroll containerlara sag fade gradient (ipucu) === */
  /* Wrapper'in position relative olmasi lazim - asagidakiler kapsayici */
  .stats, .stat-bar, .tabs, .wow-filter-bar {
    position: relative;
  }
  /* Fade-out gradient sag tarafta */
  .stats::after, .stat-bar::after, .tabs::after, .wow-filter-bar::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 32px;
    background: linear-gradient(to right,
      transparent 0%,
      var(--bg-1, #0a0f1a) 80%,
      var(--bg-1, #0a0f1a) 100%);
    pointer-events: none;
    z-index: 2;
  }

  /* Eger scroll sona ulasildiysa gradient'i gizle */
  .stats.scrolled-end::after,
  .stat-bar.scrolled-end::after,
  .tabs.scrolled-end::after,
  .wow-filter-bar.scrolled-end::after {
    opacity: 0;
    transition: opacity 0.2s;
  }

  /* === 2. Header compact - alt yazi (TRADER TERMINALI) gizle === */
  .brand-sub,
  .brand-tagline,
  .app-header .tagline,
  .app-header [class*="sub"] {
    display: none !important;
  }

  /* Brand alanini compact yap */
  .brand, .app-header .brand {
    gap: 6px !important;
  }

  /* === 3. Tabs - daha kompakt + mavi cizgiyi inceltLT === */
  .tabs {
    border-bottom-width: 1px !important;
  }
  .tab {
    padding: 8px 12px !important;
    font-size: 12px !important;
  }
  /* Active tab altindaki cizgi (genelde ::after veya border-bottom) - inceltLT */
  .tab.active::after,
  .tab[aria-selected="true"]::after {
    height: 2px !important;
  }
  /* Mavi progress/indicator cubugu - inceltLT */
  .tabs-indicator,
  .tab-indicator,
  .tabs::before {
    height: 2px !important;
  }

  /* === 4. Stat-bar item'lari - tıkla ipucu ile compact === */
  .stat-item {
    padding-right: 4px !important;
  }
}

/* === Cok kucuk phone'larda fade gradient zaten gizleniyor (tum kayitlar gorunuyor) === */
@media (max-width: 360px) {
  .brand-name {
    font-size: 13px !important;
  }
}


/* === AP DRAWER v5.0.2 === */
/* Hamburger Button */
.ap-hamburger-btn {
  width: 40px; height: 40px;
  display: inline-flex; flex-direction: column;
  justify-content: center; align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
}
.ap-hamburger-btn:hover {
  background: rgba(212, 175, 55, 0.12);
  border-color: rgba(212, 175, 55, 0.35);
}
.ap-hamburger-btn span {
  display: block;
  width: 18px; height: 2px;
  background: #d4af37;
  border-radius: 2px;
  transition: all 0.25s ease;
}
.ap-hamburger-btn.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.ap-hamburger-btn.is-active span:nth-child(2) {
  opacity: 0;
}
.ap-hamburger-btn.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Drawer Backdrop */
.ap-drawer-backdrop {
  position: fixed; inset: 0;
  background: rgba(5, 10, 20, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  z-index: 9998;
  transition: opacity 0.3s ease;
}
.ap-drawer-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* Drawer Panel */
.ap-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(360px, 88vw);
  background: linear-gradient(180deg, #0b1220 0%, #0a0f1a 100%);
  border-left: 1px solid rgba(212, 175, 55, 0.18);
  box-shadow: -8px 0 32px rgba(0,0,0,0.5);
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(.2,.8,.2,1);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.ap-drawer.is-open {
  transform: translateX(0);
}

/* Drawer Header */
.ap-drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 18px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}
.ap-drawer-user {
  display: flex; align-items: center; gap: 12px;
  min-width: 0;
}
.ap-drawer-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d4af37, #b8941f);
  color: #0a0f1a;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 17px;
  flex-shrink: 0;
}
.ap-drawer-user-info {
  min-width: 0;
}
.ap-drawer-user-name {
  font-size: 13px; font-weight: 600;
  color: #e8edf5;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  max-width: 200px;
}
.ap-drawer-user-role {
  font-size: 11px;
  color: #d4af37;
  letter-spacing: 0.5px;
  margin-top: 2px;
}
.ap-drawer-close {
  width: 32px; height: 32px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  color: #9aa5b8;
  font-size: 20px; line-height: 1;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.2s ease;
  padding: 0;
  flex-shrink: 0;
}
.ap-drawer-close:hover {
  background: rgba(255, 56, 96, 0.12);
  color: #ff6b8a;
  border-color: rgba(255, 56, 96, 0.3);
}

/* Drawer Section */
.ap-drawer-section {
  padding: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.ap-drawer-section-bottom {
  margin-top: auto;
  border-bottom: none;
}
.ap-drawer-section-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #6b7689;
  margin-bottom: 12px;
  text-transform: uppercase;
}

/* Stats Grid in Drawer */
.ap-drawer-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.ap-drawer-stat {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex; flex-direction: column;
  gap: 4px;
}
.ap-drawer-stat-wide {
  grid-column: span 2;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}
.ap-drawer-stat-label {
  font-size: 10px;
  color: #6b7689;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.ap-drawer-stat-value {
  font-size: 16px;
  font-weight: 700;
  color: #e8edf5;
  font-variant-numeric: tabular-nums;
}
.ap-drawer-stat-wide .ap-drawer-stat-value {
  font-size: 13px;
  color: #d4af37;
}

/* Drawer Action Button */
.ap-drawer-action {
  width: 100%;
  display: flex; align-items: center; justify-content: center;
  gap: 10px;
  padding: 13px 16px;
  background: rgba(255, 56, 96, 0.08);
  border: 1px solid rgba(255, 56, 96, 0.25);
  border-radius: 11px;
  color: #ff6b8a;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.ap-drawer-action:hover {
  background: rgba(255, 56, 96, 0.16);
  border-color: rgba(255, 56, 96, 0.5);
  transform: translateY(-1px);
}
.ap-drawer-action-icon {
  font-size: 16px;
  font-weight: 700;
}

/* Drawer Footer */
.ap-drawer-footer {
  padding: 14px 18px;
  display: flex; justify-content: space-between;
  font-size: 11px;
  color: #4a5468;
  border-top: 1px solid rgba(255,255,255,0.04);
  flex-shrink: 0;
}

/* Mobile: dar ekranda email metnini gizle, sadece dot kalsin */
@media (max-width: 480px) {
  .user-badge #user-email {
    display: none;
  }
  .user-badge {
    padding: 6px !important;
  }
}
/* === /AP DRAWER v5.0.2 === */


/* === AP CLEANUP v5.0.3 === */
/* Header'daki runtime sifre butonunu gizle (drawer'a tasidik) */
.ap-pwd-btn {
  display: none !important;
}

/* Ana ekrandaki istatistik bar'ini gizle (drawer'a tasidik) */
.stats-bar {
  display: none !important;
}

/* Drawer'da Sifre Degistir butonu (mavi/altin ton) */
.ap-drawer-action-primary {
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.28);
  color: #d4af37;
  margin-bottom: 10px;
}
.ap-drawer-action-primary:hover {
  background: rgba(212, 175, 55, 0.16);
  border-color: rgba(212, 175, 55, 0.55);
  transform: translateY(-1px);
}
/* === /AP CLEANUP v5.0.3 === */


/* === AP SYMBOL BOOST v5.0.4 === */
/* Sinyal sembolu (enstruman ismi) daha gorunur */
.signal-symbol {
  font-size: 24px !important;
  font-weight: 700 !important;
  letter-spacing: 1.5px !important;
  color: #ffffff !important;
}

@media (max-width: 768px) {
  .signal-symbol {
    font-size: 19px !important;
    letter-spacing: 1px !important;
  }
}

@media (max-width: 360px) {
  .signal-symbol {
    font-size: 17px !important;
    letter-spacing: 0.5px !important;
  }
}
/* === /AP SYMBOL BOOST v5.0.4 === */


/* === AP NOTIFY BTN v5.1.0 === */
.ap-drawer-action-notify {
  background: rgba(122, 154, 255, 0.08);
  border: 1px solid rgba(122, 154, 255, 0.25);
  color: #7a9aff;
  margin-bottom: 10px;
}
.ap-drawer-action-notify:hover {
  background: rgba(122, 154, 255, 0.16);
  border-color: rgba(122, 154, 255, 0.45);
  transform: translateY(-1px);
}
.ap-drawer-action-notify.ap-notify-active {
  background: rgba(110, 224, 176, 0.1);
  border-color: rgba(110, 224, 176, 0.35);
  color: #6ee0b0;
}
.ap-drawer-action-notify.ap-notify-blocked {
  opacity: 0.5;
  cursor: not-allowed;
}
.ap-notify-icon {
  font-size: 16px;
}
/* === /AP NOTIFY BTN v5.1.0 === */


/* === AP EDUCATION BTN v5.2.0 === */
.ap-drawer-action-education {
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.25);
  color: #d4af37;
  margin-bottom: 10px;
  text-decoration: none;
}
.ap-drawer-action-education:hover {
  background: rgba(212, 175, 55, 0.16);
  border-color: rgba(212, 175, 55, 0.45);
  transform: translateY(-1px);
}
.ap-education-icon::before { content: "\1F4DA"; font-size: 16px; }
/* === /AP EDUCATION BTN v5.2.0 === */
