/* --- PREMIUM DOWNLOAD CENTER STYLESHEET --- */

/* Hero Section with Grid & Glow */
.dl-hero-wrapper {
  position: relative;
  background: var(--hero-bg);
  background-image: radial-gradient(circle at 50% 120%, #1e3a8a 0%, var(--hero-bg) 70%);
  overflow: hidden;
  padding: 60px 0 50px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dl-hero-glow {
  position: absolute;
  top: -50%;
  left: 25%;
  width: 50%;
  height: 100%;
  background: radial-gradient(circle, rgba(29, 78, 216, 0.15) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

.dl-hero-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: center;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 90%);
  pointer-events: none;
}

.dl-custom-hero {
  position: relative;
  z-index: 2;
  color: #fff;
  background: transparent !important;
  border: 0 !important;
  margin: 0 !important;
  padding: 0 24px !important;
}

.dl-hero-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  color: #60a5fa;
  margin-bottom: 12px;
  background: rgba(96, 165, 250, 0.1);
  padding: 4px 12px;
  border-radius: 99px;
  border: 1px solid rgba(96, 165, 250, 0.15);
}

.dl-custom-hero h1 {
  color: #fff !important;
  font-size: 2.4rem !important;
  font-weight: 900 !important;
  letter-spacing: -0.04em !important;
  line-height: 1.15;
  margin: 0 0 14px;
}

.dl-custom-hero p {
  color: #94a3b8 !important;
  font-size: 1.05rem !important;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Page Layout */
.downloads-page {
  max-width: 1200px;
  margin: 48px auto 90px;
  padding: 0 24px;
}

.downloads-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

/* Download Card */
.download-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 30px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 
    0 1px 2px rgba(15, 23, 42, 0.02),
    0 6px 20px rgba(15, 23, 42, 0.03);
  transition: 
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.3s;
}

.download-card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--brand) 28%, var(--line));
  box-shadow: 
    0 20px 40px rgba(15, 23, 42, 0.07),
    0 4px 12px rgba(15, 23, 42, 0.03);
}

.download-card-link {
  color: inherit;
  text-decoration: none;
}

.download-card-body {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
}

/* Header & Badges of the card */
.download-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.download-badge {
  display: inline-flex;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.badge-blue {
  background: rgba(29, 78, 216, 0.06);
  color: var(--brand);
  border-color: rgba(29, 78, 216, 0.1);
}

.badge-green {
  background: rgba(16, 185, 129, 0.06);
  color: #059669;
  border-color: rgba(16, 185, 129, 0.1);
}

.badge-muted {
  background: rgba(100, 116, 139, 0.06);
  color: var(--muted);
  border-color: rgba(100, 116, 139, 0.1);
}

.download-status-badge {
  font-size: 0.72rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.download-status-badge::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.download-status-badge.badge-blue::before {
  background: var(--brand);
  box-shadow: 0 0 8px var(--brand);
}

.download-status-badge.badge-green::before {
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.download-status-badge.badge-muted::before {
  background: var(--muted);
}

/* Title & SVG Icons */
.download-card-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.download-icon-container {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  flex-shrink: 0;
  border: 1px solid transparent;
}

.download-icon-container.badge-blue {
  background: rgba(29, 78, 216, 0.08);
  color: var(--brand);
  border-color: rgba(29, 78, 216, 0.1);
}

.download-icon-container.badge-green {
  background: rgba(16, 185, 129, 0.08);
  color: #059669;
  border-color: rgba(16, 185, 129, 0.1);
}

.download-icon-container.badge-muted {
  background: rgba(100, 116, 139, 0.08);
  color: var(--muted);
  border-color: rgba(100, 116, 139, 0.1);
}

.download-icon-svg {
  width: 20px;
  height: 20px;
}

.download-card h2 {
  margin: 0;
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 850;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.download-card p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Card Previews with Interactive Overlays */
.download-media-preview-container {
  margin-top: auto;
  position: relative;
  overflow: hidden;
  border-radius: 14px;
}

.download-browser {
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background: #f8fafc;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
}

.download-browser-bar {
  display: flex;
  height: 24px;
  align-items: center;
  gap: 5px;
  padding-left: 12px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  background: #f1f5f9;
}

.download-browser-bar span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #cbd5e1;
}

.download-browser-screen {
  position: relative;
  overflow: hidden;
}

.download-browser img {
  display: block;
  width: 100%;
  height: 140px;
  object-fit: cover;
  transition: transform 0.4s var(--ease-out);
}

.download-card:hover .download-browser img {
  transform: scale(1.03);
}

/* Glassy overlay on hover */
.download-preview-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.2);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s var(--ease-out);
}

.download-card:hover .download-preview-overlay {
  opacity: 1;
}

.overlay-btn {
  display: inline-flex;
  padding: 10px;
  border-radius: 50%;
  background: #fff;
  color: var(--text);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
  transform: scale(0.85);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.download-card:hover .overlay-btn {
  transform: scale(1);
}

/* Phone representation */
.download-phone-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 0;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
}

.download-phone {
  position: relative;
  width: 90px;
  height: 144px;
  overflow: hidden;
  border: 4px solid #1e293b;
  border-radius: 18px;
  background: #1e293b;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
}

.download-phone-speaker {
  position: absolute;
  top: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 3px;
  border-radius: 9px;
  background: #0f172a;
  z-index: 3;
}

.download-phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease-out);
}

