/*
 * Seyedona Gallery Festival — Customer UI
 * Version 2.5.0
 */

.sgf-public-dashboard,
.sgf-festival-description-box,
.sgf-festival-timer-box,
.sgf-hunt-checkout-box,
.sgf-next-box,
.sgf-poll-box {
  --sgf-primary: #0f6b5b;
  --sgf-primary-dark: #084c41;
  --sgf-primary-soft: #edf8f5;
  --sgf-gold: #c99735;
  --sgf-danger: #b42318;
  --sgf-ink: #172722;
  --sgf-muted: #64736e;
  --sgf-border: rgba(15, 107, 91, 0.14);
  --sgf-radius: 20px;
  --sgf-shadow: 0 12px 34px rgba(20, 52, 44, 0.075);
  color: var(--sgf-ink);
  font-family: inherit;
  line-height: 1.8;
}

.sgf-public-dashboard *,
.sgf-festival-description-box *,
.sgf-festival-timer-box *,
.sgf-hunt-checkout-box *,
.sgf-next-box *,
.sgf-poll-box * {
  box-sizing: border-box;
}

.sgf-public-dashboard a:focus-visible,
.sgf-public-dashboard button:focus-visible,
.sgf-public-dashboard summary:focus-visible,
.sgf-hunt-checkout-box button:focus-visible {
  outline: 3px solid rgba(34, 147, 124, 0.3);
  outline-offset: 3px;
  box-shadow: 0 0 0 1px var(--sgf-primary);
}

/* Product price */
.sgf-price-html {
  display: inline-flex;
  align-items: center;
  gap: 6px 9px;
  max-width: 100%;
  flex-wrap: wrap;
  color: #34443f;
  direction: rtl;
  font-size: 0.92em;
}

.sgf-price-label {
  color: #52625d;
  font-size: 0.84em;
  font-weight: 750;
}

.sgf-price-values {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  flex-wrap: wrap;
}

.sgf-price-html .sgf-original-price {
  color: #8a9692;
  opacity: 0.85;
  font-size: 0.82em;
}

.sgf-price-html strong {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 3px 10px;
  border: 1px solid rgba(15, 107, 91, 0.14);
  border-radius: 10px;
  color: #075b4d;
  background: linear-gradient(135deg, #e9f6f2, #f7fcfa);
  font-size: 1em;
  font-weight: 900;
}

.sgf-price-html > small {
  flex-basis: 100%;
  color: #6e7b77;
  font-size: 0.72em;
  line-height: 1.75;
}

.sgf-fixed-cart-qty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 5px 11px;
  border: 1px solid rgba(15, 107, 91, 0.16);
  border-radius: 10px;
  color: #0b6152;
  background: #eff8f5;
  font-size: 12px;
  font-weight: 850;
}

.sgf-no-extra-cart-item .quantity,
body.sgf-single-no-extra-festival form.cart .quantity {
  display: none !important;
}

/* Festival product label */
.sgf-festival-label,
.woocommerce span.onsale.sgf-festival-label,
.product-labels .sgf-festival-label,
.single-product .product-labels .sgf-festival-label {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  min-width: 64px;
  min-height: 31px;
  padding: 5px 11px !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 999px !important;
  color: #fff !important;
  background: linear-gradient(135deg, #c52e26, #941c18) !important;
  box-shadow: 0 8px 20px rgba(180, 35, 24, 0.24) !important;
  opacity: 1 !important;
  visibility: visible !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  line-height: 1.25 !important;
  letter-spacing: 0 !important;
}

.sgf-festival-label::before,
.sgf-festival-label::after {
  content: none !important;
}

.sgf-created-labels {
  position: absolute;
  z-index: 12;
  top: 10px;
  inset-inline-start: 10px;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 6px;
  pointer-events: none;
}

body.sgf-single-active-festival .product-labels {
  z-index: 12 !important;
}

body.sgf-single-active-festival .product-labels .onsale:not(.sgf-festival-label):not(.kh-pgr-single-installment-label):not(.kh-pgr-installment-label),
.sgf-created-labels .onsale:not(.sgf-festival-label),
.sgf-created-labels .label-sale:not(.sgf-festival-label) {
  display: none !important;
}

.single-product .wd-carousel-container.wd-gallery-images > .wd-carousel-inner > .sgf-festival-label,
.single-product .woocommerce-product-gallery > .sgf-festival-label,
.single-product .wd-carousel-container.wd-gallery-images > .sgf-festival-label {
  display: none !important;
}

.single-product .wd-carousel-container.wd-gallery-images > .wd-carousel-inner > .product-labels .sgf-festival-label,
.single-product .woocommerce-product-gallery .product-labels .sgf-festival-label {
  display: inline-flex !important;
}

body.single-product.sgf-single-active-festival #sey-sticky-cart-pro .sey-sale-label,
body.single-product.sgf-single-active-festival #sey-sticky-cart-pro #sey-sticky-discount,
body.single-product.sgf-single-active-festival #sey-sticky-cart-pro .sey-discount-badge,
body.single-product.sgf-single-active-festival #sey-sticky-cart-pro #sey-sticky-save,
body.single-product.sgf-single-active-festival #sey-sticky-cart-pro .sey-save {
  display: none !important;
}

