.md-toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.88);
  z-index: 99999;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 26px;
  border-radius: 16px;
  background: rgba(28, 25, 23, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  line-height: 1.4;
  max-width: min(320px, 82vw);
  text-align: center;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.22),
    0 2px 8px rgba(0, 0, 0, 0.12);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.34, 1.36, 0.64, 1);
}
.md-toast--in {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.md-toast--out {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  transition: opacity 0.32s ease, transform 0.32s ease;
}
.md-toast__icon {
  flex-shrink: 0;
  font-size: 1.35rem;
  line-height: 1;
  display: flex;
  align-items: center;
}
.md-toast__msg {
  flex: 1;
  min-width: 0;
}
.md-toast--success .md-toast__icon { color: #4ade80; }
.md-toast--error   .md-toast__icon { color: #f87171; }
.md-toast--info    .md-toast__icon { color: #93c5fd; }

.hiwawa-page-model-detail {
  --md-pink:           #ff6b35;
  --md-purple:         #ff9f1c;
  --md-accent:         #ff6b35;
  --md-accent-dark:    #9a3412;
  --md-accent-soft:    #ffd6c4;
  --md-text:           #1c1917;
  --md-muted:          #6b6560;
  --md-bg:             var(--bg);
  --md-gradient:           linear-gradient(90deg, #ff6b35 0%, #ff9f1c 100%);
  --md-gradient-soft:      linear-gradient(160deg, #fffdfb 0%, #fff0e8 45%, #ffe8dc 100%);
  --md-gradient-deep:      linear-gradient(135deg, #ff5a24 0%, #ff9f1c 100%);
  --md-font: inherit;
  font-family: inherit;
}

.hiwawa-page-model-detail .model-detail-cover__wrap {
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.md-gallery-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  border-radius: inherit;
}

.model-detail-spec-card__divider {
  display: none;
}

.model-detail-star-label-wrap {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.model-detail-star-label {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 3px 14px -2px rgba(0, 0, 0, 0.22),
    0 1px 3px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}

.model-detail-star-label__icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.model-detail-star-label__star {
  font-style: normal;
  font-size: 0.7rem;
  line-height: 1;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.7));
  animation: md-star-pulse 2.8s ease-in-out infinite;
}

.model-detail-star-label__text {
  padding: 0 10px 0 8px;
  height: 24px;
  display: flex;
  align-items: center;
  position: relative;
}

.model-detail-star-label__text::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.14) 0%,
    rgba(255, 255, 255, 0) 55%,
    rgba(0, 0, 0, 0.06) 100%
  );
  pointer-events: none;
}

@keyframes md-star-pulse {
  0%, 100% { opacity: 0.85; transform: scale(1) rotate(0deg); }
  45%       { opacity: 1;   transform: scale(1.22) rotate(18deg); }
  55%       { opacity: 1;   transform: scale(1.22) rotate(18deg); }
}

@media (prefers-reduced-motion: reduce) {
  .model-detail-star-label__star {
    animation: none;
  }
}

.model-detail-locked-desc {
  position: relative;
  min-height: 580px;
  border-radius: 14px;
  background: linear-gradient(145deg, #faf7f4 0%, #f5ebe6 100%);
  border: 1px solid rgba(255, 107, 53, 0.14);
  overflow: hidden;
  user-select: none;
}

.model-detail-locked-desc__icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(255, 107, 53, 0.35);
  z-index: 1;
}

.model-detail-locked-desc__lines {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px 20px 28px;
  filter: blur(6px);
}

.model-detail-locked-desc__lines span {
  display: block;
  height: 14px;
  border-radius: 6px;
  background: linear-gradient(90deg, #eadbd4 0%, #ddcec4 50%, #eadbd4 100%);
  background-size: 200% 100%;
  animation: md-shimmer 1.8s ease-in-out infinite;
}

@keyframes md-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.model-detail-empty-fill {
  box-sizing: border-box;
}

.model-detail-empty-fill--desc {
  min-height: 168px;
  padding: 18px 16px 20px;
  border-radius: 14px;
  background: linear-gradient(165deg, #faf8f6 0%, #f5ede8 55%, #f0e6df 100%);
  border: 1px dashed rgba(255, 107, 53, 0.28);
}

.model-detail-empty-fill__hint {
  margin: 0 0 14px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--md-muted);
  line-height: 1.45;
}

.model-detail-empty-fill__lines {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.model-detail-empty-fill__lines span {
  display: block;
  height: 11px;
  max-width: 100%;
  border-radius: 6px;
  background: linear-gradient(90deg, #e8ddd6 0%, #d9cfc6 45%, #e8ddd6 100%);
  background-size: 200% 100%;
  animation: md-shimmer 2.4s ease-in-out infinite;
  opacity: 0.9;
}

@media (prefers-reduced-motion: reduce) {
  .model-detail-empty-fill__lines span {
    animation: none;
  }
}

.mdpay-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
}
.mdpay-overlay[hidden] {
  display: none;
}

.mdpay-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .3s ease;
}
.mdpay-overlay.is-open .mdpay-backdrop {
  opacity: 1;
}

.mdpay-panel {
  position: relative;
  z-index: 1;
  background: #fff;
}

.mdpay-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}
.mdpay-state[hidden] {
  display: none;
}

.mdpay-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 8px;
}
.mdpay-icon-wrap--buy {
  background: var(--md-gradient-soft, linear-gradient(135deg, #fff5f0 0%, #ffe8dc 100%));
  color: var(--md-pink, #ff6b35);
}
.mdpay-icon-wrap--success { background: #e8f5e9; color: #43a047; }
.mdpay-icon-wrap--warn    { background: #fff8e1; color: #f9a825; }
.mdpay-icon-wrap--error   { background: #fce4ec; color: #e53935; }

.mdpay-heading {
  font-size: 20px;
  font-weight: 600;
  color: var(--md-text, #1c1917);
  margin: 0 0 2px;
  font-family: inherit;
}
.mdpay-model-name {
  font-size: 14px;
  color: #666;
  margin: 0 0 12px;
}
.mdpay-price-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin: 4px 0 24px;
}
.mdpay-price {
  font-size: 36px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--md-accent, #ff6b35);
  line-height: 1.1;
}
.mdpay-price-sub {
  font-size: 13px;
  color: #999;
}
.mdpay-state-msg {
  font-size: 14px;
  color: #666;
  margin: 4px 0 20px;
  line-height: 1.6;
}

.mdpay-btns {
  display: flex;
  gap: 12px;
  width: 100%;
  margin-top: 8px;
}
.mdpay-btn {
  flex: 1;
  height: 48px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: opacity .18s, transform .12s, box-shadow .18s;
}
.mdpay-btn--cancel {
  background: #f3f4f6;
  color: #57534e;
}
.mdpay-btn--cancel:hover {
  background: #e7e5e4;
}
.mdpay-btn--primary {
  background: var(--md-gradient, linear-gradient(135deg, #ff6b35 0%, #ff9f1c 100%));
  color: #fff;
  box-shadow: 0 4px 14px rgba(255, 107, 53, .28);
}
.mdpay-btn--primary:hover {
  box-shadow: 0 6px 18px rgba(255, 107, 53, .38);
}

.mdpay-spinner {
  width: 52px;
  height: 52px;
  border: 4px solid #ffe8dc;
  border-top-color: var(--md-pink, #ff6b35);
  border-radius: 50%;
  animation: mdpay-spin .8s linear infinite;
  margin: 16px auto;
}
@keyframes mdpay-spin {
  to { transform: rotate(360deg); }
}

.mdpay-price--discount del.mdpay-price-orig {
  font-size: .75em;
  opacity: .55;
  margin-right: 6px;
  text-decoration: line-through;
}

.mdsup-overlay {
  position: fixed; inset: 0; z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.mdsup-overlay[hidden] { display: none; }
.mdsup-backdrop {
  position: absolute; inset: 0;
  background: rgba(24, 20, 28, 0.48);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.mdsup-panel {
  position: relative; z-index: 1;
  width: 340px; max-width: 100%;
  background: linear-gradient(180deg, #fffcfa 0%, #ffffff 38%);
  border-radius: 22px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 107, 53, 0.12),
    0 24px 56px rgba(24, 20, 28, 0.16),
    0 8px 24px rgba(255, 107, 53, 0.12);
}
.mdsup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
}
.mdsup-inner { padding: 0 24px 26px; text-align: center; }

.mdsup-hero {
  position: relative;
  height: 108px;
  margin: 0 -24px 18px;
  background:
    radial-gradient(ellipse 120% 85% at 50% 120%, rgba(255, 159, 28, 0.28) 0%, transparent 55%),
    linear-gradient(168deg, #fff0e6 0%, #ffe0cc 42%, #ffc9a8 100%);
  border-radius: 22px 22px 0 0;
  overflow: hidden;
}
.mdsup-sparks {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.mdsup-spark {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.95), 0 0 18px rgba(255, 193, 120, 0.8);
  opacity: 0;
  animation: mdsup-spark-pop 2.4s ease-in-out infinite;
}
.mdsup-spark:nth-child(1) { left: 12%; top: 22%; animation-delay: 0s; }
.mdsup-spark:nth-child(2) { left: 28%; top: 48%; animation-delay: 0.35s; width: 4px; height: 4px; }
.mdsup-spark:nth-child(3) { right: 18%; top: 18%; animation-delay: 0.2s; }
.mdsup-spark:nth-child(4) { right: 32%; top: 52%; animation-delay: 0.55s; width: 5px; height: 5px; }
.mdsup-spark:nth-child(5) { left: 46%; top: 12%; animation-delay: 0.75s; }
.mdsup-spark:nth-child(6) { left: 54%; top: 38%; animation-delay: 1s; width: 4px; height: 4px; }

@keyframes mdsup-spark-pop {
  0%, 100% { opacity: 0; transform: scale(0.4); }
  35% { opacity: 1; transform: scale(1); }
  70% { opacity: 0.75; transform: scale(1.08); }
}

.mdsup-sticks {
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: 160px;
  height: 88px;
  transform: translateX(-50%);
  pointer-events: none;
}
.mdsup-stick {
  position: absolute;
  bottom: 0;
  width: 14px;
  height: 76px;
  border-radius: 999px;
  transform-origin: 50% 100%;
  background: linear-gradient(
    180deg,
    #fffef5 0%,
    #ffe066 18%,
    #ff9f1c 45%,
    #ff6b35 78%,
    #ea580c 100%
  );
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.45) inset,
    0 6px 20px rgba(255, 107, 53, 0.45),
    0 0 28px rgba(255, 159, 28, 0.35);
  animation: mdsup-stick-wave 1.1s ease-in-out infinite alternate;
}
.mdsup-stick::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -4px;
  transform: translateX(-50%);
  width: 22px;
  height: 10px;
  border-radius: 6px;
  background: linear-gradient(180deg, #57534e 0%, #292524 100%);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.mdsup-stick--left {
  left: 44px;
  animation-delay: 0s;
}
.mdsup-stick--right {
  right: 44px;
  animation-name: mdsup-stick-wave-r;
  animation-delay: 0.15s;
}

@keyframes mdsup-stick-wave {
  0% {
    transform: rotate(-22deg) translateY(0);
    filter: brightness(1);
  }
  100% {
    transform: rotate(-8deg) translateY(-4px);
    filter: brightness(1.08);
  }
}
@keyframes mdsup-stick-wave-r {
  0% {
    transform: rotate(22deg) translateY(0);
    filter: brightness(1);
  }
  100% {
    transform: rotate(8deg) translateY(-4px);
    filter: brightness(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mdsup-spark,
  .mdsup-stick {
    animation: none !important;
  }
  .mdsup-spark {
    opacity: 0.65;
  }
  .mdsup-stick--left {
    transform: rotate(-18deg);
  }
  .mdsup-stick--right {
    transform: rotate(18deg);
  }
}

.mdsup-heading {
  font-size: 22px; font-weight: 700; color: #c2410c; margin: 0 0 10px;
}

.mdsup-rank-badge {
  display: inline-block;
  margin: 0 0 14px;
  padding: 5px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  color: #9a3412;
  background: linear-gradient(135deg, #fff5f0 0%, #ffe8dc 100%);
  border: 1px solid rgba(255, 107, 53, 0.18);
}
.mdsup-rank-badge strong {
  color: #ea580c;
  font-weight: 800;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.mdsup-desc {
  font-size: 15px; color: #44403c; line-height: 1.65; margin: 0 0 20px;
}
.mdsup-desc strong {
  color: #ea580c;
  font-size: 20px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.mdsup-btn-wrap { margin-bottom: 16px; }
.mdsup-btn-wrap--dual {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.mdsup-btn {
  display: inline-block;
  padding: 13px 48px;
  border-radius: 999px;
  font-size: 16px; font-weight: 600;
  border: none; cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.12s ease;
}
.mdsup-btn--primary {
  background: linear-gradient(135deg, #ff8f4a 0%, #ff6b35 45%, #ff9f1c 100%);
  color: #fff;
  box-shadow:
    0 4px 16px rgba(255, 107, 53, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.25) inset;
}
.mdsup-btn--primary:hover {
  box-shadow: 0 8px 24px rgba(255, 107, 53, 0.42);
}
.mdsup-btn--primary:active { transform: scale(0.98); }
.mdsup-btn--secondary {
  background: #f5f5f4; color: #57534e;
  border-radius: 999px;
}
.mdsup-balance {
  font-size: 13px; color: #78716c;
}
.mdsup-balance a { color: #ea580c; text-decoration: none; margin-left: 6px; font-weight: 600; }
.mdsup-msg { font-size: 15px; color: #57534e; margin: 12px 0; line-height: 1.55; }
.mdsup-icon-ok {
  font-size: 52px;
  color: #ea580c;
  margin: 12px 0 10px;
  filter: drop-shadow(0 4px 12px rgba(255, 107, 53, 0.3));
  animation: mdsup-icon-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.mdsup-icon-err { font-size: 48px; color: #e74c3c; margin: 16px 0 8px; }
.mdsup-state[hidden] { display: none; }

@keyframes mdsup-icon-pop {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .mdsup-icon-ok { animation: none; }
}

.mdpin-icon-top {
  font-size: 36px;
  color: #ea580c;
  margin: 8px 0 6px;
  filter: drop-shadow(0 3px 8px rgba(255, 107, 53, 0.25));
}
.mdpin-cur-count {
  font-size: 14px;
  color: #78716c;
  margin: 0 0 14px;
  line-height: 1.5;
}
.mdpin-cur-count strong {
  color: #ea580c;
  font-size: 18px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.model-detail-related__head {
  display: flex;
  align-items: stretch;
  gap: 14px;
  margin: 0 0 22px;
  position: relative;
  padding-bottom: 4px;
}

.model-detail-related__head::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  border-radius: 1px;
  background: linear-gradient(
    90deg,
    rgba(255, 107, 53, 0.55) 0%,
    rgba(255, 159, 28, 0.38) 12%,
    rgba(255, 107, 53, 0.12) 42%,
    rgba(255, 107, 53, 0.04) 62%,
    transparent 88%
  );
  pointer-events: none;
}

.model-detail-related__accent {
  width: 4px;
  min-height: 2.75rem;
  flex-shrink: 0;
  border-radius: 4px;
  background: var(--md-gradient);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.35) inset,
    0 2px 14px -2px rgba(255, 107, 53, 0.45),
    0 0 20px -4px rgba(255, 159, 28, 0.35);
  align-self: stretch;
}

.model-detail-related__title-group {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding-bottom: 10px;
}

.model-detail-related__title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--md-text);
}

.model-detail-related__eyebrow {
  margin: 0;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(154, 52, 18, 0.72);
  line-height: 1.2;
}

@media (max-width: 639px) {
  .model-detail-related__head {
    gap: 12px;
    margin-bottom: 16px;
  }

  .model-detail-related__accent {
    width: 3px;
    min-height: 2.35rem;
    border-radius: 3px;
  }

  .model-detail-related__title {
    font-size: 1.05rem;
  }

  .model-detail-related__eyebrow {
    font-size: 0.5625rem;
    letter-spacing: 0.16em;
  }

  .model-detail-related__title-group {
    gap: 4px;
    padding-bottom: 8px;
  }
}
