/* SyokBox V2.26: consistent merchant/admin management and premium campaigns. */
.scratch-panel-hint {
  top: 50%;
  right: 0;
  bottom: auto;
  left: 0;
  transform: translateY(-50%);
}

.reward-choice-custom-icon {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.premium-choice .syokbox-premium-official {
  opacity: .76;
}

.saved-reward-image[src*="syokbox-default-reward"] {
  padding: 8px;
  object-fit: contain;
  box-sizing: border-box;
}

.premium-offer-image {
  aspect-ratio: 853 / 648;
  object-fit: contain;
}

.v213-partner-card {
  position: relative;
  display: flex;
  min-height: 0;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 7px;
  padding: 0 0 8px;
  overflow: hidden;
}

.v226-partner-image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f6f8fc;
}

.v226-partner-logo {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  object-fit: cover;
  box-sizing: border-box;
}

.v226-partner-fallback {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  padding: 8px;
  box-sizing: border-box;
  color: #254cc4;
  font-size: 11px;
  font-weight: 750;
  text-align: center;
}

.v226-partner-name {
  display: block;
  overflow: hidden;
  padding: 0 6px;
  color: #172a5e;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.25;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v226-partner-pending-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #efad3c;
}

.v226-partner-detail {
  padding-top: 40px;
}

.v226-partner-reward-image {
  display: block;
  width: 100%;
  max-height: 190px;
  margin: 0 auto 14px;
  border-radius: 14px;
  background: #fff;
  object-fit: contain;
}

.v226-partner-expiry,
.v226-partner-description {
  margin: 11px 0;
  color: #74819a;
  font-size: 12px;
  line-height: 1.55;
}

.v226-partner-disabled {
  opacity: .64;
  cursor: default;
}

/* Spin & Win: one branded wheel, eight gift-only slices, no exposed rewards. */
.spin-result-card {
  display: flex;
  min-height: calc(100svh - 24px);
  flex-direction: column;
}

.spin-win-game {
  display: grid;
  width: 100%;
  margin: auto 0;
  justify-items: center;
}

.spin-win-title {
  margin: 10px 0 5px;
  color: #172a5e;
  font-size: clamp(27px, 7.4vw, 37px);
  font-weight: 790;
}

.spin-win-sub,
.spin-win-note {
  margin: 0;
  color: #74819a;
  font-size: clamp(12px, 3.3vw, 15px);
  line-height: 1.5;
}

.spin-wheel-stage {
  position: relative;
  width: min(83vw, 360px);
  aspect-ratio: 1;
  margin: 43px auto 25px;
}

.spin-wheel {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 6px solid #2458dc;
  border-radius: 50%;
  background: conic-gradient(from -22.5deg,
    #2454d2 0deg 45deg, #ffffff 45deg 90deg,
    #2454d2 90deg 135deg, #ffffff 135deg 180deg,
    #2454d2 180deg 225deg, #ffffff 225deg 270deg,
    #2454d2 270deg 315deg, #ffffff 315deg 360deg);
  box-shadow: 0 17px 37px rgba(33, 70, 161, .22), inset 0 0 0 3px rgba(255,255,255,.75);
  transform: rotate(0deg);
  transition: transform 4.5s cubic-bezier(.12,.72,.13,1);
}

.spin-wheel.is-spinning {
  transform: rotate(var(--spin-final-rotation, 1900deg));
}

.spin-wheel-slot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16%;
  height: 16%;
  transform: translate(-50%, -50%) rotate(calc(var(--spin-slot) * 45deg)) translateY(-170%) rotate(calc(var(--spin-slot) * -45deg));
}

.spin-wheel-slot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.spin-wheel-pointer {
  position: absolute;
  z-index: 3;
  top: -10px;
  left: 50%;
  width: 36px;
  height: 40px;
  background: #f04469;
  clip-path: polygon(8% 0, 92% 0, 100% 38%, 50% 100%, 0 38%);
  transform: translateX(-50%);
  filter: drop-shadow(0 4px 6px rgba(23,42,94,.2));
}

.spin-wheel-button {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 50%;
  display: grid;
  width: 27%;
  height: 27%;
  padding: 0;
  place-items: center;
  border: 5px solid #fff;
  border-radius: 50%;
  background: #214ccc;
  box-shadow: 0 4px 13px rgba(22,43,106,.28);
  color: #fff;
  font-size: clamp(17px, 6vw, 26px);
  font-weight: 820;
  transform: translate(-50%, -50%);
}

