/* ============================================ */
/*       Smart App Banner (Mobile Only)         */
/* ============================================ */

.smart-app-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.smart-app-banner.visible {
  transform: translateY(0);
  pointer-events: auto;
}

.smart-app-banner.dismissing {
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.55, 0, 1, 0.45);
}

.smart-app-banner__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  margin: 0 8px 8px;
  background: rgba(20, 20, 20, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: 16px;
  border: 1px solid rgba(255, 214, 102, 0.15);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 0 0 0.5px rgba(255, 255, 255, 0.05) inset;
}

.smart-app-banner__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--text-dark);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.smart-app-banner__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.smart-app-banner__info {
  flex: 1;
  min-width: 0;
}

.smart-app-banner__title {
  font-family: 'Fira Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.smart-app-banner__subtitle {
  font-family: 'Fira Sans', sans-serif;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.3;
  margin-top: 1px;
}

.smart-app-banner__cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 16px;
  background: var(--primary-color-dark);
  color: var(--text-dark);
  font-family: 'Fira Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 100px;
  letter-spacing: 0.02em;
  transition: all 0.2s ease;
  text-transform: uppercase;
}

.smart-app-banner__cta:hover {
  background: var(--primary-color);
  transform: scale(1.05);
}

.smart-app-banner__close {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.4);
  font-size: 14px;
  line-height: 1;
  transition: all 0.2s ease;
  padding: 0;
}

.smart-app-banner__close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.7);
}

/* Hide on desktop */
@media (min-width: 769px) {
  .smart-app-banner {
    display: none !important;
  }
}

/* ============================================ */
/*     Premium App Download Section (Home)      */
/* ============================================ */

/* Hide old popup and old section */
.app-download-popup {
  display: none !important;
}

#app-download-section {
  display: none !important;
}

.app-showcase {
  position: relative;
  padding: 5rem 1rem;
  background: #0a0a0a;
  overflow: hidden;
}