/* Product-page description */
.sgf-festival-description-box,
.sgf-festival-timer-box {
  width: 100%;
  margin: 15px 0;
  padding: 17px;
  overflow: hidden;
  border: 1px solid var(--sgf-border);
  border-radius: var(--sgf-radius);
  background:
    radial-gradient(circle at 95% 0, rgba(15, 107, 91, 0.075), transparent 30%),
    #fff;
  box-shadow: var(--sgf-shadow);
  direction: rtl;
}

.sgf-festival-description-head,
.sgf-festival-timer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 11px;
  border-bottom: 1px solid rgba(15, 107, 91, 0.1);
}

.sgf-festival-description-head > span,
.sgf-festival-timer-head > span {
  display: inline-flex;
  align-items: center;
  min-height: 31px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--sgf-primary), var(--sgf-primary-dark));
  font-size: 11px;
  font-weight: 900;
}

.sgf-festival-description-head > strong {
  color: var(--sgf-primary-dark);
  font-size: 14px;
  font-weight: 950;
}

.sgf-festival-description-content {
  color: #314640;
  font-size: 13px;
  line-height: 2.05;
}

.sgf-festival-description-content > :first-child { margin-top: 0; }
.sgf-festival-description-content > :last-child { margin-bottom: 0; }

.sgf-festival-description-note,
.sgf-installment-extra-note {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(15, 107, 91, 0.14);
  border-radius: 13px;
  color: #0c6153;
  background: linear-gradient(135deg, #edf8f5, #fbfdfc);
  font-size: 11.5px;
  font-weight: 750;
  line-height: 1.9;
}

/* Timer */
.sgf-festival-timer-head {
  align-items: flex-start;
  flex-direction: column;
  gap: 5px;
}

.sgf-festival-timer-head small {
  color: var(--sgf-muted);
  font-size: 11.5px;
  font-weight: 700;
}

.sgf-festival-timer-count {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.sgf-festival-timer-count > div {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  min-height: 73px;
  padding: 9px 5px;
  border: 1px solid rgba(15, 107, 91, 0.12);
  border-radius: 14px;
  background: #f8fbfa;
}

.sgf-festival-timer-count strong {
  color: var(--sgf-primary-dark);
  font-size: clamp(19px, 4vw, 24px);
  font-weight: 950;
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
}

.sgf-festival-timer-count span {
  margin-top: 2px;
  color: #71807b;
  font-size: 10px;
  font-weight: 750;
}

.sgf-festival-timer-note {
  padding: 12px;
  border: 1px dashed rgba(15, 107, 91, 0.21);
  border-radius: 13px;
  color: #53645e;
  background: #f8fbfa;
  font-size: 12px;
}

.sgf-timer-status-ended {
  border-color: rgba(180, 35, 24, 0.15);
  background: linear-gradient(135deg, #fff8f7, #fff);
}

.sgf-timer-status-ended .sgf-festival-timer-head > span {
  background: #a52620;
}

.sgf-timer-reached {
  opacity: 0.78;
}

/* Extension notice */
.sgf-festival-extension-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 11px 0;
  padding: 11px 12px;
  border: 1px solid rgba(185, 28, 28, 0.15);
  border-radius: 15px;
  background: linear-gradient(135deg, #fff4f2, #fffafb);
  direction: rtl;
}

.sgf-festival-extension-notice > .dashicons {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 35px;
  width: 35px;
  height: 35px;
  border-radius: 11px;
  color: #fff;
  background: #b42318;
  font-size: 18px;
}

.sgf-festival-extension-notice > div {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.sgf-festival-extension-notice strong {
  color: #8f211a;
  font-size: 12px;
  font-weight: 900;
}

.sgf-festival-extension-notice small {
  color: #8b4d48;
  font-size: 10.5px;
  line-height: 1.8;
}

.sgf-festival-extension-notice.is-compact {
  margin: 9px 0;
  padding: 9px 10px;
  border-radius: 13px;
}

/* Public dashboard */
.sgf-public-dashboard {
  width: 100%;
  max-width: 1180px;
  margin: 22px auto;
  color: var(--sgf-ink);
  direction: rtl;
}

.sgf-public-hero {
  position: relative;
  isolation: isolate;
  min-height: 175px;
  margin-bottom: 15px;
  padding: 27px 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 25px;
  color: #fff;
  background:
    radial-gradient(circle at 92% 5%, rgba(255, 255, 255, 0.15), transparent 31%),
    linear-gradient(135deg, #117765, var(--sgf-primary-dark));
  box-shadow: 0 18px 46px rgba(8, 76, 65, 0.19);
}

.sgf-public-hero::after {
  position: absolute;
  z-index: -1;
  inset-inline-end: -35px;
  bottom: -78px;
  width: 225px;
  height: 225px;
  content: "";
  border: 40px solid rgba(255, 255, 255, 0.055);
  border-radius: 50%;
}

.sgf-public-hero > span {
  display: inline-flex;
  padding: 5px 11px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.11);
  font-size: 10.5px;
  font-weight: 900;
}

.sgf-public-hero h2 {
  max-width: 800px;
  margin: 12px 0 6px;
  color: #fff;
  font-size: clamp(22px, 4vw, 31px);
  font-weight: 950;
  line-height: 1.55;
}

.sgf-public-hero p {
  max-width: 780px;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 12.5px;
  font-weight: 650;
  line-height: 2;
}

.sgf-public-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 11px;
  margin: 15px 0 23px;
}

.sgf-public-stats > div {
  position: relative;
  min-width: 0;
  padding: 15px 12px;
  overflow: hidden;
  border: 1px solid var(--sgf-border);
  border-radius: 17px;
  background: #fff;
  box-shadow: var(--sgf-shadow);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sgf-public-stats > div::before {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, var(--sgf-primary), var(--sgf-gold));
}

.sgf-public-stats > div:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(20, 52, 44, 0.1);
}

.sgf-public-stats strong {
  display: block;
  color: var(--sgf-primary-dark);
  font-size: 21px;
  font-weight: 950;
  line-height: 1.35;
}

.sgf-public-stats span {
  display: block;
  margin-top: 3px;
  color: var(--sgf-muted);
  font-size: 10.5px;
  font-weight: 750;
  line-height: 1.7;
}

.sgf-public-section {
  margin: 26px 0;
}

.sgf-public-section > h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 12px;
  color: #23342f;
  font-size: 17px;
  font-weight: 950;
}

.sgf-public-section > h3::before {
  width: 4px;
  height: 22px;
  content: "";
  border-radius: 999px;
  background: linear-gradient(var(--sgf-primary), var(--sgf-gold));
}

.sgf-public-cards,
.sgf-public-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 13px;
}

