/* ================================
   Wild Wheel — Layout & Theme
   ================================ */

/* Theme tokens (podem ser sobrepostos inline via JS com --ww-*) */
.wild-wheel-wrapper {
  --ww-text: #1f2937;            /* texto base */
  --ww-muted: #6b7280;           /* texto secundário */
  --ww-border: #e5e7eb;          /* bordas neutras */
  --ww-surface: #ffffff;         /* cartões / inputs */
  --ww-surface-2: #f9fafb;       /* fundos suaves */
  --ww-accent: #2563eb;          /* cor do CTA */
  --ww-btn-text: #ffffff;        /* texto do botão */
  --ww-link: #2563eb;            /* links */
  --ww-focus: rgba(37, 99, 235, 0.4); /* focus ring */
--ww-result: #fff;
--ww-success-text: #fff;

  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 28px 20px 36px;
  border-radius: 20px;
  box-shadow: 0 0 30px rgba(0,0,0,0.08);
  text-align: center;
  background: transparent !important;
  color: var(--ww-text);
}

/* Melhor respiração em ecrãs maiores */
@media (min-width: 640px) {
  .wild-wheel-wrapper {
    padding: 36px 28px 44px;
  }
}

/* ================================
   Roda
   ================================ */
#wild-wheel-canvas {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 50%;
  box-shadow:
    inset 0 0 20px rgba(255,255,255,0.3),
    0 10px 20px rgba(0,0,0,0.18);
  transition: transform 4s ease-out;
  background: radial-gradient(circle, #fff 0%, #ddd 80%);
}

/* ================================
   Botão SPIN
   ================================ */
#btn-spin {
  display: block;
  margin: 20px auto 10px;
  padding: 12px 24px;
  background-color: #d63638;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: transform .08s ease, opacity .2s ease, box-shadow .2s ease;
  box-shadow: 0 6px 18px rgba(214,54,56,0.35);
}

#btn-spin:hover:not(:disabled) {
  transform: translateY(-1px);
}

#btn-spin:active:not(:disabled) {
  transform: translateY(0);
}

#btn-spin:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

/* ================================
   Resultado
   ================================ */
#wild-wheel-result {
  margin-top: 14px;
  color: var(--ww-result);
}

.ww-result-card {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: min(100%, 280px);
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(17, 24, 39, 0.78);
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.18);
}

.ww-result-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
}

.ww-result-media {
  width: 84px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,0.96);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.86);
}

.ww-result-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ww-result-name {
  font-size: 18px;
  line-height: 1.2;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.25);
}

/* ================================
   Mensagens Globais
   ================================ */
#wild-wheel-message {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--ww-muted);
  text-align: center;
}

.wild-wheel-error {
  color: #d32f2f !important;
  font-weight: 700;
}
.wild-wheel-success {
  color: #ffffff !important; /* ligeiramente mais escuro para contraste */
  font-weight: 700;
}

/* Links dentro da wrapper */
.wild-wheel-wrapper a {
  color: var(--ww-link);
  text-decoration: underline;
  font-weight: 600;
  text-underline-offset: 2px;
}

/* ================================
   Formulário (novo layout)
   ================================ */
#wild-wheel-form {
  margin-top: 18px;
  text-align: left;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

/* Cabeçalho opcional do formulário (JS pode preencher) */
.ww-form-head {
  margin-bottom: 8px;
  color: var(--ww-muted);
  font-size: 14px;
}

/* Grid responsivo para campos */
.ww-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 520px) {
  .ww-form-grid {
    grid-template-columns: 1fr 1fr;
  }
  /* Contacto ocupa 2 colunas quando presente */
  .ww-form-grid .ww-field:nth-child(3) {
    grid-column: 1 / -1;
  }
}

/* Campo base */
.ww-field {}

/* Control com label flutuante */
.ww-control {
  position: relative;
  background: var(--ww-surface);
  border: 1px solid var(--ww-border);
  border-radius: 12px;
  padding: 12px 14px 10px;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

/* Inputs */
#wild-wheel-form input[type="text"],
#wild-wheel-form input[type="email"],
#wild-wheel-form input[type="tel"] {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: var(--ww-text);
  font-size: 16px;
  line-height: 1.4;
  padding: 8px 0 2px; /* espaço extra para label flutuante */
}

/* Esconder placeholder só nos campos de texto (para flutuação) */
#wild-wheel-form input[type="text"]::placeholder,
#wild-wheel-form input[type="email"]::placeholder,
#wild-wheel-form input[type="tel"]::placeholder {
  color: transparent;
}

