/* ====================================================================
   PRADUMNA_FX — RESOURCE DETAIL PAGE INNER DESIGN SYSTEM
   Scoped strictly to: .resource-detail-page
   Leaves all site shell (header, footer, background, navigation) locked.
   ==================================================================== */

.resource-detail-page {
  /* ── Local Design Tokens ── */
  --ew-bg: #070709;
  --ew-surface-glass: rgba(255, 255, 255, 0.025);
  --ew-surface-elevated: rgba(255, 255, 255, 0.045);
  --ew-surface-card: rgba(15, 15, 20, 0.7);
  --ew-border: rgba(255, 255, 255, 0.08);
  --ew-border-strong: rgba(255, 255, 255, 0.16);
  --ew-accent: #E5C378;
  --ew-accent-hover: #F0D492;
  --ew-accent-glow: rgba(229, 195, 120, 0.22);
  --ew-text-primary: #EDEDF0;
  --ew-text-secondary: #9B9BAA;
  --ew-text-tertiary: #676778;
  --ew-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --ew-font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --ew-radius-sm: 8px;
  --ew-radius-md: 14px;
  --ew-radius-lg: 20px;
  --ew-radius-xl: 28px;
  --ew-transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);

  /* ── Layout & Typography ── */
  font-family: var(--ew-font-sans);
  color: var(--ew-text-primary);
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px 100px;
  position: relative;
}

/* ── Breadcrumb ── */
.resource-detail-page .ew-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 24px 0 16px;
  font-size: 0.88rem;
  color: var(--ew-text-tertiary);
}

.resource-detail-page .ew-breadcrumb a {
  color: var(--ew-text-secondary);
  text-decoration: none;
  transition: var(--ew-transition);
}

.resource-detail-page .ew-breadcrumb a:hover {
  color: var(--ew-accent);
}

.resource-detail-page .ew-breadcrumb-sep {
  opacity: 0.4;
}

.resource-detail-page .ew-breadcrumb-current {
  color: var(--ew-text-primary);
  font-weight: 500;
}

/* ── HERO PRODUCT SHOWCASE ── */
.resource-detail-page .ew-hero {
  display: grid;
  grid-template-columns: 46% 54%;
  gap: 48px;
  align-items: center;
  padding: 32px 0 56px;
  position: relative;
}

.resource-detail-page .ew-hero-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 2;
}

.resource-detail-page .ew-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(229, 195, 120, 0.08);
  border: 1px solid rgba(229, 195, 120, 0.22);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ew-accent);
  width: fit-content;
}

.resource-detail-page .ew-hero-pip {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ew-accent);
  box-shadow: 0 0 8px var(--ew-accent);
}

.resource-detail-page .ew-hero-h1 {
  font-size: clamp(2.2rem, 3.8vw, 3.4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ew-text-primary);
  margin: 0;
  text-wrap: balance;
}

.resource-detail-page .ew-hero-desc {
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.65;
  color: var(--ew-text-secondary);
  margin: 0;
  max-width: 580px;
}

/* ── Glass Information Rail ── */
.resource-detail-page .ew-glass-rail {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  background: var(--ew-surface-glass);
  border: 1px solid var(--ew-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--ew-radius-md);
  padding: 12px 18px;
  width: fit-content;
}

.resource-detail-page .ew-rail-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
}

.resource-detail-page .ew-rail-key {
  color: var(--ew-text-tertiary);
  font-family: var(--ew-font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
}

.resource-detail-page .ew-rail-val {
  color: var(--ew-text-primary);
  font-weight: 600;
}

.resource-detail-page .ew-rail-sep {
  width: 1px;
  height: 14px;
  background: var(--ew-border);
}

/* ── Hero Action Bar ── */
.resource-detail-page .ew-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}

.resource-detail-page .ew-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ew-accent);
  color: #070709;
  font-size: 0.98rem;
  font-weight: 700;
  padding: 14px 26px;
  border-radius: var(--ew-radius-md);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--ew-accent);
  transition: var(--ew-transition);
  box-shadow: 0 4px 16px var(--ew-accent-glow);
}

