/* 
 * PRADUMNA_FX V2 EXPERIMENTAL — PRODUCTION POLISH
 * 10/10 Upgrade of the original download layout.
 */

:root {
  --bg-dark: #000000;
  --glass-bg: rgba(12, 12, 16, 0.6);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-highlight: rgba(255, 255, 255, 0.15);
  
  --accent: #7c5cff;
  --accent-glow: rgba(124, 92, 255, 0.4);
  --success: #10b981;
  --success-glow: rgba(16, 185, 129, 0.4);
  
  --text-pure: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.55);
}

body {
  margin: 0;
  background-color: var(--bg-dark);
  color: var(--text-pure);
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ── Particle Canvas ── */
#particleCanvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ── Main Container ── */
.main-container {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 40px;
  box-sizing: border-box;
  min-height: calc(100vh - 160px);
}

/* ── Breadcrumb ── */
.dlp-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.dlp-breadcrumb a { color: rgba(255,255,255,0.45); text-decoration: none; transition: color 0.2s; }
.dlp-breadcrumb a:hover { color: var(--accent); }
.dlp-breadcrumb svg { opacity: 0.3; }
.dlp-breadcrumb .bc-current { color: rgba(255,255,255,0.7); font-weight: 600; }

/* ── MAIN GRID LAYOUT ── */
.download-layout {
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 48px;
  align-items: start;
  width: 100%;
}

/* ── Left Column: Preview Panel (V2 Polish) ── */
.dlp-preview-panel {
  position: relative;
  background: var(--glass-bg);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px;
  gap: 32px;
  box-sizing: border-box;
  backdrop-filter: blur(40px) saturate(120%);
  -webkit-backdrop-filter: blur(40px) saturate(120%);
  border: 1px solid var(--glass-border);
  box-shadow: 
    0 40px 100px rgba(0, 0, 0, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  width: 100%;
}

.dlp-thumb-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(124, 92, 255, 0.3);
  box-shadow:
    0 24px 64px rgba(0,0,0,0.6),
    0 0 50px rgba(124, 92, 255, 0.15);
  position: relative;
}
.dlp-thumb-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1);
  border-radius: 20px;
  pointer-events: none;
}
.dlp-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.dlp-thumb-wrap:hover img {
  transform: scale(1.05);
}

.dlp-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(124, 92, 255, 0.15);
  border: 1px solid rgba(124, 92, 255, 0.3);
  border-radius: 99px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #00e0ff;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(124, 92, 255, 0.1);
}
.dlp-category-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: #00e0ff;
  border-radius: 50%;
  box-shadow: 0 0 12px #00e0ff;
}

/* ── Right Column: Info Panel (V2 Polish) ── */
.dlp-info-panel {
  position: relative;
  background: var(--glass-bg);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  padding: 48px;
  box-sizing: border-box;
  backdrop-filter: blur(40px) saturate(120%);
  -webkit-backdrop-filter: blur(40px) saturate(120%);
  border: 1px solid var(--glass-border);
  box-shadow: 
    0 40px 100px rgba(0, 0, 0, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  width: 100%;
}

.dlp-title {
  font-size: 3rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin: 0 0 16px;
}

.dlp-description {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 32px;
}

/* Meta tags */
.dlp-meta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.dlp-meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.8);
  font-weight: 500;
}
.dlp-meta-tag svg { width: 16px; height: 16px; opacity: 0.6; }

.dlp-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1) 20%, rgba(255,255,255,0.1) 80%, transparent);
  margin-bottom: 40px;
}

/* ── Download Gateway Card (V2 Polish) ── */
.dlp-gateway {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  background: rgba(124, 92, 255, 0.03);
  border: 1px solid rgba(124, 92, 255, 0.15);
  border-radius: 20px;
  padding: 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 80px rgba(124, 92, 255, 0.05);
}
.dlp-gateway::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 10%, rgba(124, 92, 255, 0.5) 50%, transparent 90%);
}