.download-card:hover .download-phone img {
  transform: scale(1.03);
}

/* Placeholder representation */
.download-placeholder {
  display: flex;
  min-height: 144px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1.5px dashed rgba(100, 116, 139, 0.24);
  border-radius: 14px;
  color: var(--muted);
  text-align: center;
  background: rgba(100, 116, 139, 0.02);
  padding: 20px;
  transition: background 0.3s;
}

.download-card:hover .download-placeholder {
  background: rgba(29, 78, 216, 0.02);
  border-color: rgba(29, 78, 216, 0.2);
}

.download-placeholder-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(100, 116, 139, 0.08);
  color: var(--muted);
  margin-bottom: 10px;
}

.download-card:hover .download-placeholder-icon {
  color: var(--brand);
  background: rgba(29, 78, 216, 0.08);
}

.download-placeholder strong {
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 800;
}

.download-placeholder span {
  margin-top: 4px;
  font-size: 0.76rem;
}

/* Premium card footer and CTA link */
.download-card-footer {
  margin-top: auto;
  border-top: 1px solid rgba(15, 23, 42, 0.05);
  padding-top: 20px;
}

.download-btn-premium {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 18px;
  border-radius: 12px;
  background: rgba(241, 245, 249, 0.6);
  border: 1px solid rgba(15, 23, 42, 0.03);
  color: var(--brand);
  font-size: 0.88rem;
  font-weight: 850;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.arrow-icon {
  width: 16px;
  height: 16px;
  transform: translateX(0);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.download-card:hover .download-btn-premium {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.25);
}

.download-card:hover .arrow-icon {
  transform: translateX(4px);
}

/* --- DETAIL PAGE --- */

.download-detail-page {
  max-width: 1200px;
  margin: 30px auto 90px;
  padding: 0 24px;
}

/* Top Back Link */
.download-back-link-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 24px;
  transition: color 0.2s;
}

.download-back-link-top:hover {
  color: #60a5fa;
}

/* Detail Split Grid */
.download-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
  gap: 30px;
  align-items: start;
}

.download-detail-media {
  min-width: 0;
  position: relative;
}

.download-browser.detail-view {
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
}

.download-browser.detail-view img {
  height: 380px;
  cursor: zoom-in;
}

.download-phone-wrap.detail-view {
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.download-phone-large {
  width: 220px;
  height: 420px;
  border: 8px solid #1e293b;
  border-radius: 36px;
  background: #1e293b;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.15);
  position: relative;
  overflow: hidden;
}

.download-phone-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
}

.zoom-badge {
  position: absolute;
  bottom: 14px;
  right: 14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0.8;
  z-index: 5;
}

