/* ==============================================================================
   Vertex AI — Pricing & Quotations Styling (css/pricing.css)
   Interactive Slide Theater, Bento Cards, Modal Viewer & Mobile-Friendly Controls
   ============================================================================== */

/* ------------------------------------------------------------------------------
   1. Interactive Slide Theater (Trình chiếu Slide Báo Giá Trực Tiếp)
   ------------------------------------------------------------------------------ */
.pricing-theater {
  position: relative;
  background: radial-gradient(circle at 50% 0%, rgba(34, 211, 238, 0.08) 0%, transparent 70%),
              rgba(11, 17, 32, 0.85);
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: var(--rad-lg, 20px);
  padding: 24px;
  margin: 32px 0 48px;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.7), 0 0 30px -5px rgba(34, 211, 238, 0.15);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
@media (max-width: 640px) {
  .pricing-theater {
    padding: 16px 12px;
    margin: 24px 0 36px;
    border-radius: 16px;
  }
}

/* Header & Deck Tabs */
.pricing-theater__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.pricing-theater__title-group h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-1);
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.pricing-theater__title-group p {
  font-size: 13px;
  color: var(--text-2);
  margin: 0;
}
.pricing-theater__live-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 700 11px var(--mono);
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.3);
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
}
.pricing-theater__live-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

/* Deck Selector Tabs */
.pricing-theater__tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 18px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.pricing-theater__tabs::-webkit-scrollbar {
  display: none;
}
.pricing-theater__tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-2);
  font: 600 13px var(--sans);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.pricing-theater__tab-btn:hover {
  background: rgba(34, 211, 238, 0.08);
  border-color: rgba(34, 211, 238, 0.3);
  color: var(--text-1);
}
.pricing-theater__tab-btn.active {
  background: var(--cyan);
  color: #050811;
  border-color: var(--cyan);
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.35);
}
.pricing-theater__tab-badge {
  font: 700 11px var(--mono);
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.25);
  color: inherit;
}

/* Main Slide Stage (16:9) */
.pricing-theater__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #050811;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.8), 0 8px 24px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  user-select: none;
  touch-action: pan-y pinch-zoom;
}
.pricing-theater__slide-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: opacity 0.2s ease;
}
.pricing-theater__slide-img.is-loading {
  opacity: 0.6;
}

/* Floating Navigation Arrows on Stage */
.pricing-theater__nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(5, 8, 17, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: all 0.2s ease;
  opacity: 0.85;
}
.pricing-theater__nav-arrow:hover {
  opacity: 1;
  background: var(--cyan);
  color: #050811;
  border-color: var(--cyan);
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.4);
}
.pricing-theater__nav-arrow--prev {
  left: 14px;
}
.pricing-theater__nav-arrow--next {
  right: 14px;
}
@media (max-width: 640px) {
  .pricing-theater__nav-arrow {
    width: 38px;
    height: 38px;
  }
  .pricing-theater__nav-arrow--prev {
    left: 8px;
  }
  .pricing-theater__nav-arrow--next {
    right: 8px;
  }
}

/* Controls Bar */
.pricing-theater__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 4px 6px;
}
.pricing-theater__counter {
  font: 700 13.5px var(--mono);
  color: var(--text-1);
  display: flex;
  align-items: center;
  gap: 8px;
}
.pricing-theater__counter span {
  color: var(--cyan);
}
.pricing-theater__action-btns {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pricing-ctrl-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-2);
  font: 600 12.5px var(--sans);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}
.pricing-ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-1);
  border-color: rgba(34, 211, 238, 0.3);
}
.pricing-ctrl-btn.active {
  background: rgba(34, 211, 238, 0.15);
  color: var(--cyan);
  border-color: var(--cyan);
}

