/* ═══════════════════════════════════════════════════════════════════════════
   Matchy Widget WOW — Brand-aligned upload experience
   New file — does NOT overwrite widget.css
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --mw-orange: #cc4422;
  --mw-teal: #1a4f68;
  --mw-cream: #fdf6e8;
  --mw-gold: #f5e09a;
  --mw-radius: 16px;
  --mw-deep-teal: #2a6f88;
  --mw-muted: #5a7a8a;
  --mw-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ─── Widget Shell ────────────────────────────────────────────────────────── */
.mw-widget {
  max-width: 960px;
  margin: 0 auto;
  padding: 60px 24px 80px;
  font-family: system-ui, -apple-system, sans-serif;
  color: var(--mw-teal);
  position: relative;
}

/* ─── Section Header ──────────────────────────────────────────────────────── */
.mw-header {
  text-align: center;
  margin-bottom: 40px;
}
.mw-eyebrow {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--mw-orange);
  margin-bottom: 8px;
}
.mw-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: var(--mw-teal);
  margin: 0 0 12px;
  line-height: 1.15;
}
.mw-subtitle {
  font-size: 17px;
  color: var(--mw-muted);
  margin: 0;
  line-height: 1.6;
}

/* ─── Progress Ring & Counter ─────────────────────────────────────────────── */
.mw-progress-ring-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 32px;
}
.mw-progress-ring {
  position: relative;
  width: 72px;
  height: 72px;
}
.mw-progress-ring svg {
  transform: rotate(-90deg);
}
.mw-progress-ring__bg {
  fill: none;
  stroke: #e8e2d6;
  stroke-width: 5;
}
.mw-progress-ring__fill {
  fill: none;
  stroke: var(--mw-orange);
  stroke-width: 5;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.5s var(--mw-spring), stroke 0.3s ease;
}
.mw-progress-ring__fill.--complete {
  stroke: #2d8b4e;
}
.mw-progress-ring__text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: var(--mw-teal);
}
.mw-progress-info {
  text-align: left;
}
.mw-progress-count {
  font-size: 16px;
  font-weight: 700;
  color: var(--mw-teal);
  margin: 0 0 2px;
}
.mw-progress-hint {
  font-size: 13px;
  color: var(--mw-muted);
  margin: 0;
}

/* ─── Drop Zone ───────────────────────────────────────────────────────────── */
.mw-drop-zone {
  position: relative;
  border: 2.5px dashed #d5cfc5;
  border-radius: var(--mw-radius);
  padding: 48px 32px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #fff;
  overflow: hidden;
}
.mw-drop-zone:hover {
  border-color: var(--mw-orange);
  background: #fff8f5;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(204, 68, 34, 0.08);
}
.mw-drop-zone.--dragover {
  border-color: var(--mw-orange);
  background: linear-gradient(135deg, #fff8f5, #fdf6e8);
  border-style: solid;
  transform: scale(1.01);
  box-shadow: 0 12px 40px rgba(204, 68, 34, 0.15);
}
.mw-drop-zone.--has-files {
  padding: 24px;
  border-style: solid;
  border-color: #e8e2d6;
}

/* Drop zone content */
.mw-drop-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--mw-cream), var(--mw-gold));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 24px;
  transition: transform 0.4s var(--mw-spring);
}
.mw-drop-zone:hover .mw-drop-icon,
.mw-drop-zone.--dragover .mw-drop-icon {
  transform: scale(1.1) translateY(-4px);
}
.mw-drop-text {
  font-size: 16px;
  font-weight: 600;
  color: var(--mw-teal);
  margin: 0 0 6px;
}
.mw-drop-link {
  color: var(--mw-orange);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.mw-drop-hint {
  font-size: 13px;
  color: var(--mw-muted);
  margin: 0;
}

/* ─── Thumbnails Grid ─────────────────────────────────────────────────────── */
.mw-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 10px;
  margin-top: 20px;
}
.mw-thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: var(--mw-cream);
  border: 2px solid transparent;
  transition: all 0.3s ease;
  animation: mw-thumb-in 0.4s var(--mw-spring) backwards;
}
.mw-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mw-thumb:hover {
  border-color: var(--mw-orange);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(204, 68, 34, 0.15);
}
@keyframes mw-thumb-in {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

/* Remove button */
.mw-thumb-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(26, 79, 104, 0.8);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 13px;
  line-height: 22px;
  text-align: center;
  padding: 0;
  opacity: 0;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
}
.mw-thumb:hover .mw-thumb-remove {
  opacity: 1;
}
.mw-thumb-remove:hover {
  background: var(--mw-orange);
  transform: scale(1.1);
}

