/* POPUPS BASE */
.popup-backdrop{
  position:fixed;
  inset:0;
  z-index:5000;
  display:none;
  align-items:center;
  justify-content:center;
  padding:22px;
  background:rgba(2,10,28,.72);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  opacity:0;
  transition:opacity .22s ease;
}

.popup-backdrop.show{
  display:flex;
  opacity:1;
}

.popup-card{
  position:relative;
  width:min(96vw, 1120px);
  max-height:92vh;
  overflow:auto;
  overflow-x:hidden;
  border-radius:32px;
  padding:22px;
  background:
    linear-gradient(180deg, rgba(9,28,66,.96), rgba(6,18,48,.98)),
    linear-gradient(135deg, rgba(255,255,255,.04), rgba(255,255,255,0));
  color:#eaf7ff;
  border:1px solid rgba(130,220,255,.16);
  box-shadow:0 30px 80px rgba(0,0,0,.34);
  transform:translateY(18px) scale(.96);
  animation:popupIn .28s cubic-bezier(.2,.8,.2,1) forwards;
}

body.light-mode .popup-backdrop{ background:rgba(43,78,126,.22); }

body.light-mode .popup-card{
  background:linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  color:#173b69;
  border-color:rgba(20,55,100,.10);
  box-shadow:0 24px 60px rgba(31,74,140,.14);
}

.popup-card.company{ width:min(92vw, 780px); }

.popup-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:20px;
}

.popup-head-main{
  min-width:0;
  flex:1;
}

.popup-kicker{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:36px;
  padding:7px 14px;
  border-radius:999px;
  border:1px solid rgba(138,223,255,.16);
  background:rgba(255,255,255,.05);
  color:rgba(219,245,255,.90);
  font-size:12px;
  font-weight:700;
  margin-bottom:12px;
  letter-spacing:.2px;
  text-transform:uppercase;
}