/* Label flutuante – APLICAR APENAS dentro da .ww-control */
.ww-control > label {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--ww-surface);
  padding: 0 6px;
  color: var(--ww-muted);
  font-weight: 600;
  font-size: 14px;
  pointer-events: none;
  transition: all .18s ease;
}

/* Estados de foco e preenchido */
.ww-control:focus-within {
  border-color: var(--ww-accent);
  box-shadow: 0 0 0 4px var(--ww-focus);
}

#wild-wheel-form input:not(:placeholder-shown) + label,
#wild-wheel-form input:focus + label {
  top: 0;
  transform: translateY(-50%) scale(.92);
  color: var(--ww-accent);
}

/* Hints e Erros */
.ww-hint {
  color: #fff !important;
  text-shadow: 0 1px 2px rgba(0,0,0,.35);
}


.ww-error {
  display: none;
  margin: 6px 2px 0;
  font-size: 12px;
  color: #d32f2f;
  font-weight: 600;
}

#wild-wheel-form input[aria-invalid="true"] {
  color: #b42318;
}

#wild-wheel-form input[aria-invalid="true"] ~ label {
  color: #b42318;
}

.ww-control[aria-invalid="true"],
#wild-wheel-form input[aria-invalid="true"] ~ .ww-control {
  border-color: #d32f2f;
  box-shadow: 0 0 0 4px rgba(211,47,47,0.12);
}

/* ================================
   Checkboxes custom (privacidade / marketing)
   ================================ */
/* Suporta dois markups:
   1) <label class="ww-check"> <input type="checkbox"> <span class="ww-check__label">...</span> </label>
   2) <div class="ww-check"> <input type="checkbox"> <label>...</label> </div>  (compat)
*/
.ww-check,
label.ww-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 12px;
  background: var(--ww-surface-2);
  border: 1px dashed var(--ww-border);
  border-radius: 12px;
  padding: 10px 12px;
  /* anular quaisquer regras herdadas de labels flutuantes/temas */
  position: static;
  transform: none;
  background-clip: padding-box;
}

.ww-check input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--ww-accent);
  border-radius: 6px;
  display: inline-grid;
  place-content: center;
  margin-top: 2px; /* alinha com a 1ª linha do texto */
  cursor: pointer;
  background: #fff;
  transition: background-color .2s ease, box-shadow .2s ease, transform .05s ease;
}

.ww-check input[type="checkbox"]:focus {
  box-shadow: 0 0 0 4px var(--ww-focus);
}

.ww-check input[type="checkbox"]::before {
  content: "";
  width: 12px;
  height: 12px;
  transform: scale(0);
  transition: transform .12s ease-in-out;
  background: var(--ww-accent);
  border-radius: 3px;
}

.ww-check input[type="checkbox"]:checked::before {
  transform: scale(1);
}

/* Texto da checkbox (ambos os markups) */
.ww-check .ww-check__label,
.ww-check > label {
  position: static !important;
  transform: none !important;
  padding: 0;
  color: var(--ww-text);
  font-size: 14px;
  line-height: 1.35;
  background: transparent;
  font-weight: 600;
  cursor: pointer;
}

/* Links dentro da checkbox */
.ww-check a {
  text-decoration: underline;
}

/* Erro para privacidade (quando precisa mostrar) */
.ww-error[data-for="privacy"] {
  display: block;
  margin-top: 6px;
}

/* ================================
   Botão Submit do Formulário
   ================================ */
#wild-wheel-form .wild-wheel-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 14px;
  padding: 12px 16px;
  background-color: var(--ww-accent);
  color: var(--ww-btn-text);
  border: 1px solid var(--ww-accent);
  border-radius: 12px;
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  transition: transform .08s ease, opacity .2s ease, box-shadow .2s ease, filter .2s ease;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.25);
}

#wild-wheel-form .wild-wheel-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

#wild-wheel-form .wild-wheel-submit:active:not(:disabled) {
  transform: translateY(0);
}

#wild-wheel-form .wild-wheel-submit:disabled,
#wild-wheel-form .wild-wheel-submit[aria-disabled="true"] {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

/* Spinner do botão */
.ww-btn-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.55);
  border-top-color: rgba(255,255,255,0.95);
  border-radius: 50%;
  display: none;
  animation: ww-spin 0.8s linear infinite;
}

.wild-wheel-submit.is-loading .ww-btn-spinner {
  display: inline-block;
}
.wild-wheel-submit.is-loading .ww-btn-label {
  opacity: 0.85;
}