/* Empty slot placeholder */
.mw-thumb.--empty {
  border: 2px dashed #d5cfc5;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.mw-thumb.--empty:hover {
  border-color: var(--mw-orange);
  background: #fff8f5;
}
.mw-thumb-plus {
  font-size: 24px;
  color: #d5cfc5;
  font-weight: 300;
  transition: color 0.2s ease;
}
.mw-thumb.--empty:hover .mw-thumb-plus {
  color: var(--mw-orange);
}

/* ─── Variant Hint ────────────────────────────────────────────────────────── */
.mw-variant-hint {
  text-align: center;
  font-size: 14px;
  color: var(--mw-muted);
  margin: 0 0 24px;
  min-height: 20px;
  transition: color 0.3s ease;
}

/* ─── Generate Button ─────────────────────────────────────────────────────── */
.mw-btn-primary {
  display: block;
  width: 100%;
  max-width: 400px;
  margin: 32px auto 0;
  padding: 18px 32px;
  border: none;
  border-radius: var(--mw-radius);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  background: var(--mw-orange);
  color: #fff;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  letter-spacing: 0.3px;
}
.mw-btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(204, 68, 34, 0.4);
}
.mw-btn-primary:active:not(:disabled) {
  transform: translateY(0);
}
.mw-btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: #bbb;
}
.mw-btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: translateX(-100%);
}
.mw-btn-primary:hover:not(:disabled)::after {
  animation: mw-shimmer 0.8s ease forwards;
}
@keyframes mw-shimmer {
  to { transform: translateX(100%); }
}

/* ─── Ghost / Secondary Button ────────────────────────────────────────────── */
.mw-btn-ghost {
  display: block;
  width: 100%;
  max-width: 400px;
  margin: 8px auto 0;
  padding: 12px 24px;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  color: var(--mw-muted);
  transition: all 0.2s ease;
  text-align: center;
}
.mw-btn-ghost:hover {
  color: var(--mw-orange);
  background: rgba(204, 68, 34, 0.04);
}

/* ─── Email Modal ─────────────────────────────────────────────────────────── */
.mw-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26, 79, 104, 0.5);
  backdrop-filter: blur(6px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.mw-modal-overlay.--visible {
  display: flex;
}
.mw-modal {
  background: #fff;
  border-radius: 20px;
  padding: 40px 36px;
  max-width: 440px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(26, 79, 104, 0.25);
  text-align: center;
  animation: mw-modal-in 0.4s var(--mw-spring);
}
@keyframes mw-modal-in {
  from { opacity: 0; transform: scale(0.9) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.mw-modal-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--mw-gold), var(--mw-orange));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 24px;
}
.mw-modal h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--mw-teal);
  margin: 0 0 8px;
}
.mw-modal p {
  font-size: 14px;
  color: var(--mw-muted);
  line-height: 1.6;
  margin: 0 0 20px;
}
.mw-modal-input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e8e2d6;
  border-radius: 12px;
  font-size: 15px;
  box-sizing: border-box;
  margin-bottom: 12px;
  transition: border-color 0.3s ease;
  font-family: inherit;
  color: var(--mw-teal);
}
.mw-modal-input:focus {
  outline: none;
  border-color: var(--mw-orange);
  box-shadow: 0 0 0 3px rgba(204, 68, 34, 0.1);
}
.mw-modal-error {
  color: var(--mw-orange);
  font-size: 13px;
  margin-bottom: 8px;
  display: none;
}
.mw-modal-cancel {
  background: none;
  border: none;
  color: var(--mw-muted);
  font-size: 13px;
  cursor: pointer;
  margin-top: 10px;
  transition: color 0.2s ease;
}
.mw-modal-cancel:hover {
  color: var(--mw-orange);
}