/* Filmstrip Thumbnails */
.pricing-theater__filmstrip {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding: 12px 2px 4px;
  margin-top: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(34, 211, 238, 0.3) transparent;
  -webkit-overflow-scrolling: touch;
}
.pricing-theater__filmstrip::-webkit-scrollbar {
  height: 6px;
}
.pricing-theater__filmstrip::-webkit-scrollbar-thumb {
  background: rgba(34, 211, 238, 0.25);
  border-radius: 999px;
}
.pricing-theater__thumb-item {
  position: relative;
  flex: 0 0 110px;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  background: #050811;
  opacity: 0.55;
  transition: all 0.2s ease;
}
.pricing-theater__thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pricing-theater__thumb-item:hover {
  opacity: 0.85;
  border-color: rgba(34, 211, 238, 0.4);
}
.pricing-theater__thumb-item.active {
  opacity: 1;
  border-color: var(--cyan);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.4);
}
.pricing-theater__thumb-num {
  position: absolute;
  bottom: 2px;
  right: 4px;
  font: 700 9px var(--mono);
  background: rgba(0, 0, 0, 0.7);
  padding: 1px 4px;
  border-radius: 3px;
  color: #fff;
}

/* Fullscreen Mode for Theater */
.pricing-theater.is-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 99999;
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 20px;
  border-radius: 0;
  border: none;
  background: #030712;
  display: flex;
  flex-direction: column;
}
.pricing-theater.is-fullscreen .pricing-theater__stage {
  flex: 1;
  aspect-ratio: auto;
  max-height: calc(100vh - 180px);
}
.pricing-theater.is-fullscreen .pricing-theater__stage img {
  object-fit: contain;
}

/* ------------------------------------------------------------------------------
   2. Drive Banner Callout in Hero
   ------------------------------------------------------------------------------ */
.pricing-drive-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.08) 0%, rgba(139, 92, 246, 0.06) 100%);
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: var(--rad-lg, 16px);
  padding: 18px 24px;
  margin-top: 24px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
@media (max-width: 640px) {
  .pricing-drive-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
  }
  .pricing-drive-banner__actions {
    width: 100%;
  }
  .pricing-drive-banner__actions .btn {
    width: 100%;
    justify-content: center;
  }
}
.pricing-drive-banner__info {
  display: flex;
  align-items: center;
  gap: 14px;
}
.pricing-drive-banner__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  flex-shrink: 0;
}
.pricing-drive-banner__text h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-1);
  margin: 0 0 2px;
  letter-spacing: -0.01em;
}
.pricing-drive-banner__text p {
  font-size: 13px;
  color: var(--text-2);
  margin: 0;
}
.pricing-drive-banner__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ------------------------------------------------------------------------------
   3. Filter Bar & Bento Cards Grid
   ------------------------------------------------------------------------------ */
.pricing-filters-wrap {
  margin: 40px 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}