.spin-wheel-button:disabled {
  cursor: wait;
}

.spin-result-card > .foot {
  margin-top: auto;
}

/* Admin: use the same clean row-and-section visual language as Merchant Settings. */
.admin-shell {
  background: #fff;
}

.admin-header span {
  font-size: 13px !important;
}

.admin-nav {
  gap: 0;
}

.admin-nav button {
  min-width: 0;
  max-width: 105px;
  flex: 1 1 0;
}

.admin-v226-settings-title {
  margin-bottom: 25px;
}

.admin-v226-settings-groups {
  display: grid;
  gap: 24px;
}

.admin-v226-settings-group h2 {
  margin: 0 0 5px;
  color: #172a5e;
  font-size: 15px;
  font-weight: 760;
}

.admin-v226-settings-row {
  display: grid;
  width: 100%;
  min-height: 54px;
  grid-template-columns: 32px minmax(0,1fr) 20px;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid #edf0f6;
  background: transparent;
  text-align: left;
}

.admin-v226-settings-row > span,
.admin-v226-settings-row > i {
  color: #254cc4;
}

.admin-v226-settings-row > span svg {
  width: 21px;
  height: 21px;
}

.admin-v226-settings-row > i svg {
  width: 17px;
  height: 17px;
  color: #97a3b6;
}

