/* ── 3D & Simülasyon Stilleri ──────────────────────────────────── */

/* PWA iPhone 3D Mockup */
.pk-iphone-3d {
  width: 260px;
  height: 540px;
  background: #000;
  border-radius: 40px;
  border: 8px solid #1a1a24;
  box-shadow: 
    inset 0 0 0 2px #333,
    0 30px 60px rgba(0,0,0,0.5),
    -20px 20px 30px rgba(0,0,0,0.3);
  position: relative;
  overflow: hidden;
  transform: perspective(1000px) rotateY(-15deg) rotateX(10deg);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  margin: 20px auto;
}
.pk-iphone-3d:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.02);
}
.pk-iphone-notch {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 100px; height: 24px;
  background: #1a1a24;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  z-index: 10;
}
.pk-iphone-screen {
  width: 100%; height: 100%;
  background: var(--pk-bg);
  position: relative;
}
.pk-pwa-popup {
  position: absolute;
  bottom: 20px; left: 50%;
  transform: translateX(-50%);
  background: rgba(28, 28, 30, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex; flex-direction: column; gap: 8px;
  width: 90%;
  animation: pwaBounce 3s infinite;
  box-shadow: 0 15px 30px rgba(0,0,0,0.5);
  color: #fff;
  text-align: center;
}
.pk-pwa-popup::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 10px 10px 0;
  border-style: solid;
  border-color: rgba(28, 28, 30, 0.85) transparent transparent transparent;
}
.pk-pwa-icon-box {
  width: 48px; height: 48px;
  background: var(--pk-primary);
  border-radius: 12px;
  margin: 0 auto;
  box-shadow: 0 4px 10px rgba(99,102,241,0.4);
}
@keyframes pwaBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-10px); }
}

/* Binance Style Quick Trade */
.pk-quick-trade {
  background: var(--pk-surface);
  border: 1px solid var(--pk-border);
  border-radius: 12px;
  padding: 16px;
  display: flex; flex-direction: column; gap: 12px;
}
.pk-order-row {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 0.8rem;
}
.pk-order-red { color: var(--pk-loss); }
.pk-order-green { color: var(--pk-gain); }
.pk-trade-buttons { display: flex; gap: 8px; margin-top: 8px; }
.pk-trade-btn {
  flex: 1; padding: 12px; border-radius: 6px;
  border: none; font-weight: 600; color: #fff;
  cursor: pointer;
}
.pk-btn-buy { background: var(--pk-gain); }
.pk-btn-sell { background: var(--pk-loss); }

/* AI Analysis Scan */
.pk-ai-scan {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}
.pk-ai-scan::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.4), transparent);
  animation: scanWave 3s infinite linear;
}
@keyframes scanWave {
  100% { left: 200%; }
}
.pk-ai-box {
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  padding: 16px; border-radius: 8px;
  display: flex; gap: 16px; align-items: flex-start;
  font-size: 0.85rem;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.1);
  margin-top: 16px;
}

/* Attendance System Dashboard (Yoklama) */
.pk-attendance {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 16px;
}
.pk-att-card {
  background: var(--pk-surface-hover);
  padding: 12px; border-radius: 8px;
  display: flex; flex-direction: column; gap: 4px;
}
.pk-att-card span { font-size: 0.75rem; color: var(--pk-muted-fg); }
.pk-att-card strong { font-size: 1.1rem; }

/* 3D Price Manipulator Slider */
.pk-manipulator {
  background: var(--pk-surface);
  border: 1px solid var(--pk-border);
  border-radius: 16px;
  padding: 24px;
  transform: perspective(800px) rotateX(15deg);
  transform-style: preserve-3d;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.1);
}
.pk-slider-container {
  margin: 20px 0;
  position: relative;
}
.pk-slider-track {
  width: 100%; height: 8px;
  background: #2a2a35; border-radius: 4px;
  overflow: hidden;
}
.pk-slider-fill {
  height: 100%; width: 50%;
  background: linear-gradient(90deg, var(--pk-loss), var(--pk-gain));
  animation: slideFill 4s infinite alternate ease-in-out;
}
.pk-slider-thumb {
  position: absolute;
  top: 50%; left: 50%;
  width: 24px; height: 24px;
  background: #fff; border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
  animation: slideThumb 4s infinite alternate ease-in-out;
}
@keyframes slideFill {
  0% { width: 20%; background: var(--pk-loss); }
  100% { width: 80%; background: var(--pk-gain); }
}
@keyframes slideThumb {
  0% { left: 20%; }
  100% { left: 80%; }
}
.pk-chart-line {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: drawChart 4s infinite alternate ease-in-out;
}
@keyframes drawChart {
  0% { stroke-dashoffset: 1000; stroke: var(--pk-loss); }
  100% { stroke-dashoffset: 0; stroke: var(--pk-gain); }
}

