:root {
  --bg: var(--pntd-bg-deep);
  --glass: var(--pntd-glass-bg);
  --c-green: #00ff9d;
  --c-blue: #00a8ff;
  --c-purple: #bd00ff;
  --success-green: #25d366;
  --text: #eee;
  --text-dim: #666;
  --card-radius: 12px;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--pntd-font);
  margin: 0;
  padding: 0;
  overflow-y: scroll;
  overscroll-behavior-y: none;
}

/* HEADER ZONE */
.header-zone {
  padding: 15px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(
    to bottom,
    rgba(5, 5, 5, 0.95) 0%,
    rgba(5, 5, 5, 0) 100%
  );
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.header-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 700px;
  pointer-events: auto;
  padding: 0 10px;
}

.nav-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(20, 20, 20, 0.8);
  backdrop-filter: blur(20px);
  border: 1px solid var(--pntd-glass-border);
  color: #fff;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
  touch-action: auto;
  -webkit-tap-highlight-color: transparent;
}
.nav-btn:hover {
  border-color: var(--pntd-c-turquoise);
  color: var(--pntd-c-turquoise);
  transform: translateY(-2px);
}
.nav-btn.select-mode-active {
  background: rgba(37, 211, 102, 0.15);
  border-color: var(--success-green);
  color: var(--success-green);
  box-shadow: 0 0 20px rgba(37, 211, 102, 0.3);
}

@keyframes hintPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}
.hint-pulse {
  animation: hintPulse 2s infinite;
  border-color: rgba(37, 211, 102, 0.5);
}

.search-capsule {
  flex: 1;
  min-width: 0;
  background: rgba(20, 20, 20, 0.8);
  backdrop-filter: blur(20px);
  border: 1px solid var(--pntd-glass-border);
  padding: 0 20px;
  height: 50px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.search-capsule:focus-within {
  transform: scale(1.02);
  border-color: var(--pntd-c-turquoise);
}
.search-capsule input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 16px;
  flex: 1;
  height: 100%;
  min-width: 0;
}
.search-capsule i {
  color: var(--text-dim);
  font-size: 0.9rem;
}
.stats-pill {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-family: monospace;
}

/* TAG PILLS */
.tag-row {
  display: flex;
  gap: 6px;
  padding: 8px 10px 0;
  overflow-x: auto;
  scrollbar-width: none;
  max-width: 700px;
  width: 100%;
  pointer-events: auto;
}
.tag-row::-webkit-scrollbar {
  display: none;
}
.tag-row:empty {
  display: none;
}
.tag-pill {
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.55);
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-family: monospace;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  letter-spacing: 0.3px;
}
.tag-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--pntd-c-fuchsia);
  color: #fff;
}
.tag-pill.active {
  background: rgba(231, 37, 231, 0.15);
  border-color: var(--pntd-c-fuchsia);
  color: var(--pntd-c-fuchsia);
  box-shadow: 0 0 12px rgba(231, 37, 231, 0.2);
}

/* GRID */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 15px;
  padding: 130px 20px 40px;
  width: 100%;
  max-width: 1800px;
  margin: 0 auto;
}
.card {
  background: #111;
  border-radius: var(--card-radius);
  overflow: hidden;
  position: relative;
  aspect-ratio: 1 / 1;
  cursor: var(--card-cursor, zoom-in);
  border: 2px solid transparent;
  user-select: none;
  transition:
    transform 0.3s,
    box-shadow 0.3s,
    border-color 0.3s;
}
.card:hover {
  transform: translateY(-5px);
  z-index: 2;
  border-color: var(--pntd-c-fuchsia);
  box-shadow: 0 10px 30px rgba(231, 37, 231, 0.25);
}
.card.selected {
  border-color: var(--success-green);
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
  transform: scale(0.95);
}
.card.selected::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--success-green);
  color: #000;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  font-size: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, #151515 8%, #222 18%, #151515 33%);
  background-size: 200% 100%;
  animation: cardShimmer 1.5s linear infinite;
}
@keyframes cardShimmer {
  to {
    background-position-x: -200%;
  }
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s;
  opacity: 0;
  filter: brightness(0.9);
}
.card:hover img {
  filter: brightness(1.1);
}
.card img.loaded {
  opacity: 1;
}

