/* ═══════════════════════════════════════════════
   immigration-summit-popup.css — Immigration Tech Summit 2026 Vision Expo Widget
   Floating Boarding/Expo Pass Popup for PT EDIfly Solusi Indonesia (ESI)
   Theme: Executive Emerald & Glowing Mint (#062316 / #00371F / #5ddba8)
   ═══════════════════════════════════════════════ */

.its-floating-widget {
  position: fixed;
  bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  left: calc(24px + env(safe-area-inset-left, 0px));
  z-index: 950;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  pointer-events: none;
}

.its-floating-widget * {
  box-sizing: border-box;
}

.its-floating-widget.is-open {
  z-index: 10005;
}

/* ── TRIGGER WRAPPER ──────────────────────────── */
.its-trigger-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  pointer-events: auto;
}

.its-floating-widget.is-open .its-ticket-trigger-btn {
  animation-play-state: paused;
  transform: none;
}

.its-floating-widget.is-open .its-pulse-glow {
  opacity: 0.25;
}

/* ── HOVER TOOLTIP PILL ───────────────────────── */
.its-trigger-text {
  background: #ffffff;
  color: #062316;
  padding: 9px 18px 9px 16px;
  border-radius: 30px;
  margin-left: 12px;
  opacity: 0;
  transform: translateX(-14px);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
  border: 1.5px solid #145228;
  box-shadow: 0 8px 24px rgba(6, 35, 22, 0.16), 0 0 16px rgba(93, 219, 168, 0.35);
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  pointer-events: none;
  order: 2;
}

.its-trigger-text .its-text-top {
  color: #062316;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.its-trigger-text .its-text-sub {
  color: #145228;
  font-size: 11px;
  font-weight: 600;
  margin-top: 1px;
}

.its-trigger-wrapper:hover .its-trigger-text {
  opacity: 1;
  transform: translateX(0);
}

/* ── FLOATING TRIGGER BUTTON ──────────────────── */
.its-ticket-trigger-btn {
  order: 1;
  width: 158px;
  height: 56px;
  border-radius: 14px;
  border: none;
  padding: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
  transform-origin: bottom center;
  animation: itsTicketWiggle 4s ease-in-out infinite;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 10px 26px rgba(6, 35, 22, 0.32), 0 0 18px rgba(93, 219, 168, 0.35);
}

.its-ticket-trigger-btn:hover {
  animation-play-state: paused;
  transform: scale(1.06) translateY(-3px);
  box-shadow: 0 14px 32px rgba(6, 35, 22, 0.42), 0 0 24px rgba(93, 219, 168, 0.55);
}

.its-ticket-trigger-btn:active {
  transform: scale(0.96);
}

@keyframes itsTicketWiggle {
  0%, 70%, 100% {
    transform: rotate(0deg) scale(1) translateY(0);
  }
  74% {
    transform: rotate(-6deg) scale(1.05) translateY(-3px);
  }
  78% {
    transform: rotate(6deg) scale(1.07) translateY(-5px);
  }
  82% {
    transform: rotate(-4deg) scale(1.05) translateY(-3px);
  }
  86% {
    transform: rotate(4deg) scale(1.03) translateY(-1px);
  }
  90% {
    transform: rotate(0deg) scale(1) translateY(0);
  }
}

.its-mini-inner {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  background: linear-gradient(135deg, #062316 0%, #00371F 100%);
  border: 2px solid #5ddba8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #ffffff;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(6, 35, 22, 0.25);
}

.its-mini-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 40%;
  height: 100%;
  background: linear-gradient(to right, transparent 0%, rgba(93, 219, 168, 0.35) 50%, transparent 100%);
  transform: skewX(-25deg);
  animation: itsMiniShimmer 4s infinite;
  pointer-events: none;
}

@keyframes itsMiniShimmer {
  0%, 65% {
    left: -100%;
  }
  85%, 100% {
    left: 220%;
  }
}

.its-mini-stub {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 7px 0 11px;
  flex-shrink: 0;
}

.its-mini-icon {
  font-size: 16px;
  color: #5ddba8;
  transition: transform 0.3s ease;
}

.its-ticket-trigger-btn:hover .its-mini-icon {
  transform: scale(1.15);
}

