.photo-order-form-wrap {
  width: 100%;
  margin: 0;
  padding: 0;
}

.photo-order-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.pof-topbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.pof-class-field {
  min-width: 280px;
  flex: 1;
}

.pof-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pof-field label {
  font-size: 14px;
  font-weight: 600;
  color: #222;
}

.pof-field select {
  height: 50px;
  padding: 0 14px;
  border: 1px solid #d9d9d9;
  border-radius: 12px;
  background: #fff;
  font-size: 15px;
  color: #222;
  outline: none;
  width: 100%;
  box-sizing: border-box;
}

.pof-form-intro {
  font-size: 16px;
  line-height: 1.5;
  color: #222;
}

.photo-order-form-wrap .pof-field select {
  box-shadow: none !important;
  background-color: #fff !important;
  background-clip: padding-box !important;
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

.pof-grid-container {
  width: 100%;
}

.pof-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.pof-card {
  border: 1px solid #e1e1e1;
  border-radius: 18px;
  background: #fff;
  padding: 18px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.pof-card:hover {
  border-color: #111;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.pof-card-header {
  display: flex;
  align-items: center;
  justify-content: center;
}

.pof-photo-title {
  font-size: 16px;
  font-weight: 700;
  color: #111;
  text-align: center;
}

.pof-photo-preview {
  width: 100%;
  height: 320px;
  border: 1px solid #e5e5e5;
  border-radius: 14px;
  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  box-sizing: border-box;
  overflow: hidden;
  cursor: zoom-in;
}

.pof-photo-preview:focus {
  outline: 2px solid #111;
  outline-offset: 2px;
}

.pof-photo-preview img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.pof-card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pgc-card-body {
  gap: 8px;
}

.pgc-photo-code {
  font-size: 14px;
  line-height: 1.5;
  color: #333;
  text-align: center;
}

.pgc-empty-state {
  width: 100%;
  padding: 20px 22px;
  border: 1px solid #e1e1e1;
  border-radius: 16px;
  background: #fafafa;
  color: #444;
  box-sizing: border-box;
}

/* MODALE */

.pof-modal-open {
  overflow: hidden;
}

.pof-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
}

.pof-modal.is-open {
  display: block;
}

.pof-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.pof-modal-dialog {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(96vw, 980px);
  max-width: 980px;
  max-height: 94vh;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 18px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.25);
  padding-top: 18px;
  padding-right: 10px;
  padding-bottom: 18px;
  padding-left: 10px;
}

.pof-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  color: #111;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pof-modal-close:hover {
  background: rgba(0, 0, 0, 0.14);
}

.pof-modal-title {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.1;
  color: #111;
  text-align: center;
  padding: 0 58px 2px;
}

.pof-modal-image-wrap {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 8px 14px 0;
  box-sizing: border-box;
}

.pof-modal-image {
  max-width: 100%;
  max-height: calc(94vh - 120px);
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 12px;
}

.pp-modal-text {
  padding: 8px 24px 24px;
  text-align: center;
  font-size: 18px;
  line-height: 1.5;
  color: #333;
}

.pp-modal-blocked-text {
  font-size: 18px;
  font-weight: 600;
  color: #222;
  margin-bottom: 14px;
}

.pp-modal-cooldown {
  display: flex;
  justify-content: center;
}

.pp-modal-cooldown-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.pp-modal-cooldown-unit {
  min-width: 86px;
}

.pp-modal-cooldown-value {
  font-size: 44px;
  line-height: 1;
  font-weight: 800;
  color: #111;
}