.card .spinner {
  z-index: 1;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.card img.loaded ~ .spinner {
  opacity: 0;
}

.spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  margin: -15px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--pntd-c-fuchsia);
  border-radius: 50%;
  animation: spin3D 1s infinite linear;
  will-change: transform;
}
.cooldown-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0, 217, 191, 0.3);
  border-top-color: var(--pntd-c-turquoise);
  border-radius: 50%;
  animation: spin3D 1s infinite linear;
  will-change: transform;
}
@keyframes spin3D {
  0% {
    transform: translateZ(0) rotate(0deg);
  }
  100% {
    transform: translateZ(0) rotate(360deg);
  }
}

.card-id {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95), transparent);
  padding: 25px 10px 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  text-align: center;
  font-family: monospace;
  pointer-events: none;
  transition: all 0.3s ease;
}
.card:hover .card-id {
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* LOADING MORE INDICATOR */
.cooldown-pill {
  display: none;
  margin: 20px auto 60px;
  background: rgba(20, 20, 20, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 10px 20px;
  border-radius: 50px;
  color: rgba(255, 255, 255, 0.35);
  font-family: monospace;
  font-size: 0.8rem;
  font-weight: 500;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: fit-content;
}
.cooldown-pill.active {
  display: flex;
  animation: fadeInUp 0.3s ease;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.sentinel {
  height: 20px;
  width: 100%;
  margin-bottom: 50px;
}

/* CART DOCK */
.cart-dock {
  position: fixed;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 15, 15, 0.9);
  backdrop-filter: blur(25px);
  border: 1px solid rgba(37, 211, 102, 0.3);
  padding: 12px 20px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  transition: bottom 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 1000;
}
.cart-dock.visible {
  bottom: 30px;
}
.cart-info {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.cart-btn {
  background: var(--success-green);
  color: #000;
  border: none;
  border-radius: 30px;
  padding: 8px 20px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: 0.2s;
  text-decoration: none;
}
.cart-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(37, 211, 102, 0.4);
}
.cart-btn-clear {
  background: transparent;
  color: #ff4d4d;
  border: 1px solid rgba(255, 77, 77, 0.3);
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.2s;
}
.cart-btn-clear:hover {
  background: rgba(255, 77, 77, 0.1);
}

/* LIGHTBOX */
.lightbox {
  --lb-pal-0: #000;
  --lb-pal-1: #000;
  --lb-pal-2: #000;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background:
    radial-gradient(ellipse 90% 80% at 10% 15%, color-mix(in srgb, var(--lb-pal-0) 55%, transparent) 0%, transparent 65%),
    radial-gradient(ellipse 80% 70% at 90% 85%, color-mix(in srgb, var(--lb-pal-1) 45%, transparent) 0%, transparent 65%),
    radial-gradient(ellipse 65% 65% at 55% 45%, color-mix(in srgb, var(--lb-pal-2) 35%, transparent) 0%, transparent 65%),
    rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(15px);
  display: none;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.3s ease,
    background 0.5s ease;
}
.lightbox.visible {
  display: flex;
}
.lb-close-corner {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 30;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(30, 30, 30, 0.7);
  backdrop-filter: blur(20px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  touch-action: auto;
  -webkit-tap-highlight-color: transparent;
  transition: 0.2s;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}
.lb-close-corner:hover {
  background: #d90429;
  transform: scale(1.1) rotate(90deg);
}
.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}
body.lb-open .header-zone {
  opacity: 0;
  pointer-events: none;
}

.lb-id-capsule {
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  padding: 8px 20px;
  border-radius: 30px;
  color: rgba(255, 255, 255, 0.8);
  font-family: monospace;
  letter-spacing: 1px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 10;
  font-size: 0.9rem;
  pointer-events: none;
}
.lb-dock {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 20;
  touch-action: auto;
  background: rgba(30, 30, 30, 0.6);
  backdrop-filter: blur(25px);
  padding: 8px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: opacity 0.3s;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
.lb-btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  touch-action: auto;
  -webkit-tap-highlight-color: transparent;
  transition: 0.2s;
}
.lb-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}
.lb-btn.lb-select-active {
  color: var(--success-green);
  background: rgba(37, 211, 102, 0.1);
}
a.lb-btn {
  text-decoration: none;
}
#lb-inquire:hover {
  color: var(--success-green);
  background: rgba(37, 211, 102, 0.12);
}
.lb-separator {
  width: 1px;
  height: 25px;
  background: rgba(255, 255, 255, 0.1);
  align-self: center;
  margin: 0 5px;
}

