/* ==========================================================================
   MR MT4 - Product Landing Page Stylesheet (Play Store Style Media Gallery)
   Dedicated styling for DragoStrike Pro and standalone indicator pages
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Dedicated Product Top Navigation Bar
   -------------------------------------------------------------------------- */
.product-nav-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  background: rgba(7, 9, 14, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 100;
  transition: all var(--transition-fast);
}

.product-nav-header.scrolled {
  border-bottom-color: rgba(0, 242, 166, 0.25);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.55);
}

.product-nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Top-Left Back Button */
.back-home-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.back-home-btn .back-text-short {
  display: none;
}

.back-home-btn .back-text-full {
  display: inline;
}

.back-home-btn:hover {
  background: rgba(0, 242, 166, 0.12);
  border-color: var(--color-brand-cyan);
  color: var(--color-brand-cyan);
  transform: translateX(-3px);
  box-shadow: 0 0 16px rgba(0, 242, 166, 0.2);
}

.back-home-btn svg {
  transition: transform var(--transition-fast);
}

.back-home-btn:hover svg {
  transform: translateX(-2px);
}

.product-nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-nav-brand img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-accent);
}

.product-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* --------------------------------------------------------------------------
   2. Hero Section (Split Layout)
   -------------------------------------------------------------------------- */
.product-hero-section {
  padding: 50px 0 60px 0;
  position: relative;
  overflow: hidden;
}

.product-hero-section::before {
  content: '';
  position: absolute;
  top: -150px;
  left: 20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 242, 166, 0.12) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.product-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Hero Left Column */
.product-hero-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.product-badge-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.badge-flagship {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: rgba(0, 242, 166, 0.12);
  border: 1px solid rgba(0, 242, 166, 0.4);
  border-radius: var(--radius-full);
  font-size: 0.78125rem;
  font-weight: 700;
  color: var(--color-brand-cyan);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.badge-winrate {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: var(--radius-full);
  font-size: 0.78125rem;
  font-weight: 700;
  color: var(--color-brand-gold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.product-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.product-hero-title span {
  background: linear-gradient(135deg, #00f2a6 0%, #00c8ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.product-hero-description {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text-muted);
}

/* Quick Features Pill List */
.product-highlights-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.highlight-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-main);
}

.highlight-pill svg {
  color: var(--color-brand-cyan);
  flex-shrink: 0;
}

/* Hero Pricing & Action bar */
.product-hero-cta-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.product-price-box {
  display: flex;
  flex-direction: column;
}

.price-box-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.price-box-amount {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.price-box-amount .strike {
  font-size: 1.125rem;
  color: var(--text-dim);
  text-decoration: line-through;
  font-weight: 600;
}

.price-box-amount .tag {
  font-size: 0.75rem;
  font-family: var(--font-main);
  background: rgba(0, 242, 166, 0.15);
  color: var(--color-brand-cyan);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
}

.product-hero-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Hero Right Column (Hero Graphic) */
.product-hero-media {
  position: relative;
}

.hero-chart-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid rgba(0, 242, 166, 0.3);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 242, 166, 0.15);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.hero-chart-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 40px rgba(0, 242, 166, 0.25);
}

.hero-chart-card img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.hero-chart-overlay-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  padding: 12px 16px;
  background: rgba(7, 9, 14, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.overlay-badge-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #00e676;
  box-shadow: 0 0 10px #00e676;
  animation: pulseLive 1.8s infinite;
}

@keyframes pulseLive {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.overlay-badge-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
}

.overlay-badge-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.overlay-badge-stat {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-brand-cyan);
}

/* --------------------------------------------------------------------------
   3. Play Store Style Media Showcase
   -------------------------------------------------------------------------- */
.media-showcase-section {
  padding: 40px 0 60px 0;
  background: linear-gradient(180deg, transparent 0%, rgba(12, 16, 25, 0.6) 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

.media-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
}

.media-title-group h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.media-title-group p {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.media-slider-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.slider-nav-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.slider-nav-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--color-brand-cyan);
  color: var(--color-brand-cyan);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 242, 166, 0.25);
}

.slider-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

/* Play Store Horizontal Scroll Track */
.media-track-container {
  position: relative;
  margin: 0 -24px;
  padding: 0 24px;
  overflow: hidden;
}

.media-horizontal-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 16px;
  padding-top: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 242, 166, 0.4) rgba(255, 255, 255, 0.05);
}

.media-horizontal-track::-webkit-scrollbar {
  height: 6px;
}

.media-horizontal-track::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 4px;
}

.media-horizontal-track::-webkit-scrollbar-thumb {
  background: rgba(0, 242, 166, 0.35);
  border-radius: 4px;
}