.pp-modal-cooldown-label {
  font-size: 13px;
  color: #666;
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pp-modal-cooldown-sep {
  font-size: 30px;
  color: #888;
  transform: translateY(-8px);
}

.pp-modal-cooldown-ready {
  display: inline-flex;
  padding: 10px 16px;
  background: #eef8ee;
  color: #1f6b2a;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
}

/* PHOTO POLL */

.pp-wrap {
  width: 100%;
}

.pp-app {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.pp-podium-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pp-podium-stage {
  position: relative;
  width: 100%;
  overflow: visible;
  padding-top: 0;
}

.pp-podium-image {
  width: 100%;
  display: block;
  border-radius: 18px;
}

.pp-podium-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
}

.pp-podium-item {
  position: absolute;
  text-align: center;
  z-index: 5;
  will-change: left, top, transform, opacity;
  transform: translate(-50%, -100%) scale(var(--pp-scale, 1));
  transition:
    left 0.55s ease,
    top 0.55s ease,
    opacity 0.35s ease;
}

.pp-podium-item.is-entering {
  opacity: 0;
  transform: translate(-50%, -118%) scale(calc(var(--pp-scale, 1) * 0.90));
}

.pp-podium-item.is-leaving {
  pointer-events: none;
  opacity: 1;
}

.pp-podium-item.is-leaving-active {
  opacity: 0;
  transform: translate(-50%, -92%) scale(calc(var(--pp-scale, 1) * 0.88));
}

.pp-place-1 {
  z-index: 3;
  animation: pp-float-1 3.8s ease-in-out infinite;
}

.pp-place-2 {
  z-index: 2;
  animation: pp-float-2 4.2s ease-in-out infinite;
}

.pp-place-3 {
  z-index: 1;
  animation: pp-float-3 3.5s ease-in-out infinite;
}

@keyframes pp-float-1 {
  0% {
    transform: translate(-50%, -100%) scale(var(--pp-scale, 1)) translateY(0px);
  }
  50% {
    transform: translate(-50%, -100%) scale(var(--pp-scale, 1)) translateY(-10px);
  }
  100% {
    transform: translate(-50%, -100%) scale(var(--pp-scale, 1)) translateY(0px);
  }
}

@keyframes pp-float-2 {
  0% {
    transform: translate(-50%, -100%) scale(var(--pp-scale, 1)) translateY(0px);
  }
  50% {
    transform: translate(-50%, -100%) scale(var(--pp-scale, 1)) translateY(-12px);
  }
  100% {
    transform: translate(-50%, -100%) scale(var(--pp-scale, 1)) translateY(0px);
  }
}

@keyframes pp-float-3 {
  0% {
    transform: translate(-50%, -100%) scale(var(--pp-scale, 1)) translateY(0px);
  }
  50% {
    transform: translate(-50%, -100%) scale(var(--pp-scale, 1)) translateY(-8px);
  }
  100% {
    transform: translate(-50%, -100%) scale(var(--pp-scale, 1)) translateY(0px);
  }
}

.pp-podium-thumb-wrap {
  width: 210px;
  max-width: 210px;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
  background: #fff;
  border: 6px solid #fff;
  line-height: 0;
  position: relative;
}

.pp-podium-thumb {
  width: 100%;
  height: auto;
  max-height: 300px;
  display: block;
}

.pp-podium-votes {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 15px;
  line-height: 1;
  font-weight: 700;
  text-align: center;
  z-index: 2;
}

.pp-podium-class {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-weight: 800;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.20);
  z-index: 4;
  color: #111;
}

.pp-podium-class.pp-podium-class-gold {
  background: #f0c94d;
  color: #111;
}

.pp-podium-class.pp-podium-class-silver {
  background: #d7dbe2;
  color: #111;
}

.pp-podium-class.pp-podium-class-bronze {
  background: #b87333;
  color: #fff;
}

/* COUNTDOWN */

.pp-countdown {
  text-align: center;
  background: #fff;
  border-radius: 28px;
  padding: 22px 34px 26px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.10);
  min-height: 145px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.pp-countdown-title {
  font-size: 22px;
  line-height: 1.15;
  color: #111;
  font-weight: 700;
  margin-bottom: 16px;
}

.pp-countdown-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: nowrap;
}

.pp-countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 110px;
}

.pp-countdown-value {
  font-size: 84px;
  line-height: 0.95;
  font-weight: 700;
  color: #111;
  letter-spacing: -2px;
}

.pp-countdown-label {
  margin-top: 10px;
  font-size: 18px;
  line-height: 1.1;
  color: #666;
  font-weight: 500;
}

.pp-countdown-sep {
  font-size: 64px;
  line-height: 1;
  color: #666;
  font-weight: 500;
  transform: translateY(-8px);
}

/* INTRO */

.pp-intro {
  margin-top: 4px;
}

.pp-grid-container {
  width: 100%;
}

.pp-cards {
  width: 100%;
}

.pp-card {
  position: relative;
  gap: 10px;
  overflow: hidden;
}

.pp-card-voted {
  animation: pp-card-voted 0.7s ease;
}

@keyframes pp-card-voted {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(245, 197, 24, 0);
  }
  35% {
    transform: scale(1.02);
    box-shadow: 0 0 0 8px rgba(245, 197, 24, 0.18);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(245, 197, 24, 0);
  }
}

.pp-vote-burst-heart {
  position: absolute;
  z-index: 8;
  font-size: 18px;
  color: #f5c518;
  line-height: 1;
  pointer-events: none;
  opacity: 0;
  animation: pp-heart-burst 0.95s ease-out forwards;
  animation-delay: var(--pp-heart-delay, 0s);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

@keyframes pp-heart-burst {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.4) rotate(0deg);
  }
  15% {
    opacity: 1;
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translate(var(--pp-heart-x, 0px), var(--pp-heart-y, -90px)) scale(0.7) rotate(var(--pp-heart-r, 0deg));
  }
}

.pp-card .pof-card-header {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  margin: 0;
  width: 110px;
  display: flex;
  justify-content: center;
}