.lb-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  cursor: grab;
}
.lb-stage:active {
  cursor: grabbing;
}
.lightbox.active .lb-stage {
  touch-action: none;
}
/* transform-origin/will-change kept here as quickview has no box-shadow override */
.pntd-lb-img {
  transform-origin: center;
  will-change: transform;
}

/* CALCULATOR OVERLAY */
.lb-calc-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 12, 0.95);
  backdrop-filter: blur(30px);
  z-index: 100;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
}
.lb-calc-overlay::-webkit-scrollbar {
  display: none;
  width: 0;
}
.lb-calc-overlay.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.lb-calc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  background: rgba(10, 10, 12, 0.95);
  z-index: 10;
}
.lb-calc-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}
.lb-calc-close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: 0.2s;
}
.lb-calc-close:hover {
  background: #d90429;
  transform: rotate(90deg);
}

.lb-calc-content {
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 35px;
  padding: 40px 30px 60px 30px;
}

.step-group {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.step-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
}
.step-header i {
  color: var(--pntd-c-fuchsia);
  font-size: 1.1rem;
}

/* Sizes */
.size-visualizer {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 120px;
  padding: 15px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  border: 1px solid var(--pntd-glass-border);
}
.size-bar {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: none;
  border-radius: 6px 6px 2px 2px;
  cursor: pointer;
  transition: 0.3s;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 10px;
  color: #888;
  font-family: monospace;
  font-size: 0.85rem;
  font-weight: 600;
}
.size-bar:hover,
.opt-card:hover {
  z-index: 100 !important;
}
.size-bar:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.size-bar.active {
  background: rgba(231, 37, 231, 0.15);
  border-color: var(--pntd-c-fuchsia);
  color: #fff;
  box-shadow: 0 0 20px rgba(231, 37, 231, 0.3);
  z-index: 10;
}

/* Materials */
.option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
}
.opt-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  transition: 0.2s;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.opt-card:hover {
  transform: translateY(-2px);
}
.opt-card.active {
  border-color: var(--pntd-c-fuchsia);
  box-shadow: 0 5px 15px rgba(231, 37, 231, 0.2);
  z-index: 10;
}
.opt-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
  position: relative;
  z-index: 2;
}
.opt-price {
  font-size: 0.85rem;
  color: var(--pntd-c-turquoise);
  margin-top: auto;
  font-weight: 700;
  position: relative;
  z-index: 2;
}