.media-horizontal-track::-webkit-scrollbar-thumb:hover {
  background: var(--color-brand-cyan);
}

/* Media Item Cards */
.media-card {
  flex: 0 0 440px;
  max-width: 440px;
  scroll-snap-align: start;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
  cursor: pointer;
  position: relative;
}

.media-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 242, 166, 0.4);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55), 0 0 20px rgba(0, 242, 166, 0.15);
}

.media-card-thumb-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  background: #020408;
}

.media-card-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.media-card:hover .media-card-thumb-wrap img {
  transform: scale(1.04);
}

/* Demo Video Card Specifics */
.media-card.video-card {
  border-color: rgba(0, 200, 255, 0.35);
  background: linear-gradient(180deg, #0e172a 0%, #0c1019 100%);
}

.video-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(7, 9, 14, 0.45);
  transition: background var(--transition-fast);
}

.media-card.video-card:hover .video-play-overlay {
  background: rgba(7, 9, 14, 0.25);
}

.video-play-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00f2a6 0%, #00c8ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #050a12;
  box-shadow: 0 0 25px rgba(0, 242, 166, 0.6);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.media-card.video-card:hover .video-play-btn {
  transform: scale(1.1);
  box-shadow: 0 0 35px rgba(0, 242, 166, 0.85);
}

.video-duration-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.media-type-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
}

.media-type-badge.badge-video {
  border-color: rgba(0, 200, 255, 0.5);
  color: #00c8ff;
}

.media-type-badge.badge-screenshot {
  border-color: rgba(0, 242, 166, 0.4);
  color: var(--color-brand-cyan);
}

/* Card Caption / Details */
.media-card-info {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.media-card-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #ffffff;
}

.media-card-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.media-zoom-hint {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  color: var(--color-brand-cyan);
  font-weight: 600;
  margin-top: 4px;
}

/* --------------------------------------------------------------------------
   4. Full Details Section (Deep Dive & Point-by-Point Specs)
   -------------------------------------------------------------------------- */
.product-details-section {
  padding: 70px 0 60px 0;
  position: relative;
}

.details-layout-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 40px;
  align-items: start;
}

/* Left Narrative Column */
.details-narrative {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.details-block {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: border-color var(--transition-fast);
}

.details-block:hover {
  border-color: var(--border-light);
}

.details-block h3 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.details-block h3 svg {
  color: var(--color-brand-cyan);
}

.details-block p {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.9375rem;
  margin-bottom: 14px;
}

.details-block p:last-child {
  margin-bottom: 0;
}

.details-feature-points {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.feature-point-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.feature-point-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(0, 242, 166, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-brand-cyan);
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-point-text h4 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}

.feature-point-text p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0;
}

/* Collapsible Content Wrapper (Desktop default: fully open) */
.details-collapse-wrap {
  position: relative;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.details-see-more-btn {
  display: none;
}

/* Right Specifications Column (Specs Matrix Card) */
.specs-sidebar-card {
  background: var(--bg-card);
  border: 1px solid rgba(0, 242, 166, 0.35);
  border-radius: var(--radius-md);
  padding: 28px;
  position: sticky;
  top: 96px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45);
}

.specs-card-header {
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.specs-card-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-brand-cyan);
  font-weight: 700;
  margin-bottom: 4px;
}

.specs-card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
}

.specs-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.spec-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.85rem;
}

.spec-item:last-child {
  border-bottom: none;
}

.spec-label {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.spec-label svg {
  color: var(--color-brand-cyan);
  opacity: 0.8;
}

.spec-value {
  color: #fff;
  font-weight: 600;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}

.spec-value.highlight-cyan {
  color: var(--color-brand-cyan);
  font-weight: 700;
}

.spec-value.highlight-gold {
  color: var(--color-brand-gold);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   5. Call to Action (CTA Section)
   -------------------------------------------------------------------------- */
.product-cta-section {
  padding: 70px 0 80px 0;
  position: relative;
}

.product-cta-card {
  background: linear-gradient(135deg, rgba(14, 21, 36, 0.95) 0%, rgba(19, 26, 41, 0.95) 100%);
  border: 1px solid rgba(0, 242, 166, 0.35);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 242, 166, 0.15);
}

.product-cta-card::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 200, 255, 0.18) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

.cta-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(0, 242, 166, 0.12);
  border: 1px solid rgba(0, 242, 166, 0.4);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-brand-cyan);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 3.5vw, 2.75rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.cta-subtitle {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 28px auto;
  line-height: 1.6;
}

