/* ════════════════════════════════════════════════════════════════
   Dadge CV Pro — páginas móveis dos códigos QR
   ════════════════════════════════════════════════════════════════ */
.lp { --t: #1dbf73; --t-dark: #148651; --t-soft: #e8f8f0; position: relative; min-height: 100%; background: #f4f6f9; color: #1e293b;
  font-family: 'Inter', system-ui, sans-serif; font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; padding-bottom: 8px; }
.lp *, .lp *::before, .lp *::after { box-sizing: border-box; }
.lp h1, .lp h3, .lp p { margin: 0; }
.lp a { color: inherit; text-decoration: none; }

/* Topo */
.lp-hero { position: relative; background: var(--t); color: #fff; text-align: center; padding: 34px 22px 46px; border-radius: 0 0 34px 34px; overflow: hidden; }
.lp-hero::after { content: ''; position: absolute; right: -60px; top: -60px; width: 190px; height: 190px; border-radius: 50%; background: rgba(255,255,255,.1); }
.lp-hero::before { content: ''; position: absolute; left: -40px; bottom: -70px; width: 160px; height: 160px; border-radius: 50%; background: rgba(0,0,0,.07); }
.lp-hero-in { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.lp-hero.has-cover { padding: 0 0 42px; }
.lp-cover { position: relative; z-index: 1; height: 190px; overflow: hidden; margin-bottom: -38px; }
.lp-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lp-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.45)); }
.lp-hero.has-cover .lp-hero-in { padding: 0 22px; }
.lp-hero h1 { padding: 0 34px; overflow-wrap: anywhere; font-family: 'Montserrat', sans-serif; font-size: 23px; font-weight: 800; line-height: 1.2; letter-spacing: -.3px; }
.lp-sub { font-size: 14px; opacity: .92; font-weight: 500; }
.lp-text { font-size: 14px; opacity: .92; line-height: 1.55; max-width: 360px; }
.lp-avatar { width: 108px; height: 108px; border-radius: 50%; overflow: hidden; border: 4px solid #fff; background: rgba(255,255,255,.2); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.18); margin-bottom: 6px; }
.lp-avatar.sq { border-radius: 24px; background: #fff; }
.lp-avatar img { width: 100%; height: 100%; object-fit: cover; }
.lp-avatar.sq img { object-fit: contain; padding: 8px; }
.lp-avatar span { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 34px; color: #fff; }
.lp-avatar.sq span { color: var(--t); }
.lp-actions { display: flex; gap: 14px; margin-top: 8px; }
.lp-actions a { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--t-dark); font-size: 18px; box-shadow: 0 6px 18px rgba(0,0,0,.15); transition: transform .2s; }
.lp-actions a:active { transform: scale(.92); }
.lp-share { position: absolute; z-index: 5; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 12px; border: 0; background: rgba(255,255,255,.22); color: #fff; font-size: 16px; backdrop-filter: blur(4px); cursor: pointer; }

/* Corpo */
.lp-body { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 12px; padding: 0 16px; margin-top: -22px; }
.lp-bio { background: #fff; border-radius: 18px; padding: 16px 18px; text-align: center; color: #475569; font-size: 14.5px; box-shadow: 0 4px 18px rgba(15,23,42,.06); }
.lp-card { background: #fff; border-radius: 18px; padding: 6px 6px; box-shadow: 0 4px 18px rgba(15,23,42,.06); }
.lp-card-title { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; color: #0f172a; padding: 12px 12px 8px; }
.lp-card-title i { color: var(--t); }
.lp-p { font-size: 14.5px; color: #475569; padding: 2px 12px 12px; line-height: 1.6; }
.lp-p.small { font-size: 13px; }
.lp-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; transition: background .2s; }
a.lp-row:active, a.lp-row:hover { background: var(--t-soft); }
.lp-row-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--t-soft); color: var(--t-dark); flex-shrink: 0; }
.lp-row-txt { flex: 1; min-width: 0; }
.lp-row-txt small { display: block; font-size: 12px; color: #94a3b8; }
.lp-row-txt strong { display: block; font-size: 15px; font-weight: 600; color: #0f172a; overflow-wrap: anywhere; }
.lp-row-go { color: #cbd5e1; font-size: 12px; }

/* Botões */
.lp-btn { display: flex; align-items: center; gap: 12px; padding: 15px 18px; border-radius: 14px; font-weight: 700; font-size: 15px; background: #fff; color: #0f172a; box-shadow: 0 4px 18px rgba(15,23,42,.06); border: 2px solid transparent; transition: transform .15s; cursor: pointer; }
.lp-btn:active { transform: scale(.98); }
.lp-btn span { flex: 1; }
.lp-btn > i:first-child { width: 22px; text-align: center; color: var(--t); }
.lp-btn-go { font-size: 13px; opacity: .5; }
.lp-btn.primary { background: var(--t-dark); color: #fff; justify-content: center; }
.lp-btn.primary > i:first-child { color: #fff; }
.lp-btn.primary span { flex: 0 1 auto; }
.lp-btn.primary .lp-btn-go { display: none; }
.lp-btn.outline { background: var(--t-soft); color: var(--t-dark); border-color: transparent; box-shadow: none; }
.lp-btn.link { background: #fff; }
.lp-btn.social > i:first-child { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--b); color: #fff; }
.lp-links { display: flex; flex-direction: column; gap: 10px; }
.lp-socials { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; padding: 4px 0; }
.lp-socials a { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--b); color: #fff; font-size: 19px; box-shadow: 0 4px 12px rgba(15,23,42,.12); }
.lp-empty { text-align: center; color: #94a3b8; font-size: 14px; padding: 20px; background: #fff; border-radius: 18px; border: 2px dashed #e2e8f0; }

/* Ficheiros e media */
.lp-file { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 18px; padding: 16px; box-shadow: 0 4px 18px rgba(15,23,42,.06); }
.lp-file > i { font-size: 38px; color: #e11d48; }
.lp-file strong { display: block; font-size: 15px; overflow-wrap: anywhere; }
.lp-file small { color: #94a3b8; }
.lp-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lp-gallery button { padding: 0; border: 0; border-radius: 14px; overflow: hidden; aspect-ratio: 1; background: #e2e8f0; cursor: zoom-in; }
.lp-gallery button:first-child { grid-column: span 2; aspect-ratio: 16 / 10; }
.lp-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lp-video { border-radius: 18px; overflow: hidden; background: #000; box-shadow: 0 6px 22px rgba(15,23,42,.15); }
.lp-video video { display: block; width: 100%; max-height: 420px; }
.lp-yt { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 20px; border-radius: 18px; background: #ff0000; color: #fff !important; font-weight: 700; font-size: 16px; }
.lp-yt i { font-size: 28px; }
.lp-music { padding-bottom: 54px; background: linear-gradient(160deg, var(--t), var(--t-dark)); }
.lp-disc { width: 170px; height: 170px; border-radius: 22px; overflow: hidden; display: grid; place-items: center; background: rgba(255,255,255,.15); box-shadow: 0 16px 40px rgba(0,0,0,.3); margin-bottom: 10px; font-size: 54px; }
.lp-disc img { width: 100%; height: 100%; object-fit: cover; }
.lp-audio { background: #fff; border-radius: 18px; padding: 14px; box-shadow: 0 4px 18px rgba(15,23,42,.06); }
.lp-audio audio { width: 100%; display: block; }

/* Menu */
.lp-dish { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 11px 12px; border-top: 1px dashed #e2e8f0; }
.lp-dish strong { display: block; font-size: 15px; }
.lp-dish small { display: block; color: #64748b; font-size: 13px; margin-top: 2px; }
.lp-dish > span { font-weight: 800; color: var(--t-dark); white-space: nowrap; }
.lp-hours div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; border-top: 1px solid #f1f5f9; font-size: 14px; }
.lp-hours div:first-child { border-top: 0; }
.lp-hours strong { color: #0f172a; }

/* Cupão */
.lp-coupon { position: relative; background: #fff; border-radius: 20px; box-shadow: 0 8px 26px rgba(15,23,42,.1); overflow: hidden; }
.lp-coupon-top { padding: 24px 20px 18px; text-align: center; background: var(--t-soft); }
.lp-coupon-top strong { display: block; font-family: 'Montserrat', sans-serif; font-size: 30px; font-weight: 900; color: var(--t-dark); line-height: 1.1; }
.lp-coupon-top p { margin-top: 8px; color: #475569; font-size: 14px; }
.lp-coupon-cut { position: relative; height: 0; border-top: 2px dashed #e2e8f0; }
.lp-coupon-cut i { position: absolute; top: -12px; width: 24px; height: 24px; border-radius: 50%; background: #f4f6f9; }
.lp-coupon-cut i:first-child { left: -12px; } .lp-coupon-cut i:last-child { right: -12px; }
.lp-coupon-code { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; padding: 18px; }
.lp-coupon-code small { width: 100%; text-align: center; font-size: 12px; color: #94a3b8; text-transform: uppercase; letter-spacing: 1px; }
.lp-coupon-code strong { font-family: 'Space Grotesk', monospace; font-size: 24px; letter-spacing: 3px; padding: 8px 16px; border: 2px dashed var(--t); border-radius: 12px; color: #0f172a; }
.lp-coupon-code button { border: 0; border-radius: 12px; padding: 12px 16px; font-weight: 700; background: var(--t-dark); color: #fff; cursor: pointer; }
.lp-coupon-valid { text-align: center; font-size: 13px; color: #64748b; padding: 0 16px 16px; }

/* Lojas */
.lp-stores { display: grid; gap: 10px; }
.lp-store { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 14px; background: #0f172a; color: #fff !important; }
.lp-store i { font-size: 28px; width: 30px; text-align: center; }
.lp-store span { font-weight: 800; font-size: 18px; line-height: 1.1; }
.lp-store small { display: block; font-weight: 500; font-size: 11px; opacity: .75; }

/* Rodapé */
.lp-foot { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px 16px 16px; font-size: 12px; color: #94a3b8; }
.lp-foot strong { color: #64748b; }
.lp-foot button { border: 0; background: none; color: #94a3b8; font-size: 12px; text-decoration: underline; cursor: pointer; }

/* Lightbox */
.lp-lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.92); display: grid; place-items: center; animation: lbIn .25s ease; }
@keyframes lbIn { from { opacity: 0; } }
.lp-lightbox img { max-width: 94vw; max-height: 86vh; border-radius: 10px; }
.lp-lightbox button { position: absolute; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.15); color: #fff; font-size: 18px; cursor: pointer; }
.lb-x { top: 16px; right: 16px; } .lb-p { left: 12px; top: 50%; } .lb-n { right: 12px; top: 50%; }
.lb-c { position: absolute; bottom: 18px; color: #fff; font-size: 13px; opacity: .8; }

/* Página pública (fora do editor) */
.lp-page { margin: 0; background: #e9edf2; min-height: 100vh; }
.lp-page #lp { max-width: 480px; margin: 0 auto; min-height: 100vh; background: #f4f6f9; box-shadow: 0 0 40px rgba(15,23,42,.08); }
.lp-page #lp > .lp { min-height: 100vh; }
.lp-missing { max-width: 420px; margin: 18vh auto 0; text-align: center; padding: 24px; font-family: 'Inter', sans-serif; color: #475569; }
.lp-missing i { font-size: 46px; color: #1dbf73; }
.lp-missing h1 { color: #0f172a; font-size: 22px; }
.lp-missing a { color: #12834f; font-weight: 700; }

/* Página QR exportada (PDF/imagem) */
.qrpage-x { width: 420px; background: #f4f6f9; }
.qrpage-x .lp { min-height: 0; }
.qrpage-code { display: flex; align-items: center; gap: 16px; margin: 8px 16px 18px; padding: 14px; border-radius: 18px; background: #fff; box-shadow: 0 4px 18px rgba(15,23,42,.06); font: 500 13px Inter, Arial, sans-serif; color: #475569; }
.qrpage-code svg { width: 110px; height: auto; flex-shrink: 0; }
.qrpage-code strong { display: block; color: #0f172a; font-size: 15px; margin-bottom: 4px; }