@keyframes ww-spin {
  to { transform: rotate(360deg); }
}

/* ================================
   Estados visuais (para animações suaves)
   ================================ */
.is-hidden {
  opacity: 0;
  pointer-events: none !important;
  user-select: none !important;
  transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease;
}

#wild-wheel-form,
.wild-wheel-stage,
#wild-wheel-canvas {
  transition: opacity .2s ease, transform .2s ease;
}

/* Respeitar preferências de movimento reduzido */
@media (prefers-reduced-motion: reduce) {
  #wild-wheel-canvas,
  #btn-spin,
  #wild-wheel-form,
  .wild-wheel-stage {
    transition: none !important;
  }
  .ww-btn-spinner {
    animation: none !important;
  }
}

/* ================================
   Acessibilidade extra
   ================================ */
#wild-wheel-form input:focus {
  outline: none;
}

#wild-wheel-form input:focus-visible {
  outline: 3px solid transparent;
}

#wild-wheel-form .ww-control:focus-within {
  outline: none;
}

/* ================================
   Compat legado (mantém estilos antigos se algo cair no DOM)
   ================================ */
/* Não deixar o tema estilizar demais botões antigos no form */
#wild-wheel-form button {
  all: unset;
}
#wild-wheel-form button {
  display: inline-flex;
}

/* Manter visual de labels antigas se aparecerem fora do novo markup */
#wild-wheel-form > label {
  display: block;
  margin-bottom: 6px;
  color: var(--ww-text);
  font-weight: 600;
}

/* ================================
   Pequenos ajustes de cores herdadas
   ================================ */
.wild-wheel-wrapper .ww-error a,
.wild-wheel-wrapper .wild-wheel-error a {
  color: #b42318;
  text-decoration-color: #fca5a5;
}

/* ================================
   V3, premium shortcode layouts
   ================================ */
.wild-wheel-wrapper {
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02)) !important;
  backdrop-filter: blur(2px);
}

.ww-shortcode-shell {
  display: grid;
  gap: 18px;
}

.ww-shortcode-hero {
  padding: 18px 18px 4px;
}

.ww-shortcode-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  color: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.ww-shortcode-title {
  margin: 14px 0 8px;
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.05;
  color: inherit;
}

.ww-shortcode-copy {
  margin: 0 auto;
  max-width: 38ch;
  color: rgba(255,255,255,0.86);
  font-size: 16px;
}

.ww-wheel-card,
#wild-wheel-form,
.ww-dashboard-table-wrap,
.ww-dashboard-empty {
  background: rgba(17, 24, 39, 0.36);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 24px;
  box-shadow: 0 16px 50px rgba(0,0,0,0.22);
}

.ww-wheel-card {
  padding: 22px 16px 18px;
}

#wild-wheel-canvas {
  display: block;
  width: min(100%, 420px);
  margin: 0 auto;
}

#wild-wheel-form {
  padding: 22px;
}

.ww-inline-message {
  min-height: 24px;
  margin-top: 2px;
}

.ww-shortcode-cta a,
.ww-dashboard-export {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 14px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.16);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.ww-social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.ww-social-links a {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.12);
  text-decoration: none;
}

.ww-dashboard-shell {
  display: grid;
  gap: 18px;
  max-width: 1200px;
  margin: 0 auto;
}

.ww-dashboard-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.ww-dashboard-head h3 {
  margin: 10px 0 0;
  color: inherit;
  font-size: clamp(24px, 3.2vw, 34px);
}

.ww-dashboard-table-wrap {
  overflow: auto;
  padding: 10px;
}

.ww-dashboard-table {
  margin: 0;
  border: 0;
  background: transparent;
}

.ww-dashboard-table th,
.ww-dashboard-table td {
  padding: 14px 12px;
}

.ww-dashboard-empty {
  padding: 26px;
  text-align: center;
}

@media (max-width: 640px) {
  .wild-wheel-wrapper {
    padding: 22px 14px 28px;
    border-radius: 18px;
  }

  #wild-wheel-form,
  .ww-wheel-card {
    border-radius: 20px;
  }

  .ww-shortcode-copy {
    font-size: 15px;
  }
}

/* ================================
   V3.1 refinamentos visuais
   ================================ */
.wild-wheel-wrapper {
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)) !important;
  backdrop-filter: blur(3px);
}

.ww-shortcode-shell {
  display: grid;
  gap: 18px;
}

.ww-shortcode-hero {
  padding: 8px 6px 2px;
}

.ww-shortcode-title {
  margin-bottom: 8px;
  text-shadow: 0 2px 14px rgba(0,0,0,0.18);
}

