/* ==========================================================================
   PropertyGuru App Download Stylesheet
   Designed for Luxury, Glassmorphism & High-Conversion UX
   ========================================================================== */

:root {
  --pg-primary: #0d9488;
  --pg-primary-dark: #0f766e;
  --pg-primary-light: #14b8a6;
  --pg-accent: #0284c7;
  --pg-accent-glow: rgba(13, 148, 136, 0.35);
  --pg-dark: #0f172a;
  --pg-dark-card: #1e293b;
  --pg-gray-light: #f8fafc;
  --pg-border: rgba(226, 232, 240, 0.8);
  --pg-radius-lg: 24px;
  --pg-radius-md: 16px;
  --pg-radius-sm: 10px;
}

/* ==========================================
   1. NAVBAR "DOWNLOAD APP" BUTTON
   ========================================== */
.nav-download-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%) !important;
  color: #ffffff !important;
  padding: 8px 18px !important;
  border-radius: 50px !important;
  font-weight: 700 !important;
  font-size: 13.5px !important;
  letter-spacing: 0.2px;
  box-shadow: 0 4px 15px rgba(13, 148, 136, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  text-decoration: none !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-download-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(13, 148, 136, 0.45);
  color: #ffffff !important;
}

.nav-download-badge i {
  font-size: 15px;
  animation: pgPulse 2s infinite ease-in-out;
}

/* ==========================================
   2. HOMEPAGE APP SHOWCASE SECTION
   ========================================== */
.pg-app-showcase-section {
  position: relative;
  padding: 90px 0 100px;
  background: linear-gradient(145deg, #0b132b 0%, #1c2541 60%, #0d9488 160%);
  color: #ffffff;
  overflow: hidden;
  border-radius: 0;
}

.pg-app-showcase-section::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.35) 0%, rgba(13, 148, 136, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.pg-app-showcase-section::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.2) 0%, rgba(56, 189, 248, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.pg-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  color: #2dd4bf;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
}

.pg-showcase-title {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}

.pg-showcase-title span {
  background: linear-gradient(135deg, #2dd4bf 0%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pg-showcase-desc {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  margin-bottom: 30px;
  max-width: 540px;
}

.pg-feature-check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 35px 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 20px;
}

.pg-feature-check-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.pg-feature-check-list li i {
  color: #2dd4bf;
  font-size: 16px;
}

.pg-download-actions-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

/* Primary Button: Direct APK */
.pg-btn-apk-download {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
  color: #ffffff !important;
  padding: 14px 28px;
  border-radius: var(--pg-radius-md);
  box-shadow: 0 10px 30px rgba(13, 148, 136, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  cursor: pointer;
}

.pg-btn-apk-download:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 16px 40px rgba(13, 148, 136, 0.6);
  color: #ffffff !important;
}

.pg-btn-apk-download .pg-btn-icon {
  font-size: 32px;
  color: #ffffff;
  display: flex;
  align-items: center;
}

.pg-btn-apk-download .pg-btn-text {
  text-align: left;
  display: flex;
  flex-direction: column;
}

.pg-btn-apk-download .pg-btn-sub {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
}

.pg-btn-apk-download .pg-btn-main {
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}

/* Secondary Button: Modal / QR */
.pg-btn-qr-scan {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff !important;
  padding: 14px 22px;
  border-radius: var(--pg-radius-md);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
  font-size: 14.5px;
}

.pg-btn-qr-scan:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  color: #ffffff !important;
}

.pg-btn-qr-scan i {
  font-size: 20px;
  color: #2dd4bf;
}

/* Mini QR Box in Showcase */
.pg-showcase-qr-box {
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--pg-radius-md);
  padding: 12px 18px;
  backdrop-filter: blur(10px);
}

.pg-showcase-qr-img {
  width: 64px;
  height: 64px;
  background: #ffffff;
  padding: 4px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pg-showcase-qr-img img,
.pg-showcase-qr-img svg {
  width: 100%;
  height: 100%;
}

.pg-showcase-qr-info {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.4;
}

.pg-showcase-qr-info strong {
  display: block;
  color: #ffffff;
  font-size: 13.5px;
}

/* Showcase Visual Mockup */
.pg-showcase-mockup-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pg-showcase-mockup-img {
  max-width: 100%;
  height: auto;
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 40px rgba(13, 148, 136, 0.3);
  transform: perspective(1000px) rotateY(-5deg) rotateX(4deg);
  transition: transform 0.5s ease;
}

.pg-showcase-mockup-wrapper:hover .pg-showcase-mockup-img {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.02);
}