.cta-price-block {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border-light);
  padding: 10px 24px;
  border-radius: var(--radius-full);
  margin-bottom: 30px;
}

.cta-price-block .strike {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  color: var(--text-dim);
  text-decoration: line-through;
}

.cta-price-block .current {
  font-family: var(--font-mono);
  font-size: 2.25rem;
  font-weight: 800;
  color: #ffffff;
}

.cta-price-block .license-type {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-brand-cyan);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Two CTA Buttons Group */
.cta-buttons-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.cta-buttons-wrap .btn {
  min-width: 220px;
  padding: 16px 36px;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.cta-perks-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 10px;
}

.cta-perk {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cta-perk svg {
  color: var(--color-brand-cyan);
}

/* --------------------------------------------------------------------------
   6. Lightbox Modal for Screenshots
   -------------------------------------------------------------------------- */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 10, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.lightbox-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content-wrap {
  max-width: 1080px;
  width: 100%;
  max-height: 90vh;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img-element {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 242, 166, 0.2);
}

.lightbox-caption-bar {
  margin-top: 14px;
  text-align: center;
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
}

.lightbox-close-btn {
  position: absolute;
  top: -46px;
  right: 0;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-light);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lightbox-close-btn:hover {
  background: rgba(255, 59, 92, 0.3);
  border-color: #ff3b5c;
  transform: rotate(90deg);
}

/* --------------------------------------------------------------------------
   7. Video Play Modal
   -------------------------------------------------------------------------- */
.video-preview-modal {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 10, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.video-preview-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.video-modal-card {
  max-width: 900px;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
}

.video-modal-card video,
.video-modal-card iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* --------------------------------------------------------------------------
   8. Responsive Adjustments
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .product-hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .product-hero-media {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
  }

  .details-layout-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .specs-sidebar-card {
    position: static;
  }

  .media-card {
    flex: 0 0 380px;
    max-width: 380px;
  }
}

@media (max-width: 768px) {
  /* 02. Hide hero chart image on mobile view to keep layout ultra-clean */
  .product-hero-media {
    display: none !important;
  }

  /* 01. Responsive Header & Button Sizing */
  .product-nav-header {
    height: 58px;
  }

  .product-nav-container {
    padding-left: 14px;
    padding-right: 14px;
    gap: 8px;
  }

  .back-home-btn {
    padding: 6px 12px;
    font-size: 0.8125rem;
    gap: 6px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .back-home-btn svg {
    width: 15px;
    height: 15px;
  }

  .back-home-btn .back-text-full {
    display: none !important;
  }

  .back-home-btn .back-text-short {
    display: inline !important;
  }

  .product-nav-brand {
    gap: 6px;
    min-width: 0;
    flex-shrink: 1;
    justify-content: center;
  }

  .product-nav-brand img {
    width: 32px;
    height: 32px;
  }

  .product-nav-brand .brand-title {
    font-size: 0.9375rem;
    white-space: nowrap;
  }

  .product-nav-actions {
    gap: 6px;
    flex-shrink: 0;
  }

  /* Hide redundant Telegram button in mobile top nav (floating button is active) */
  .product-nav-actions .btn-telegram {
    display: none !important;
  }

  .product-nav-actions .btn-primary {
    padding: 6px 14px;
    font-size: 0.8125rem;
    border-radius: var(--radius-sm);
    white-space: nowrap;
  }

  .product-hero-section {
    padding: 30px 0 40px 0;
  }

  .product-hero-title {
    font-size: 2rem;
  }

  /* Small side-by-side hero buttons on mobile */
  .product-hero-cta-bar {
    gap: 12px;
    padding-top: 10px;
    margin-top: 6px;
  }

  .product-hero-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
  }

  .product-hero-buttons .btn {
    width: 100%;
    min-width: 0;
    padding: 10px 6px;
    font-size: 0.8125rem;
    font-weight: 700;
    gap: 6px;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    justify-content: center;
    letter-spacing: 0.01em;
  }

  .product-hero-buttons .btn svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
  }

  .media-track-container {
    margin: 0 -16px;
    padding: 0 16px;
  }

  .media-horizontal-track {
    gap: 12px;
    padding-bottom: 12px;
  }

  .media-card {
    flex: 0 0 74vw;
    max-width: 74vw;
  }

  /* Mobile Details Section & Collapsible Cards */
  .product-details-section {
    padding: 36px 0 32px 0;
  }

  .details-layout-grid {
    gap: 20px;
  }

  .details-narrative {
    gap: 16px;
  }

  .details-block {
    padding: 20px 16px;
    border-radius: var(--radius-sm);
  }

  .details-block h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    gap: 8px;
    line-height: 1.35;
  }

  .details-block h3 svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
  }

  .details-block p {
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 10px;
  }

  /* Show only a few lines by default on mobile (~3 lines) */
  .details-collapse-wrap {
    max-height: 78px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }

  /* Soft fade gradient over bottom of clamped text */
  .details-collapse-wrap::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 48px;
    background: linear-gradient(to bottom, rgba(14, 21, 36, 0) 0%, rgba(14, 21, 36, 0.88) 65%, #0e1524 100%);
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.3s ease;
  }

  /* Fully expanded when card is clicked / toggled */
  .details-block.is-expanded .details-collapse-wrap {
    max-height: 2000px;
    cursor: default;
  }

  .details-block.is-expanded .details-collapse-wrap::after {
    opacity: 0;
    pointer-events: none;
  }

  /* Sleek "See more" / "See less" pill button */
  .details-see-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 242, 166, 0.08);
    border: 1px solid rgba(0, 242, 166, 0.22);
    border-radius: var(--radius-full);
    color: var(--color-brand-cyan);
    font-size: 0.8125rem;
    font-weight: 700;
    cursor: pointer;
    padding: 6px 14px;
    margin-top: 10px;
    font-family: inherit;
    transition: all var(--transition-fast);
    -webkit-tap-highlight-color: transparent;
  }

  .details-see-more-btn:hover,
  .details-see-more-btn:active {
    background: rgba(0, 242, 166, 0.18);
    border-color: var(--color-brand-cyan);
    transform: translateY(-1px);
  }

  .details-see-more-btn .chevron-icon {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .details-block.is-expanded .details-see-more-btn .chevron-icon {
    transform: rotate(180deg);
  }

  .details-feature-points {
    gap: 10px;
    margin-top: 12px;
  }

  .feature-point-item {
    padding: 10px 12px;
    gap: 10px;
  }

  .feature-point-text h4 {
    font-size: 0.875rem;
  }

  .feature-point-text p {
    font-size: 0.8rem;
    line-height: 1.45;
  }

  /* Compact Mobile CTA Section & Card */
  .product-cta-section {
    padding: 30px 0 36px 0;
  }

  .product-cta-card {
    padding: 20px 16px;
    border-radius: 16px;
  }

  .cta-tag {
    padding: 3px 10px;
    font-size: 0.7rem;
    margin-bottom: 8px;
    gap: 4px;
  }

  .cta-title {
    font-size: 1.25rem;
    line-height: 1.3;
    margin-bottom: 8px;
  }

  .cta-subtitle {
    font-size: 0.84rem;
    line-height: 1.45;
    margin: 0 auto 12px auto;
  }

  .cta-price-block {
    flex-direction: row;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    border-radius: var(--radius-full);
    padding: 6px 14px;
    margin-bottom: 14px;
  }

  .cta-price-block .strike {
    font-size: 0.9375rem;
  }

  .cta-price-block .current {
    font-size: 1.45rem;
  }

  .cta-price-block .license-type {
    font-size: 0.7rem;
  }

  .cta-buttons-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    gap: 8px;
    margin-bottom: 12px;
  }

  .cta-buttons-wrap .btn {
    width: 100%;
    min-width: 0;
    padding: 10px 6px;
    font-size: 0.8125rem;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    justify-content: center;
  }

  .cta-buttons-wrap .btn svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
  }

  .cta-perks-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 8px;
    font-size: 0.72rem;
    text-align: left;
    margin-top: 2px;
  }

  .cta-perk {
    font-size: 0.72rem;
    gap: 4px;
  }

  .cta-perk svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
  }
}

@media (max-width: 480px) {
  .product-nav-brand .brand-title {
    display: none; /* Just show logo icon on very narrow screens to prevent overlap */
  }

  .back-home-btn {
    padding: 6px 10px;
    font-size: 0.78125rem;
  }

  .product-nav-actions .btn-primary {
    padding: 6px 12px;
    font-size: 0.78125rem;
  }

  /* Slightly smaller card on phones so ~25% of the next screenshot visibly peeks out */
  .media-card {
    flex: 0 0 72vw;
    max-width: 72vw;
  }

  /* Small side-by-side buttons on small phones */
  .product-hero-buttons,
  .cta-buttons-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    width: 100%;
  }

  .product-hero-buttons .btn,
  .cta-buttons-wrap .btn {
    padding: 9px 4px;
    font-size: 0.75rem;
    gap: 4px;
    justify-content: center;
    white-space: nowrap;
  }

  .product-hero-buttons .btn svg,
  .cta-buttons-wrap .btn svg {
    width: 13px;
    height: 13px;
  }

  .media-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}