.pp-card .pof-photo-title {
  width: 110px;
  min-width: 110px;
  max-width: 110px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #111;
  color: #fff;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.14);
  box-sizing: border-box;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pp-photo-preview {
  height: 320px;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.pp-photo-preview img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.pp-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
}

.pp-photo-preview {
  position: relative;
  height: 320px;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.pp-photo-preview img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.pp-card-overlay-meta {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  
  min-width: 220px;
  max-width: 75%;
  
  padding: 10px 18px;
  border-radius: 999px;

  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  color: #fff;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 700;
  text-align: center;

  z-index: 2;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  white-space: nowrap;
}

.pp-card-overlay-line strong {
  color: #fff;
}

.pp-card-overlay-sep {
  opacity: 0.8;
}

.pp-photo-code {
  font-size: 12px;
  color: #8a8a8a;
  text-align: center;
  margin: 0;
  line-height: 1.2;
}

.pp-vote-btn {
  margin-top: 0;
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 12px;
  background: #f5c518;
  color: #111;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  z-index: 2;
}

.pp-vote-btn:hover {
  background: #ffd84d;
  transform: translateY(-1px);
}

.pp-vote-btn:active {
  transform: translateY(0);
}

.pp-vote-btn:disabled {
  background: #f5c518;
  color: #111;
  opacity: 1;
  cursor: pointer;
}

.pp-vote-btn[data-locked="1"] {
  background: #f5c518;
  color: #111;
  opacity: 1;
  cursor: pointer;
}

.pp-card .pof-photo-title.pp-card-badge-gold {
  background: #f0c94d !important;
  color: #111 !important;
}

.pp-card .pof-photo-title.pp-card-badge-silver {
  background: #d7dbe2 !important;
  color: #111 !important;
}

.pp-card .pof-photo-title.pp-card-badge-bronze {
  background: #b87333 !important;
  color: #fff !important;
}

/* RESPONSIVE */

@media (max-width: 1100px) {
  .pof-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .photo-order-form-wrap {
    max-width: 100%;
    padding-left: 12px;
    padding-right: 12px;
    box-sizing: border-box;
  }

  .pof-topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .pof-class-field {
    width: 100%;
    min-width: 0;
  }

  .pof-cards {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .pof-card {
    padding: 16px;
  }

  .pof-photo-preview,
  .pp-photo-preview {
    height: 260px;
  }

  .pof-modal-dialog {
    width: min(96vw, 720px);
    max-height: 88vh;
    padding-top: 14px;
  }

  .pof-modal-close {
    top: 12px;
    right: 10px;
    width: 32px;
    height: 32px;
    font-size: 22px;
    background: rgba(0, 0, 0, 0.08);
  }

  .pof-modal-title {
    font-size: 22px;
    line-height: 1.15;
    min-height: 32px;
    padding: 0 48px 2px 16px;
  }

  .pof-modal-image-wrap {
    padding: 4px 6px 0;
  }

  .pof-modal-image {
    max-height: calc(88vh - 92px);
  }

  .pp-podium-thumb-wrap {
    width: 120px;
    max-width: 120px;
    border-radius: 18px;
  }

  .pp-podium-class {
    top: -12px;
    font-size: 11px;
    padding: 6px 10px;
    min-width: 74px;
  }

  .pp-podium-votes {
    left: 6px;
    right: 6px;
    bottom: 6px;
    padding: 6px 8px;
    font-size: 11px;
  }

  .pp-countdown {
    padding: 18px 14px;
    min-height: 110px;
    border-radius: 20px;
  }

  .pp-countdown-title {
    font-size: 14px;
    margin-bottom: 10px;
  }

  .pp-countdown-grid {
    gap: 8px;
  }

  .pp-countdown-unit {
    min-width: 58px;
  }

  .pp-countdown-value {
    font-size: 42px;
    letter-spacing: -1px;
  }

  .pp-countdown-label {
    margin-top: 6px;
    font-size: 11px;
  }

  .pp-countdown-sep {
    font-size: 28px;
    transform: translateY(-4px);
  }

  .pp-card-overlay-meta {
    bottom: 16px;
    min-width: 160px;
    max-width: 80%;
    padding: 7px 12px;
    font-size: 12px;
    gap: 6px;
  }

  .pp-card .pof-card-header {
    top: 3px;
  }

  .pp-modal-blocked-text {
    font-size: 16px;
  }

  .pp-modal-cooldown-grid {
    gap: 8px;
  }

  .pp-modal-cooldown-unit {
    min-width: 66px;
  }

  .pp-modal-cooldown-value {
    font-size: 32px;
  }

  .pp-modal-cooldown-label {
    font-size: 11px;
  }

  .pp-modal-cooldown-sep {
    font-size: 24px;
    transform: translateY(-6px);
  }
}


.pp-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(20px);
  min-width: 340px;
  max-width: min(92vw, 640px);
  padding: 18px 24px;
  border-radius: 18px;
  background: rgba(17, 17, 17, 0.96);
  color: #fff;
  font-size: 18px;
  line-height: 1.5;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
  opacity: 0;
  pointer-events: none;
  z-index: 999999;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.pp-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}