/* ─── Generation Step ─────────────────────────────────────────────────────── */
.mw-gen-header {
  text-align: center;
  margin-bottom: 24px;
}
.mw-gen-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--mw-teal);
  margin: 0 0 8px;
}
.mw-gen-subtitle {
  font-size: 15px;
  color: var(--mw-muted);
  margin: 0;
}

/* Progress bar */
.mw-progress-bar-wrap {
  height: 8px;
  background: #e8e2d6;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}
.mw-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--mw-orange), var(--mw-gold));
  border-radius: 4px;
  width: 0%;
  transition: width 0.5s ease;
}
.mw-progress-text {
  font-size: 14px;
  color: var(--mw-muted);
  margin: 0 0 24px;
  text-align: center;
}

/* Card grid */
.mw-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
@media (max-width: 600px) {
  .mw-grid { grid-template-columns: repeat(2, 1fr); }
}
.mw-tile {
  border-radius: var(--mw-radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid #e8e2d6;
  transition: all 0.3s ease;
}
.mw-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26, 79, 104, 0.1);
}

/* Before/After slider (inherits from existing mg-slider but with brand styling) */
.mw-slider-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  cursor: ew-resize;
  user-select: none;
  -webkit-user-select: none;
  background: var(--mw-cream);
  touch-action: none;
}
.mw-slider-before, .mw-slider-after {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.mw-slider-after {
  clip-path: inset(0 50% 0 0);
}
.mw-slider-handle {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 100%;
  background: rgba(255,255,255,0.9);
  pointer-events: none;
  box-shadow: 0 0 8px rgba(26, 79, 104, 0.3);
}
.mw-slider-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 12px rgba(26, 79, 104, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--mw-teal);
  border: 2px solid var(--mw-cream);
}
.mw-slider-label {
  position: absolute;
  bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: rgba(26, 79, 104, 0.65);
  padding: 3px 8px;
  border-radius: 6px;
  pointer-events: none;
  letter-spacing: 0.3px;
  backdrop-filter: blur(4px);
}
.mw-slider-label--l { left: 8px; }
.mw-slider-label--r { right: 8px; }

/* Spinner overlay */
.mw-tile-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(26, 79, 104, 0.4);
  backdrop-filter: blur(4px);
}
.mw-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: mw-spin 0.8s linear infinite;
}
@keyframes mw-spin { to { transform: rotate(360deg); } }
.mw-tile-overlay p {
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  margin: 0;
}

/* Tile actions (replace + restyle) */
.mw-tile-actions {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mw-replace-btn {
  display: block;
  width: 100%;
  background: var(--mw-cream);
  color: var(--mw-teal);
  border: 1.5px solid #e8e2d6;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
}
.mw-replace-btn:hover {
  border-color: var(--mw-orange);
  color: var(--mw-orange);
  background: #fff8f5;
}
.mw-restyle-row {
  display: flex;
  gap: 4px;
}
.mw-restyle-btn {
  flex: 1;
  background: #f5f5f0;
  color: var(--mw-muted);
  border: 1.5px solid #e8e2d6;
  padding: 5px 4px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
}
.mw-restyle-btn:hover {
  background: var(--mw-cream);
  border-color: var(--mw-teal);
  color: var(--mw-teal);
}
.mw-restyle-btn.--active {
  background: var(--mw-cream);
  color: var(--mw-orange);
  border-color: var(--mw-orange);
  cursor: default;
}
.mw-restyle-btn.--revert {
  background: #fff8e6;
  color: #997a00;
  border-color: var(--mw-gold);
}
.mw-restyle-btn.--revert:hover {
  background: #fff0c2;
}

/* ─── Approved Step ───────────────────────────────────────────────────────── */
.mw-approved-header {
  text-align: center;
  margin-bottom: 24px;
}
.mw-approved-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--mw-teal);
  margin: 0 0 8px;
}
.mw-approved-sub {
  font-size: 15px;
  color: var(--mw-muted);
  margin: 0;
}
.mw-final-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.mw-final-card {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e8e2d6;
  aspect-ratio: 1;
  transition: transform 0.3s var(--mw-spring);
}
.mw-final-card:hover {
  transform: scale(1.03);
}
.mw-final-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ─── Marketing Consent ───────────────────────────────────────────────────── */
.mw-consent-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--mw-muted);
  margin: 16px auto 0;
  max-width: 400px;
  cursor: pointer;
  line-height: 1.4;
}
.mw-consent-label input {
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--mw-orange);
}