.download-placeholder-large {
  min-height: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1.5px dashed rgba(100, 116, 139, 0.24);
  border-radius: 20px;
  background: rgba(100, 116, 139, 0.02);
  padding: 40px;
  text-align: center;
}

.download-placeholder-large .download-placeholder-icon {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  font-size: 28px;
  background: rgba(100, 116, 139, 0.08);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.download-placeholder-large strong {
  font-size: 1.25rem;
  font-weight: 850;
  color: var(--text);
  margin-bottom: 8px;
}

.pulse-badge {
  display: inline-flex;
  padding: 4px 12px;
  border-radius: 99px;
  background: rgba(100, 116, 139, 0.06);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  border: 1px solid rgba(100, 116, 139, 0.1);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(100, 116, 139, 0.2); }
  70% { box-shadow: 0 0 0 6px rgba(100, 116, 139, 0); }
  100% { box-shadow: 0 0 0 0 rgba(100, 116, 139, 0); }
}

/* Detail Spec Panel */
.download-detail-panel {
  display: grid;
  gap: 20px;
  padding: 30px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.panel-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  border: 1px solid transparent;
  flex-shrink: 0;
}

.panel-icon-wrap.badge-blue {
  background: rgba(29, 78, 216, 0.08);
  color: var(--brand);
  border-color: rgba(29, 78, 216, 0.1);
}

.panel-icon-wrap.badge-green {
  background: rgba(16, 185, 129, 0.08);
  color: #059669;
  border-color: rgba(16, 185, 129, 0.1);
}

.panel-icon-wrap.badge-muted {
  background: rgba(100, 116, 139, 0.08);
  color: var(--muted);
  border-color: rgba(100, 116, 139, 0.1);
}

.panel-icon-wrap svg {
  width: 24px;
  height: 24px;
}

.panel-title {
  margin: 4px 0 0 !important;
  font-size: 1.2rem !important;
  font-weight: 900 !important;
  letter-spacing: -0.02em !important;
  color: var(--text) !important;
}

.panel-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

/* Meta Data rows */
.download-meta-stack {
  display: grid;
  gap: 12px;
  margin: 4px 0;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.05);
  border-radius: 12px;
}

.meta-row dt {
  font-weight: 750;
  color: var(--muted);
  font-size: 0.84rem;
}

.meta-row dd {
  font-weight: 800;
  color: var(--text);
  font-size: 0.88rem;
  margin: 0;
}

.status-indicator-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 850;
  padding: 3px 10px;
  border-radius: 99px;
  border: 1px solid transparent;
}

.status-indicator-pill::before {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.status-indicator-pill.badge-blue {
  background: rgba(29, 78, 216, 0.06);
  color: var(--brand);
  border-color: rgba(29, 78, 216, 0.1);
}
.status-indicator-pill.badge-blue::before { background: var(--brand); }

.status-indicator-pill.badge-green {
  background: rgba(16, 185, 129, 0.06);
  color: #059669;
  border-color: rgba(16, 185, 129, 0.1);
}
.status-indicator-pill.badge-green::before { background: #10b981; }

.status-indicator-pill.badge-muted {
  background: rgba(100, 116, 139, 0.06);
  color: var(--muted);
  border-color: rgba(100, 116, 139, 0.1);
}
.status-indicator-pill.badge-muted::before { background: var(--muted); }

/* Premium Action Buttons */
.panel-action-container {
  margin-top: 10px;
}

.download-btn-premium-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 50px;
  border-radius: 14px;
  font-size: 0.94rem;
  font-weight: 850;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.download-btn-premium-action.primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 4px 16px rgba(29, 78, 216, 0.2);
}

.download-btn-premium-action.primary:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(29, 78, 216, 0.3);
}

.download-btn-premium-action.secondary {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.1);
  color: var(--brand);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.02);
}

.download-btn-premium-action.secondary:hover {
  background: #f8fafc;
  border-color: rgba(29, 78, 216, 0.25);
  transform: translateY(-1px);
}