.admin-v226-settings-row strong {
  overflow: hidden;
  color: #172a5e;
  font-size: 12px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-v226-page-back {
  margin-bottom: 16px;
}

.admin-v226-form-card {
  padding: 16px;
  border: 1px solid #e8edf5;
  border-radius: 16px;
  background: #fff;
}

.admin-v226-form,
.admin-v226-sheet form {
  display: grid;
  gap: 14px;
}

.admin-v226-form > label,
.admin-v226-form .admin-grid2 > label,
.admin-v226-premium-fields > label {
  display: grid;
  min-width: 0;
  gap: 7px;
  color: #172a5e;
  font-size: 11px;
  font-weight: 690;
}

.admin-v226-form label small {
  color: #74819a;
  font-size: 9px;
  font-weight: 500;
}

.admin-v226-form input:not([type="checkbox"]):not([type="file"]),
.admin-v226-form textarea,
.admin-v226-form select,
.admin-v226-application input {
  width: 100%;
  min-height: 43px;
  padding: 11px 12px;
  border: 1px solid #dde5f1;
  border-radius: 10px;
  background: #fff;
  box-sizing: border-box;
  color: #172a5e;
  font: inherit;
}

.admin-v226-form textarea {
  min-height: 96px;
  resize: vertical;
}

.admin-v226-premium-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.admin-v226-premium-fields.is-hidden {
  display: none;
}

.admin-v226-toggle-row {
  display: flex !important;
  min-height: 54px;
  align-items: center !important;
  justify-content: space-between;
  gap: 12px !important;
  padding: 4px 0;
}

.admin-v226-toggle-row > span:first-child {
  display: grid;
  gap: 4px;
}

.admin-v226-toggle-row > span:first-child strong {
  font-size: 12px;
}

.admin-v226-toggle-row .admin-mini-toggle {
  flex: none;
}

.admin-v226-submit {
  min-height: 46px;
}

.admin-v226-section-intro,
.admin-v226-partner-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-v226-section-intro > p,
.admin-v226-partner-heading p {
  max-width: 70%;
  margin: 0;
  color: #74819a;
  font-size: 10px;
  line-height: 1.55;
}

.admin-v226-section-intro > button,
.admin-v226-add {
  flex: none;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: #254cc4;
  font-size: 11px;
  font-weight: 760;
}

.admin-v226-banner-list,
.admin-v226-guide-list,
.admin-v226-reward-list,
.admin-v226-application-list {
  display: grid;
  gap: 11px;
  margin-top: 15px;
}

.admin-v226-banner-list > article {
  display: grid;
  grid-template-columns: 85px minmax(0,1fr) 31px;
  align-items: center;
  gap: 9px;
  padding: 9px;
  border: 1px solid #e8edf5;
  border-radius: 13px;
}

.admin-v226-banner-list > article > img {
  width: 85px;
  height: 51px;
  border-radius: 8px;
  object-fit: cover;
}

.admin-v226-banner-list > article > div:nth-child(2),
.admin-v226-guide-list article > div,
.admin-v226-reward-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.admin-v226-banner-list strong,
.admin-v226-guide-list strong,
.admin-v226-reward-copy strong {
  overflow: hidden;
  color: #172a5e;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-v226-banner-list span,
.admin-v226-banner-list small,
.admin-v226-guide-list small,
.admin-v226-reward-copy span,
.admin-v226-reward-copy > small {
  overflow: hidden;
  color: #74819a;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-v226-banner-list > article > div:last-child,
.admin-v226-card-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.admin-v226-banner-list button,
.admin-v226-guide-list button,
.admin-v226-card-actions button {
  display: grid;
  min-width: 28px;
  min-height: 30px;
  padding: 4px;
  place-items: center;
  border: 0;
  background: transparent;
  color: #254cc4;
}

.admin-v226-banner-list button svg,
.admin-v226-guide-list button svg,
.admin-v226-card-actions button svg {
  width: 17px;
  height: 17px;
}

.admin-v226-guide-list article {
  display: grid;
  grid-template-columns: 27px minmax(0,1fr) 30px 30px;
  align-items: center;
  gap: 7px;
  padding: 10px;
  border: 1px solid #e8edf5;
  border-radius: 12px;
}

.admin-v226-guide-list article > span {
  color: #254cc4;
}

.admin-v226-empty {
  padding: 22px 8px;
  color: #74819a;
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

.admin-v226-partner-heading > div {
  min-width: 0;
}

.admin-v226-partner-heading > div p {
  max-width: 100%;
}

.admin-v226-partner-reward {
  display: grid;
  grid-template-columns: 66px minmax(0,1fr);
  gap: 10px;
  padding: 12px;
  border: 1px solid #e8edf5;
  border-radius: 15px;
}

.admin-v226-partner-reward > img {
  width: 66px;
  height: 66px;
  border: 1px solid #edf0f6;
  border-radius: 10px;
  object-fit: contain;
}

.admin-v226-reward-copy > small {
  color: #254cc4;
  font-weight: 720;
}

.admin-v226-reward-copy b {
  color: #be8516;
}

.admin-v226-card-actions {
  grid-column: 1 / -1;
  justify-content: flex-end;
  border-top: 1px solid #edf0f6;
}

.admin-v226-card-actions button:first-child {
  margin-right: auto;
  font-size: 10px;
  font-weight: 700;
}

.admin-v226-application {
  display: grid;
  gap: 12px;
  padding: 15px;
  border: 1px solid #e8edf5;
  border-radius: 15px;
}

.admin-v226-application-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.admin-v226-application-head > div {
  display: grid;
  gap: 4px;
}

.admin-v226-application-head strong {
  color: #172a5e;
  font-size: 13px;
}

.admin-v226-application-head span,
.admin-v226-application-head small,
.admin-v226-application > p {
  margin: 0;
  color: #74819a;
  font-size: 10px;
}

.admin-v226-status {
  padding: 5px 8px;
  border-radius: 8px;
  background: #f0f2f6;
  color: #74819a;
  font-size: 9px;
  font-style: normal;
  text-transform: capitalize;
}

.admin-v226-status.pending {
  background: #fff5df;
  color: #aa7410;
}

.admin-v226-status.approved {
  background: #eaf8ed;
  color: #248641;
}

.admin-v226-status.rejected {
  background: #fff0f2;
  color: #c24158;
}

.admin-v226-application > label {
  display: grid;
  gap: 6px;
  color: #172a5e;
  font-size: 11px;
  font-weight: 680;
}

.admin-v226-review-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.admin-v226-sheet {
  padding-bottom: max(24px,env(safe-area-inset-bottom));
}

.admin-v226-sheet .admin-upload-control {
  width: 100%;
}

.admin-v226-sheet .admin-upload-preview img {
  max-width: 100%;
  max-height: 160px;
  object-fit: contain;
}

@media (max-width: 400px) {
  #admin-page {
    padding-right: 14px;
    padding-left: 14px;
  }

  .admin-nav button {
    font-size: 9px;
  }

  .admin-v226-banner-list > article {
    grid-template-columns: 72px minmax(0,1fr) 28px;
    gap: 7px;
  }

  .admin-v226-banner-list > article > img {
    width: 72px;
    height: 45px;
  }

  .spin-wheel-stage {
    width: min(85vw, 310px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .spin-wheel {
    transition-duration: 1.2s;
  }
}