/* Ambient glow effects */
.app-showcase::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -20%;
  width: 60%;
  height: 100%;
  background: radial-gradient(ellipse, rgba(214, 173, 60, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.app-showcase::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -15%;
  width: 50%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(255, 214, 102, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.app-showcase__container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Left column - content */
.app-showcase__content {
  position: relative;
}

.app-showcase__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(214, 173, 60, 0.1);
  border: 1px solid rgba(214, 173, 60, 0.2);
  border-radius: 100px;
  margin-bottom: 1.5rem;
  font-family: 'Fira Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--primary-color);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.app-showcase__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-color-dark);
  animation: app-showcase-pulse 2s ease-in-out infinite;
}

@keyframes app-showcase-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.app-showcase__heading {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.app-showcase__heading em {
  font-style: italic;
  color: var(--primary-color);
}

.app-showcase__desc {
  font-family: 'Fira Sans', sans-serif;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
  margin-bottom: 2.5rem;
  max-width: 420px;
}

.app-showcase__buttons {
  display: flex;
  gap: 12px;
  margin-bottom: 2.5rem;
}

.app-showcase__store-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.app-showcase__store-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(214, 173, 60, 0.15) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.app-showcase__store-btn:hover {
  border-color: rgba(214, 173, 60, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(214, 173, 60, 0.1);
}

.app-showcase__store-btn:hover::before {
  opacity: 1;
}

.app-showcase__store-btn img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

.app-showcase__store-text {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.app-showcase__store-label {
  font-family: 'Fira Sans', sans-serif;
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.app-showcase__store-name {
  font-family: 'Fira Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
}

/* QR Code area */
.app-showcase__qr {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  max-width: 340px;
}

.app-showcase__qr-code {
  width: 72px;
  height: 72px;
  background: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 4px;
  position: relative;
}

.app-showcase__qr-code img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* QR placeholder pattern */
.app-showcase__qr-placeholder {
  width: 100%;
  height: 100%;
  background:
    repeating-conic-gradient(#18181b 0% 25%, transparent 0% 50%) 0 0 / 8px 8px,
    repeating-conic-gradient(#18181b 0% 25%, transparent 0% 50%) 4px 4px / 8px 8px;
  border-radius: 4px;
  opacity: 0.7;
}

.app-showcase__qr-text {
  font-family: 'Fira Sans', sans-serif;
}

.app-showcase__qr-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2px;
}

.app-showcase__qr-desc {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.3);
  line-height: 1.4;
}

/* Right column - phone mockup */
.app-showcase__visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.app-showcase__phone {
  position: relative;
  width: 260px;
  height: 520px;
}

/* Phone body */
.app-showcase__phone-body {
  position: absolute;
  inset: 0;
  background: linear-gradient(165deg, #1a1a1a 0%, #0d0d0d 100%);
  border-radius: 40px;
  border: 2px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    20px 0 60px rgba(214, 173, 60, 0.03);
  overflow: hidden;
}

/* Phone notch */
.app-showcase__phone-body::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 28px;
  background: #000;
  border-radius: 20px;
  z-index: 3;
}

/* Phone screen content */
.app-showcase__phone-screen {
  position: absolute;
  inset: 8px;
  border-radius: 34px;
  overflow: hidden;
  background: linear-gradient(180deg, #1a1008 0%, #0d0a04 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px 20px 30px;
}

.app-showcase__phone-logo {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.app-showcase__phone-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-showcase__phone-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  text-align: center;
  margin-bottom: 4px;
}

.app-showcase__phone-tagline {
  font-family: 'Fira Sans', sans-serif;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.35);
  text-align: center;
  margin-bottom: 28px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Fake menu items on phone screen */
.app-showcase__phone-items {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.app-showcase__phone-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.app-showcase__phone-item-dot {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(214, 173, 60, 0.2) 0%, rgba(214, 173, 60, 0.05) 100%);
  flex-shrink: 0;
}

.app-showcase__phone-item-lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.app-showcase__phone-item-line {
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.06);
}

.app-showcase__phone-item-line:first-child {
  width: 70%;
}

.app-showcase__phone-item-line:last-child {
  width: 45%;
}

.app-showcase__phone-item-price {
  font-family: 'Fira Sans', sans-serif;
  font-size: 0.65rem;
  color: var(--primary-color-dark);
  font-weight: 600;
  flex-shrink: 0;
}

/* Floating glow ring behind phone */
.app-showcase__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(214, 173, 60, 0.08) 0%, transparent 70%);
  animation: app-showcase-glow 4s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes app-showcase-glow {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  100% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}

/* Floating particles */
.app-showcase__particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.app-showcase__particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--primary-color-dark);
  opacity: 0;
  animation: app-showcase-float 6s ease-in-out infinite;
}

.app-showcase__particle:nth-child(1) {
  top: 20%; left: 10%;
  animation-delay: 0s;
  animation-duration: 5s;
}

.app-showcase__particle:nth-child(2) {
  top: 60%; left: 85%;
  animation-delay: 1.5s;
  animation-duration: 7s;
}

.app-showcase__particle:nth-child(3) {
  top: 80%; left: 30%;
  animation-delay: 3s;
  animation-duration: 6s;
}

.app-showcase__particle:nth-child(4) {
  top: 35%; left: 70%;
  animation-delay: 0.8s;
  animation-duration: 8s;
}

.app-showcase__particle:nth-child(5) {
  top: 15%; left: 55%;
  animation-delay: 2.5s;
  animation-duration: 5.5s;
}

@keyframes app-showcase-float {
  0%, 100% { opacity: 0; transform: translateY(0) scale(0.5); }
  20% { opacity: 0.4; }
  50% { opacity: 0.6; transform: translateY(-30px) scale(1); }
  80% { opacity: 0.3; }
}

/* Subtle grid lines */
.app-showcase__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 214, 102, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 214, 102, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

/* Responsive */
@media (max-width: 768px) {
  .app-showcase {
    padding: 3.5rem 1rem;
  }

  .app-showcase__container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

  .app-showcase__content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .app-showcase__desc {
    max-width: 100%;
  }

  .app-showcase__buttons {
    justify-content: center;
    flex-wrap: wrap;
  }

  .app-showcase__store-btn {
    flex: 1;
    min-width: 145px;
    justify-content: center;
  }

  .app-showcase__qr {
    display: none;
  }

  .app-showcase__visual {
    display: none;
  }
}

@media (max-width: 400px) {
  .app-showcase__buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .app-showcase__store-btn {
    justify-content: center;
  }
}