/* Material-specific backgrounds */
.opt-card[data-material="std_matte"] {
  background:
    linear-gradient(rgba(26, 26, 26, 0.95), rgba(26, 26, 26, 0.95)),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 1px,
      rgba(255, 255, 255, 0.02) 1px,
      rgba(255, 255, 255, 0.02) 2px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 1px,
      rgba(255, 255, 255, 0.02) 1px,
      rgba(255, 255, 255, 0.02) 2px
    );
}
.opt-card[data-material="std_gloss"] {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.02) 0%,
    rgba(255, 255, 255, 0.02) 40%,
    rgba(255, 255, 255, 0.15) 50%,
    rgba(255, 255, 255, 0.02) 60%,
    rgba(255, 255, 255, 0.02) 100%
  );
  background-size: 300% 300%;
  transition: background-position 0.6s ease-out;
}
.opt-card[data-material="std_gloss"]:hover,
.opt-card[data-material="std_gloss"].active {
  background-position: 100% 100%;
}
.opt-card[data-material="metallic"] {
  background: linear-gradient(135deg, #1f2029, #312638, #1d333d);
  background-size: 200% 200%;
  animation: metallicShimmer 5s ease infinite;
}
@keyframes metallicShimmer {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
.opt-card[data-material="fine_art"] {
  background-color: #1a1a19;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    radial-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    radial-gradient(rgba(0, 0, 0, 0.1) 1px, transparent 1px);
  background-size:
    4px 4px,
    3px 3px,
    5px 5px;
  background-position:
    0 0,
    1px 2px,
    2px 1px;
}
.opt-card[data-material="canvas"] {
  background-color: #151515;
  background-image:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.03) 0%,
      transparent 40%,
      rgba(0, 0, 0, 0.6) 100%
    ),
    repeating-linear-gradient(
      to bottom,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, 0.02) 2px,
      rgba(255, 255, 255, 0.02) 4px
    ),
    repeating-linear-gradient(
      to right,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, 0.015) 2px,
      rgba(255, 255, 255, 0.015) 4px
    );
  box-shadow:
    inset 1px 1px 2px rgba(255, 255, 255, 0.03),
    inset -5px -5px 15px rgba(0, 0, 0, 0.8);
}

/* Shipping */
.shipping-toggle-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
.shipping-toggle {
  display: flex;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 50px;
  border: 1px solid var(--pntd-glass-border);
  padding: 4px;
  position: relative;
  overflow: hidden;
}
.shipping-btn {
  flex: 1;
  padding: 12px 10px;
  text-align: center;
  color: #888;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: 0.3s;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 50px;
}
.shipping-btn.active {
  color: #fff;
}
.shipping-slider {
  position: absolute;
  top: 4px;
  bottom: 4px;
  width: calc(50% - 4px);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  z-index: 1;
  transition: 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
}
.shipping-toggle[data-state="express"] .shipping-slider {
  transform: translateX(100%);
  background: rgba(0, 217, 191, 0.15);
  box-shadow: 0 0 20px rgba(0, 217, 191, 0.2);
}
.shipping-toggle[data-state="express"] .shipping-btn:nth-child(3) {
  color: var(--pntd-c-turquoise);
}

.data-stream {
  height: 2px;
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
.data-stream::after {
  content: "";
  position: absolute;
  top: 0;
  left: -50%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--c-blue), transparent);
  animation: streamFlow 2.5s linear infinite;
  opacity: 0.4;
}
.shipping-toggle-container.express-active .data-stream::after {
  background: linear-gradient(
    90deg,
    transparent,
    var(--pntd-c-turquoise),
    transparent
  );
  animation: streamFlow 0.8s linear infinite;
  opacity: 1;
}
@keyframes streamFlow {
  to {
    left: 100%;
  }
}

/* TOOLTIPS */
.opt-card[data-tooltip]::after,
.size-bar[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: #111111;
  border: 1px solid var(--pntd-glass-border);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.95);
  color: #ccc;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-family: monospace;
  white-space: normal;
  width: max-content;
  max-width: 220px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 100;
}
.opt-card[data-tooltip]::before,
.size-bar[data-tooltip]::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: var(--pntd-glass-border) transparent transparent transparent;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 101;
}

