﻿/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --pk: #E1306C;
  --pu: #833AB4;
  --or: #F77737;
  --grad: linear-gradient(135deg, #833AB4, #E1306C, #F77737);
}

html, body {
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  background: #000;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

/* ===== STORIES WRAPPER ===== */
.sw {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: #fff;
}

/* ===== PROGRESS BARS ===== */
.pbars {
  position: absolute;
  top: max(10px, env(safe-area-inset-top, 10px));
  left: 10px;
  right: 10px;
  display: flex;
  gap: 5px;
  z-index: 200;
  padding-top: 4px;
}
.pbar {
  height: 2.5px;
  flex: 1;
  background: rgba(255,255,255,.32);
  border-radius: 2px;
  overflow: hidden;
}
.pbfill {
  height: 100%;
  width: 0%;
  background: #fff;
  border-radius: 2px;
}

/* ===== STORY HEADER ===== */
.shead {
  position: absolute;
  top: calc(max(10px, env(safe-area-inset-top, 10px)) + 14px);
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 200;
  pointer-events: none;
  background: rgba(0,0,0,0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 999px;
  padding: 5px 12px 5px 5px;
  width: fit-content;
}
.shead-av {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,.5);
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
  overflow: hidden;
}
.shead-av img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.shead-meta strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}
.shead-meta span {
  font-size: 11px;
  color: rgba(255,255,255,.75);
}

/* ===== STORIES TRACK ===== */
.strack {
  display: flex;
  width: 200%;
  height: 100%;
  will-change: transform;
  transition: transform .32s cubic-bezier(.4,0,.2,1);
}

