/* ===================================================================
   Callon — Componentes (telefone WhatsApp, dashboard, glass)
   ================================================================= */

/* ========== PHONE MOCKUP ========== */
.phone-stage{ perspective: 1500px; position: relative; }

.phone{
  width: 300px; height: 610px;
  border-radius: 46px;
  background: #000;
  padding: 14px;
  box-shadow:
    0 0 0 1px rgba(255,140,42,.35),
    0 60px 120px -20px rgba(255,106,0,.55),
    0 30px 60px -20px rgba(0,0,0,.9),
    inset 0 0 0 2px #15171f;
  transform: rotateY(-14deg) rotateX(8deg) rotateZ(-2deg);
  transform-style: preserve-3d;
  position: relative;
  transition: transform .15s ease-out;
}
.phone::before{
  content: "";
  position: absolute;
  top: 18px; left: 50%;
  transform: translateX(-50%);
  width: 108px; height: 26px;
  background: #000;
  border-radius: 18px;
  z-index: 5;
}
.phone::after{
  content: "";
  position: absolute; inset: -30px;
  border-radius: 60px;
  background: radial-gradient(circle at 50% 50%, rgba(255,140,42,.35), transparent 60%);
  z-index: -1;
  filter: blur(30px);
}

.phone-screen{
  width: 100%; height: 100%;
  border-radius: 34px;
  overflow: hidden;
  background: #0a0a10;
  position: relative;
  display: flex; flex-direction: column;
}

/* WhatsApp */
.wa-header{
  background: var(--gradient-primary);
  color: #fff;
  padding: 48px 14px 12px;
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 14px;
}
.wa-avatar{
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #fff;
  display: grid; place-items: center;
  color: var(--c-orange-500);
  font-weight: 800;
}
.wa-body{
  flex: 1;
  padding: 14px 12px;
  display: flex; flex-direction: column; gap: 8px;
  background: linear-gradient(180deg, #101218, #0a0a10);
  overflow: hidden; position: relative;
}
.wa-body::before{
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255,140,42,.08), transparent 50%);
  pointer-events: none;
}
.wa-input{
  padding: 8px 10px;
  background: #0a0a10;
  display: flex; gap: 8px; align-items: center;
  border-top: 1px solid rgba(255,255,255,.05);
}
.wa-input .box{
  flex: 1;
  background: #15171f;
  border-radius: 20px;
  padding: 8px 12px;
  font-size: 12px;
  color: #5f6477;
}
.wa-input .send{
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: grid; place-items: center;
  color: #fff;
  box-shadow: 0 0 20px -2px rgba(255,140,42,.7);
}

/* Bubbles */
.bubble{
  max-width: 80%;
  padding: 9px 12px;
  border-radius: 14px;
  font-size: 12.5px;
  line-height: 1.35;
  box-shadow: 0 4px 14px -4px rgba(0,0,0,.4);
  opacity: 0;
  transform: translateY(8px) scale(.96);
  animation: bubblePop .5s forwards;
  position: relative; z-index: 1;
}
.bubble.in{
  align-self: flex-start;
  background: #1a1d28;
  color: var(--c-text);
  border-bottom-left-radius: 4px;
  border: 1px solid rgba(255,255,255,.06);
}
.bubble.out{
  align-self: flex-end;
  background: var(--gradient-primary);
  color: #fff;
  border-bottom-right-radius: 4px;
  box-shadow: 0 4px 14px -4px rgba(255,106,0,.6);
}
.bubble.bot{
  align-self: flex-start;
  background: rgba(255,140,42,.12);
  color: #FFCFA0;
  border: 1px solid rgba(255,140,42,.35);
  border-bottom-left-radius: 4px;
}
.bubble small{
  display: block;
  font-size: 9px;
  opacity: .55;
  text-align: right;
  margin-top: 2px;
}
@keyframes bubblePop{
  to{ opacity: 1; transform: translateY(0) scale(1); }
}

