/* From Uiverse.io by cdashlo_3638 */ 
.pricing-widget {
  position: relative;
  padding: 100px 50px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pricing-widget * {
  box-sizing: border-box;
}

.pricing-button {
  display: flex;
  align-items: center;
  padding: 0;
  background: repeating-linear-gradient(
      45deg,
      #1a1a1a 0px,
      #1a1a1a 1px,
      #222 1px,
      #222 3px
    ),
    repeating-linear-gradient(
      -45deg,
      #1a1a1a 0px,
      #1a1a1a 1px,
      #1f1f1f 1px,
      #1f1f1f 3px
    ),
    linear-gradient(135deg, #1e1e1e 0%, #151515 50%, #1e1e1e 100%);
  background-size:
    6px 6px,
    6px 6px,
    100% 100%;
  border: 2px solid #333;
  border-radius: 20px;
  color: #888;
  font-size: 22px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 -1px 0 rgba(0, 0, 0, 0.3),
    0 4px 20px rgba(0, 0, 0, 0.5);
  width: 280px;
  height: 70px;
  position: relative;
  user-select: none;
}

.icon-container {
  width: 70px;
  height: 70px;
  background: repeating-linear-gradient(
      45deg,
      #181818 0px,
      #181818 1px,
      #202020 1px,
      #202020 3px
    ),
    repeating-linear-gradient(
      -45deg,
      #181818 0px,
      #181818 1px,
      #1d1d1d 1px,
      #1d1d1d 3px
    ),
    linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 50%, #1a1a1a 100%);
  background-size:
    6px 6px,
    6px 6px,
    100% 100%;
  border-right: 2px solid #333;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px 0 0 18px;
  flex-shrink: 0;
}

.dot-matrix {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 3px;
  width: 26px;
  height: 26px;
  transition: transform 0.3s ease;
}

.matrix-dot {
  width: 3px;
  height: 3px;
  background: #555;
  border-radius: 50%;
  transition: all 0.3s ease;
  opacity: 0.4;
}

.button-text {
  padding: 0 24px;
  flex: 1;
  text-align: center;
  transition: all 0.3s ease;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.pricing-button:hover .button-text {
  color: #7dc383;
  text-shadow: 0 0 8px rgba(125, 195, 131, 0.3);
}

.pricing-button:hover {
  border-color: #3a403a;
  box-shadow:
    inset 0 1px 0 rgba(125, 195, 131, 0.05),
    inset 0 -1px 0 rgba(0, 0, 0, 0.3),
    0 0 30px rgba(125, 195, 131, 0.4),
    0 0 60px rgba(125, 195, 131, 0.2);
  transform: translateY(-2px);
}

.center-toggle,
.card-toggle {
  display: none;
}

.center-click-zone {
  position: absolute;
  top: 5px;
  left: 75px;
  right: 5px;
  bottom: 5px;
  z-index: 15;
  border-radius: 15px;
  cursor:
    url('data:image/svg+xml;utf8,<svg xmlns="://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><text x="12" y="16" text-anchor="middle" font-size="16" fill="%2300ff00">?</text></svg>')
      12 12,
    pointer;
}

.center-toggle:checked ~ .button-text {
  color: #00ff00;
  text-shadow: 0 0 15px rgba(0, 255, 0, 0.7);
}

.pricing-button:has(.center-toggle:checked) {
  background: linear-gradient(135deg, #0a2a0a 0%, #051a05 50%, #0a2a0a 100%);
  border-color: #00ff00;
  box-shadow:
    0 0 40px rgba(0, 255, 0, 0.8),
    0 0 80px rgba(0, 255, 0, 0.6),
    0 0 120px rgba(0, 255, 0, 0.4),
    inset 0 0 20px rgba(0, 255, 0, 0.2);
  animation:
    gentleFloat 3s ease-in-out infinite,
    greenPulse 2s ease-in-out infinite;
}

@keyframes greenPulse {
  0%,
  100% {
    box-shadow:
      0 0 40px rgba(0, 255, 0, 0.8),
      0 0 80px rgba(0, 255, 0, 0.6),
      0 0 120px rgba(0, 255, 0, 0.4),
      inset 0 0 20px rgba(0, 255, 0, 0.2);
  }
  50% {
    box-shadow:
      0 0 60px rgba(0, 255, 0, 1),
      0 0 100px rgba(0, 255, 0, 0.8),
      0 0 140px rgba(0, 255, 0, 0.6),
      inset 0 0 30px rgba(0, 255, 0, 0.3);
  }
}

@keyframes gentleFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.center-toggle:checked ~ .icon-container .dot-matrix {
  transform: translateX(10px) rotate(90deg);
}

.pricing-button:has(.center-toggle:checked) .matrix-dot:nth-child(2),
.pricing-button:has(.center-toggle:checked) .matrix-dot:nth-child(3),
.pricing-button:has(.center-toggle:checked) .matrix-dot:nth-child(5),
.pricing-button:has(.center-toggle:checked) .matrix-dot:nth-child(8),
.pricing-button:has(.center-toggle:checked) .matrix-dot:nth-child(9),
.pricing-button:has(.center-toggle:checked) .matrix-dot:nth-child(12),
.pricing-button:has(.center-toggle:checked) .matrix-dot:nth-child(14),
.pricing-button:has(.center-toggle:checked) .matrix-dot:nth-child(15) {
  opacity: 1;
  background: #00ff00;
  box-shadow: 0 0 6px rgba(0, 255, 0, 0.8);
}

.corner-bracket {
  position: absolute;
  width: 20px;
  height: 20px;
  opacity: 0.4;
  pointer-events: none;
  transition: all 0.3s ease;
}

.corner-bracket::before,
.corner-bracket::after {
  content: "";
  position: absolute;
  background: #444;
  transition: all 0.3s ease;
}

.bracket-tl {
  top: -25px;
  left: -25px;
}
.bracket-tl::before {
  top: 5px;
  left: 0;
  width: 2px;
  height: 10px;
}
.bracket-tl::after {
  top: 0;
  left: 5px;
  width: 10px;
  height: 2px;
}

.bracket-tr {
  top: -25px;
  right: -25px;
}
.bracket-tr::before {
  top: 5px;
  right: 0;
  width: 2px;
  height: 10px;
}
.bracket-tr::after {
  top: 0;
  right: 5px;
  width: 10px;
  height: 2px;
}

.bracket-bl {
  bottom: -25px;
  left: -25px;
}
.bracket-bl::before {
  bottom: 5px;
  left: 0;
  width: 2px;
  height: 10px;
}
.bracket-bl::after {
  bottom: 0;
  left: 5px;
  width: 10px;
  height: 2px;
}

.bracket-br {
  bottom: -25px;
  right: -25px;
}
.bracket-br::before {
  bottom: 5px;
  right: 0;
  width: 2px;
  height: 10px;
}
.bracket-br::after {
  bottom: 0;
  right: 5px;
  width: 10px;
  height: 2px;
}

.tier-label {
  position: absolute;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}

.label-tl {
  top: -48px;
  left: -18px;
  color: #00d4ff;
}
.label-tr {
  top: -48px;
  right: -18px;
  color: #ffb700;
}
.label-bl {
  bottom: -48px;
  left: -18px;
  color: #d946ef;
}
.label-br {
  bottom: -48px;
  right: -18px;
  color: #ff1493;
}

.interaction-zone {
  position: absolute;
  z-index: 20;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.zone-tl {
  top: -24px;
  left: -24px;
  cursor:
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><text x="12" y="16" text-anchor="middle" font-size="16" fill="%2300d4ff">?</text></svg>')
      12 12,
    pointer;
}
.zone-tr {
  top: -24px;
  right: -24px;
  cursor:
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><text x="12" y="16" text-anchor="middle" font-size="16" fill="%23ffb700">?</text></svg>')
      12 12,
    pointer;
}
.zone-bl {
  bottom: -24px;
  left: -24px;
  cursor:
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><text x="12" y="16" text-anchor="middle" font-size="16" fill="%23d946ef">?</text></svg>')
      12 12,
    pointer;
}
.zone-br {
  bottom: -24px;
  right: -24px;
  cursor:
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><text x="12" y="16" text-anchor="middle" font-size="16" fill="%23ff1493">?</text></svg>')
      12 12,
    pointer;
}

.zone-tl:hover {
  background: rgba(0, 212, 255, 0.08);
}
.zone-tr:hover {
  background: rgba(255, 183, 0, 0.08);
}
.zone-bl:hover {
  background: rgba(217, 70, 239, 0.08);
}
.zone-br:hover {
  background: rgba(255, 20, 147, 0.08);
}

.center-toggle:checked ~ .interaction-zone {
  pointer-events: none;
}

.pricing-button:has(.zone-tl:hover):not(:has(.center-toggle:checked)) {
  border-color: #00d4ff;
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
}
.pricing-button:has(.zone-tl:hover):not(:has(.center-toggle:checked))
  .button-text {
  color: #00d4ff;
  text-shadow: 0 0 8px rgba(0, 212, 255, 0.5);
}
.pricing-button:has(.zone-tl:hover):not(:has(.center-toggle:checked))
  .bracket-tl::before,
.pricing-button:has(.zone-tl:hover):not(:has(.center-toggle:checked))
  .bracket-tl::after {
  background: #00d4ff;
  box-shadow: 0 0 8px rgba(0, 212, 255, 0.6);
  opacity: 1;
}
.pricing-button:has(.zone-tl:hover):not(:has(.center-toggle:checked))
  .label-tl {
  opacity: 1;
}
.pricing-button:has(.zone-tl:hover):not(:has(.center-toggle:checked))
  .matrix-dot:nth-child(1),
.pricing-button:has(.zone-tl:hover):not(:has(.center-toggle:checked))
  .matrix-dot:nth-child(2),
.pricing-button:has(.zone-tl:hover):not(:has(.center-toggle:checked))
  .matrix-dot:nth-child(3),
.pricing-button:has(.zone-tl:hover):not(:has(.center-toggle:checked))
  .matrix-dot:nth-child(5),
.pricing-button:has(.zone-tl:hover):not(:has(.center-toggle:checked))
  .matrix-dot:nth-child(6),
.pricing-button:has(.zone-tl:hover):not(:has(.center-toggle:checked))
  .matrix-dot:nth-child(9) {
  opacity: 1;
  background: #00d4ff;
  box-shadow: 0 0 5px rgba(0, 212, 255, 0.8);
  animation: dotPulse 0.8s ease-in-out infinite;
}

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

.pricing-button:has(.zone-tr:hover):not(:has(.center-toggle:checked)) {
  border-color: #ffb700;
  box-shadow: 0 0 30px rgba(255, 183, 0, 0.3);
}
.pricing-button:has(.zone-tr:hover):not(:has(.center-toggle:checked))
  .button-text {
  color: #ffb700;
  text-shadow: 0 0 8px rgba(255, 183, 0, 0.5);
}
.pricing-button:has(.zone-tr:hover):not(:has(.center-toggle:checked))
  .bracket-tr::before,
.pricing-button:has(.zone-tr:hover):not(:has(.center-toggle:checked))
  .bracket-tr::after {
  background: #ffb700;
  box-shadow: 0 0 8px rgba(255, 183, 0, 0.6);
  opacity: 1;
}
.pricing-button:has(.zone-tr:hover):not(:has(.center-toggle:checked))
  .label-tr {
  opacity: 1;
}
.pricing-button:has(.zone-tr:hover):not(:has(.center-toggle:checked))
  .matrix-dot:nth-child(2),
.pricing-button:has(.zone-tr:hover):not(:has(.center-toggle:checked))
  .matrix-dot:nth-child(3),
.pricing-button:has(.zone-tr:hover):not(:has(.center-toggle:checked))
  .matrix-dot:nth-child(4),
.pricing-button:has(.zone-tr:hover):not(:has(.center-toggle:checked))
  .matrix-dot:nth-child(7),
.pricing-button:has(.zone-tr:hover):not(:has(.center-toggle:checked))
  .matrix-dot:nth-child(8),
.pricing-button:has(.zone-tr:hover):not(:has(.center-toggle:checked))
  .matrix-dot:nth-child(12) {
  opacity: 1;
  background: #ffb700;
  box-shadow: 0 0 5px rgba(255, 183, 0, 0.8);
  animation: dotPulse 0.8s ease-in-out infinite;
}

.pricing-button:has(.zone-bl:hover):not(:has(.center-toggle:checked)) {
  border-color: #d946ef;
  box-shadow: 0 0 30px rgba(217, 70, 239, 0.3);
}
.pricing-button:has(.zone-bl:hover):not(:has(.center-toggle:checked))
  .button-text {
  color: #d946ef;
  text-shadow: 0 0 8px rgba(217, 70, 239, 0.5);
}
.pricing-button:has(.zone-bl:hover):not(:has(.center-toggle:checked))
  .bracket-bl::before,
.pricing-button:has(.zone-bl:hover):not(:has(.center-toggle:checked))
  .bracket-bl::after {
  background: #d946ef;
  box-shadow: 0 0 8px rgba(217, 70, 239, 0.6);
  opacity: 1;
}
.pricing-button:has(.zone-bl:hover):not(:has(.center-toggle:checked))
  .label-bl {
  opacity: 1;
}
.pricing-button:has(.zone-bl:hover):not(:has(.center-toggle:checked))
  .matrix-dot:nth-child(5),
.pricing-button:has(.zone-bl:hover):not(:has(.center-toggle:checked))
  .matrix-dot:nth-child(9),
.pricing-button:has(.zone-bl:hover):not(:has(.center-toggle:checked))
  .matrix-dot:nth-child(10),
.pricing-button:has(.zone-bl:hover):not(:has(.center-toggle:checked))
  .matrix-dot:nth-child(13),
.pricing-button:has(.zone-bl:hover):not(:has(.center-toggle:checked))
  .matrix-dot:nth-child(14),
.pricing-button:has(.zone-bl:hover):not(:has(.center-toggle:checked))
  .matrix-dot:nth-child(15) {
  opacity: 1;
  background: #d946ef;
  box-shadow: 0 0 5px rgba(217, 70, 239, 0.8);
  animation: dotPulse 0.8s ease-in-out infinite;
}

.pricing-button:has(.zone-br:hover):not(:has(.center-toggle:checked)) {
  border-color: #ff1493;
  box-shadow: 0 0 30px rgba(255, 20, 147, 0.3);
}
.pricing-button:has(.zone-br:hover):not(:has(.center-toggle:checked))
  .button-text {
  color: #ff1493;
  text-shadow: 0 0 8px rgba(255, 20, 147, 0.5);
}
.pricing-button:has(.zone-br:hover):not(:has(.center-toggle:checked))
  .bracket-br::before,
.pricing-button:has(.zone-br:hover):not(:has(.center-toggle:checked))
  .bracket-br::after {
  background: #ff1493;
  box-shadow: 0 0 8px rgba(255, 20, 147, 0.6);
  opacity: 1;
}
.pricing-button:has(.zone-br:hover):not(:has(.center-toggle:checked))
  .label-br {
  opacity: 1;
}
.pricing-button:has(.zone-br:hover):not(:has(.center-toggle:checked))
  .matrix-dot:nth-child(8),
.pricing-button:has(.zone-br:hover):not(:has(.center-toggle:checked))
  .matrix-dot:nth-child(11),
.pricing-button:has(.zone-br:hover):not(:has(.center-toggle:checked))
  .matrix-dot:nth-child(12),
.pricing-button:has(.zone-br:hover):not(:has(.center-toggle:checked))
  .matrix-dot:nth-child(14),
.pricing-button:has(.zone-br:hover):not(:has(.center-toggle:checked))
  .matrix-dot:nth-child(15),
.pricing-button:has(.zone-br:hover):not(:has(.center-toggle:checked))
  .matrix-dot:nth-child(16) {
  opacity: 1;
  background: #ff1493;
  box-shadow: 0 0 5px rgba(255, 20, 147, 0.8);
  animation: dotPulse 0.8s ease-in-out infinite;
}

.pricing-card {
  position: absolute;
  background: rgba(26, 26, 26, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 15px 12px;
  width: 120px;
  height: 90px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 30;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: scale(0.8) translateY(10px);
}

.plan-name {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin: 0;
}

.plan-price {
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  margin: 0;
}

.plan-period {
  font-size: 9px;
  color: #666;
}

.click-info {
  font-size: 9px;
  color: #888;
  font-style: italic;
  margin: 0;
}

.zone-tl .card-free {
  top: -105px;
  left: -15px;
}
.zone-tr .card-pro {
  top: -105px;
  right: -15px;
}
.zone-bl .card-elite {
  bottom: -105px;
  left: -15px;
}
.zone-br .card-enterprise {
  bottom: -105px;
  right: -15px;
}

.card-free .plan-name,
.card-free .plan-price {
  color: #00d4ff;
}

.card-pro .plan-name,
.card-pro .plan-price {
  color: #ffb700;
}

.card-elite .plan-name,
.card-elite .plan-price {
  color: #d946ef;
}

.card-enterprise .plan-name,
.card-enterprise .plan-price {
  color: #ff1493;
}

#cardTL:checked ~ .zone-tl .card-free,
#cardTR:checked ~ .zone-tr .card-pro,
#cardBL:checked ~ .zone-bl .card-elite,
#cardBR:checked ~ .zone-br .card-enterprise,
.center-toggle:checked ~ .zone-tl .card-free,
.center-toggle:checked ~ .zone-tr .card-pro,
.center-toggle:checked ~ .zone-bl .card-elite,
.center-toggle:checked ~ .zone-br .card-enterprise {
  opacity: 1;
  visibility: visible;
  transform: scale(1) translateY(0);
}

#cardTL:checked ~ .zone-tl .card-free,
.center-toggle:checked ~ .zone-tl .card-free {
  border-color: rgba(0, 212, 255, 0.5);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}

#cardTR:checked ~ .zone-tr .card-pro,
.center-toggle:checked ~ .zone-tr .card-pro {
  border-color: rgba(255, 183, 0, 0.5);
  box-shadow: 0 0 20px rgba(255, 183, 0, 0.4);
}

#cardBL:checked ~ .zone-bl .card-elite,
.center-toggle:checked ~ .zone-bl .card-elite {
  border-color: rgba(217, 70, 239, 0.5);
  box-shadow: 0 0 20px rgba(217, 70, 239, 0.4);
}

#cardBR:checked ~ .zone-br .card-enterprise,
.center-toggle:checked ~ .zone-br .card-enterprise {
  border-color: rgba(255, 20, 147, 0.5);
  box-shadow: 0 0 20px rgba(255, 20, 147, 0.4);
}

@media (max-width: 768px) {
  .pricing-widget {
    padding: 60px 30px;
  }

  .pricing-button {
    width: 240px;
    height: 60px;
    font-size: 18px;
  }

  .icon-container {
    width: 60px;
    height: 60px;
  }

  .pricing-card {
    width: 100px;
    height: 80px;
    padding: 12px 10px;
  }

  .plan-price {
    font-size: 20px;
  }

  .zone-tl .card-free {
    top: -95px;
    left: -10px;
  }
  .zone-tr .card-pro {
    top: -95px;
    right: -10px;
  }
  .zone-bl .card-elite {
    bottom: -95px;
    left: -10px;
  }
  .zone-br .card-enterprise {
    bottom: -95px;
    right: -10px;
  }
}