/* Perspective Grid for Website Showcase */
.pk-perspective-grid {
  height: 400px;
  perspective: 1200px;
  position: relative;
  display: flex; justify-content: center; align-items: center;
  overflow: hidden;
}
.pk-perspective-plane {
  width: 600px; height: 600px;
  transform: rotateX(60deg) rotateZ(-45deg);
  transform-style: preserve-3d;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 20px;
  animation: floatPlane 8s infinite alternate ease-in-out;
}
.pk-perspective-item {
  background: var(--pk-surface);
  border-radius: 12px;
  border: 1px solid var(--pk-border);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  transform: translateZ(0);
  transition: transform 0.3s, border-color 0.3s;
  overflow: hidden;
}
.pk-perspective-item:hover {
  transform: translateZ(30px);
  border-color: var(--pk-primary);
}
@keyframes floatPlane {
  0% { transform: rotateX(60deg) rotateZ(-45deg) translateY(0); }
  100% { transform: rotateX(60deg) rotateZ(-45deg) translateY(-30px); }
}
.pk-mock-web {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #1a1a24, #12121a);
  padding: 10px;
  display: flex; flex-direction: column; gap: 10px;
}
.pk-mock-nav {
  height: 10px; width: 100%; background: rgba(255,255,255,0.1); border-radius: 4px;
}
.pk-mock-hero {
  height: 40px; width: 100%; background: rgba(99, 102, 241, 0.2); border-radius: 4px;
}
.pk-mock-cards {
  display: flex; gap: 5px; flex: 1;
}
.pk-mock-card {
  flex: 1; height: 100%; background: rgba(255,255,255,0.05); border-radius: 4px;
}

/* News Marquee / 3D Ticker */
.pk-news-ticker {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--pk-border);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  height: 40px;
  display: flex;
  align-items: center;
  box-shadow: inset 0 2px 10px rgba(0,0,0,0.5);
  margin-top: 16px;
}
.pk-news-track {
  display: flex;
  white-space: nowrap;
  animation: newsScroll 20s linear infinite;
}
.pk-news-item {
  padding: 0 20px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--pk-muted-fg);
  display: flex;
  align-items: center;
  gap: 8px;
}
.pk-news-item span { color: var(--pk-gain); font-weight: bold; }
@keyframes newsScroll {
  0% { transform: translateX(10%); }
  100% { transform: translateX(-100%); }
}

/* Referral Network Node Animation */
.pk-network {
  position: relative;
  height: 150px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 16px;
}
.pk-node {
  width: 40px; height: 40px;
  background: var(--pk-surface);
  border: 2px solid var(--pk-primary);
  border-radius: 50%;
  display: flex; justify-content: center; align-items: center;
  position: absolute;
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
  z-index: 2;
  font-size: 1.2rem;
}
.pk-node.main { top: 10px; width: 50px; height: 50px; }
.pk-node.sub1 { bottom: 20px; left: 20px; }
.pk-node.sub2 { bottom: 20px; right: 20px; }
.pk-line {
  position: absolute;
  background: linear-gradient(90deg, transparent, var(--pk-primary), transparent);
  height: 2px;
  width: 100px;
  top: 70px;
  z-index: 1;
  animation: beam 2s infinite linear;
}
.pk-line.left { left: 45px; transform: rotate(45deg); }
.pk-line.right { right: 45px; transform: rotate(-45deg); }
@keyframes beam {
  0% { background-position: -100px; opacity: 0; }
  50% { opacity: 1; }
  100% { background-position: 100px; opacity: 0; }
}

/* Rewards Unlock Animation */
.pk-reward-box {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--pk-border);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-top: 16px;
}
.pk-reward-progress {
  height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  margin-top: 12px;
  overflow: hidden;
}
.pk-reward-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--pk-primary), var(--pk-gain));
  animation: fillReward 3s infinite ease-in-out;
}
@keyframes fillReward {
  0% { width: 0%; box-shadow: 0 0 0 transparent; }
  80%, 100% { width: 100%; box-shadow: 0 0 15px var(--pk-gain); }
}