.ww-shortcode-copy {
  max-width: 42ch;
  margin: 0 auto;
}

.wild-wheel-stage {
  position: relative;
}

.ww-wheel-card {
  background: linear-gradient(180deg, rgba(17,24,39,0.30), rgba(17,24,39,0.14));
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 28px;
  padding: 18px 14px 20px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.22);
}

.ww-inline-message {
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.ww-shortcode-cta a,
.ww-dashboard-export {
  border-radius: 999px;
  padding-left: 18px;
  padding-right: 18px;
}

.ww-social-links {
  gap: 10px;
}

.ww-social-links a {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  padding: 8px 12px;
  text-decoration: none;
}

.ww-dashboard-copy {
  margin: 8px 0 0;
  color: var(--ww-muted);
}

.ww-dashboard-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 16px;
}

.ww-dashboard-stat {
  background: rgba(255,255,255,0.84);
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: 0 10px 24px rgba(15,23,42,0.08);
}

.ww-dashboard-stat__label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #64748b;
  margin-bottom: 6px;
}

.ww-dashboard-stat strong {
  font-size: 20px;
  color: #0f172a;
}

.ww-dashboard-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
}

.ww-dashboard-status.is-yes {
  background: #dcfce7;
  color: #166534;
}

.ww-dashboard-status.is-no {
  background: #fee2e2;
  color: #991b1b;
}

@media (max-width: 640px) {
  .ww-wheel-card {
    padding: 14px 10px 18px;
    border-radius: 22px;
  }

  .ww-dashboard-stats {
    grid-template-columns: 1fr;
  }
}