.its-mini-perf {
  position: relative;
  height: 100%;
  width: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.its-mini-notch-top,
.its-mini-notch-bottom {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #5ddba8;
  border-radius: 50%;
  z-index: 4;
}

.its-mini-notch-top {
  top: -6px;
}

.its-mini-notch-bottom {
  bottom: -6px;
}

.its-mini-perf-line {
  height: calc(100% - 16px);
  border-left: 2px dashed rgba(93, 219, 168, 0.45);
}

.its-mini-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 0 11px 0 6px;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.its-mini-title {
  font-size: 10px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.01em;
  line-height: 1.15;
  white-space: nowrap;
}

.its-mini-badge {
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #062316;
  background: #5ddba8;
  padding: 1.5px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  white-space: nowrap;
}

.its-trigger-notif {
  position: absolute;
  top: -5px;
  right: -5px;
  z-index: 5;
  background: #ef4444;
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  box-shadow: 0 3px 8px rgba(239, 68, 68, 0.6);
  animation: itsNotifBounce 2.5s ease-in-out infinite;
}

@keyframes itsNotifBounce {
  0%, 100% {
    transform: scale(1);
  }
  30% {
    transform: scale(1.25);
  }
  50% {
    transform: scale(1.05);
  }
  70% {
    transform: scale(1.2);
  }
}

.its-pulse-glow {
  position: absolute;
  inset: -4px;
  border-radius: 16px;
  background: rgba(93, 219, 168, 0.5);
  animation: itsTicketPulse 2.4s cubic-bezier(0.45, 0, 0.55, 1) infinite;
  z-index: 1;
}

@keyframes itsTicketPulse {
  0% {
    transform: scale(0.96);
    opacity: 0.8;
  }
  70% {
    transform: scale(1.16, 1.26);
    opacity: 0;
  }
  100% {
    transform: scale(1.22, 1.32);
    opacity: 0;
  }
}

/* ══════════════════════════════════════════════
   EXPANDED VISION EXPO PASS CARD
   ══════════════════════════════════════════════ */
.its-ticket-card {
  position: absolute;
  bottom: 76px;
  left: 0;
  width: 360px;
  max-width: calc(100vw - 36px);
  max-height: calc(100vh - 106px);
  max-height: calc(100dvh - 106px);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(20, 82, 40, 0.25) transparent;
  background: #ffffff;
  border: 2px solid #5ddba8;
  border-radius: 20px;
  box-shadow: 0 24px 54px rgba(6, 35, 22, 0.28), 0 0 30px rgba(93, 219, 168, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px) scale(0.92);
  transform-origin: bottom left;
  transition: all 0.36s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 10;
  color: #1e293b;
}

.its-ticket-card::-webkit-scrollbar {
  width: 4px;
}

.its-ticket-card::-webkit-scrollbar-thumb {
  background: rgba(20, 82, 40, 0.25);
  border-radius: 4px;
}

.its-ticket-card.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* ── CARD HEADER ──────────────────────────────── */
.its-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: linear-gradient(135deg, #062316 0%, #00371F 100%);
  border-bottom: 2px dashed rgba(93, 219, 168, 0.35);
}

.its-header-tag {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #5ddba8;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.its-header-tag i {
  font-size: 11.5px;
}

.its-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.its-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(93, 219, 168, 0.16);
  border: 1px solid rgba(93, 219, 168, 0.5);
  color: #5ddba8;
  font-size: 8.5px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.06em;
}

.its-live-dot {
  width: 5.5px;
  height: 5.5px;
  border-radius: 50%;
  background: #5ddba8;
  box-shadow: 0 0 6px #5ddba8;
  animation: itsLiveDotPulse 1.5s infinite;
}

@keyframes itsLiveDotPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.8);
  }
}

.its-card-close {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 10px;
  transition: all 0.2s ease;
}

.its-card-close:hover {
  background: #5ddba8;
  color: #062316;
  border-color: #5ddba8;
  transform: rotate(90deg);
}

/* ── CARD HERO ROUTE / CONNECTION BAND ────────── */
.its-connect-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px 10px;
  background: #f0fdf4;
  border-bottom: 1px solid #dcfce7;
}

.its-node {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.its-node.its-node-right {
  align-items: flex-end;
}

.its-node-code {
  font-size: 19px;
  font-weight: 800;
  color: #062316;
  letter-spacing: 0.03em;
  line-height: 1.05;
}

.its-node-label {
  font-size: 10px;
  color: #145228;
  font-weight: 700;
  margin-top: 2px;
}

.its-link-path {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  padding: 0 10px;
}

.its-link-tag {
  font-size: 8.5px;
  font-weight: 800;
  color: #145228;
  letter-spacing: 0.08em;
}

.its-link-line {
  display: flex;
  align-items: center;
  width: 100%;
  margin: 4px 0;
}

.its-link-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #145228;
}

.its-link-dashed {
  flex: 1;
  border-top: 2px dashed rgba(20, 82, 40, 0.35);
  margin: 0 4px;
}