/* ===== STORY BASE ===== */
.story {
  width: 50%;
  height: 100%;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

/* ===================== STORY 1 ===================== */
.s1 { background: #fff; }

.s1wrap {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 76px 20px 20px;
  overflow: hidden;
  gap: 0;
}

.s1badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--grad);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.s1 h1 {
  font-size: clamp(22px, 5.5vw, 28px);
  font-weight: 900;
  line-height: 1.18;
  color: #111;
  text-align: center;
  margin-bottom: 10px;
}
.s1 h1 span {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.s1wrap p {
  font-size: 13px;
  color: #555;
  text-align: center;
  line-height: 1.55;
  margin-bottom: 12px;
}

.s1stats {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  width: 100%;
  justify-content: center;
}
.s1stat {
  background: #f4f4f4;
  border-radius: 14px;
  padding: 9px 10px;
  text-align: center;
  flex: 1;
}
.s1stat strong {
  display: block;
  font-size: 15px;
  font-weight: 900;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.s1stat span { font-size: 9px; color: #aaa; display: block; margin-top: 1px; }

/* ===================== PHONES ===================== */
.phones {
  position: relative;
  width: 100%;
  height: 228px;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin-bottom: 10px;
}
.phone {
  position: absolute;
  width: 130px;
  height: 222px;
  background: #111;
  border-radius: 22px;
  border: 2.5px solid #2a2a2a;
  overflow: hidden;
  box-shadow: 0 14px 44px rgba(0,0,0,.28), inset 0 0 0 1px rgba(255,255,255,.05);
}
.ph-notch {
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 6px;
  background: #222;
  border-radius: 999px;
  z-index: 10;
}
.ph-home {
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 34px;
  height: 3px;
  background: rgba(255,255,255,.18);
  border-radius: 999px;
  z-index: 10;
}

/* Phone 1 position */
.ph1 {
  left: 50%;
  transform: translateX(-112%) rotate(-7deg);
  z-index: 2;
  box-shadow: 0 18px 50px rgba(225,48,108,.22), 0 8px 24px rgba(0,0,0,.28);
}
/* Phone 2 position */
.ph2 {
  left: 50%;
  transform: translateX(12%) rotate(7deg);
  z-index: 1;
  background: #fafafa;
  border-color: #ddd;
}

/* ── PHONE 1: REELS ── */
.reel-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  border-radius: 20px;
  background: #000;
}
@keyframes reelPlay {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.reel-ui {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.reel-topbar {
  position: absolute;
  top: 18px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 8px;
}
.reel-back, .reel-cam {
  font-size: 13px;
  color: rgba(255,255,255,.9);
}
.reel-label {
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  letter-spacing: .4px;
}
.reel-rights {
  position: absolute;
  right: 7px;
  bottom: 48px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}
.rr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  line-height: 1;
}
.rr-ico {
  font-size: 16px;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.4));
}
.rr-n {
  font-size: 7px;
  font-weight: 600;
  color: rgba(255,255,255,.9);
}
.reel-bottom {
  position: absolute;
  bottom: 14px;
  left: 8px;
  right: 36px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.reel-urow {
  display: flex;
  align-items: center;
  gap: 4px;
}
.reel-uav {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: rgba(255,255,255,.22);
  border: 1px solid rgba(255,255,255,.5);
  font-size: 6px;
  font-weight: 900;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.reel-uav img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.reel-uname {
  font-size: 8px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,.4);
}
.reel-follow {
  font-size: 7px;
  font-weight: 700;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 4px;
  padding: 1px 5px;
  cursor: default;
}
.reel-cap {
  font-size: 8px;
  color: rgba(255,255,255,.95);
  text-shadow: 0 1px 3px rgba(0,0,0,.4);
  line-height: 1.35;
}
.reel-mus {
  font-size: 7px;
  color: rgba(255,255,255,.65);
}

/* ── PHONE 2: INSTAGRAM PROFILE ── */
.ig-screen {
  position: absolute;
  inset: 0;
  background: #fff;
  display: flex;
  flex-direction: column;
  padding-top: 17px;
}
.ig-topbar {
  font-size: 9px;
  font-weight: 800;
  color: #111;
  text-align: center;
  padding: 3px 8px 5px;
  border-bottom: .5px solid #ebebeb;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ig-lock, .ig-add { font-size: 10px; opacity: .6; }
.ig-profile-row {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 7px 3px;
}
.ig-av {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
  outline: 2px solid var(--pk);
  outline-offset: 1.5px;
  overflow: hidden;
}
.ig-av img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.ig-nums {
  display: flex;
  justify-content: space-around;
  flex: 1;
}
.ig-num { text-align: center; }
.ig-num strong { display: block; font-size: 9px; font-weight: 800; color: #111; }
.ig-num span { font-size: 6px; color: #999; }
.ig-name {
  padding: 3px 7px 1px;
  font-size: 8px;
  font-weight: 800;
  color: #111;
}
.ig-bio {
  padding: 0 7px 5px;
  font-size: 7px;
  color: #555;
  line-height: 1.35;
}
.ig-btns {
  display: flex;
  gap: 4px;
  padding: 0 7px 5px;
}
.ig-btn {
  flex: 1;
  background: #f0f0f0;
  border-radius: 6px;
  padding: 3px;
  text-align: center;
  font-size: 8px;
  font-weight: 700;
  color: #111;
}
.ig-btn-msg { background: #f0f0f0; }
.ig-tabs {
  display: flex;
  justify-content: space-around;
  border-top: .5px solid #ebebeb;
  border-bottom: .5px solid #ebebeb;
  padding: 4px 0;
  margin-bottom: 1px;
}
.ig-tab { font-size: 12px; opacity: .4; }
.ig-tab.active { opacity: 1; }
.ig-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  flex: 1;
  overflow: hidden;
}
.ig-cell {
  background: linear-gradient(-45deg, #833AB4, #E1306C, #F77737);
  background-size: 400% 400%;
  animation: reelPlay 5s ease infinite;
}
.ig-cell.a1 { animation-delay: 0s; }
.ig-cell.a2 { animation-delay: -.9s; }
.ig-cell.a3 { animation-delay: -1.8s; }
.ig-cell.a4 { animation-delay: -2.7s; }
.ig-cell.a5 { animation-delay: -3.6s; }
.ig-cell.a6 { animation-delay: -4.5s; }

/* ── BOTÃO VAMO LÁ ── */
.btn-vamola {
  width: 100%;
  max-width: 340px;
  padding: 16px;
  background: var(--grad);
  color: #fff;
  border: none;
  border-radius: 16px;
  font-size: 17px;
  font-weight: 900;
  font-family: inherit;
  cursor: pointer;
  letter-spacing: .2px;
  box-shadow: 0 6px 24px rgba(225,48,108,.35);
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  animation: pulseBtn 2.2s ease-in-out infinite;
}
@keyframes pulseBtn {
  0%, 100% { box-shadow: 0 6px 24px rgba(225,48,108,.35); transform: scale(1); }
  50%       { box-shadow: 0 8px 32px rgba(225,48,108,.55); transform: scale(1.025); }
}

/* ===================== STORY 2 ===================== */
.s2 {
  background: linear-gradient(150deg, #0d0d0d 0%, #18061e 50%, #280a2e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 72px 16px 20px;
}

/* WHITE CARD — HIGH CONTRAST on dark background */
.s2-card {
  background: #fff;
  border-radius: 26px;
  padding: 26px 22px 22px;
  width: 100%;
  max-width: 390px;
  box-shadow:
    0 0 0 1.5px rgba(255,255,255,.08),
    0 32px 80px rgba(0,0,0,.75),
    0 0 120px rgba(131,58,180,.2);
}
.s2-head {
  text-align: center;
  margin-bottom: 20px;
}
.s2-ico {
  font-size: 30px;
  display: block;
  margin-bottom: 7px;
}
.s2-head h2 {
  font-size: 20px;
  font-weight: 900;
  color: #0d0d0d;
  margin-bottom: 4px;
  letter-spacing: -.3px;
}
.s2-head p {
  font-size: 13px;
  color: #666;
}

/* FORM GROUPS */
.fg { margin-bottom: 14px; }
.fg label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: #111;
  margin-bottom: 5px;
  letter-spacing: .1px;
  text-transform: uppercase;
}
.fg input,
.fg select {
  width: 100%;
  padding: 13px 14px;
  border: 2px solid #d8d8d8;
  border-radius: 13px;
  font-size: 15px;
  font-family: inherit;
  background: #f5f5f5;
  color: #111;
  outline: none;
  transition: border-color .2s, background .2s, box-shadow .2s;
  -webkit-appearance: none;
  appearance: none;
}
.fg select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.fg input:focus,
.fg select:focus {
  border-color: var(--pk);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(225,48,108,.12);
}
.fg input::placeholder { color: #c0c0c0; }
.fg select option[disabled] { color: #c0c0c0; }

/* SUBMIT */
.btn-sub {
  width: 100%;
  padding: 15px;
  background: var(--grad);
  color: #fff;
  border: none;
  border-radius: 15px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: .1px;
  margin-top: 6px;
  transition: opacity .2s, transform .12s;
  -webkit-tap-highlight-color: transparent;
  font-family: inherit;
}
.btn-sub:active { transform: scale(.97); opacity: .9; }

/* SUCCESS */
.s2-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 14px 0;
}
.s2-sico {
  width: 62px;
  height: 62px;
  background: var(--grad);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.s2-sico svg { width: 28px; height: 28px; }
.s2-success h3 { font-size: 21px; font-weight: 900; color: #111; }
.s2-success p { font-size: 14px; color: #555; line-height: 1.55; }
.s2-sub { font-size: 12px !important; color: #aaa !important; }

/* DASH LINK */
.dash-link {
  position: absolute;
  bottom: 18px;
  right: 18px;
  font-size: 11px;
  color: rgba(255,255,255,.18);
  text-decoration: none;
}

/* ===================== DASHBOARD ===================== */
.dash-body {
  background: #FAFAFA;
  min-height: 100vh;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  overflow: auto;
}
.dash-header {
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.dash-header h1 {
  font-size: 18px;
  font-weight: 800;
  background: linear-gradient(135deg,#833AB4,#E1306C,#F77737);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.dash-header .header-right { display: flex; align-items: center; gap: 10px; }
.dash-stats {
  display: flex;
  gap: 14px;
  padding: 28px 28px 0;
  flex-wrap: wrap;
}
.dash-stat {
  background: #fff;
  border-radius: 18px;
  padding: 20px 24px;
  flex: 1;
  min-width: 130px;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
  border-left: 4px solid transparent;
}
.dash-stat.total { border-color: #833AB4; }
.dash-stat.today { border-color: #E1306C; }
.dash-stat.week  { border-color: #F77737; }
.dash-stat strong { font-size: 32px; font-weight: 800; display: block; color: #111; }
.dash-stat span { font-size: 12px; color: #888; }
.dash-content { padding: 24px 28px 40px; }
.dash-toolbar {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.search-input {
  flex: 1;
  min-width: 200px;
  padding: 10px 16px;
  border: 1.5px solid #e0e0e0;
  border-radius: 10px;
  font-size: 14px;
  outline: none;
  background: #fff;
  font-family: inherit;
}
.search-input:focus { border-color: #E1306C; }
.btn-clear-all {
  padding: 10px 18px;
  background: #fff;
  color: #E1306C;
  border: 1.5px solid #E1306C;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.btn-clear-all:hover { background: #E1306C; color: #fff; }
.leads-table-wrap {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
  overflow: auto;
}
table { width: 100%; border-collapse: collapse; font-size: 14px; }
thead th {
  padding: 14px 18px;
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: #888;
  background: #FAFAFA;
  border-bottom: 1px solid #f0f0f0;
}
tbody tr { border-bottom: 1px solid #f5f5f5; transition: background .15s; }
tbody tr:hover { background: #FAFAFA; }
tbody td { padding: 14px 18px; vertical-align: middle; }
.tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(131,58,180,.1);
  color: #833AB4;
}
.btn-del {
  background: none;
  border: none;
  cursor: pointer;
  color: #e00055;
  font-size: 16px;
  padding: 4px 8px;
  border-radius: 8px;
  transition: background .15s;
}
.btn-del:hover { background: rgba(225,48,108,.1); }
.empty-state { text-align: center; padding: 60px 20px; color: #888; }
.empty-state .icon { font-size: 48px; margin-bottom: 12px; }

@media (max-width: 480px) {
  .dash-stats { gap: 10px; }
  .dash-stat strong { font-size: 24px; }
  .dash-content { padding: 16px 14px 40px; }
  .dash-header { padding: 14px 16px; }
}