/* Floating App Badges over Mockup */
.pg-floating-stat-card {
  position: absolute;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(16px);
  padding: 12px 20px;
  border-radius: var(--pg-radius-md);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2;
  animation: pgFloat 4s ease-in-out infinite alternate;
}

.pg-floating-stat-card.card-1 {
  bottom: 20px;
  left: -20px;
}

.pg-floating-stat-card.card-2 {
  top: 30px;
  right: -15px;
  animation-delay: -2s;
}

.pg-floating-stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0d9488 0%, #0284c7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 18px;
}

.pg-floating-stat-text h5 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
}

.pg-floating-stat-text p {
  margin: 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

/* ==========================================
   3. UNIVERSAL APP DOWNLOAD MODAL
   ========================================== */
.pg-modal-dialog {
  max-width: 650px !important;
}

.pg-modal-content {
  background: #ffffff;
  border-radius: var(--pg-radius-lg) !important;
  border: 1px solid rgba(13, 148, 136, 0.2) !important;
  box-shadow: 0 25px 70px rgba(15, 23, 42, 0.25) !important;
  overflow: hidden;
}

.pg-modal-header {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  padding: 24px 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.pg-modal-header-content {
  display: flex;
  align-items: center;
  gap: 15px;
}

.pg-modal-app-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #ffffff;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.pg-modal-app-icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.pg-modal-title-wrap h4 {
  color: #ffffff;
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.pg-modal-title-wrap p {
  color: #2dd4bf;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
}

.pg-modal-close-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pg-modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: rotate(90deg);
}

.pg-modal-body {
  padding: 30px;
}

.pg-modal-main-grid {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 25px;
  align-items: center;
  margin-bottom: 25px;
}

.pg-modal-apk-info {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--pg-radius-md);
  padding: 18px 20px;
}

.pg-info-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.pg-info-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #e6fffa;
  color: #0d9488;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(13, 148, 136, 0.2);
}

.pg-modal-qr-card {
  background: #ffffff;
  border: 2px dashed #cbd5e1;
  border-radius: var(--pg-radius-md);
  padding: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.pg-modal-qr-canvas {
  width: 140px;
  height: 140px;
  margin: 0 auto 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pg-modal-qr-canvas svg,
.pg-modal-qr-canvas img {
  width: 100%;
  height: 100%;
}

.pg-modal-qr-card span {
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
  display: block;
}

.pg-install-steps-title {
  font-size: 14px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pg-install-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.pg-step-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--pg-radius-sm);
  padding: 12px 10px;
  text-align: center;
  position: relative;
}

.pg-step-number {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #0d9488;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 6px;
}

.pg-step-box h6 {
  font-size: 12px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 4px;
}

.pg-step-box p {
  font-size: 11px;
  color: #64748b;
  margin: 0;
  line-height: 1.3;
}

.pg-modal-footer-note {
  font-size: 12px;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #ecfdf5;
  color: #065f46;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 600;
}

/* ==========================================
   4. FLOATING QUICK DOWNLOAD WIDGET
   ========================================== */
.pg-floating-download-btn {
  position: fixed;
  bottom: 25px;
  left: 25px;
  z-index: 998;
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #0f172a 0%, #0d9488 120%);
  color: #ffffff !important;
  padding: 10px 18px 10px 12px;
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25), 0 0 20px rgba(13, 148, 136, 0.4);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  text-decoration: none !important;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
}

.pg-floating-download-btn:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35), 0 0 30px rgba(13, 148, 136, 0.6);
  color: #ffffff !important;
}

.pg-floating-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #0d9488;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(45, 212, 191, 0.6);
}

.pg-floating-text-wrap {
  display: flex;
  flex-direction: column;
}

.pg-floating-text-wrap span.pg-float-title {
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.1;
  color: #ffffff;
}