/* Festival cards */
.sgf-public-card {
  display: block;
  overflow: hidden;
  border: 1px solid var(--sgf-border);
  border-radius: 19px;
  background: #fff;
  box-shadow: var(--sgf-shadow);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.sgf-public-card:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 107, 91, 0.25);
  box-shadow: 0 17px 40px rgba(20, 52, 44, 0.1);
}

.sgf-public-card[open] {
  border-color: rgba(15, 107, 91, 0.28);
}

.sgf-public-card summary {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 88px;
  padding: 13px 13px 13px 48px;
  list-style: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.sgf-public-card summary::-webkit-details-marker {
  display: none;
}

.sgf-public-card summary::after {
  position: absolute;
  top: 50%;
  inset-inline-end: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  content: "+";
  border-radius: 9px;
  color: var(--sgf-primary-dark);
  background: var(--sgf-primary-soft);
  transform: translateY(-50%);
  font-size: 18px;
  font-weight: 500;
  transition: transform 0.2s ease, background 0.2s ease;
}

.sgf-public-card[open] summary::after {
  content: "−";
  color: #fff;
  background: var(--sgf-primary);
  transform: translateY(-50%) rotate(180deg);
}

.sgf-public-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 62px;
  width: 62px;
  height: 62px;
  overflow: hidden;
  border: 1px solid rgba(15, 107, 91, 0.1);
  border-radius: 15px;
  background: #f4f7f6;
}