.resource-detail-page .ew-btn-primary:hover {
  background: var(--ew-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(229, 195, 120, 0.35);
}

.resource-detail-page .ew-btn-secondary,
.resource-detail-page .ew-btn-tertiary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ew-surface-glass);
  border: 1px solid var(--ew-border);
  color: var(--ew-text-primary);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 14px 20px;
  border-radius: var(--ew-radius-md);
  text-decoration: none;
  cursor: pointer;
  transition: var(--ew-transition);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.resource-detail-page .ew-btn-secondary:hover,
.resource-detail-page .ew-btn-tertiary:hover {
  background: var(--ew-surface-elevated);
  border-color: var(--ew-border-strong);
  color: #fff;
  transform: translateY(-2px);
}

/* ── Trust Bar ── */
.resource-detail-page .ew-trust-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.8rem;
  color: var(--ew-text-tertiary);
  margin-top: 4px;
}

.resource-detail-page .ew-trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ── Hero Right: Preview Stage ── */
.resource-detail-page .ew-hero-right {
  position: relative;
  width: 100%;
}

.resource-detail-page .ew-preview-stage {
  position: relative;
  width: 100%;
}

.resource-detail-page .ew-preview-ambient-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 90%;
  height: 90%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(229, 195, 120, 0.12) 0%, rgba(59, 130, 246, 0.05) 50%, transparent 75%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 1;
}

.resource-detail-page .ew-preview-glass-frame {
  position: relative;
  z-index: 2;
  border-radius: var(--ew-radius-xl);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--ew-border-strong);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7), 0 0 30px rgba(229, 195, 120, 0.05);
  aspect-ratio: 16/9;
}

.resource-detail-page .ew-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

.resource-detail-page .ew-preview-glass-frame:hover .ew-preview-img {
  transform: scale(1.02);
}

.resource-detail-page .ew-preview-overlay-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(7, 7, 9, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ew-text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 3;
}

.resource-detail-page .ew-overlay-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ew-accent);
}

.resource-detail-page .ew-preview-zoom-btn {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(7, 7, 9, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--ew-radius-sm);
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 3;
  transition: var(--ew-transition);
}

.resource-detail-page .ew-preview-zoom-btn:hover {
  background: rgba(229, 195, 120, 0.2);
  border-color: var(--ew-accent);
  color: var(--ew-accent);
}

.resource-detail-page .ew-thumbnail-rail {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}

.resource-detail-page .ew-thumbnail-rail::-webkit-scrollbar {
  display: none;
}

.resource-detail-page .ew-thumb-btn {
  flex-shrink: 0;
  width: 90px;
  aspect-ratio: 16/9;
  border-radius: var(--ew-radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  background: #000;
  cursor: pointer;
  padding: 0;
  opacity: 0.55;
  transition: var(--ew-transition);
}

.resource-detail-page .ew-thumb-btn:hover,
.resource-detail-page .ew-thumb-btn.active {
  opacity: 1;
  border-color: var(--ew-accent);
  transform: translateY(-2px);
}

.resource-detail-page .ew-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── STICKY LOCAL IN-PAGE NAVIGATION ── */
.resource-detail-page .ew-sticky-nav-wrap {
  position: sticky;
  top: 80px;
  z-index: 50;
  margin: 24px 0 48px;
}

.resource-detail-page .ew-sticky-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(12, 12, 16, 0.85);
  border: 1px solid var(--ew-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 999px;
  padding: 6px;
  width: fit-content;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  overflow-x: auto;
  max-width: 100%;
  scrollbar-width: none;
}

.resource-detail-page .ew-sticky-nav::-webkit-scrollbar {
  display: none;
}

.resource-detail-page .ew-nav-pill {
  color: var(--ew-text-secondary);
  font-size: 0.84rem;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 999px;
  text-decoration: none;
  transition: var(--ew-transition);
  white-space: nowrap;
}

.resource-detail-page .ew-nav-pill:hover {
  color: var(--ew-text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.resource-detail-page .ew-nav-pill.active {
  background: var(--ew-accent);
  color: #070709;
  font-weight: 700;
  box-shadow: 0 2px 10px var(--ew-accent-glow);
}

/* ── OVERVIEW FACTS PANEL ── */
.resource-detail-page .ew-facts-glass-panel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  background: var(--ew-surface-glass);
  border: 1px solid var(--ew-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--ew-radius-lg);
  padding: 24px;
  margin-bottom: 64px;
}

.resource-detail-page .ew-fact-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 8px;
}

.resource-detail-page .ew-fact-metric {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--ew-text-primary);
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.resource-detail-page .ew-fact-label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ew-accent);
  margin-bottom: 2px;
}