.popup-kicker::before{
  content:"";
  width:8px;
  height:8px;
  border-radius:50%;
  background:radial-gradient(circle, #fff 0%, #bff2ff 35%, #58bfff 100%);
  box-shadow:0 0 10px rgba(88,191,255,.8);
  flex:0 0 8px;
}

body.light-mode .popup-kicker{
  background:rgba(79,124,255,.06);
  border-color:rgba(20,55,100,.10);
  color:#2a568d;
}

.popup-head h3{
  margin:0;
  font-size:42px;
  line-height:1.05;
  color:#eefaff;
  font-weight:800;
  letter-spacing:-.4px;
}

body.light-mode .popup-head h3{ color:#173b69; }

.popup-subtitle{
  margin-top:10px;
  color:rgba(215,241,255,.82);
  font-size:17px;
  line-height:1.8;
  max-width:820px;
  font-weight:500;
}

body.light-mode .popup-subtitle{ color:#557198; }

.popup-x{
  width:60px;
  height:60px;
  border:none;
  border-radius:50%;
  background:linear-gradient(135deg, #0b4ea2, #1d6bd4);
  color:#ffffff;
  font-size:30px;
  font-weight:900;
  line-height:1;
  cursor:pointer;
  flex:0 0 60px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(255,255,255,.16);
  box-shadow:0 12px 26px rgba(0,0,0,.22);
  transition:transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.popup-x:hover{
  transform:translateY(-2px) scale(1.04);
  box-shadow:0 16px 30px rgba(0,0,0,.26);
  filter:brightness(1.05);
}

.popup-body{
  display:grid;
  gap:16px;
}

.popup-panel{
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03)),
    linear-gradient(135deg, rgba(255,255,255,.03), rgba(255,255,255,0));
  border:1px solid rgba(130,220,255,.12);
  border-radius:24px;
  padding:22px;
  box-shadow:0 12px 24px rgba(0,0,0,.12);
}

body.light-mode .popup-panel{
  background:#ffffff;
  border-color:rgba(20,55,100,.08);
  box-shadow:0 12px 24px rgba(31,74,140,.08);
}

.video-panel{
  padding:14px;
  overflow:hidden;
}

.video-frame{
  position:relative;
  width:100%;
  padding-top:56.25%;
  overflow:hidden;
  border-radius:22px;
  background:
    radial-gradient(circle at center, rgba(57,142,255,.14), rgba(10,32,79,.95) 62%),
    #0a1b44;
  border:1px solid rgba(130,220,255,.12);
  box-shadow:0 12px 24px rgba(0,0,0,.16);
}

body.light-mode .video-frame{
  background:#eef4ff;
  border-color:rgba(20,55,100,.08);
  box-shadow:0 10px 22px rgba(31,74,140,.08);
}

.video-frame iframe{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
}

.video-note{
  margin-top:10px;
  font-size:13px;
  line-height:1.7;
  color:rgba(216,242,255,.72);
  font-weight:600;
}

body.light-mode .video-note{ color:#6b84a3; }

.popup-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
}

.popup-section-title{
  display:flex;
  align-items:center;
  gap:10px;
  margin:0 0 14px;
  font-size:22px;
  font-weight:800;
  color:#eefaff;
  letter-spacing:-.2px;
}

.popup-section-title .dot{
  width:9px;
  height:9px;
  border-radius:50%;
  background:radial-gradient(circle, #fff 0%, #c8f3ff 35%, #4ab7ff 100%);
  box-shadow:0 0 10px rgba(74,183,255,.8);
  flex:0 0 9px;
}

body.light-mode .popup-section-title{ color:#173b69; }

.popup-lead{
  margin:0;
  font-size:17px;
  line-height:1.95;
  color:#dcefff;
  font-weight:500;
}

body.light-mode .popup-lead{ color:#557198; }

.badge-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:16px;
}

.popup-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:38px;
  padding:8px 13px;
  border-radius:999px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(131,221,255,.10);
  color:#ecfaff;
  font-size:12px;
  font-weight:700;
  letter-spacing:.1px;
}

.popup-badge::before{
  content:"";
  width:7px;
  height:7px;
  border-radius:50%;
  background:radial-gradient(circle, #fff 0%, #c8f3ff 30%, #4ab7ff 100%);
  box-shadow:0 0 8px rgba(74,183,255,.8);
  flex:0 0 7px;
}

body.light-mode .popup-badge{
  background:rgba(79,124,255,.06);
  border-color:rgba(20,55,100,.08);
  color:#315789;
}

.feature-list{
  display:grid;
  gap:12px;
  margin:0;
  padding:0;
  list-style:none;
}

.feature-list li{
  position:relative;
  min-height:62px;
  padding:14px 16px 14px 48px;
  border-radius:18px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(134,223,255,.08);
  color:#e8f8ff;
  font-size:16px;
  line-height:1.86;
  font-weight:500;
}

.feature-list li::before{
  content:"";
  position:absolute;
  left:15px;
  top:20px;
  width:18px;
  height:18px;
  border-radius:50%;
  background:radial-gradient(circle, #fff 0%, #d7f7ff 28%, #63c7ff 62%, rgba(99,199,255,.18) 100%);
  box-shadow:0 0 14px rgba(99,199,255,.44);
}

body.light-mode .feature-list li{
  background:#f9fbff;
  border-color:rgba(20,55,100,.06);
  color:#406184;
}

.impact-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:12px;
}

.impact-card{
  min-height:126px;
  border-radius:20px;
  padding:16px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03)),
    radial-gradient(circle at top right, rgba(90,188,255,.10), transparent 48%);
  border:1px solid rgba(135,223,255,.10);
}

body.light-mode .impact-card{
  background:#f9fbff;
  border-color:rgba(20,55,100,.06);
}

.impact-value{
  font-size:31px;
  line-height:1;
  font-weight:900;
  color:#eefaff;
  margin-bottom:12px;
}

.impact-label{
  font-size:14px;
  line-height:1.8;
  color:rgba(221,245,255,.76);
  font-weight:600;
}

body.light-mode .impact-value{ color:#21497e; }
body.light-mode .impact-label{ color:#5a7598; }

.popup-action-row{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:16px;
}

.popup-cta{
  min-height:52px;
  padding:12px 18px;
  border:none;
  border-radius:16px;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  color:#fff;
  font-size:14px;
  font-weight:800;
  cursor:pointer;
  transition:.18s ease;
  font-family:'Prompt',sans-serif;
}

.popup-cta.primary{
  background:linear-gradient(135deg, #0b4ea2 0%, #1f69cd 60%, #5cc8ff 100%);
  box-shadow:0 12px 24px rgba(31,105,205,.22);
}

.popup-cta.secondary{
  background:rgba(255,255,255,.05);
  border:1px solid rgba(130,220,255,.14);
  color:#eefaff;
}

body.light-mode .popup-cta.secondary{
  background:#f4f8ff;
  border-color:rgba(20,55,100,.08);
  color:#21497e;
}

.popup-cta:hover{ transform:translateY(-2px); }

.company-detail p{
  margin:0 0 12px;
  font-size:17px;
  line-height:1.95;
  color:#ddecff;
  font-weight:500;
}

.company-detail strong{ color:#eefaff; }
body.light-mode .company-detail p{ color:#557198; }
body.light-mode .company-detail strong{ color:#173b69; }

.popup-close{
  margin-top:16px;
  min-width:120px;
  min-height:48px;
  border:none;
  border-radius:16px;
  background:linear-gradient(135deg, #0b4ea2 0%, #1f69cd 60%, #56c3ff 100%);
  color:#fff;
  font-size:15px;
  font-weight:800;
  cursor:pointer;
  box-shadow:0 12px 24px rgba(31,105,205,.22);
  transition:.18s ease;
  font-family:'Prompt',sans-serif;
}

.popup-close:hover{ transform:translateY(-2px); }

/* POPUP PRO FINAL CLEAN */
.popup-pro-backdrop{
  background:rgba(2,10,28,.82);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
}

body.light-mode .popup-pro-backdrop{
  background:rgba(28,56,96,.24);
}

.popup-pro-card{
  width:min(96vw, 1240px);
  height:92vh;
  max-height:92vh;
  padding:0;
  overflow:hidden;
  border-radius:30px;
  position:relative;
  background:
    linear-gradient(180deg, rgba(7,24,58,.98), rgba(3,12,32,.99)),
    linear-gradient(135deg, rgba(255,255,255,.03), rgba(255,255,255,0));
  border:1px solid rgba(125,220,255,.14);
  box-shadow:
    0 34px 90px rgba(0,0,0,.48),
    inset 0 0 60px rgba(80,180,255,.04);
  display:block;
}

.popup-pro-card::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(circle at top center, rgba(100,200,255,.10), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0));
  z-index:0;
}

body.light-mode .popup-pro-card{
  background:linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
  border-color:rgba(20,55,100,.10);
  box-shadow:0 24px 64px rgba(31,74,140,.16);
}

.popup-pro-shell{
  position:relative;
  z-index:1;
  display:flex;
  height:100%;
  min-height:0;
}

.popup-pro-media{
  width:390px;
  min-width:390px;
  max-width:390px;
  background:linear-gradient(180deg, rgba(6,20,50,.72), rgba(3,10,28,.62));
  border-right:1px solid rgba(125,220,255,.10);
  overflow:hidden;
}

body.light-mode .popup-pro-media{
  background:linear-gradient(180deg, rgba(239,245,255,.96), rgba(247,250,255,.98));
  border-right-color:rgba(20,55,100,.08);
}

.popup-pro-video-sticky{
  position:sticky;
  top:0;
  padding:20px;
}

.popup-pro-video-frame{
  border-radius:22px;
  overflow:hidden;
  box-shadow:0 18px 36px rgba(0,0,0,.24);
}

body.light-mode .popup-pro-video-frame{
  box-shadow:0 14px 28px rgba(31,74,140,.10);
}

.popup-pro-content{
  flex:1;
  min-width:0;
  min-height:0;
  overflow-y:auto;
  overflow-x:hidden;
  -webkit-overflow-scrolling:touch;
  padding:24px 24px 20px;
}

.popup-pro-content::-webkit-scrollbar{ width:8px; }
.popup-pro-content::-webkit-scrollbar-thumb{
  background:rgba(111,190,255,.26);
  border-radius:999px;
}
body.light-mode .popup-pro-content::-webkit-scrollbar-thumb{
  background:rgba(20,55,100,.18);
}

.popup-pro-head{
  margin-bottom:14px;
}

.popup-pro-head h3{
  font-family:'Orbitron',sans-serif;
  font-size:32px;
  line-height:1.04;
  letter-spacing:.8px;
  text-transform:uppercase;
  text-shadow:0 0 12px rgba(130,220,255,.24);
}

body.light-mode .popup-pro-head h3{ text-shadow:none; }

.popup-pro-body{
  display:grid;
  gap:16px;
}

.popup-pro-intro{
  position:relative;
  overflow:hidden;
}

.popup-pro-intro::after{
  content:"";
  position:absolute;
  right:-28px;
  bottom:-28px;
  width:160px;
  height:160px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(92,200,255,.10), transparent 70%);
  pointer-events:none;
}

body.light-mode .popup-pro-intro::after{
  background:radial-gradient(circle, rgba(111,155,255,.10), transparent 70%);
}

.popup-pro-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
}

.popup-pro-rule-panel{
  border:1px solid rgba(255,108,108,.18);
  background:
    linear-gradient(180deg, rgba(88,10,20,.26), rgba(54,6,13,.14)),
    linear-gradient(135deg, rgba(255,255,255,.03), rgba(255,255,255,0));
  box-shadow:0 14px 30px rgba(0,0,0,.18), 0 0 22px rgba(255,88,88,.08);
}

body.light-mode .popup-pro-rule-panel{
  background:linear-gradient(180deg, #fff6f7 0%, #fffafb 100%);
  border-color:rgba(220,80,90,.16);
  box-shadow:0 10px 20px rgba(31,74,140,.08);
}

.popup-pro-rule-title{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:38px;
  padding:8px 14px;
  border-radius:999px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.08);
  color:#fff2f2;
  font-size:12px;
  font-weight:800;
  letter-spacing:.3px;
  text-transform:uppercase;
  margin-bottom:14px;
}

body.light-mode .popup-pro-rule-title{
  background:rgba(220,80,90,.08);
  border-color:rgba(220,80,90,.10);
  color:#a63b47;
}

.popup-pro-rule-box{
  display:grid;
  gap:12px;
}

.popup-pro-rule-line{
  min-height:60px;
  display:flex;
  align-items:center;
  padding:14px 16px;
  border-radius:18px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.08);
  color:#fff7f7;
  font-size:17px;
  line-height:1.7;
  font-weight:800;
}

.popup-pro-rule-line::before{
  content:"⚠";
  margin-right:12px;
  flex:0 0 auto;
}

body.light-mode .popup-pro-rule-line{
  background:#fff;
  border-color:rgba(220,80,90,.10);
  color:#8d303b;
}

.popup-pro-x{
  position:absolute;
  top:14px;
  right:14px;
  z-index:20;
}

.popup-pro-card .popup-lead{
  font-size:17px;
  line-height:1.9;
}

.popup-pro-card .feature-list li{
  font-size:16px;
  line-height:1.88;
}

.popup-pro-card .impact-card{
  min-height:136px;
}

/* POPUP PRO NAV */
.popup-pro-nav{
  display:flex !important;
  flex-direction:column !important;
  gap:10px !important;
  margin-top:14px !important;
  padding:0 !important;
  width:100% !important;
}

.popup-pro-nav-btn{
  width:100% !important;
  min-height:44px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  padding:12px 16px !important;
  border-radius:16px !important;
  border:1px solid rgba(130,220,255,.18) !important;
  background:rgba(255,255,255,.06) !important;
  color:#eaf7ff !important;
  font-size:13px !important;
  font-weight:800 !important;
  line-height:1.3 !important;
  text-align:left !important;
  text-decoration:none !important;
  cursor:pointer !important;
  transition:.18s ease !important;
  box-sizing:border-box !important;
  white-space:normal !important;
}

.popup-pro-nav-btn:hover{
  transform:translateY(-1px) !important;
  background:rgba(255,255,255,.12) !important;
  border-color:rgba(160,230,255,.28) !important;
}

.popup-pro-nav-btn.active{
  background:linear-gradient(135deg,#2e78df,#5aa7ff) !important;
  color:#fff !important;
  border-color:transparent !important;
  box-shadow:0 6px 16px rgba(47,127,227,.25) !important;
}

.popup-pro-nav-order{
  background:linear-gradient(135deg,#ff6a00,#ff9d2f) !important;
  color:#fff !important;
  border:none !important;
  box-shadow:0 6px 16px rgba(255,120,0,.22) !important;
}

body.light-mode .popup-pro-nav-btn{
  background:#f4f8ff !important;
  color:#21497e !important;
  border-color:rgba(20,55,100,.08) !important;
}

body.light-mode .popup-pro-nav-btn.active{
  background:linear-gradient(135deg,#2e78df,#5aa7ff) !important;
  color:#fff !important;
}