/* Floating stats */
.float-stat{
  position: absolute;
  background: rgba(15,17,28,.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,140,42,.25);
  border-radius: 16px;
  padding: 10px 14px;
  box-shadow:
    0 20px 40px -18px rgba(255,106,0,.45),
    0 0 30px -10px rgba(255,140,42,.3);
  font-weight: 600;
  display: flex; gap: 10px; align-items: center;
  color: #fff;
}
.pulse-dot{
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--c-orange-400);
  box-shadow: 0 0 0 0 rgba(255,140,42,.7);
  animation: dotPulse 1.6s infinite;
}
@keyframes dotPulse{
  0%   { box-shadow: 0 0 0 0 rgba(255,140,42,.7); }
  70%  { box-shadow: 0 0 0 14px rgba(255,140,42,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,140,42,0); }
}

/* ========== MINI DASHBOARD ========== */
.mini-dash{
  background: #0d0e16;
  border-radius: var(--radius-card);
  box-shadow:
    0 40px 80px -22px rgba(255,106,0,.35),
    0 0 0 1px rgba(255,140,42,.18);
  overflow: hidden;
}
.mini-banner{
  background: var(--gradient-primary);
  color: #fff;
  padding: 18px 22px;
  border-radius: 18px;
  margin: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  box-shadow: 0 0 40px -10px rgba(255,106,0,.6);
}
.scan-line{
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--c-orange-400), transparent);
  animation: scan 4s linear infinite;
  opacity: .6;
}
@keyframes scan{
  0%   { top: 0; }
  100% { top: 100%; }
}

/* ========== GLASS ========== */
.glass-dark{
  background: rgba(10,12,20,.55);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(255,140,42,.18);
}

/* ========== SHOWCASE FRAMES (imagens com moldura iluminada) ========== */
.showcase-frame{
  position: relative;
  border-radius: 22px;
  padding: 8px;
  background: linear-gradient(135deg, rgba(255,140,42,.55), rgba(255,255,255,.04) 40%, rgba(255,140,42,.25));
  box-shadow:
    0 40px 80px -22px rgba(255,106,0,.45),
    0 0 60px -10px rgba(255,140,42,.35);
  transform-style: preserve-3d;
  transition: transform .6s var(--easing);
}
.showcase-frame:hover{ transform: perspective(1400px) rotateX(2deg) rotateY(-4deg) translateY(-6px); }
.showcase-frame::before{
  content: "";
  position: absolute; inset: -30px;
  border-radius: 50px;
  background: radial-gradient(circle at 50% 50%, rgba(255,140,42,.25), transparent 60%);
  z-index: -1;
  filter: blur(40px);
  pointer-events: none;
}
.showcase-frame img{
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  object-position: top center;
  border-radius: 16px;
  background: #fff;
}
@media (max-width: 767px){
  .showcase-frame img{ aspect-ratio: 16 / 11; }
}
/* Browser dots no canto da moldura */
.showcase-frame .browser-dots{
  position: absolute;
  top: 18px; left: 22px;
  display: flex; gap: 6px;
  z-index: 2;
}
.showcase-frame .browser-dots span{
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
}
.showcase-frame .browser-dots span:nth-child(1){ background: #FF6A00; }
.showcase-frame .browser-dots span:nth-child(2){ background: #FFB16A; }

/* Tags flutuantes ao redor das showcases */
.showcase-tag{
  position: absolute;
  background: rgba(15,17,28,.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,140,42,.3);
  border-radius: 14px;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 12px;
  color: #fff;
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 20px 40px -18px rgba(255,106,0,.5), 0 0 30px -10px rgba(255,140,42,.3);
  z-index: 3;
}
.showcase-tag .dot-emerald{
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34,197,94,.7);
  animation: dotPulse 1.6s infinite;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 767px){
  .phone{ transform: rotateY(0) rotateX(0) rotateZ(0) scale(.85); }
  .float-stat{ display: none; }
}