@media (hover: hover) {
  .opt-card[data-tooltip]:hover::after,
  .size-bar[data-tooltip]:hover::after {
    opacity: 1;
    border-color: var(--pntd-c-fuchsia);
    bottom: calc(100% + 14px);
  }
  .opt-card[data-tooltip]:hover::before,
  .size-bar[data-tooltip]:hover::before {
    opacity: 1;
    border-top-color: var(--pntd-c-fuchsia);
    bottom: calc(100% + 2px);
  }
}

@media (max-width: 600px) {
  .opt-card[data-tooltip]::after,
  .size-bar[data-tooltip]::after {
    max-width: 160px;
  }
  .option-grid .opt-card:nth-child(odd)[data-tooltip]::after {
    left: -10px;
    transform: none;
    text-align: left;
  }
  .option-grid .opt-card:nth-child(odd)[data-tooltip]::before {
    left: 25px;
    transform: none;
  }
  .option-grid .opt-card:nth-child(even)[data-tooltip]::after {
    left: auto;
    right: -10px;
    transform: none;
    text-align: right;
  }
  .option-grid .opt-card:nth-child(even)[data-tooltip]::before {
    left: auto;
    right: 25px;
    transform: none;
  }
  .size-visualizer .size-bar:first-child[data-tooltip]::after {
    left: -10px;
    transform: none;
    text-align: left;
  }
  .size-visualizer .size-bar:first-child[data-tooltip]::before {
    left: 15px;
    transform: none;
  }
  .size-visualizer .size-bar:last-child[data-tooltip]::after {
    left: auto;
    right: -10px;
    transform: none;
    text-align: right;
  }
  .size-visualizer .size-bar:last-child[data-tooltip]::before {
    left: auto;
    right: 15px;
    transform: none;
  }
}

.summary-footer {
  padding: 30px 0;
  border-top: 1px solid var(--pntd-glass-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  transition: opacity 0.3s;
}
.total-block {
  display: flex;
  flex-direction: column;
}
.total-label {
  font-size: 0.85rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.total-val {
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  transition: color 0.3s;
}
.total-val.bump {
  animation: pulseFuchsia 0.4s ease;
}
@keyframes pulseFuchsia {
  50% {
    color: var(--pntd-c-fuchsia);
    text-shadow: 0 0 30px var(--pntd-c-fuchsia);
    transform: scale(1.05);
  }
}

.footer-buttons {
  display: flex;
  gap: 15px;
  align-items: center;
}
.btn-purchase {
  background: var(--pntd-c-fuchsia);
  border: none;
  color: #000;
  padding: 15px 30px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: 0.3s;
  box-shadow: 0 5px 20px rgba(231, 37, 231, 0.3);
  text-decoration: none;
  width: fit-content;
}
.btn-purchase:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(231, 37, 231, 0.5);
  background: #ff4dff;
}
.btn-original-buy {
  background: rgba(37, 211, 102, 0.1);
  border: 1px solid var(--success-green);
  color: var(--success-green);
  width: 100%;
  margin-bottom: 20px;
}
.btn-original-buy:hover {
  background: var(--success-green);
  color: #000;
  box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
}

.mobile-back-btn {
  display: none;
}

@media (max-width: 600px) {
  .lb-calc-content {
    padding: 30px 20px 60px 20px;
  }
  .summary-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
  .total-block {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .footer-buttons {
    display: flex;
    width: 100%;
    gap: 10px;
  }
  .mobile-back-btn {
    display: flex;
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--pntd-glass-border);
    color: #fff;
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
  }
  #btn-purchase-print {
    flex: 3;
    width: auto !important;
    border-radius: 12px;
  }
}

.toast {
  position: fixed;
  top: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: var(--pntd-c-turquoise);
  color: #000;
  padding: 10px 25px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.9rem;
  opacity: 0;
  transition: 0.3s;
  z-index: 100000;
  pointer-events: none;
  box-shadow: 0 5px 20px rgba(0, 217, 191, 0.4);
}
.toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