.download-btn-premium-action.disabled {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #94a3b8;
  cursor: not-allowed;
}

/* Sections & Steps */
.download-detail-section {
  margin-top: 30px;
  padding: 36px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.01);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.2rem !important;
  font-weight: 900 !important;
  color: var(--text) !important;
  margin-bottom: 24px !important;
}

.section-title-num {
  font-size: 0.74rem;
  font-weight: 850;
  color: var(--brand);
  background: rgba(29, 78, 216, 0.08);
  padding: 2px 8px;
  border-radius: 6px;
  letter-spacing: 0.04em;
}

.download-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.download-step {
  display: flex;
  gap: 14px;
  padding: 20px;
  border: 1px solid rgba(15, 23, 42, 0.05);
  border-radius: 16px;
  background: #f8fafc;
  transition: border-color 0.2s;
}

.download-step:hover {
  border-color: rgba(29, 78, 216, 0.15);
}

.step-num {
  display: inline-flex;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid rgba(15, 23, 42, 0.08);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 850;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.02);
}

.download-step:hover .step-num {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.step-content h3 {
  margin: 2px 0 6px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 850;
}

.step-content p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

/* Screenshots Gallery Grid */
.download-subtitle {
  margin: 36px 0 16px;
  font-size: 1rem !important;
  font-weight: 900 !important;
  color: var(--text);
}

.download-screenshot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.detail-screenshot {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
  position: relative;
}

.detail-screenshot:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
}

.detail-screenshot .download-browser-screen {
  cursor: zoom-in;
}

.detail-screenshot img {
  height: 110px;
}

.detail-screenshot .zoom-badge {
  opacity: 0;
  transition: opacity 0.2s;
  width: 22px;
  height: 22px;
  bottom: 8px;
  right: 8px;
}

.detail-screenshot:hover .zoom-badge {
  opacity: 0.9;
}

/* Legal Warning Box */
.download-legal {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  border: 1px solid #fecaca;
  border-radius: 14px;
  background: #fff5f5;
}

.legal-icon {
  color: #dc2626;
  flex-shrink: 0;
  margin-top: 2px;
}

.download-legal p {
  margin: 0;
  color: #991b1b;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.6;
}

/* Checklist */
.download-check-list {
  display: grid;
  gap: 14px;
}

.download-check-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 0.92rem;
}

.check-icon {
  color: #059669;
  background: rgba(5, 150, 105, 0.08);
  border-radius: 50%;
  padding: 6px;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Two Column Layout beneath hero */
.download-two-column-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

/* Back Link Bottom */
.bottom-nav-back {
  margin-top: 30px;
  text-align: left;
}

.download-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 750;
  transition: color 0.2s;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(100, 116, 139, 0.04);
}

.download-back-link:hover {
  color: var(--brand);
  background: rgba(29, 78, 216, 0.05);
}

.download-back-link svg {
  transition: transform 0.2s;
}

.download-back-link:hover svg {
  transform: translateX(-3px);
}

/* Form Styling */
.download-beta-flex-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  margin: 20px 0;
}

.download-beta-panel,
.download-beta-links-panel {
  padding: 26px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 16px;
  background: #f8fafc;
}

.download-beta-panel h3,
.download-beta-links-panel h3 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 850;
  letter-spacing: -0.01em;
}

.download-beta-links-panel p {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 20px;
}

.beta-signup-form {
  display: grid;
  gap: 16px;
}

.form-group {
  display: grid;
  gap: 6px;
}

.form-group label {
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 800;
}

.form-group input {
  min-height: 44px;
  padding: 10px 14px;
  border: 1.5px solid rgba(15, 23, 42, 0.08);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3.5px rgba(29, 78, 216, 0.12);
  outline: none;
}

.download-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.download-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 850;
  text-decoration: none;
  transition: all 0.2s;
}

.download-links a:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: rgba(29, 78, 216, 0.02);
}

.w-full {
  width: 100%;
}

/* Mobile Screens Strip */
.download-mobile-strip {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 0 16px;
  scrollbar-width: thin;
}