/* ─── Error ───────────────────────────────────────────────────────────────── */
.mw-error {
  background: #fff0eb;
  border: 1px solid rgba(204, 68, 34, 0.2);
  color: var(--mw-orange);
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  margin-top: 12px;
  display: none;
  text-align: center;
}

/* ─── Step Visibility ─────────────────────────────────────────────────────── */
.mw-step { display: none; }
.mw-step.--active { display: block; }

/* ─── Email Verify Step ───────────────────────────────────────────────────── */
.mw-verify-wrap {
  text-align: center;
  padding: 48px 24px;
}
.mw-verify-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--mw-cream), var(--mw-gold));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 32px;
}
.mw-verify-wrap h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--mw-teal);
  margin: 0 0 8px;
}
.mw-verify-wrap p {
  font-size: 15px;
  color: var(--mw-muted);
  line-height: 1.6;
  margin: 0 0 24px;
}
.mw-verify-box {
  background: var(--mw-cream);
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 13px;
  color: var(--mw-muted);
  margin-bottom: 20px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* ─── Verify Email Modal (fullscreen overlay) ────────────────────────────── */
.mw-verify-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  align-items: center;
  justify-content: center;
}
.mw-verify-modal.--active {
  display: flex;
}
.mw-verify-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 79, 104, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: mwModalFadeIn 0.3s ease-out;
}
.mw-verify-modal-card {
  position: relative;
  background: #fff;
  border-radius: 24px;
  padding: 48px 36px 40px;
  max-width: 440px;
  width: 90%;
  text-align: center;
  box-shadow: 0 24px 80px rgba(26, 79, 104, 0.4), 0 0 0 1px rgba(245, 224, 154, 0.3);
  animation: mwModalSlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}
