/* =========================================================
   LDC — Popup Mobile + Novidades Premium das Comunidades
   Arquivo: /css/mobile-app-popup.css
========================================================= */

/* ================= NOVIDADES ================= */

.ldc-novidades {
  position: relative;
  padding: 96px 18px;
  color: #fff;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 170, 0, .30), transparent 28%),
    radial-gradient(circle at 88% 15%, rgba(0, 216, 255, .22), transparent 30%),
    radial-gradient(circle at 50% 100%, rgba(255, 45, 120, .20), transparent 34%),
    linear-gradient(135deg, #050814 0%, #07172b 46%, #030712 100%);
}

.ldc-novidades * {
  box-sizing: border-box;
}

.ldc-novidades::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.75), transparent 85%);
  pointer-events: none;
}

.ldc-novidades::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -220px;
  top: -180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 183, 3, .22), transparent 70%);
  filter: blur(12px);
  pointer-events: none;
}

.ldc-novidades-wrap {
  position: relative;
  z-index: 2;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.ldc-novidades-top {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 42px;
  align-items: center;
  margin-bottom: 42px;
}

.ldc-tag-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.22);
  color: #ffd166;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .4px;
  box-shadow:
    inset 0 0 18px rgba(255,255,255,.06),
    0 0 32px rgba(255, 183, 3, .16);
}

.ldc-novidades h2 {
  margin: 18px 0 16px;
  font-size: clamp(42px, 5.6vw, 76px);
  line-height: .92;
  font-weight: 950;
  letter-spacing: -2.6px;
  color: #fff !important;
  text-shadow: 0 8px 28px rgba(0,0,0,.55);
}

.ldc-novidades h2 strong {
  background: linear-gradient(90deg, #ffb703 0%, #ff4d6d 38%, #8b5cf6 68%, #38dfff 100%);
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  color: transparent !important;
}

.ldc-novidades-sub {
  max-width: 720px;
  margin: 0;
  color: rgba(239, 246, 255, .86);
  font-size: 18px;
  line-height: 1.75;
  text-shadow: 0 3px 12px rgba(0,0,0,.35);
}

/* ================= STATS ================= */

.ldc-mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.ldc-mini-stat {
  position: relative;
  min-height: 132px;
  padding: 20px 18px;
  border-radius: 28px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.065));
  border: 1px solid rgba(255,255,255,.18);
  box-shadow:
    0 24px 70px rgba(0,0,0,.32),
    inset 0 1px 0 rgba(255,255,255,.18);
  backdrop-filter: blur(18px);
}

.ldc-mini-stat::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(255,255,255,.16), transparent 45%);
  pointer-events: none;
}

.ldc-mini-stat b {
  position: relative;
  display: block;
  font-size: 36px;
  line-height: 1;
  color: #fff !important;
  margin-bottom: 12px;
  font-weight: 950;
}

.ldc-mini-stat span {
  position: relative;
  display: block;
  color: rgba(236, 244, 255, .82);
  font-size: 14px;
  line-height: 1.45;
  font-weight: 650;
}

/* ================= CARDS ================= */

.ldc-novidades-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.ldc-nov-card {
  position: relative;
  min-height: 310px;
  padding: 32px;
  border-radius: 34px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,.15), rgba(255,255,255,.065));
  border: 1px solid rgba(255,255,255,.18);
  box-shadow:
    0 28px 80px rgba(0,0,0,.35),
    inset 0 1px 0 rgba(255,255,255,.16);
  backdrop-filter: blur(18px);
  transition:
    transform .28s ease,
    border-color .28s ease,
    box-shadow .28s ease;
}

.ldc-nov-card:hover {
  transform: translateY(-10px) scale(1.015);
  border-color: rgba(255,255,255,.34);
  box-shadow:
    0 40px 95px rgba(0,0,0,.48),
    0 0 40px rgba(255, 183, 3, .10);
}

.ldc-nov-card::before {
  content: "NOVO";
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
  padding: 7px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffd166, #ff8a00);
  color: #111827;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 1px;
  box-shadow: 0 10px 26px rgba(255, 138, 0, .25);
}

.ldc-nov-card::after {
  content: "";
  position: absolute;
  width: 230px;
  height: 230px;
  right: -95px;
  bottom: -95px;
  border-radius: 50%;
  filter: blur(6px);
  pointer-events: none;
}

.ldc-nov-card:nth-child(1) {
  background:
    radial-gradient(circle at 20% 10%, rgba(0, 224, 255, .26), transparent 38%),
    linear-gradient(160deg, rgba(0, 184, 255, .18), rgba(255,255,255,.065));
}

.ldc-nov-card:nth-child(1)::after {
  background: radial-gradient(circle, rgba(0, 224, 255, .34), transparent 70%);
}

.ldc-nov-card:nth-child(2) {
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 183, 3, .28), transparent 38%),
    linear-gradient(160deg, rgba(255, 138, 0, .18), rgba(255,255,255,.065));
}

.ldc-nov-card:nth-child(2)::after {
  background: radial-gradient(circle, rgba(255, 183, 3, .36), transparent 70%);
}

.ldc-nov-card:nth-child(3) {
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 61, 141, .28), transparent 38%),
    linear-gradient(160deg, rgba(255, 61, 141, .18), rgba(255,255,255,.065));
}

.ldc-nov-card:nth-child(3)::after {
  background: radial-gradient(circle, rgba(255, 61, 141, .34), transparent 70%);
}