.download-mobile-shot-container {
  position: relative;
  flex: 0 0 auto;
  border-radius: 20px;
  overflow: hidden;
  border: 5px solid #0f172a;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.1);
  cursor: zoom-in;
}

.download-mobile-shot {
  width: 116px;
  height: 226px;
  display: block;
  object-fit: cover;
  transition: transform 0.3s;
}

.download-mobile-shot-container:hover .download-mobile-shot {
  transform: scale(1.02);
}

.download-mobile-shot-container .zoom-badge {
  opacity: 0;
  transition: opacity 0.2s;
  width: 18px;
  height: 18px;
  bottom: 8px;
  right: 8px;
}

.download-mobile-shot-container:hover .zoom-badge {
  opacity: 0.9;
}

/* CTA Card */
.download-cta {
  position: relative;
  overflow: hidden;
  margin-top: 48px;
  padding: 44px 30px;
  border-radius: 24px;
  background: var(--hero-bg);
  background-image: linear-gradient(135deg, var(--hero-bg) 0%, #1e3a8a 100%);
  color: #fff;
  text-align: center;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.cta-glow {
  position: absolute;
  top: -50%;
  left: -20%;
  width: 60%;
  height: 150%;
  background: radial-gradient(circle, rgba(29, 78, 216, 0.2) 0%, transparent 60%);
  filter: blur(40px);
  pointer-events: none;
}

.download-cta h2 {
  color: #fff !important;
  font-size: 1.5rem !important;
  font-weight: 900 !important;
  margin-bottom: 12px;
  position: relative;
  z-index: 2;
}

.download-cta p {
  max-width: 520px;
  margin: 0 auto 28px;
  color: #94a3b8 !important;
  line-height: 1.6;
  font-size: 0.94rem;
  position: relative;
  z-index: 2;
}

.download-cta .download-btn-premium-action {
  display: inline-flex;
  width: auto;
  padding: 12px 28px;
  min-height: 48px;
  position: relative;
  z-index: 2;
}

.scale-hover:hover {
  transform: scale(1.02);
}

/* Lightbox styles */
.download-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(8px);
  cursor: zoom-out;
}

.download-lightbox[aria-hidden="false"] {
  display: flex;
}

.download-lightbox img {
  max-width: min(1000px, 95vw);
  max-height: 85vh;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0f172a;
}

.download-lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 2.8rem;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.download-lightbox-close:hover {
  opacity: 1;
}

/* Responsive Overrides */
@media (max-width: 980px) {
  .downloads-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .download-detail-layout {
    grid-template-columns: 1fr;
  }

  .download-phone-large {
    width: 260px;
    height: 460px;
  }

  .download-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .download-screenshot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .downloads-grid {
    grid-template-columns: 1fr;
  }

  .download-two-column-grid {
    grid-template-columns: 1fr;
  }

  .download-beta-flex-container {
    grid-template-columns: 1fr;
  }
  
  .dl-custom-hero h1 {
    font-size: 1.85rem !important;
  }
}

@media (max-width: 640px) {
  .downloads-page {
    margin: 30px auto 60px;
    padding: 0 16px;
  }

  .download-card {
    padding: 24px;
    border-radius: 20px;
  }

  .download-detail-page {
    padding: 0 16px;
    margin: 20px auto 60px;
  }

  .download-detail-panel,
  .download-detail-section {
    padding: 24px;
    border-radius: 16px;
  }

  .download-steps {
    grid-template-columns: 1fr;
  }

  .download-screenshot-grid {
    grid-template-columns: 1fr;
  }

  .download-phone-large {
    width: 100%;
    max-width: 240px;
    height: 440px;
  }
  
  .download-phone-wrap.detail-view {
    padding: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .download-card,
  .download-btn-premium,
  .download-btn-premium-action,
  .arrow-icon,
  .download-browser img,
  .download-phone img,
  .detail-screenshot {
    transition: none !important;
    transform: none !important;
    animation: none !important;
  }
}
