/* Modelo "Cartão Fidelidade Digital (NFC + QR-Code)" — apresentação 3D cinematográfica em 960x540 */
.fn { position: absolute; inset: 0; overflow: hidden; font-family: Inter, system-ui, sans-serif; color: #fff; }
.fn * { box-sizing: border-box; }
.showcase[data-modo="ideias"] .sc-build:has(.fn) { padding: 0; }

.fn .fn-palco {
  position: absolute; left: 50%; top: 50%; transform-origin: 50% 50%;
  width: 960px; height: 540px; overflow: hidden; border-radius: 18px;
  background: radial-gradient(ellipse 80% 65% at 50% 25%, #122d52 0%, #071324 60%, #03070f 100%);
}

.fn .fn-grid {
  position: absolute; inset: 0; opacity: 0.2; pointer-events: none;
  background-image: linear-gradient(rgba(45, 226, 230, 0.16) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(45, 226, 230, 0.16) 1px, transparent 1px);
  background-size: 42px 42px;
}

.fn .fn-luz {
  position: absolute; left: 50%; top: -28%; width: 880px; height: 640px; margin-left: -440px;
  background: radial-gradient(ellipse at 50% 0%, rgba(45, 226, 230, 0.2), transparent 62%);
  pointer-events: none;
}

.fn .fn-balcao {
  position: absolute; left: -10%; right: -10%; top: 70%; bottom: -22%;
  background: linear-gradient(180deg, rgba(18, 35, 61, 0.92), rgba(5, 10, 18, 0.99) 70%);
  transform: perspective(700px) rotateX(58deg); transform-origin: 50% 0;
  border-top: 1px solid rgba(45, 226, 230, 0.25);
}
.fn .fn-balcao::after {
  content: ""; position: absolute; left: 25%; right: 25%; top: 0; height: 42%;
  background: radial-gradient(ellipse at 50% 0%, rgba(45, 226, 230, 0.28), transparent 72%);
}

.fn .fn-marcad {
  position: absolute; left: 22px; top: 18px; z-index: 20; font-weight: 800;
  letter-spacing: 0.15em; font-size: 11px; padding: 5px 11px; border-radius: 999px;
  background: rgba(4, 12, 24, 0.68); border: 1px solid rgba(45, 226, 230, 0.3);
  backdrop-filter: blur(8px);
}
.fn .fn-marcad b { color: #2de2e6; }

.fn .fn-cena { position: absolute; inset: 0; perspective: 1200px; perspective-origin: 50% 45%; }

/* 1. Placa de Acrílico Realista com Base 3D (padrão premium) */
.fn .fn-placa-wrap {
  position: absolute; left: 50%; top: 50%; width: 224px; height: 304px;
  margin: -160px 0 0 -112px; transform-style: preserve-3d; z-index: 4;
}
.fn .fn-placa-vidro {
  position: relative; width: 100%; height: 100%; border-radius: 18px; padding: 0; overflow: hidden;
  text-align: center; color: #0f172a;
  background: linear-gradient(165deg, #ffffff 0%, #f1f5f9 100%);
  border: 3px solid rgba(255, 255, 255, 0.78);
  box-shadow: 0 0 0 1px rgba(203, 213, 225, 0.55), 0 28px 54px rgba(0, 0, 0, 0.7), inset 0 0 0 1px rgba(255, 255, 255, 0.9);
}
.fn .fn-placa-vidro::after {
  content: ""; position: absolute; inset: 0; border-radius: 16px; pointer-events: none;
  background: linear-gradient(122deg, rgba(255, 255, 255, 0.55) 0%, transparent 34%, transparent 72%, rgba(255, 255, 255, 0.22) 100%);
}
.fn .fn-pl-head {
  display: flex; align-items: center; gap: 9px; padding: 11px 13px;
  background: linear-gradient(135deg, #7b4a2a, #0f172a 175%); color: #fff; text-align: left;
}
.fn .fn-pl-av {
  width: 32px; height: 32px; border-radius: 50%; background: #fff; color: #7b4a2a;
  display: grid; place-items: center; font-weight: 900; font-size: 12px; flex: none;
}
.fn .fn-pl-head b { display: block; font-size: 12.5px; color: #fff; line-height: 1.15; }
.fn .fn-pl-head small { display: block; font-size: 8.5px; color: rgba(255, 255, 255, 0.85); font-weight: 600; text-transform: uppercase; }
.fn .fn-pl-nfc-top { margin-left: auto; width: 20px; height: 20px; display: grid; place-items: center; flex: none; }
.fn .fn-pl-nfc-top svg { width: 19px; height: 19px; fill: none; stroke: #2de2e6; stroke-width: 2.2; stroke-linecap: round; }
.fn .fn-pl-oferta {
  margin: 8px auto 6px; font-size: 13px; font-weight: 800; color: #0b1f3a; line-height: 1.25;
}
.fn .fn-pl-oferta span {
  display: inline-block; padding: 2px 9px; border-radius: 999px; background: #0b1f3a; color: #2de2e6;
  font-size: 8.5px; font-weight: 800; margin-bottom: 3px; letter-spacing: 0.05em;
}
.fn .fn-pl-qr {
  width: 124px; height: 124px; margin: 0 auto 8px; padding: 6px; border-radius: 12px;
  background: #fff; border: 1.5px solid #e2e8f0; box-shadow: 0 6px 14px rgba(11, 31, 58, 0.08);
}
.fn .fn-pl-qr svg { width: 100%; height: 100%; display: block; }
.fn .fn-pl-nfc {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 12px; border-radius: 999px;
  background: #0f172a; color: #fff; font-size: 9px; font-weight: 800; letter-spacing: 0.04em;
}
.fn .fn-pl-nfc svg { width: 13px; height: 13px; fill: none; stroke: #2de2e6; stroke-width: 2.3; }
.fn .fn-pl-base {
  position: absolute; left: 50%; bottom: -18px; width: 204px; height: 24px; margin-left: -102px;
  border-radius: 5px 5px 9px 9px;
  background: linear-gradient(180deg, #27303f 0%, #11161f 48%, #05070a 100%);
  border-top: 2px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.85), 0 2px 14px rgba(45, 226, 230, 0.2);
}

/* Ondas NFC */
.fn .fn-onda {
  position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px;
  border-radius: 50%; border: 3px solid #2de2e6;
  box-shadow: 0 0 22px rgba(45, 226, 230, 0.85), inset 0 0 12px rgba(45, 226, 230, 0.5);
  pointer-events: none; z-index: 6; opacity: 0;
}

/* 2. iPhone 15 Pro Real com Tela de Bloqueio iOS */
.fn .fn-cel {
  position: absolute; left: 50%; top: 50%; width: 198px; height: 406px; margin: -206px 0 0 -99px;
  z-index: 8; filter: drop-shadow(0 28px 48px rgba(0, 0, 0, 0.78));
}
.fn .fn-cel-frame {
  position: relative; z-index: 6; width: 100%; height: 100%; display: block; pointer-events: none;
}
.fn .fn-cel-inner {
  position: absolute; left: 9px; right: 8px; top: 9px; bottom: 8px; border-radius: 26px; overflow: hidden;
  background: #071324; z-index: 2;
}
.fn .fn-cel-status {
  position: relative; z-index: 4; height: 22px; display: flex; justify-content: space-between; align-items: center;
  padding: 4px 14px 0; font-size: 8px; font-weight: 700; color: rgba(255, 255, 255, 0.92);
}
.fn .fn-lock {
  position: absolute; inset: 0; padding: 34px 12px 14px; display: flex; flex-direction: column; align-items: center;
  background: radial-gradient(circle at 30% 25%, rgba(45, 226, 230, 0.28), transparent 52%),
              radial-gradient(circle at 80% 75%, rgba(59, 130, 246, 0.32), transparent 55%),
              linear-gradient(175deg, #0c1b33 0%, #060d1a 100%);
  text-align: center; z-index: 2;
}
.fn .fn-lock-date { font-size: 8.5px; font-weight: 600; color: rgba(255, 255, 255, 0.82); margin-top: 4px; }
.fn .fn-lock-time { font-size: 40px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; color: #fff; margin-top: 2px; }
.fn .fn-lock-banner {
  margin-top: 18px; width: 100%; padding: 7px 9px; border-radius: 12px;
  background: rgba(15, 23, 42, 0.84); border: 1px solid rgba(45, 226, 230, 0.55);
  display: flex; align-items: center; gap: 7px; text-align: left;
  opacity: 0; transform: translateY(-8px); transition: opacity 0.3s, transform 0.3s;
}
.fn .fn-lock-banner.on { opacity: 1; transform: translateY(0); }
.fn .fn-lock-banner i {
  width: 20px; height: 20px; border-radius: 6px; background: #2de2e6; color: #041322;
  display: grid; place-items: center; flex: none; font-style: normal;
}
.fn .fn-lock-banner i svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.fn .fn-lock-banner b { display: block; font-size: 8.2px; color: #fff; line-height: 1.15; }
.fn .fn-lock-banner span { display: block; font-size: 7px; color: #93c5fd; }
.fn .fn-lock-foot { margin-top: auto; width: 100%; display: flex; justify-content: space-between; padding: 0 6px 6px; }
.fn .fn-lock-foot span { width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); display: grid; place-items: center; }
.fn .fn-lock-foot svg { width: 11px; height: 11px; fill: none; stroke: #fff; stroke-width: 2; }
.fn .fn-cel-tela {
  position: absolute; inset: 0; padding: 30px 12px 14px;
  background: radial-gradient(circle at top right, rgba(45, 226, 230, 0.18), transparent 45%), #071324;
  display: flex; flex-direction: column; z-index: 3; opacity: 0;
}
.fn .fn-cel-tag { font-size: 8.5px; font-weight: 800; color: #2de2e6; letter-spacing: 0.08em; text-align: center; }
.fn .fn-cel-h { font-size: 14px; font-weight: 800; text-align: center; margin: 4px 0 3px; }
.fn .fn-cel-p { font-size: 8.5px; color: #9bb1cc; text-align: center; line-height: 1.3; margin-bottom: 12px; }
.fn .fn-inp-lbl { font-size: 8px; color: #9bb1cc; font-weight: 600; margin-bottom: 3px; }
.fn .fn-inp-box {
  height: 28px; padding: 0 9px; border-radius: 8px; background: rgba(4, 12, 24, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.16); font-size: 10px; color: #fff;
  display: flex; align-items: center; margin-bottom: 8px;
}
.fn .fn-inp-box.ativo { border-color: #2de2e6; box-shadow: 0 0 0 2px rgba(45, 226, 230, 0.2); }
.fn .fn-chk { display: flex; align-items: center; gap: 6px; font-size: 8px; color: #9bb1cc; margin: 4px 0 10px; }
.fn .fn-chk i {
  width: 13px; height: 13px; border-radius: 4px; background: #2de2e6; color: #041322;
  display: grid; place-items: center; font-style: normal; font-weight: 900; font-size: 9px; flex: none;
}
.fn .fn-cel-btn {
  padding: 9px; border-radius: 10px; background: linear-gradient(135deg, #2de2e6, #17b8c4);
  color: #041322; font-size: 10px; font-weight: 800; text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.fn .fn-cel-btn.click { transform: scale(0.94); box-shadow: 0 0 22px rgba(45, 226, 230, 0.75); }

/* 3. Cartão Fidelidade 3D Hero */
.fn .fn-hero-stage {
  position: absolute; left: 50%; top: 50%; width: 356px; height: 224px;
  margin: -124px 0 0 -178px; perspective: 1200px; z-index: 9;
}
.fn .fn-card-3d {
  position: relative; width: 100%; height: 100%; transform-style: preserve-3d;
}
.fn .fn-face {
  position: absolute; inset: 0; border-radius: 20px;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border: 1.5px solid rgba(45, 226, 230, 0.45);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.72); overflow: hidden;
}
.fn .fn-frente {
  background: linear-gradient(145deg, #0f2544, #071324);
  padding: 20px; display: flex; flex-direction: column; justify-content: space-between;
}
.fn .fn-f-top { display: flex; justify-content: space-between; align-items: center; }
.fn .fn-f-brand { display: flex; align-items: center; gap: 10px; }
.fn .fn-f-av {
  width: 36px; height: 36px; border-radius: 50%; background: #2de2e6; color: #051221;
  display: grid; place-items: center; font-weight: 900; font-size: 16px;
}
.fn .fn-f-brand b { display: block; font-size: 14px; letter-spacing: 0.03em; }
.fn .fn-f-brand small { display: block; font-size: 9.5px; letter-spacing: 0.1em; color: #9bb1cc; }
.fn .fn-f-nfc { width: 30px; height: 30px; color: #2de2e6; fill: none; stroke: currentColor; stroke-width: 2.2; }
.fn .fn-f-bot { display: flex; justify-content: space-between; align-items: flex-end; }
.fn .fn-f-bot small { display: block; font-size: 9px; color: #7c96b6; letter-spacing: 0.1em; }
.fn .fn-f-bot b { font-size: 14px; letter-spacing: 0.05em; }
.fn .fn-f-pill {
  padding: 6px 12px; border-radius: 999px; border: 1px solid #2de2e6;
  background: rgba(19, 45, 82, 0.85); color: #2de2e6; font-size: 11.5px; font-weight: 700;
}

.fn .fn-verso {
  transform: rotateY(180deg);
  background: linear-gradient(155deg, #0b1b33, #061020);
  display: flex; flex-direction: column;
}
.fn .fn-tarja { height: 28px; margin-top: 14px; background: #02060d; }
.fn .fn-v-body {
  flex: 1; padding: 12px 18px; display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center;
}
.fn .fn-v-lbl { font-size: 9.5px; font-weight: 800; color: #2de2e6; letter-spacing: 0.08em; margin-bottom: 6px; }
.fn .fn-selos { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; max-width: 162px; margin-bottom: 8px; }
.fn .fn-selo {
  width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(100, 130, 168, 0.5);
  background: rgba(18, 41, 74, 0.7); display: grid; place-items: center; font-size: 9.5px; font-weight: 700; color: #6482a8;
  transition: transform 0.25s, background 0.25s;
}
.fn .fn-selo.ok { background: #2de2e6; border-color: #2de2e6; color: #051221; transform: scale(1.08); box-shadow: 0 0 10px rgba(45, 226, 230, 0.45); }
.fn .fn-v-premio { font-size: 10px; color: #dbeafe; line-height: 1.25; }
.fn .fn-v-qr-wrap { position: relative; width: 98px; height: 98px; padding: 6px; border-radius: 10px; background: #fff; overflow: hidden; }
.fn .fn-v-qr-wrap svg { width: 100%; height: 100%; display: block; }
.fn .fn-laser {
  position: absolute; left: 4px; right: 4px; height: 3px; border-radius: 2px;
  background: #2de2e6; box-shadow: 0 0 12px #2de2e6, 0 0 22px #2de2e6; opacity: 0;
}

/* 4. Cartões flutuantes de Painel e CRM WhatsApp */
.fn .fn-float {
  position: absolute; width: 226px; border-radius: 15px; padding: 12px 14px;
  background: rgba(11, 29, 54, 0.94); border: 1px solid rgba(45, 226, 230, 0.35);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.62); backdrop-filter: blur(10px); z-index: 12;
}
.fn .fn-float small { display: block; font-size: 9px; font-weight: 800; color: #2de2e6; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 4px; }
.fn .fn-float b { display: block; font-size: 12px; color: #fff; margin-bottom: 3px; }
.fn .fn-float p { margin: 0; font-size: 10px; color: #9bb1cc; line-height: 1.35; }
.fn .fn-float.wpp { border-color: rgba(34, 197, 94, 0.48); background: rgba(9, 32, 25, 0.94); }
.fn .fn-float.wpp small { color: #4ade80; }

.fn .fn-passo {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 20;
  padding: 6px 15px; border-radius: 999px; background: rgba(4, 12, 24, 0.84);
  border: 1px solid rgba(45, 226, 230, 0.35); font-size: 11.5px; font-weight: 600; color: #e2e8f0;
  white-space: nowrap;
}