.ww-shortcode-shell{position:relative;overflow:hidden;border:1px solid rgba(255,255,255,.24);border-radius:28px;padding:18px;background:linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.08));backdrop-filter:blur(8px)}
.ww-shortcode-shell::before{content:"";position:absolute;inset:-30% auto auto -20%;width:180px;height:180px;border-radius:999px;background:radial-gradient(circle, rgba(255,255,255,.24), transparent 65%);pointer-events:none}
.ww-shortcode-hero{margin-bottom:22px}
.ww-shortcode-kicker{display:inline-flex;padding:6px 12px;border-radius:999px;background:rgba(255,255,255,.22);font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase}
.ww-shortcode-title{margin:12px 0 10px;font-size:clamp(28px,4vw,38px);line-height:1.05}
.ww-shortcode-copy{max-width:40ch;margin:0 auto;color:rgba(255,255,255,.88)}
.ww-wheel-card{position:relative;padding:18px;border-radius:24px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.18);box-shadow:0 14px 40px rgba(0,0,0,.12)}
.wild-wheel-stage{margin:10px 0 20px}
.ww-shortcode-cta a{display:inline-flex;align-items:center;justify-content:center;padding:12px 18px;border-radius:999px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.18);text-decoration:none;font-weight:700}
.ww-social-links{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin-top:18px}
.ww-social-links a{display:inline-flex;align-items:center;padding:8px 12px;border-radius:999px;background:rgba(255,255,255,.12);text-decoration:none}
.ww-result-card{display:grid;gap:12px;justify-items:center;padding:18px 16px;border-radius:22px;background:linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.1));border:1px solid rgba(255,255,255,.18);box-shadow:0 12px 28px rgba(0,0,0,.16)}
.ww-result-kicker{display:inline-flex;padding:6px 10px;border-radius:999px;background:rgba(255,255,255,.16);font-size:12px;font-weight:700;letter-spacing:.05em;text-transform:uppercase}
.ww-result-media{width:104px;height:104px;border-radius:22px;overflow:hidden;background:#fff;display:grid;place-items:center;box-shadow:0 10px 22px rgba(0,0,0,.16)}
.ww-result-media img{width:100%;height:100%;object-fit:cover}
.ww-result-name{font-size:24px;line-height:1.1}
.ww-result-modal[hidden]{display:none!important}
.ww-result-modal{position:fixed;inset:0;z-index:99999;display:grid;place-items:center;padding:20px}
.ww-result-modal__backdrop{position:absolute;inset:0;background:rgba(10,15,30,.62);backdrop-filter:blur(4px)}
.ww-result-modal__dialog{position:relative;z-index:1;width:min(460px,100%);padding:22px;border-radius:28px;background:linear-gradient(180deg,#131c33,#1e2b4f);color:#fff;box-shadow:0 24px 60px rgba(0,0,0,.34)}
.ww-result-modal__close{position:absolute;top:12px;right:12px;width:38px;height:38px;border-radius:999px;border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.08);color:#fff;font-size:24px;line-height:1;cursor:pointer}
.ww-result-modal__content .ww-result-card{background:transparent;border:0;box-shadow:none;padding:12px 4px 4px}
body.ww-modal-open{overflow:hidden}

.ww-hp-field{position:absolute!important;left:-9999px!important;top:auto!important;width:1px!important;height:1px!important;overflow:hidden!important;opacity:0!important;pointer-events:none!important}
.ww-result-badge{display:inline-flex;align-items:center;justify-content:center;margin:8px auto 12px;padding:7px 12px;border-radius:999px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.14);font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase}
.ww-result-copy{margin:10px 0 0;color:rgba(255,255,255,.82);font-size:14px;line-height:1.5}
.ww-result-code-placeholder,.ww-result-code{margin-top:16px;padding:14px 16px;border-radius:16px;background:rgba(255,255,255,.08);border:1px dashed rgba(255,255,255,.24);font-weight:800;font-size:20px;letter-spacing:.08em;text-align:center}
.ww-result-code{background:linear-gradient(180deg,rgba(255,255,255,.14),rgba(255,255,255,.08));border-style:solid}


/* ================================
   V4.0.2 dashboard alignment
   ================================ */
.ww-dashboard-table-wrap {
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: 22px;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 14px 34px rgba(15,23,42,0.08);
}

.ww-dashboard-table {
  min-width: 940px;
  border-collapse: separate;
  border-spacing: 0;
}

.ww-dashboard-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8fafc;
  color: #334155;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
  border-bottom: 1px solid rgba(15,23,42,0.08);
}

.ww-dashboard-table tbody tr:nth-child(even) {
  background: rgba(248,250,252,0.68);
}

.ww-dashboard-table tbody tr:hover {
  background: rgba(239,246,255,0.72);
}


.ww-dashboard-table td {
  color: #0f172a;
}

.ww-dashboard-contact {
  color: #0f172a;
  font-weight: 500;
}

.ww-dashboard-table td a {
  color: #2563eb;
}

.ww-dashboard-name {
  font-weight: 700;
  color: #0f172a;
}

.ww-dashboard-email {
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
}

.ww-dashboard-email:hover {
  text-decoration: underline;
}

.ww-dashboard-prize {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 700;
  white-space: nowrap;
}

.ww-dashboard-code {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 12px;
  background: #0f172a;
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
}

.ww-dashboard-date {
  white-space: nowrap;
  color: #334155;
  font-weight: 600;
}

@media (max-width: 640px) {
  .ww-dashboard-table-wrap {
    border-radius: 18px;
  }
}

/* ================================
   V4.0.3 dashboard controls
   ================================ */
.ww-dashboard-filters {
  margin: 0 0 18px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(15,23,42,0.08);
  box-shadow: 0 10px 26px rgba(15,23,42,0.06);
}

.ww-dashboard-filter-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.ww-dashboard-filters label span {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #64748b;
}

.ww-dashboard-filters input,
.ww-dashboard-filters select,
.ww-dashboard-status-select {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(148,163,184,0.45);
  border-radius: 12px;
  background: #fff;
  padding: 10px 12px;
  color: #0f172a;
  font-size: 14px;
}

.ww-dashboard-filter-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.ww-dashboard-filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.35);
  background: #fff;
  text-decoration: none;
  color: #0f172a;
  font-weight: 700;
}

.ww-dashboard-filter-btn--primary {
  background: #0f172a;
  color: #fff;
  border-color: #0f172a;
}

.ww-dashboard-status-wrap {
  display: grid;
  gap: 6px;
}

.ww-dashboard-status-select.is-yes {
  border-color: #86efac;
  background: #f0fdf4;
  color: #166534;
}

.ww-dashboard-status-select.is-no {
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

.ww-dashboard-status-feedback {
  min-height: 16px;
  font-size: 12px;
  color: #64748b;
}

.ww-dashboard-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

.ww-dashboard-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(15,23,42,0.08);
  color: #0f172a;
  text-decoration: none;
  font-weight: 700;
}

.ww-dashboard-page--current {
  background: #0f172a;
  color: #fff;
  border-color: #0f172a;
}

@media (max-width: 960px) {
  .ww-dashboard-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .ww-dashboard-filter-grid {
    grid-template-columns: 1fr;
  }

  .ww-dashboard-filter-actions,
  .ww-dashboard-pagination {
    flex-direction: column;
    align-items: stretch;
  }
}