.sgf-public-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sgf-public-title {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.sgf-public-title b {
  max-width: 100%;
  overflow: hidden;
  color: var(--sgf-ink);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 950;
  line-height: 1.7;
}

.sgf-public-title small {
  max-width: 100%;
  overflow: hidden;
  color: #7a8783;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 9.8px;
  font-weight: 700;
}

.sgf-public-card-body {
  padding: 0 13px 14px;
  border-top: 1px solid rgba(15, 107, 91, 0.08);
}

.sgf-public-card-body > p {
  margin: 11px 0;
  color: #52635d;
  font-size: 11.5px;
  line-height: 1.95;
}

.sgf-public-mini-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.sgf-public-mini-stats > div {
  min-width: 0;
  padding: 9px 5px;
  border: 1px solid rgba(15, 107, 91, 0.1);
  border-radius: 12px;
  background: #f8fbfa;
  text-align: center;
}

.sgf-public-mini-stats strong {
  display: block;
  overflow: hidden;
  color: var(--sgf-primary-dark);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 950;
}

.sgf-public-mini-stats span {
  display: block;
  color: #73807c;
  font-size: 8.8px;
  font-weight: 700;
  line-height: 1.55;
}

.sgf-public-status {
  display: inline-flex;
  width: max-content;
  margin-top: 5px;
  padding: 3px 8px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 900;
  line-height: 1.55;
}

.sgf-public-status.is-active { color: #166534; background: #ecfdf3; }
.sgf-public-status.is-upcoming { color: #8a5705; background: #fff9e8; }
.sgf-public-status.is-shipping { color: #a4410b; background: #fff7ed; }
.sgf-public-status.is-ended { color: #4338a0; background: #eef2ff; }
.sgf-public-status.is-extended { color: #991b1b; background: #fee2e2; }

.sgf-public-enter-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 12px;
  padding: 8px 13px;
  border-radius: 13px;
  color: #fff !important;
  background: linear-gradient(135deg, var(--sgf-primary), var(--sgf-primary-dark));
  box-shadow: 0 8px 19px rgba(15, 107, 91, 0.18);
  text-decoration: none !important;
  font-size: 11.5px;
  font-weight: 900;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.sgf-public-enter-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

/* Notices and empty states */
.sgf-public-empty,
.sgf-public-login-note,
.sgf-public-shipping-note {
  padding: 12px 13px;
  border-radius: 14px;
  font-size: 11.5px;
  font-weight: 750;
  line-height: 1.9;
}

.sgf-public-empty,
.sgf-public-login-note {
  border: 1px solid rgba(180, 83, 9, 0.15);
  color: #8b480d;
  background: linear-gradient(135deg, #fff9ef, #fff);
}

.sgf-public-login-note {
  margin-bottom: 12px;
}

.sgf-public-login-note a {
  color: #075f50;
  font-weight: 900;
  text-decoration-thickness: 1px;
}

.sgf-public-shipping-note {
  margin-top: 10px;
}

.sgf-public-shipping-note.is-progress {
  border: 1px solid rgba(234, 88, 12, 0.16);
  color: #9a3412;
  background: #fff7ed;
}

.sgf-public-shipping-note.is-done {
  border: 1px solid rgba(22, 101, 52, 0.16);
  color: #166534;
  background: #f0fdf4;
}

/* Next festival */
.sgf-next-box {
  padding: 17px;
  border: 1px solid var(--sgf-border);
  border-radius: 21px;
  background:
    radial-gradient(circle at 95% 0, rgba(201, 151, 53, 0.09), transparent 31%),
    linear-gradient(135deg, #fff, #f9fcfb);
  box-shadow: var(--sgf-shadow);
}

.sgf-next-product,
.sgf-next-mystery {
  display: flex;
  align-items: center;
  gap: 13px;
}

.sgf-next-product img,
.sgf-next-mystery > b {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  border-radius: 18px;
}

.sgf-next-product img {
  border: 1px solid rgba(15, 107, 91, 0.1);
  object-fit: cover;
}

.sgf-next-mystery > b {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--sgf-primary), var(--sgf-primary-dark));
  box-shadow: 0 9px 21px rgba(15, 107, 91, 0.18);
  font-size: 34px;
  font-weight: 950;
}

.sgf-next-product span {
  display: inline-flex;
  margin-bottom: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  color: #fff;
  background: var(--sgf-primary);
  font-size: 9.5px;
  font-weight: 900;
}

.sgf-next-product strong,
.sgf-next-mystery strong {
  display: block;
  color: var(--sgf-ink);
  font-size: 15px;
  font-weight: 950;
  line-height: 1.75;
}

.sgf-next-product small,
.sgf-next-mystery small {
  display: block;
  margin-top: 3px;
  color: var(--sgf-muted);
  font-size: 10.5px;
  font-weight: 700;
}

.sgf-next-countdown {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 13px;
  padding: 10px;
  border: 1px solid rgba(15, 107, 91, 0.11);
  border-radius: 14px;
  background: #fff;
  flex-wrap: wrap;
}

.sgf-next-countdown > span {
  margin-inline-end: 3px;
  color: var(--sgf-primary-dark);
  font-size: 10px;
  font-weight: 900;
}

.sgf-next-countdown b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 5px;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--sgf-primary), var(--sgf-primary-dark));
  box-shadow: 0 5px 12px rgba(15, 107, 91, 0.15);
  font-size: 12px;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
}

.sgf-next-countdown small {
  margin-inline-end: 2px;
  color: #74817d;
  font-size: 8.5px;
  font-weight: 750;
}

.sgf-next-countdown-finished {
  opacity: 0.65;
}

.sgf-upcoming-rule-cards {
  margin-top: 13px;
}

/* Poll */
.sgf-poll-box {
  padding: 16px;
  border: 1px solid var(--sgf-border);
  border-radius: 20px;
  background:
    radial-gradient(circle at 95% 0, rgba(180, 35, 24, 0.075), transparent 30%),
    #fff;
  box-shadow: var(--sgf-shadow);
}

.sgf-next-box > .sgf-poll-box {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.sgf-poll-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 11px;
  border-bottom: 1px solid rgba(15, 107, 91, 0.1);
}

.sgf-poll-head strong {
  color: var(--sgf-ink);
  font-size: 14px;
  font-weight: 950;
}

.sgf-poll-head span {
  flex: 0 0 auto;
  padding: 4px 9px;
  border-radius: 999px;
  color: #fff;
  background: var(--sgf-danger);
  font-size: 9.5px;
  font-weight: 900;
}

.sgf-poll-products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 11px;
}

.sgf-poll-product {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(15, 107, 91, 0.12);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 7px 20px rgba(20, 52, 44, 0.045);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.sgf-poll-product:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 107, 91, 0.24);
  box-shadow: 0 14px 31px rgba(20, 52, 44, 0.09);
}

.sgf-poll-img {
  width: 94px;
  height: 94px;
  overflow: hidden;
  border: 1px solid rgba(15, 107, 91, 0.09);
  border-radius: 14px;
  background: #f4f7f6;
}

.sgf-poll-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sgf-poll-info {
  min-width: 0;
}

.sgf-poll-info > strong {
  display: block;
  overflow: hidden;
  color: #263630;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 950;
}

.sgf-poll-info > small {
  display: block;
  min-height: 17px;
  color: #6d7a76;
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1.7;
}

.sgf-poll-bar {
  height: 8px;
  margin: 8px 0 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5f0ed;
  box-shadow: inset 0 1px 2px rgba(15, 107, 91, 0.08);
}

.sgf-poll-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--sgf-primary), #2ab58a, var(--sgf-gold));
}