.pg-floating-text-wrap span.pg-float-sub {
  font-size: 10.5px;
  color: #2dd4bf;
  font-weight: 600;
}

.pg-floating-close {
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  margin-left: 4px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.pg-floating-close:hover {
  color: #ffffff;
}

/* ==========================================
   5. DEDICATED DOWNLOAD PAGE SPECIFICS
   ========================================== */
.pg-dl-page-hero {
  position: relative;
  padding: 140px 0 100px;
  background: radial-gradient(circle at 70% 30%, #134e4a 0%, #0f172a 70%);
  color: #ffffff;
  overflow: hidden;
}

.pg-dl-hero-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.4) 0%, rgba(13, 148, 136, 0) 70%);
  top: 10%;
  left: 30%;
  pointer-events: none;
}

.pg-feature-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.pg-feature-card-premium {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--pg-radius-lg);
  padding: 35px 28px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
}

.pg-feature-card-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0d9488, #38bdf8);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pg-feature-card-premium:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(13, 148, 136, 0.12);
  border-color: rgba(13, 148, 136, 0.3);
}

.pg-feature-card-premium:hover::before {
  opacity: 1;
}

.pg-feature-card-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: #f0fdfa;
  color: #0d9488;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 22px;
  transition: all 0.3s ease;
}

.pg-feature-card-premium:hover .pg-feature-card-icon {
  background: #0d9488;
  color: #ffffff;
  transform: scale(1.1);
}

.pg-feature-card-premium h4 {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 12px;
}

.pg-feature-card-premium p {
  color: #64748b;
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

/* Detailed Install Steps on Page */
.pg-install-guide-section {
  padding: 90px 0;
  background: #f8fafc;
}

.pg-install-step-card {
  background: #ffffff;
  border-radius: var(--pg-radius-lg);
  border: 1px solid #e2e8f0;
  padding: 35px 25px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pg-install-step-badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
  color: #ffffff;
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 6px 18px rgba(13, 148, 136, 0.35);
}

.pg-install-step-card h5 {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 10px;
}

.pg-install-step-card p {
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

/* Technical Specs Table */
.pg-specs-table {
  background: #ffffff;
  border-radius: var(--pg-radius-lg);
  border: 1px solid #e2e8f0;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.pg-specs-row {
  display: flex;
  justify-content: space-between;
  padding: 16px 25px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 15px;
}

.pg-specs-row:last-child {
  border-bottom: none;
}

.pg-specs-label {
  font-weight: 600;
  color: #64748b;
}

.pg-specs-val {
  font-weight: 700;
  color: #0f172a;
}

/* Animations */
@keyframes pgPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

@keyframes pgFloat {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-12px); }
}

/* Responsive Adjustments */
@media (max-width: 991px) {
  .pg-app-showcase-section {
    padding: 70px 0;
    text-align: center;
  }
  .pg-showcase-title {
    font-size: 2.2rem;
  }
  .pg-showcase-desc {
    margin-left: auto;
    margin-right: auto;
  }
  .pg-feature-check-list {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
  }
  .pg-download-actions-wrap {
    justify-content: center;
  }
  .pg-showcase-mockup-wrapper {
    margin-top: 50px;
  }
  .pg-floating-stat-card.card-1 {
    left: 0;
  }
  .pg-floating-stat-card.card-2 {
    right: 0;
  }
  .pg-modal-main-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .pg-modal-qr-card {
    display: inline-block;
    width: 200px;
    margin: 0 auto;
  }
  .pg-install-steps-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .pg-showcase-title {
    font-size: 1.85rem;
  }
  .pg-btn-apk-download {
    width: 100%;
    justify-content: center;
  }
  .pg-btn-qr-scan {
    width: 100%;
    justify-content: center;
  }
  .pg-floating-download-btn {
    bottom: 15px;
    left: 15px;
    padding: 8px 14px 8px 10px;
  }
  .pg-floating-icon-wrap {
    width: 30px;
    height: 30px;
    font-size: 15px;
  }
  .pg-floating-text-wrap span.pg-float-title {
    font-size: 12px;
  }
  .pg-floating-text-wrap span.pg-float-sub {
    font-size: 9.5px;
  }
}