.dlp-icon-wrap {
  width: 80px;
  height: 80px;
  background: rgba(124, 92, 255, 0.1);
  border: 1px solid rgba(124, 92, 255, 0.3);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 40px rgba(124, 92, 255, 0.15);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.dlp-icon-wrap.ready {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 0 60px rgba(16, 185, 129, 0.25);
  transform: scale(1.05);
}
.dlp-icon-wrap svg { width: 36px; height: 36px; color: #9b82ff; transition: color 0.4s; }
.dlp-icon-wrap.ready svg { color: #10b981; }

.dlp-gateway-title { font-size: 1.5rem; font-weight: 700; color: #fff; margin: 0; }
.dlp-status-text { font-size: 1.0625rem; color: rgba(255,255,255,0.6); transition: color 0.3s; min-height: 24px; }
.dlp-status-text.ready { color: #10b981; font-weight: 500; }

.dlp-tip {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 0.9375rem;
  color: var(--text-muted);
  text-align: left;
  width: 100%;
}
.dlp-tip svg { color: #fff; opacity: 0.8; margin-top: 2px; }

/* ── Timer Ring (V2 Polish) ── */
.dlp-countdown {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 16px 0;
}
.dlp-countdown-svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.dlp-ring-bg { fill: none; stroke: rgba(255, 255, 255, 0.06); stroke-width: 8; }
.dlp-ring-progress {
  fill: none;
  stroke: #ffffff;
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 597; /* 2*pi*95 ≈ 596.9 */
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.5));
}
.dlp-ring-progress.done {
  stroke: #10b981;
  filter: drop-shadow(0 0 20px rgba(16, 185, 129, 0.6));
}
.dlp-countdown-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.dlp-countdown-num {
  font-size: 4rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.05em;
  text-shadow: 0 4px 20px rgba(255,255,255,0.3);
}
.dlp-countdown-num.done { font-size: 3.5rem; color: #10b981; text-shadow: 0 4px 20px rgba(16,185,129,0.4); }
.dlp-countdown-label { font-size: 0.8125rem; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 0.15em; font-weight: 700; margin-top: 4px; }

/* ── Steps ── */
.dlp-steps { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.dlp-step {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 99px;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
  transition: all 0.4s ease;
}
.dlp-step.active {
  color: #fff;
  border-color: rgba(124, 92, 255, 0.5);
  background: rgba(124, 92, 255, 0.15);
  box-shadow: 0 0 20px rgba(124, 92, 255, 0.1);
}
.dlp-step.done {
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.1);
}
.dlp-step-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transition: all 0.3s ease;
}
.dlp-step.active .dlp-step-dot { background: #7c5cff; box-shadow: 0 0 12px #7c5cff; }
.dlp-step.done .dlp-step-dot { background: #10b981; box-shadow: 0 0 12px #10b981; }

/* ── Premium Button (V2 Polish) ── */
.dlp-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px 48px;
  background: linear-gradient(135deg, #ffffff, #e0e0e0);
  color: #000;
  font-weight: 800;
  font-size: 1.25rem;
  border-radius: 16px;
  border: none;
  cursor: not-allowed;
  opacity: 0.3;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
  position: relative;
  overflow: hidden;
}
.dlp-download-btn::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255,255,255,0.8), transparent);
  filter: blur(12px);
  opacity: 0;
  transition: opacity 0.4s;
  z-index: -1;
}
.dlp-download-btn.ready {
  opacity: 1;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 8px 32px rgba(255,255,255,0.2), inset 0 -4px 0 rgba(0,0,0,0.1);
}
.dlp-download-btn.ready:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 16px 48px rgba(255,255,255,0.3), inset 0 -4px 0 rgba(0,0,0,0.1);
}
.dlp-download-btn.ready:hover::before { opacity: 1; }

/* ── Trust Signals ── */
.dlp-trust { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; width: 100%; }
.dlp-trust-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.6);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 14px;
  border-radius: 999px;
}

/* ── Ads ── */
.ad-container {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}
.ad-container::before {
  content: 'ADVERTISEMENT';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(255,255,255,0.1);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  pointer-events: none;
}
.dlp-ad-bottom {
  width: 100%;
  min-height: 90px;
  background: rgba(10, 10, 10, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}
.dlp-ad-label {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.18);
  text-align: center;
  margin-bottom: 6px;
  font-weight: 500;
}

/* ── Responsive ── */
@media (max-width: 1023px) {
  .download-layout { grid-template-columns: 1fr; }
  .dlp-thumb-wrap { max-width: 460px; margin: 0 auto; }
  .dlp-title { font-size: 2.5rem; }
}
@media (max-width: 767px) {
  .main-container { padding: 20px; }
  .dlp-preview-panel, .dlp-info-panel { padding: 24px; border-radius: 20px; }
  .dlp-title { font-size: 2rem; }
  .dlp-gateway { padding: 32px 20px; border-radius: 16px; }
  .dlp-countdown { width: 140px; height: 140px; }
  .dlp-countdown-num { font-size: 2.5rem; }
}