.sgf-public-vote-btn,
.sgf-like-buttons .button {
  min-height: 44px !important;
  border: 1px solid var(--sgf-primary) !important;
  border-radius: 12px !important;
  color: #fff !important;
  background: linear-gradient(135deg, var(--sgf-primary), var(--sgf-primary-dark)) !important;
  box-shadow: 0 7px 17px rgba(15, 107, 91, 0.15) !important;
  font-family: inherit !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  cursor: pointer;
}

.sgf-poll-product > .sgf-public-vote-btn,
.sgf-poll-product > .sgf-like-buttons {
  grid-column: 1 / -1;
}

.sgf-public-vote-btn {
  width: 100%;
}

.sgf-like-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.sgf-like-buttons .is-dislike {
  border-color: #efbfc5 !important;
  color: #a81738 !important;
  background: #fff1f3 !important;
  box-shadow: none !important;
}

.sgf-public-vote-btn:disabled,
.sgf-like-buttons .button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.sgf-public-vote-message {
  min-height: 20px;
  margin-top: 9px;
  font-size: 10.5px;
  font-weight: 800;
}

.sgf-public-vote-message.is-success { color: var(--sgf-primary); }
.sgf-public-vote-message.is-error { color: var(--sgf-danger); }

/* Hunt */
.sgf-hunt-checkout-box {
  width: 100%;
  margin: 14px 0;
  padding: 16px;
  border: 1px solid rgba(180, 35, 24, 0.14);
  border-radius: 18px;
  background:
    radial-gradient(circle at 95% 0, rgba(180, 35, 24, 0.075), transparent 32%),
    #fff;
  box-shadow: var(--sgf-shadow);
  direction: rtl;
}