.resource-detail-page .ew-fact-sub {
  font-size: 0.74rem;
  color: var(--ew-text-tertiary);
}

/* ── SECTIONS GENERIC ── */
.resource-detail-page .ew-section {
  margin-bottom: 72px;
}

.resource-detail-page .ew-section-header {
  margin-bottom: 32px;
}

.resource-detail-page .ew-section-eyebrow {
  display: block;
  font-family: var(--ew-font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--ew-accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.resource-detail-page .ew-section-h2 {
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ew-text-primary);
  margin: 0 0 10px;
}

.resource-detail-page .ew-section-desc {
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--ew-text-secondary);
  margin: 0;
  max-width: 680px;
}

/* ── CAPABILITIES / FEATURES (Interactive Explorer) ── */
.resource-detail-page .ew-feature-explorer {
  display: grid;
  grid-template-columns: 40% 60%;
  gap: 32px;
  align-items: stretch;
}

.resource-detail-page .ew-feature-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.resource-detail-page .ew-feature-tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--ew-surface-glass);
  border: 1px solid var(--ew-border);
  border-radius: var(--ew-radius-md);
  padding: 18px 20px;
  color: var(--ew-text-secondary);
  font-family: var(--ew-font-sans);
  text-align: left;
  cursor: pointer;
  transition: var(--ew-transition);
}

.resource-detail-page .ew-feature-tab:hover {
  background: var(--ew-surface-elevated);
  border-color: var(--ew-border-strong);
  color: var(--ew-text-primary);
  transform: translateX(4px);
}

.resource-detail-page .ew-feature-tab.active {
  background: rgba(229, 195, 120, 0.08);
  border-color: var(--ew-accent);
  color: var(--ew-text-primary);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), inset 2px 0 0 var(--ew-accent);
}

.resource-detail-page .ew-tab-num {
  font-family: var(--ew-font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ew-accent);
}

.resource-detail-page .ew-tab-text {
  font-size: 1rem;
  font-weight: 600;
  flex-grow: 1;
}

.resource-detail-page .ew-tab-arrow {
  opacity: 0.4;
  transition: var(--ew-transition);
}

.resource-detail-page .ew-feature-tab.active .ew-tab-arrow {
  opacity: 1;
  color: var(--ew-accent);
  transform: translateX(4px);
}

.resource-detail-page .ew-feature-inspector {
  display: flex;
  flex-direction: column;
}

.resource-detail-page .ew-inspector-glass-card {
  background: var(--ew-surface-card);
  border: 1px solid var(--ew-border-strong);
  border-radius: var(--ew-radius-lg);
  padding: 36px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.resource-detail-page .ew-inspector-badge {
  font-family: var(--ew-font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--ew-accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.resource-detail-page .ew-inspector-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--ew-text-primary);
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.resource-detail-page .ew-inspector-desc {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ew-text-secondary);
  margin: 0 0 28px;
}

.resource-detail-page .ew-inspector-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.resource-detail-page .ew-meta-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--ew-border);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.78rem;
  font-family: var(--ew-font-mono);
  color: var(--ew-text-secondary);
}

/* ── Editorial Feature Grid (when 1-2 features) ── */
.resource-detail-page .ew-editorial-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.resource-detail-page .ew-editorial-feature-card {
  background: var(--ew-surface-glass);
  border: 1px solid var(--ew-border);
  border-radius: var(--ew-radius-md);
  padding: 24px 28px;
  transition: var(--ew-transition);
}

.resource-detail-page .ew-editorial-feature-card:hover {
  background: var(--ew-surface-elevated);
  border-color: var(--ew-border-strong);
  transform: translateY(-2px);
}

.resource-detail-page .ew-editorial-feature-num {
  font-family: var(--ew-font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ew-accent);
  margin-bottom: 8px;
}

.resource-detail-page .ew-editorial-feature-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ew-text-primary);
  margin: 0 0 8px;
}

