/* Hover Zoom Styles */
.plan-zoomable-container {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 6px;
  cursor: zoom-in;
  margin: 0 auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.4s ease;
  background-color: #f8fafc;
}

.plan-zoomable-container:hover {
  box-shadow: 0 12px 30px rgba(18, 100, 158, 0.18);
}

.plan-zoomable-img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center center;
}

/* Expanded zoom on hover */
.plan-zoomable-container:hover .plan-zoomable-img {
  transform: scale(1.10);
}

/* Minimalist Modern Tip Card */
.plan-zoom-badge {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.94);
  color: #12649e;
  padding: 8px 18px;
  border-radius: 4px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2;
}

.plan-zoomable-container:hover .plan-zoom-badge {
  opacity: 1;
  transform: translateY(0);
}

/* Lightbox Modal: Premium White Overlay */
.plan-lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 99999;
  display: none;
  opacity: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  box-sizing: border-box;
  transition: opacity 0.3s ease;
  user-select: none;
}

.plan-lightbox-overlay.active {
  display: flex;
  opacity: 1;
}

/* Minimalist Header */
.plan-lightbox-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
  z-index: 10;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9), transparent);
}

.plan-lightbox-title {
  color: #0f172a;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin: 0;
}

/* Minimalist Premium Close Button */
.plan-lightbox-close {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #334155;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
  padding: 0;
}

.plan-lightbox-close:hover {
  background: rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.15);
  color: #0f172a;
  transform: rotate(90deg) scale(1.05);
}

.plan-lightbox-close svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

/* Lightbox Image Container & Viewer */
.plan-lightbox-viewport {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: grab;
}

.plan-lightbox-viewport.is-dragging {
  cursor: grabbing;
}

.plan-lightbox-img-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 90vw;
  max-height: 74vh;
  transform-origin: center center;
  transition: transform 0.15s ease-out;
  will-change: transform;
}

.plan-lightbox-img {
  max-width: 90vw;
  max-height: 72vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.04);
  pointer-events: none;
}

/* Minimalist Floating Zoom Controls */
.plan-lightbox-toolbar {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 6px 10px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  z-index: 10;
}

.plan-toolbar-btn {
  background: transparent;
  border: none;
  color: #334155;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 16px;
  outline: none;
  padding: 0;
}

.plan-toolbar-btn:hover {
  background: rgba(18, 100, 158, 0.08);
  color: #12649e;
}

.plan-toolbar-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.plan-zoom-indicator {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: #475569;
  min-width: 48px;
  text-align: center;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
  transition: color 0.2s ease;
}

.plan-zoom-indicator:hover {
  color: #12649e;
}

.plan-lightbox-hint {
  position: absolute;
  bottom: 74px;
  left: 50%;
  transform: translateX(-50%);
  color: #64748b;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.3px;
  pointer-events: none;
  white-space: nowrap;
  opacity: 0.85;
}

@media (max-width: 600px) {
  .plan-lightbox-img-wrapper {
    max-height: 68vh;
  }

  .plan-lightbox-img {
    max-height: 66vh;
  }

  .plan-lightbox-hint {
    bottom: 66px;
    font-size: 0.65rem;
  }

  .plan-lightbox-toolbar {
    bottom: 16px;
  }
}