.sgf-hunt-checkout-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 11px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(15, 107, 91, 0.09);
}

.sgf-hunt-checkout-head span,
.sgf-hunt-checkout-head strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 900;
}

.sgf-hunt-checkout-head span {
  color: #fff;
  background: var(--sgf-danger);
}

.sgf-hunt-checkout-head strong {
  color: var(--sgf-primary-dark);
  background: var(--sgf-primary-soft);
}

.sgf-hunt-message {
  margin: 0 0 12px;
  color: #43534e;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.9;
}

.sgf-hunt-message.is-success { color: var(--sgf-primary); }
.sgf-hunt-message.is-error { color: var(--sgf-danger); }

.sgf-hunt-check-btn {
  min-height: 46px !important;
  padding-inline: 18px !important;
  border: 1px solid var(--sgf-primary) !important;
  border-radius: 13px !important;
  color: #fff !important;
  background: linear-gradient(135deg, var(--sgf-primary), var(--sgf-primary-dark)) !important;
  box-shadow: 0 8px 20px rgba(15, 107, 91, 0.18) !important;
  font-family: inherit !important;
  font-weight: 900 !important;
}

.sgf-hunt-check-btn:disabled {
  cursor: not-allowed !important;
  opacity: 0.55 !important;
}

.sgf-hunt-toast {
  position: fixed;
  z-index: 999999;
  inset-inline-end: 18px;
  bottom: calc(20px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 32px;
  align-items: center;
  gap: 10px;
  width: min(430px, calc(100vw - 36px));
  padding: 12px 13px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 17px;
  color: #fff;
  background: rgba(8, 76, 65, 0.97);
  box-shadow: 0 19px 48px rgba(8, 76, 65, 0.3);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  backdrop-filter: blur(9px);
  font-family: inherit;
  direction: rtl;
}

.sgf-hunt-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.sgf-hunt-toast > span {
  font-size: 21px;
}

.sgf-hunt-toast > strong {
  color: #fff;
  font-size: 11.5px;
  font-weight: 850;
  line-height: 1.8;
}

.sgf-hunt-toast > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  font-size: 19px;
  cursor: pointer;
}