.resource-detail-page .ew-editorial-feature-desc {
  font-size: 0.95rem;
  color: var(--ew-text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* ── GUIDED INSTALLATION ── */
.resource-detail-page .ew-install-guided-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.resource-detail-page .ew-install-timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.resource-detail-page .ew-install-step-card {
  display: flex;
  gap: 16px;
  background: var(--ew-surface-glass);
  border: 1px solid var(--ew-border);
  border-radius: var(--ew-radius-md);
  padding: 20px;
  transition: var(--ew-transition);
}

.resource-detail-page .ew-install-step-card:hover {
  background: var(--ew-surface-elevated);
  border-color: var(--ew-border-strong);
}

.resource-detail-page .ew-step-badge {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(229, 195, 120, 0.1);
  border: 1px solid rgba(229, 195, 120, 0.3);
  color: var(--ew-accent);
  font-family: var(--ew-font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.resource-detail-page .ew-step-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.resource-detail-page .ew-step-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ew-text-primary);
  margin: 0;
}

.resource-detail-page .ew-step-desc {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ew-text-secondary);
  margin: 0;
}

.resource-detail-page .ew-install-paths-card {
  background: var(--ew-surface-card);
  border: 1px solid var(--ew-border);
  border-radius: var(--ew-radius-lg);
  padding: 28px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.resource-detail-page .ew-paths-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ew-text-primary);
  margin: 0 0 20px;
}

.resource-detail-page .ew-path-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.resource-detail-page .ew-path-group:last-child {
  margin-bottom: 0;
}

.resource-detail-page .ew-path-os {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ew-accent);
}

.resource-detail-page .ew-path-code {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--ew-border);
  border-radius: var(--ew-radius-sm);
  padding: 10px 14px;
  font-family: var(--ew-font-mono);
  font-size: 0.78rem;
  color: var(--ew-text-primary);
  word-break: break-all;
}

.resource-detail-page .ew-btn-copy-path {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--ew-border);
  color: var(--ew-text-secondary);
  font-family: var(--ew-font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--ew-radius-sm);
  cursor: pointer;
  transition: var(--ew-transition);
}

.resource-detail-page .ew-btn-copy-path:hover {
  background: var(--ew-accent);
  color: #070709;
  border-color: var(--ew-accent);
}

/* ── TECHNICAL SPECIFICATIONS ── */
.resource-detail-page .ew-specs-container {
  background: var(--ew-surface-glass);
  border: 1px solid var(--ew-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--ew-radius-lg);
  padding: 28px;
}

.resource-detail-page .ew-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 32px;
}

.resource-detail-page .ew-spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
  font-size: 0.92rem;
}

.resource-detail-page .ew-spec-key {
  color: var(--ew-text-secondary);
  font-weight: 500;
}

.resource-detail-page .ew-spec-val {
  color: var(--ew-text-primary);
  font-weight: 600;
  text-align: right;
}

/* ── FAQ ACCORDION ── */
.resource-detail-page .ew-faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.resource-detail-page .ew-faq-item {
  background: var(--ew-surface-glass);
  border: 1px solid var(--ew-border);
  border-radius: var(--ew-radius-md);
  overflow: hidden;
  transition: var(--ew-transition);
}

.resource-detail-page .ew-faq-item:hover {
  border-color: var(--ew-border-strong);
}

.resource-detail-page .ew-faq-question {
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ew-text-primary);
  user-select: none;
  list-style: none;
}

.resource-detail-page .ew-faq-question::-webkit-details-marker {
  display: none;
}