/* Live Support Mockup */
.pk-support-chat {
  background: var(--pk-surface);
  border: 1px solid var(--pk-border);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.8rem;
  margin-top: 16px;
}
.pk-support-msg {
  padding: 8px 12px;
  border-radius: 12px;
  max-width: 80%;
}
.pk-support-msg.bot {
  background: rgba(255,255,255,0.05);
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}
.pk-support-msg.user {
  background: var(--pk-primary);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}
.pk-typing {
  display: flex; gap: 4px; padding: 4px;
}
.pk-typing span {
  width: 6px; height: 6px; background: var(--pk-muted-fg); border-radius: 50%;
  animation: typeBounce 1.4s infinite both;
}
.pk-typing span:nth-child(1) { animation-delay: -0.32s; }
.pk-typing span:nth-child(2) { animation-delay: -0.16s; }
@keyframes typeBounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

/* ── BACKOFFICE SIMULATIONS ──────────────────────────────────── */

/* Live Risk Radar (Liquidation Engine) */
.pk-risk-radar {
  position: relative;
  height: 160px;
  background: radial-gradient(circle at center, rgba(239, 68, 68, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  border: 1px solid rgba(239, 68, 68, 0.2);
  margin: 20px auto;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.pk-radar-sweep {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 70%, rgba(239, 68, 68, 0.1) 85%, rgba(239, 68, 68, 0.6) 100%);
  animation: sweep 4s infinite linear;
}
@keyframes sweep {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.pk-risk-dot {
  position: absolute;
  width: 10px; height: 10px;
  background: var(--pk-loss);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--pk-loss);
  animation: blinkRisk 2s infinite;
}
.pk-risk-dot.d1 { top: 30%; left: 60%; animation-delay: 0.5s; }
.pk-risk-dot.d2 { top: 70%; left: 30%; animation-delay: 1.2s; }
@keyframes blinkRisk {
  0%, 100% { opacity: 0.2; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.5); }
}

/* Plug-and-Play Modules */
.pk-plugin-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 20px;
}
.pk-plugin-slot {
  border: 2px dashed rgba(255,255,255,0.1);
  border-radius: 8px;
  height: 50px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.pk-plugin-block {
  width: 100%; height: 100%;
  background: var(--pk-surface-hover);
  border: 1px solid var(--pk-border);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: bold;
  cursor: grab;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  animation: plugIn 3s infinite alternate ease-in-out;
}
.pk-plugin-block.fx { border-color: #0ea5e9; color: #0ea5e9; animation-delay: 0s; }
.pk-plugin-block.crypto { border-color: #f59e0b; color: #f59e0b; animation-delay: 1s; }
.pk-plugin-block.bot { border-color: var(--pk-primary); color: var(--pk-primary); animation-delay: 2s; }
@keyframes plugIn {
  0% { transform: translateY(-15px) scale(0.95); opacity: 0.5; }
  100% { transform: translateY(0) scale(1); opacity: 1; border-width: 2px; }
}

/* Treasury Vault Flow */
.pk-treasury {
  position: relative;
  height: 120px;
  margin-top: 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.pk-vault-source {
  width: 50px; height: 50px;
  background: var(--pk-surface); border: 1px solid var(--pk-border); border-radius: 8px;
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
  z-index: 2;
}
.pk-vault-dest {
  width: 70px; height: 70px;
  background: rgba(16, 185, 129, 0.1); border: 2px solid var(--pk-gain); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 2rem;
  z-index: 2;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}
.pk-vault-flow {
  position: absolute;
  left: 60px; right: 80px;
  height: 4px;
  background: rgba(255,255,255,0.05);
  z-index: 1;
}
.pk-coin {
  position: absolute;
  top: -6px; left: 0;
  width: 16px; height: 16px;
  background: var(--pk-gain);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--pk-gain);
  animation: flowCoin 2s infinite cubic-bezier(0.4, 0, 0.2, 1);
}
.pk-coin:nth-child(2) { animation-delay: 0.6s; }
.pk-coin:nth-child(3) { animation-delay: 1.2s; }
@keyframes flowCoin {
  0% { transform: translateX(0) scale(0.5); opacity: 0; }
  20% { opacity: 1; transform: translateX(20px) scale(1); }
  80% { opacity: 1; transform: translateX(calc(100% - 20px)) scale(1); }
  100% { transform: translateX(100%) scale(0.5); opacity: 0; }
}

/* Candlestick Manipulator */
.pk-candle-manipulator {
  position: relative;
  height: 160px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 30px;
  margin-top: 20px;
}
.pk-candle {
  width: 24px;
  background: var(--pk-gain);
  border-radius: 4px;
  position: relative;
  display: flex;
  justify-content: center;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}
.pk-candle-wick {
  position: absolute;
  width: 4px;
  height: calc(100% + 40px);
  background: var(--pk-gain);
  z-index: -1;
  bottom: -20px;
}
.pk-candle.normal1 { height: 60px; }
.pk-candle.normal2 { height: 90px; }
.pk-candle.manipulated {
  height: 120px;
  background: var(--pk-loss);
  animation: crushCandle 4s infinite alternate ease-in-out;
}
.pk-candle.manipulated .pk-candle-wick {
  background: var(--pk-loss);
}
@keyframes crushCandle {
  0%, 20% { height: 120px; transform: translateY(0); }
  80%, 100% { height: 30px; transform: translateY(90px); box-shadow: 0 0 20px rgba(239, 68, 68, 0.6); }
}
.pk-god-hand {
  position: absolute;
  width: 40px; height: 40px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  border: 2px solid var(--pk-primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  z-index: 5;
  right: calc(50% - 66px); /* Align over the 3rd candle */
  animation: handPress 4s infinite alternate ease-in-out;
  box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}
@keyframes handPress {
  0%, 20% { bottom: 130px; }
  80%, 100% { bottom: 40px; border-color: var(--pk-loss); }
}

/* Trade Volume Override */
.pk-trade-override {
  background: var(--pk-surface-hover);
  border: 1px dashed var(--pk-primary);
  border-radius: 8px;
  padding: 12px;
  margin-top: 20px;
  position: relative;
  overflow: hidden;
}
.pk-override-row {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono); font-size: 0.85rem; margin-bottom: 8px;
}
.pk-vol-badge {
  background: rgba(255,255,255,0.1);
  padding: 2px 8px; border-radius: 4px;
  position: relative;
}
.pk-vol-badge::after {
  content: "10.0 Lot";
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: var(--pk-primary); color: #fff;
  border-radius: 4px; display: flex; align-items: center; justify-content: center;
  animation: swapVolume 4s infinite;
}
@keyframes swapVolume {
  0%, 40% { content: "10.0 Lot"; background: rgba(255,255,255,0.1); color: var(--pk-fg); }
  60%, 100% { content: "0.1 Lot"; background: var(--pk-loss); color: #fff; box-shadow: 0 0 10px var(--pk-loss); }
}
.pk-profit-text {
  animation: swapProfit 4s infinite;
}
@keyframes swapProfit {
  0%, 40% { color: var(--pk-gain); }
  60%, 100% { color: var(--pk-loss); }
}

/* Standard Asset Form Simulator */
.pk-asset-form {
  margin-top: 20px;
  position: relative;
  border-radius: 8px;
}
.pk-form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}
.pk-form-row label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--pk-muted-fg);
}
.pk-form-input, .pk-form-select {
  background: var(--pk-surface-hover);
  border: 1px solid var(--pk-border);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 0.9rem;
  font-family: var(--font-sans);
  color: #fff;
  display: flex; justify-content: space-between; align-items: center;
}
.pk-typing-input::after {
  content: "WEBIO-COIN";
  border-right: 2px solid var(--pk-primary);
  animation: typingSim 4s infinite steps(10, end);
  overflow: hidden;
  white-space: nowrap;
  display: inline-block;
  vertical-align: bottom;
}
@keyframes typingSim {
  0%, 20% { max-width: 0; }
  30%, 100% { max-width: 100px; }
}
.pk-btn-add {
  width: 100%;
  background: var(--pk-primary);
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-weight: 600;
  margin-top: 8px;
  cursor: pointer;
  animation: clickSim 4s infinite;
}
@keyframes clickSim {
  0%, 35% { transform: scale(1); background: var(--pk-primary); }
  40% { transform: scale(0.96); background: oklch(0.68 0.14 245); } /* Click effect */
  45%, 100% { transform: scale(1); background: var(--pk-primary); }
}

.pk-form-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(4px);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  pointer-events: none;
  animation: overlaySim 4s infinite;
}
.pk-spinner {
  width: 32px; height: 32px;
  border: 3px solid rgba(255,255,255,0.2);
  border-top-color: var(--pk-primary);
  border-radius: 50%;
  animation: spin 1s infinite linear;
}
.pk-overlay-text {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #fff;
}
.pk-overlay-text::after {
  content: "Ürün Markete Ekleniyor...";
  animation: overlayTextSim 4s infinite;
}
@keyframes overlaySim {
  0%, 40% { opacity: 0; }
  45%, 95% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes overlayTextSim {
  0%, 75% { content: "Ürün Markete Ekleniyor..."; color: #fff; }
  80%, 100% { content: "EKLENDİ ✔"; color: var(--pk-gain); }
}
.pk-spinner.success {
  animation: spinnerHide 4s infinite;
}
@keyframes spinnerHide {
  0%, 75% { opacity: 1; }
  80%, 100% { opacity: 0; }
}


/* Payment Override */
.pk-payment-override {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}
.pk-pay-card {
  background: var(--pk-surface);
  border: 1px solid var(--pk-border);
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  font-family: var(--font-mono);
}
.pk-pay-toggle {
  width: 40px; height: 20px;
  border-radius: 10px;
  background: var(--pk-loss);
  position: relative;
  animation: toggleSwitch 4s infinite;
}
.pk-pay-toggle::after {
  content: "";
  position: absolute; top: 2px; left: 2px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff;
  transition: 0.3s;
}
@keyframes toggleSwitch {
  0%, 40% { background: var(--pk-loss); }
  50%, 100% { background: var(--pk-gain); box-shadow: 0 0 10px var(--pk-gain); }
}
.pk-pay-toggle.active { animation-delay: 1s; }
.pk-pay-toggle.active {
  animation: toggleSwitchActive 4s infinite;
}
@keyframes toggleSwitchActive {
  0%, 40% { background: var(--pk-gain); }
  50%, 100% { background: var(--pk-loss); }
}

.pk-pay-toggle.active::after {
  animation: toggleThumbActive 4s infinite;
}
@keyframes toggleThumbActive {
  0%, 40% { left: 22px; }
  50%, 100% { left: 2px; }
}
.pk-pay-toggle:not(.active)::after {
  animation: toggleThumb 4s infinite;
}
@keyframes toggleThumb {
  0%, 40% { left: 2px; }
  50%, 100% { left: 22px; }
}

.pk-pay-address {
  color: var(--pk-muted-fg);
}
.pk-pay-edit {
  display: inline-block;
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.7rem;
  margin-left: 8px;
  animation: editBlink 2s infinite;
}
@keyframes editBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ── DEMO WEBSITE SIMULATIONS ──────────────────────────────────── */

/* Sync Simulation */
.pk-demo-sync-sim {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 20px;
  background: rgba(255,255,255,0.03);
  padding: 16px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.05);
}
.pk-sync-header {
  font-size: 0.65rem; color: var(--pk-muted-fg);
  margin-bottom: 8px; text-transform: uppercase; letter-spacing: 1px;
}
.pk-sync-admin, .pk-sync-live {
  flex: 1; display: flex; flex-direction: column; gap: 8px;
}
.pk-sync-input {
  background: rgba(0,0,0,0.5); border: 1px solid var(--pk-border);
  height: 24px; border-radius: 4px; padding: 0 8px;
  font-size: 0.75rem; color: var(--pk-fg); display: flex; align-items: center;
}
.pk-sync-btn {
  background: var(--pk-brand); color: white; border: none;
  border-radius: 4px; padding: 4px 0; font-size: 0.7rem; font-weight: 600;
  animation: btnPress 4s infinite;
}
@keyframes btnPress {
  0%, 45% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(0.95); filter: brightness(0.8); }
  55%, 100% { transform: scale(1); filter: brightness(1); }
}
.pk-sync-arrow {
  width: 40px; height: 2px; background: rgba(255,255,255,0.1);
  margin: 0 16px; position: relative;
}
.pk-arrow-glow {
  position: absolute; top: -1px; left: 0; width: 10px; height: 4px;
  background: var(--pk-gain); box-shadow: 0 0 8px var(--pk-gain);
  border-radius: 2px;
  opacity: 0;
  animation: dataTravel 4s infinite;
}
@keyframes dataTravel {
  0%, 50% { left: 0; opacity: 0; }
  55% { left: 0; opacity: 1; }
  65% { left: 100%; opacity: 1; }
  70%, 100% { left: 100%; opacity: 0; }
}
.pk-sync-banner {
  background: rgba(0,0,0,0.5); border: 1px dashed rgba(255,255,255,0.2);
  height: 32px; border-radius: 4px; display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; color: transparent; font-weight: bold;
}
.pk-sync-banner.pk-banner-flash {
  animation: bannerAppear 4s infinite;
}
@keyframes bannerAppear {
  0%, 65% { color: transparent; background: rgba(0,0,0,0.5); border-color: rgba(255,255,255,0.2); box-shadow: none; }
  70%, 100% { color: white; background: linear-gradient(45deg, #ec4899, #8b5cf6); border-color: transparent; box-shadow: 0 4px 12px rgba(236,72,153,0.3); }
}
.typing-promo::after {
  content: "";
  animation: typePromo 4s infinite steps(15, end);
}
@keyframes typePromo {
  0%, 10% { content: ""; }
  15% { content: "%"; }
  20% { content: "%10"; }
  25% { content: "%100 "; }
  30% { content: "%100 BO"; }
  35% { content: "%100 BONUS"; }
  40%, 100% { content: "%100 BONUS"; }
}

/* Lang Switcher Simulation */
.pk-demo-lang-sim {
  margin-top: 20px;
  background: rgba(0,0,0,0.3);
  border-radius: 8px; border: 1px solid rgba(255,255,255,0.05);
  overflow: hidden;
}
.pk-lang-switcher {
  display: flex; border-bottom: 1px solid rgba(255,255,255,0.05);
}
.pk-lang-opt {
  flex: 1; text-align: center; padding: 6px 0; font-size: 0.75rem;
  color: var(--pk-muted-fg); cursor: default;
}
.pk-lang-content {
  padding: 16px; position: relative; height: 80px;
}
.pk-lang-block {
  position: absolute; top: 16px; left: 16px; right: 16px;
  opacity: 0; animation: langBlock 9s infinite;
}
.block-en { animation-delay: 0s; }
.block-tr { animation-delay: 3s; }
.block-ar { animation-delay: 6s; }

@keyframes langBlock {
  0%, 5% { opacity: 0; transform: translateY(5px); }
  10%, 30% { opacity: 1; transform: translateY(0); }
  33%, 100% { opacity: 0; transform: translateY(-5px); }
}
.pk-lang-title {
  font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; color: var(--pk-fg);
}
.pk-lang-desc {
  font-size: 0.8rem; color: var(--pk-muted-fg); line-height: 1.4;
}
.opt-en { animation: optActive 9s infinite; animation-delay: 0s; }
.opt-tr { animation: optActive 9s infinite; animation-delay: 3s; }
.opt-ar { animation: optActive 9s infinite; animation-delay: 6s; }

@keyframes optActive {
  0%, 5% { color: var(--pk-muted-fg); font-weight: normal; background: transparent; }
  10%, 30% { color: var(--pk-brand); font-weight: bold; background: rgba(255,255,255,0.05); }
  33%, 100% { color: var(--pk-muted-fg); font-weight: normal; background: transparent; }
}

/* Pages Simulation - Clean List */
.pk-demo-pages-list {
  margin-top: 20px;
  display: flex; flex-direction: column; gap: 8px;
}
.pk-page-item {
  background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.05);
  border-radius: 6px; padding: 10px 12px;
  font-size: 0.8rem; font-weight: 600; color: var(--pk-muted-fg);
  display: flex; align-items: center; gap: 10px;
  transition: all 0.3s ease;
}
.pk-page-item .icon { opacity: 0.5; font-size: 1rem; }

.pk-page-item.i1 { animation: pageHighlight 8s infinite 0s; }
.pk-page-item.i2 { animation: pageHighlight 8s infinite 2s; }
.pk-page-item.i3 { animation: pageHighlight 8s infinite 4s; }
.pk-page-item.i4 { animation: pageHighlight 8s infinite 6s; }

@keyframes pageHighlight {
  0%, 15% { background: rgba(255,255,255,0.05); border-color: var(--pk-brand); color: var(--pk-fg); transform: translateX(5px); box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
  20%, 100% { background: rgba(0,0,0,0.3); border-color: rgba(255,255,255,0.05); color: var(--pk-muted-fg); transform: translateX(0); box-shadow: none; }
}

/* Lead Gen Simulation */
.pk-demo-lead-sim {
  margin-top: 20px; position: relative;
}
.pk-lead-form {
  background: rgba(0,0,0,0.3); border: 1px solid var(--pk-border);
  border-radius: 8px; padding: 16px;
  animation: formSubmit 6s infinite;
}
@keyframes formSubmit {
  0%, 80% { opacity: 1; filter: blur(0); }
  85%, 95% { opacity: 0.2; filter: blur(4px); }
  100% { opacity: 1; filter: blur(0); }
}
.pk-lead-row {
  display: flex; gap: 8px; margin-bottom: 12px;
}
.pk-lead-input {
  flex: 1; height: 32px; background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px; display: flex; align-items: center; padding: 0 8px;
  font-size: 0.7rem; color: var(--pk-fg); position: relative;
}
.pk-lead-typed-name::after { content: ""; animation: typeName 6s infinite steps(10); }
.pk-lead-typed-phone::after { content: ""; animation: typePhone 6s infinite steps(10); }

@keyframes typeName { 0%, 10% { content: ""; } 25%, 100% { content: "Ali Yılmaz"; } }
@keyframes typePhone { 0%, 30% { content: ""; } 45%, 100% { content: "+90 555 123"; } }

.pk-lead-btn {
  background: var(--pk-brand); color: white; text-align: center;
  padding: 8px; border-radius: 4px; font-size: 0.8rem; font-weight: bold;
  animation: btnGlow 6s infinite;
}
@keyframes btnGlow {
  0%, 55% { filter: brightness(1); transform: scale(1); }
  60% { filter: brightness(1.2); transform: scale(0.98); }
  65%, 100% { filter: brightness(1); transform: scale(1); }
}

.pk-lead-success {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(16, 185, 129, 0.15); border: 1px solid rgba(16, 185, 129, 0.5);
  border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; z-index: 10;
  animation: successShow 6s infinite;
}
.pk-lead-check {
  font-size: 2rem; color: var(--pk-gain); margin-bottom: 4px;
}
.pk-lead-success span {
  font-size: 0.8rem; color: white; font-weight: 600; text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

/* 3D Infrastructure Simulation */
.pk-demo-infra-sim {
  margin-top: 24px;
  background: radial-gradient(circle at center, rgba(6,182,212,0.1) 0%, rgba(0,0,0,0.5) 100%);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  height: 250px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pk-infra-3d-scene {
  perspective: 1000px;
  transform-style: preserve-3d;
  width: 100%;
  height: 100%;
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
}
.pk-infra-column {
  transform: rotateY(-15deg) rotateX(10deg);
  transform-style: preserve-3d;
  display: flex;
  flex-direction: column;
  gap: 15px;
  animation: floatCol 6s ease-in-out infinite alternate;
}
.pk-infra-column.col-delayed {
  animation-delay: -3s;
}
.pk-infra-title {
  font-size: 0.7rem;
  color: var(--pk-brand);
  text-transform: uppercase;
  letter-spacing: 1px;
  transform: translateZ(10px);
}
.pk-infra-card-3d {
  background: rgba(20,20,30,0.8);
  border: 1px solid rgba(255,255,255,0.1);
  border-top: 1px solid rgba(255,255,255,0.3);
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: -10px 15px 30px rgba(0,0,0,0.6), inset 0 0 15px rgba(255,255,255,0.02);
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
  font-weight: 500;
  backdrop-filter: blur(8px);
  position: relative;
  transition: all 0.5s;
}
.pk-infra-card-3d::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 100%);
  pointer-events: none;
}
.pk-infra-card-3d.highlight {
  border-color: var(--pk-brand);
  box-shadow: -10px 15px 30px rgba(6,182,212,0.2), 0 0 20px rgba(6,182,212,0.4);
  transform: translateZ(20px);
}
.pk-infra-icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.pk-infra-sub {
  font-size: 0.7rem;
  opacity: 0.6;
  font-weight: normal;
}
@keyframes floatCol {
  0% { transform: rotateY(-15deg) rotateX(10deg) translateY(0); }
  100% { transform: rotateY(-15deg) rotateX(10deg) translateY(-20px); }
}
@keyframes successShow {
  0%, 80% { opacity: 0; transform: translateY(10px); }
  85%, 95% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-10px); }
}