.its-link-icon {
  color: #145228;
  font-size: 12px;
}

.its-link-sub {
  font-size: 7.5px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.05em;
}

/* ── CARD EVENT INFO ──────────────────────────── */
.its-event-info {
  padding: 12px 16px 10px;
  background: #ffffff;
}

.its-event-title {
  font-size: 14.5px;
  font-weight: 800;
  color: #062316;
  margin: 0 0 4px;
  line-height: 1.28;
}

.its-event-subtitle {
  font-size: 11px;
  font-weight: 500;
  color: #475569;
  margin: 0 0 10px;
  line-height: 1.48;
}

.its-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 11px;
  padding: 9px 11px;
}

.its-grid-cell {
  display: flex;
  flex-direction: column;
}

.its-label {
  font-size: 8px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.its-value {
  font-size: 10.5px;
  font-weight: 700;
  color: #0f172a;
  margin-top: 1px;
}

.its-value.highlight {
  color: #145228;
  font-weight: 800;
}

/* ── PERFORATION SEPARATOR ────────────────────── */
.its-perforation-wrap {
  position: relative;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  background: #ffffff;
}

.its-perforation-wrap::before,
.its-perforation-wrap::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  background: #e2e8f0;
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.its-perforation-wrap::before {
  left: -7px;
}

.its-perforation-wrap::after {
  right: -7px;
}

.its-dashed-line {
  width: 100%;
  border-top: 2px dashed #cbd5e1;
}

/* ── STUB / PERKS & ACTIONS ───────────────────── */
.its-stub-body {
  padding: 8px 16px 14px;
  background: #ffffff;
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
}

.its-perks {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 10px;
}

.its-perk-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10.5px;
  color: #334155;
  font-weight: 600;
}

.its-perk-item i {
  color: #145228;
  font-size: 11.5px;
  flex-shrink: 0;
}

.its-barcode-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 10px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 9px;
  margin-bottom: 11px;
}

.its-barcode-sim {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 16px;
}

.its-barcode-sim span {
  display: inline-block;
  background: #062316;
  height: 100%;
  border-radius: 1px;
}

.its-barcode-sim span.b-1 { width: 1.5px; }
.its-barcode-sim span.b-2 { width: 3px; }
.its-barcode-sim span.b-3 { width: 4.5px; }
.its-barcode-sim span.b-4 { width: 6px; }

.its-barcode-text {
  font-family: monospace;
  font-size: 8.5px;
  letter-spacing: 0.16em;
  color: #145228;
  font-weight: 800;
}

.its-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.its-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  padding: 9px 12px;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  outline: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1.5px solid transparent;
}

.its-btn--primary {
  flex: 1.25;
  background: linear-gradient(135deg, #062316 0%, #145228 100%);
  color: #ffffff;
  border-color: #145228;
  box-shadow: 0 4px 12px rgba(6, 35, 22, 0.25);
}

.its-btn--primary:hover {
  background: #00371F;
  color: #5ddba8;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(6, 35, 22, 0.35);
}

.its-btn--secondary {
  flex: 1;
  background: #eafaf1;
  color: #062316;
  border-color: rgba(20, 82, 40, 0.3);
}

.its-btn--secondary:hover {
  background: #5ddba8;
  color: #062316;
  border-color: #5ddba8;
  transform: translateY(-2px);
}

/* ── RESPONSIVE ───────────────────────────────── */
@media (max-width: 768px) {
  .its-floating-widget {
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    left: calc(18px + env(safe-area-inset-left, 0px));
  }

  .its-trigger-text {
    display: none;
  }

  .its-ticket-trigger-btn {
    width: 146px;
    height: 50px;
  }

  .its-ticket-card {
    width: 340px;
    max-width: calc(100vw - 36px);
    bottom: 66px;
    max-height: calc(100dvh - 100px);
  }
}

@media (max-width: 480px) {
  .its-floating-widget {
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    left: calc(14px + env(safe-area-inset-left, 0px));
  }

  body.esi-chat-open .its-floating-widget {
    opacity: 0;
    pointer-events: none;
  }

  .its-ticket-trigger-btn {
    width: 136px;
    height: 46px;
  }

  .its-mini-title {
    font-size: 9px;
  }

  .its-mini-badge {
    font-size: 6.8px;
    padding: 1px 5px;
  }

  .its-ticket-card {
    width: calc(100vw - 28px);
    max-width: 345px;
    bottom: 60px;
    max-height: calc(100dvh - 96px);
    border-radius: 16px;
  }
}

@media (max-height: 640px) {
  .its-barcode-wrap {
    display: none;
  }
}