.resource-detail-page .ew-faq-icon {
  color: var(--ew-accent);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.resource-detail-page .ew-faq-item[open] .ew-faq-icon {
  transform: rotate(180deg);
}

.resource-detail-page .ew-faq-answer {
  padding: 0 24px 20px;
  color: var(--ew-text-secondary);
  line-height: 1.65;
  font-size: 0.96rem;
}

/* ── FINAL DOWNLOAD HERO CARD ── */
.resource-detail-page .ew-final-hero-card {
  position: relative;
  background: linear-gradient(135deg, rgba(229, 195, 120, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(229, 195, 120, 0.3);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(229, 195, 120, 0.05);
  border-radius: var(--ew-radius-xl);
  padding: 48px;
  text-align: center;
  margin-bottom: 72px;
  overflow: hidden;
}

.resource-detail-page .ew-final-ambient-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70%;
  height: 70%;
  background: radial-gradient(circle, rgba(229, 195, 120, 0.12) 0%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
}

.resource-detail-page .ew-final-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin: 0 auto;
}

.resource-detail-page .ew-final-tag {
  display: inline-block;
  font-family: var(--ew-font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--ew-accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.resource-detail-page .ew-final-h2 {
  font-size: clamp(2rem, 3.2vw, 2.6rem);
  font-weight: 800;
  color: var(--ew-text-primary);
  margin: 0 0 12px;
  letter-spacing: -0.03em;
}

.resource-detail-page .ew-final-desc {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ew-text-secondary);
  margin: 0 0 28px;
}

.resource-detail-page .ew-final-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.resource-detail-page .ew-btn-large {
  padding: 16px 36px;
  font-size: 1.05rem;
}

.resource-detail-page .ew-final-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--ew-text-tertiary);
}

/* ── RELATED RESOURCES ── */
.resource-detail-page .ew-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.resource-detail-page .ew-related-card {
  background: var(--ew-surface-card);
  border: 1px solid var(--ew-border);
  border-radius: var(--ew-radius-lg);
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: var(--ew-transition);
}

.resource-detail-page .ew-related-card:hover {
  transform: translateY(-4px);
  border-color: var(--ew-border-strong);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.resource-detail-page .ew-related-img-wrap {
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  overflow: hidden;
}

.resource-detail-page .ew-related-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.resource-detail-page .ew-related-card:hover .ew-related-img-wrap img {
  transform: scale(1.04);
}

.resource-detail-page .ew-related-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.resource-detail-page .ew-related-cat {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--ew-accent);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.resource-detail-page .ew-related-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ew-text-primary);
  margin: 0 0 14px;
  line-height: 1.35;
}

.resource-detail-page .ew-related-cta {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ew-accent);
  margin-top: auto;
}

/* ── FLOATING SHARE PILL ── */
.resource-detail-page .ew-share-floating {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99;
}

.resource-detail-page .ew-share-float-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 15, 20, 0.9);
  border: 1px solid var(--ew-border-strong);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #fff;
  font-family: var(--ew-font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  transition: var(--ew-transition);
}

.resource-detail-page .ew-share-float-btn:hover {
  background: var(--ew-accent);
  color: #070709;
  border-color: var(--ew-accent);
  transform: translateY(-2px);
}

/* ── LIGHTBOX MODAL ── */
.ew-lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.ew-lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

.ew-lightbox-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.ew-lightbox-content {
  position: relative;
  z-index: 2;
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.ew-lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  display: block;
}

.ew-lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.2s ease;
}

.ew-lightbox-close:hover {
  background: #E5C378;
  color: #070709;
}

/* ── TOAST NOTIFICATION ── */
.ew-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(20, 20, 25, 0.95);
  border: 1px solid rgba(229, 195, 120, 0.4);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 9999999;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ew-toast.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.ew-toast-icon {
  color: #10b981;
}

/* ── RESPONSIVE BREAKPOINTS ── */
@media (max-width: 1024px) {
  .resource-detail-page .ew-hero {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .resource-detail-page .ew-feature-explorer {
    grid-template-columns: 1fr;
  }
  .resource-detail-page .ew-install-guided-wrap {
    grid-template-columns: 1fr;
  }
  .resource-detail-page .ew-facts-glass-panel {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .resource-detail-page .ew-related-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .resource-detail-page {
    padding: 0 20px 80px;
  }
  .resource-detail-page .ew-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .resource-detail-page .ew-btn-primary,
  .resource-detail-page .ew-btn-secondary,
  .resource-detail-page .ew-btn-tertiary {
    justify-content: center;
    width: 100%;
  }
  .resource-detail-page .ew-facts-glass-panel {
    grid-template-columns: 1fr;
  }
  .resource-detail-page .ew-specs-grid {
    grid-template-columns: 1fr;
  }
  .resource-detail-page .ew-related-grid {
    grid-template-columns: 1fr;
  }
  .resource-detail-page .ew-final-hero-card {
    padding: 32px 20px;
  }
  .resource-detail-page .ew-sticky-nav {
    max-width: 100%;
  }
}