.ldc-nov-icon {
  position: relative;
  z-index: 2;
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 26px;
  margin-bottom: 24px;
  font-size: 42px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow:
    inset 0 0 28px rgba(255,255,255,.12),
    0 16px 36px rgba(0,0,0,.24);
}

.ldc-nov-card h3 {
  position: relative;
  z-index: 2;
  margin: 0 0 12px;
  color: #ffffff !important;
  font-size: 31px;
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: -.7px;
  text-shadow: 0 4px 16px rgba(0,0,0,.45);
}

.ldc-nov-card p {
  position: relative;
  z-index: 2;
  margin: 0 0 24px;
  color: rgba(239, 247, 255, .88) !important;
  font-size: 16px;
  line-height: 1.68;
  font-weight: 500;
}

.ldc-nov-pill {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(0,0,0,.30);
  color: #fff !important;
  font-size: 13px;
  font-weight: 900;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: inset 0 0 18px rgba(255,255,255,.05);
}

/* ================= MINI BANNER MOBILE ================= */

.ldc-mobile-banner {
  display: none;
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 9997;
  padding: 12px;
  border-radius: 26px;
  background:
    radial-gradient(circle at top left, rgba(255, 183, 3, .20), transparent 44%),
    rgba(5, 10, 22, .94);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 18px 55px rgba(0,0,0,.52);
  color: #fff;
  backdrop-filter: blur(16px);
  transform: translateY(140%);
  transition: transform .35s ease;
}

.ldc-mobile-banner.is-visible {
  transform: translateY(0);
}

.ldc-mobile-banner-content {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 11px;
  align-items: center;
}

.ldc-mobile-banner-logo {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  object-fit: cover;
  background: #fff;
}

.ldc-mobile-banner-title {
  color: #fff !important;
  font-weight: 950;
  font-size: 14px;
  line-height: 1.15;
}

.ldc-mobile-banner-text {
  margin-top: 4px;
  color: rgba(255,255,255,.72);
  font-size: 12px;
  line-height: 1.3;
}

.ldc-mobile-banner-open {
  text-decoration: none;
  color: #111827;
  background: linear-gradient(135deg, #ffd166, #ff8a00);
  font-weight: 950;
  font-size: 12px;
  padding: 11px 13px;
  border-radius: 15px;
  white-space: nowrap;
}

.ldc-mobile-banner-close {
  position: absolute;
  top: -10px;
  right: -6px;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.18);
  background: #111827;
  color: #fff;
  cursor: pointer;
}

/* ================= MODAL APP ================= */

.ldc-app-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  color: #fff;
}

.ldc-app-modal.is-open {
  display: block;
}

.ldc-app-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.74);
  backdrop-filter: blur(12px);
}

.ldc-app-modal-card {
  position: absolute;
  left: 50%;
  bottom: 14px;
  width: min(94vw, 440px);
  transform: translateX(-50%) translateY(30px);
  opacity: 0;
  border-radius: 34px;
  padding: 20px;
  background:
    radial-gradient(circle at top left, rgba(255,183,3,.34), transparent 34%),
    radial-gradient(circle at bottom right, rgba(0,216,255,.18), transparent 36%),
    linear-gradient(180deg, rgba(18,25,42,.99), rgba(5,10,22,.99));
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 24px 90px rgba(0,0,0,.58);
  animation: ldcModalUp .34s ease forwards;
}

@keyframes ldcModalUp {
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.ldc-app-modal-head {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
}

.ldc-app-modal-logo {
  width: 60px;
  height: 60px;
  border-radius: 20px;
  object-fit: cover;
  background: #fff;
}

.ldc-app-modal h3 {
  margin: 0;
  color: #fff !important;
  font-size: 25px;
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -.8px;
}

.ldc-app-modal p {
  margin: 8px 0 0;
  color: rgba(255,255,255,.78);
  line-height: 1.45;
  font-size: 14px;
}

.ldc-app-modal-close {
  margin-left: auto;
  align-self: flex-start;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}

.ldc-app-benefits {
  display: grid;
  gap: 9px;
  margin: 15px 0;
}

.ldc-app-benefit {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 11px;
  border-radius: 17px;
  background: rgba(255,255,255,.075);
  color: rgba(255,255,255,.9);
  font-size: 13px;
  font-weight: 750;
  border: 1px solid rgba(255,255,255,.08);
}

.ldc-app-actions {
  display: grid;
  gap: 10px;
}

.ldc-app-primary,
.ldc-app-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 13px 14px;
  border-radius: 18px;
  text-decoration: none;
  font-weight: 950;
  border: 0;
  cursor: pointer;
}

.ldc-app-primary {
  color: #111827;
  background: linear-gradient(135deg, #ffd166, #ff8a00);
  box-shadow: 0 14px 34px rgba(255,138,0,.28);
}

.ldc-app-secondary {
  color: rgba(255,255,255,.9);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
}

.ldc-app-footnote {
  margin-top: 11px;
  text-align: center;
  color: rgba(255,255,255,.55);
  font-size: 12px;
}

/* ================= MOBILE ================= */

@media (max-width: 820px) {
  .ldc-novidades {
    padding: 64px 16px 92px;
  }

  .ldc-novidades-top,
  .ldc-novidades-grid {
    grid-template-columns: 1fr;
  }

  .ldc-mini-stats {
    grid-template-columns: 1fr 1fr;
  }

  .ldc-mini-stat:first-child {
    grid-column: 1 / -1;
  }

  .ldc-nov-card {
    min-height: auto;
    padding: 28px;
  }

  .ldc-novidades h2 {
    font-size: 43px;
    letter-spacing: -1.7px;
  }

  .ldc-mobile-banner {
    display: block;
  }
}