.mw-verify-modal-glow {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 120px;
  background: radial-gradient(ellipse, rgba(204, 68, 34, 0.15) 0%, transparent 70%);
  pointer-events: none;
}
.mw-verify-modal-card .mw-verify-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--mw-cream, #fdf6e8), var(--mw-gold, #f5e09a));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 36px;
  box-shadow: 0 8px 24px rgba(245, 224, 154, 0.4);
  animation: mwPulseGlow 2s ease-in-out infinite;
}
.mw-verify-modal-title {
  font-size: 28px;
  font-weight: 900;
  color: var(--mw-teal, #1a4f68);
  margin: 0 0 8px;
  letter-spacing: -0.5px;
}
.mw-verify-modal-sub {
  font-size: 15px;
  color: var(--mw-muted, #5a7a8a);
  line-height: 1.6;
  margin: 0 0 24px;
}
.mw-verify-modal-sub strong {
  color: var(--mw-teal, #1a4f68);
  word-break: break-all;
}
.mw-verify-timer-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 0 16px;
}
.mw-verify-timer-ring {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}
.mw-verify-timer-ring svg {
  width: 100%;
  height: 100%;
}
.mw-verify-timer-text {
  font-size: 32px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--mw-orange, #cc4422);
  letter-spacing: 1px;
}
.mw-verify-modal-urgency {
  font-size: 13px;
  color: var(--mw-muted, #5a7a8a);
  line-height: 1.5;
  margin: 0 0 20px;
  padding: 0 12px;
}
.mw-verify-modal-urgency strong {
  color: var(--mw-orange, #cc4422);
}
.mw-verify-modal-card .mw-verify-box {
  background: var(--mw-cream, #fdf6e8);
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 13px;
  color: var(--mw-muted, #5a7a8a);
  margin: 0 auto 20px;
  max-width: 360px;
  line-height: 1.5;
}
.mw-verify-modal-card .mw-btn-ghost {
  background: none;
  border: 2px solid var(--mw-teal, #1a4f68);
  color: var(--mw-teal, #1a4f68);
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.mw-verify-modal-card .mw-btn-ghost:hover {
  background: var(--mw-teal, #1a4f68);
  color: #fff;
}

/* Expired state */
.mw-verify-expired {
  padding: 12px 0;
}
.mw-verify-expired-icon {
  font-size: 48px;
  margin-bottom: 12px;
}
.mw-verify-expired h3 {
  font-size: 24px;
  font-weight: 900;
  color: var(--mw-orange, #cc4422);
  margin: 0 0 12px;
}
.mw-verify-expired p {
  font-size: 14px;
  color: var(--mw-muted, #5a7a8a);
  line-height: 1.6;
  margin: 0;
}
.mw-verify-expired .mw-cta {
  display: inline-block;
  background: linear-gradient(135deg, var(--mw-orange, #cc4422), #e05533);
  color: #fff;
  border: none;
  padding: 14px 36px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
  box-shadow: 0 4px 16px rgba(204, 68, 34, 0.3);
}
.mw-verify-expired .mw-cta:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 24px rgba(204, 68, 34, 0.4);
}

/* Modal animations */
@keyframes mwModalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes mwModalSlideUp {
  from { opacity: 0; transform: translateY(40px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes mwPulseGlow {
  0%, 100% { box-shadow: 0 8px 24px rgba(245, 224, 154, 0.4); }
  50% { box-shadow: 0 8px 36px rgba(245, 224, 154, 0.7), 0 0 60px rgba(204, 68, 34, 0.15); }
}

/* Mobile */
@media (max-width: 480px) {
  .mw-verify-modal-card {
    padding: 36px 24px 32px;
    border-radius: 20px;
  }
  .mw-verify-modal-title {
    font-size: 24px;
  }
  .mw-verify-timer-text {
    font-size: 28px;
  }
}

/* ─── Saved Sessions ──────────────────────────────────────────────────────── */
.mw-saved-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--mw-orange);
  margin-bottom: 10px;
  letter-spacing: 0.3px;
}
.mw-saved-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border: 1.5px solid #e8e2d6;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 8px;
  gap: 10px;
  transition: all 0.2s ease;
}
.mw-saved-card:hover {
  border-color: var(--mw-orange);
  box-shadow: 0 4px 16px rgba(204, 68, 34, 0.08);
}
.mw-saved-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--mw-teal);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mw-saved-meta {
  font-size: 11px;
  color: var(--mw-muted);
  margin-top: 2px;
}
.mw-saved-continue {
  background: linear-gradient(135deg, var(--mw-teal), var(--mw-deep-teal));
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s ease;
}
.mw-saved-continue:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26, 79, 104, 0.3);
}
.mw-saved-delete {
  background: none;
  border: none;
  color: #ccc;
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  padding: 2px 4px;
  transition: color 0.2s ease;
}
.mw-saved-delete:hover {
  color: var(--mw-orange);
}

/* ─── Lightbox ────────────────────────────────────────────────────────────── */
.mw-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26, 79, 104, 0.85);
  backdrop-filter: blur(8px);
  z-index: 999999;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.mw-lightbox.--visible {
  display: flex;
}
.mw-lightbox-inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}
.mw-lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 12px;
  display: block;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
.mw-lightbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  border: none;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  color: var(--mw-teal);
  line-height: 36px;
  text-align: center;
  padding: 0;
  box-shadow: 0 4px 12px rgba(26, 79, 104, 0.2);
  transition: all 0.2s ease;
}
.mw-lightbox-close:hover {
  background: var(--mw-orange);
  color: #fff;
}

/* ─── Scroll-In Animations ────────────────────────────────────────────────── */
[data-mw-anim] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s var(--mw-spring);
}
[data-mw-anim].--visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .mw-widget { padding: 40px 16px 60px; }
  .mw-thumbs { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); }
  .mw-drop-zone { padding: 32px 20px; }
}