.pricing-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.pricing-filters::-webkit-scrollbar {
  display: none;
}
.pricing-filter-btn {
  padding: 8px 18px;
  border-radius: 999px;
  font: 600 13px var(--sans);
  color: var(--text-2);
  background: var(--surface-1, rgba(255, 255, 255, 0.04));
  border: 1px solid var(--line, rgba(255, 255, 255, 0.1));
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.pricing-filter-btn:hover {
  color: var(--text-1);
  border-color: rgba(34, 211, 238, 0.4);
  background: rgba(34, 211, 238, 0.06);
}
.pricing-filter-btn.active {
  color: #050811;
  background: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.35);
}
.pricing-count-tag {
  font: 500 12.5px var(--mono);
  color: var(--text-3);
  background: rgba(255, 255, 255, 0.03);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 28px;
  margin-bottom: 56px;
}
@media (max-width: 640px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.pricing-card {
  position: relative;
  background: var(--surface-1, rgba(13, 19, 33, 0.65));
  border: 1px solid var(--line, rgba(255, 255, 255, 0.08));
  border-radius: var(--rad-lg, 18px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.pricing-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.4);
  box-shadow: 0 16px 36px -12px rgba(0, 0, 0, 0.5), 0 0 24px -6px rgba(34, 211, 238, 0.15);
}

.pricing-card__thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #080d19;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}
.pricing-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}
.pricing-card:hover .pricing-card__thumb img {
  transform: scale(1.04);
}
.pricing-card__thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 8, 17, 0.1) 0%, rgba(5, 8, 17, 0.75) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.pricing-card__thumb:hover .pricing-card__thumb-overlay {
  opacity: 1;
}
.pricing-card__preview-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.9);
  color: #050811;
  font: 700 13px var(--sans);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.pricing-card__badges {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  z-index: 2;
}
.pricing-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font: 700 11px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(5, 8, 17, 0.82);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.pricing-badge--cyan { color: var(--cyan); border-color: rgba(34, 211, 238, 0.4); }
.pricing-badge--emerald { color: #34d399; border-color: rgba(52, 211, 153, 0.4); }
.pricing-badge--violet { color: #a78bfa; border-color: rgba(167, 139, 250, 0.4); }
.pricing-badge--blue { color: #60a5fa; border-color: rgba(96, 165, 250, 0.4); }
.pricing-badge--amber { color: #fbbf24; border-color: rgba(251, 191, 36, 0.4); }

.pricing-file-spec {
  font: 600 11px var(--mono);
  color: var(--text-2);
  background: rgba(5, 8, 17, 0.85);
  backdrop-filter: blur(6px);
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.pricing-card__body {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.pricing-card__brand {
  font: 700 11.5px var(--mono);
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.pricing-card__title {
  font-size: 19px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--text-1);
  margin: 0 0 10px;
}
.pricing-card__desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-2);
  margin: 0 0 16px;
  flex: 1;
}

.pricing-card__highlights {
  list-style: none;
  padding: 14px 0 0;
  margin: 0 0 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.pricing-card__highlights li {
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-2);
  display: flex;
  align-items: flex-start;
  gap: 9px;
}
.pricing-card__highlights li svg {
  color: var(--cyan);
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  margin-top: 2px;
}

.pricing-card__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
@media (max-width: 480px) {
  .pricing-card__actions {
    flex-wrap: wrap;
    gap: 8px;
  }
  .pricing-btn-view {
    flex: 1 1 100%;
    min-height: 42px;
  }
  .pricing-btn-download {
    flex: 1;
    min-height: 42px;
  }
  .pricing-btn-drive {
    min-height: 42px;
    min-width: 42px;
  }
}
.pricing-btn-view {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 16px;
  border-radius: var(--rad-sm, 10px);
  background: linear-gradient(135deg, var(--cyan) 0%, #06b6d4 100%);
  color: #050811;
  font: 700 13px var(--sans);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}
.pricing-btn-view:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.4);
}
.pricing-btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 16px;
  border-radius: var(--rad-sm, 10px);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--text-1);
  font: 600 13px var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}
.pricing-btn-download:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(34, 211, 238, 0.35);
  color: var(--cyan);
}
.pricing-btn-drive {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--rad-sm, 10px);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--text-2);
  text-decoration: none;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.pricing-btn-drive:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #34a853;
  border-color: rgba(52, 168, 83, 0.4);
}

/* ------------------------------------------------------------------------------
   4. Custom Quote Request Box
   ------------------------------------------------------------------------------ */
.pricing-custom-cta {
  background: radial-gradient(circle at 100% 0%, rgba(34, 211, 238, 0.12) 0%, transparent 60%),
              radial-gradient(circle at 0% 100%, rgba(139, 92, 246, 0.12) 0%, transparent 60%),
              rgba(13, 19, 33, 0.7);
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: 24px;
  padding: 48px;
  margin: 64px 0 32px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 860px) {
  .pricing-custom-cta {
    grid-template-columns: 1fr;
    padding: 28px 20px;
    gap: 28px;
  }
}
.pricing-custom-cta__text h2 {
  font-size: 28px;
  line-height: 1.25;
  margin: 0 0 14px;
  color: var(--text-1);
}
.pricing-custom-cta__text p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-2);
  margin: 0 0 24px;
}
.pricing-custom-cta__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pricing-custom-cta__badges span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 600 12.5px var(--sans);
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.05);
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.pricing-custom-cta__badges span svg {
  color: var(--cyan);
}