/* Mobile */
@media (max-width: 900px) {
  .sgf-public-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sgf-public-mini-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .sgf-public-dashboard {
    margin: 14px auto;
    overflow: clip;
  }

  .sgf-public-hero {
    min-height: 0;
    padding: 21px 17px;
    border-radius: 20px;
  }

  .sgf-public-hero h2 {
    margin-top: 9px;
    font-size: 21px;
  }

  .sgf-public-hero p {
    font-size: 11.5px;
    line-height: 1.95;
  }

  .sgf-public-stats {
    gap: 8px;
    margin-top: 10px;
  }

  .sgf-public-stats > div {
    min-height: 86px;
    padding: 13px 8px;
    border-radius: 14px;
  }

  .sgf-public-stats strong { font-size: 18px; }
  .sgf-public-stats span { font-size: 9.2px; }
  .sgf-public-section { margin: 21px 0; }
  .sgf-public-section > h3 { font-size: 15px; }

  .sgf-public-cards,
  .sgf-public-timeline {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .sgf-public-card summary {
    min-height: 82px;
    padding: 11px 11px 11px 45px;
  }

  .sgf-public-thumb {
    flex-basis: 58px;
    width: 58px;
    height: 58px;
  }

  .sgf-public-card summary::after {
    inset-inline-end: 11px;
  }

  .sgf-public-mini-stats { gap: 6px; }
  .sgf-public-mini-stats > div { min-height: 58px; }

  .sgf-next-box,
  .sgf-poll-box,
  .sgf-festival-description-box,
  .sgf-festival-timer-box,
  .sgf-hunt-checkout-box {
    padding: 14px;
    border-radius: 17px;
  }

  .sgf-next-product img,
  .sgf-next-mystery > b {
    flex-basis: 60px;
    width: 60px;
    height: 60px;
    border-radius: 15px;
  }

  .sgf-next-product strong,
  .sgf-next-mystery strong {
    font-size: 13px;
  }

  .sgf-next-countdown {
    display: flex;
    gap: 4px;
  }

  .sgf-next-countdown > span {
    flex-basis: 100%;
    margin-bottom: 3px;
  }

  .sgf-next-countdown b {
    min-width: 30px;
    height: 30px;
  }

  .sgf-poll-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .sgf-poll-products {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .sgf-poll-product {
    grid-template-columns: 82px minmax(0, 1fr);
    padding: 9px;
    border-radius: 15px;
  }

  .sgf-poll-img {
    width: 82px;
    height: 82px;
  }

  .sgf-festival-description-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .sgf-festival-description-content { font-size: 12px; }

  .sgf-festival-timer-count {
    gap: 6px;
  }

  .sgf-festival-timer-count > div {
    min-height: 66px;
    padding: 7px 3px;
    border-radius: 12px;
  }

  .sgf-hunt-checkout-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .sgf-hunt-check-btn {
    width: 100%;
  }

  .sgf-hunt-toast {
    inset-inline: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    width: auto;
  }
}

@media (max-width: 380px) {
  .sgf-public-stats { gap: 6px; }
  .sgf-public-stats > div { min-height: 82px; }
  .sgf-public-title b { font-size: 12px; }
  .sgf-public-title small { font-size: 9px; }
  .sgf-festival-timer-count strong { font-size: 17px; }
  .sgf-festival-timer-count span { font-size: 8.5px; }
  .sgf-poll-product { grid-template-columns: 74px minmax(0, 1fr); }
  .sgf-poll-img { width: 74px; height: 74px; }
}

@media (prefers-reduced-motion: reduce) {
  .sgf-public-dashboard *,
  .sgf-festival-description-box *,
  .sgf-festival-timer-box *,
  .sgf-hunt-checkout-box *,
  .sgf-next-box *,
  .sgf-poll-box *,
  .sgf-hunt-toast {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}
