.frw-spin-wrap{display:grid;gap:1rem;justify-items:center;align-items:center}
.frw-wheel{max-width:560px;width:100%;aspect-ratio:1/1;position:relative}
.frw-wheel-svg{width:100%;height:100%}
.frw-rotor{transform:rotate(var(--frw-rotate, 0deg));transform-origin:50% 50%;transition:transform 6.4s cubic-bezier(0.1,0.8,0.2,1)}
.frw-wheel-bg{fill:#f8fafc;stroke:#e5e7eb;stroke-width:2}
.frw-slice{stroke:#ffffff;stroke-width:1}
.frw-slice-even{fill:#e2e8f0}
.frw-slice-odd{fill:#cbd5e1}
.frw-slice-text{font: 600 14px/1.2 system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif; fill:#0f172a}
.frw-wheel-hub{fill:#C62C83;stroke:#0284c7;stroke-width:3}
.frw-pointer{fill:#C62C83;stroke:#b91c1c;stroke-width:2;transform-origin:100% 50%}
.frw-spin-ctrl{display:flex;flex-direction:column;gap:.5rem;align-items:center}
.frw-spin-btn{background:#C62C83;color:white;border:none;border-radius:999px;padding:.75rem 1.5rem;font-weight:700;cursor:pointer;box-shadow:0 6px 16px rgba(2,132,199,.3)}
.frw-spin-btn:disabled{opacity:.6;cursor:not-allowed}
.frw-countdown{font:500 14px system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;color:#334155}
.frw-result{font:700 16px system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;color:#111827}
.frw-spin-notice{padding:.5rem 1rem;border-radius:.5rem}
.frw-error{background:#fee2e2;color:#991b1b}
.frw-info{background:#e0f2fe;color:#075985}

/* mobile readability */
@media (max-width:480px){
  .frw-slice-text{font-size:12px}
}


/* pointer push/bounce effect */
@keyframes frdp-pointer-push {
  0% { transform: translateX(0); }
  60% { transform: translateX(-8px); }
  100% { transform: translateX(0); }
}
.frw-pointer.frw-push {
  animation: frdp-pointer-push 320ms ease-out;
}

.frw-success{color:#16a34a}


.frw-history-table-wrap {
    margin: 20px auto;
    max-width: 700px;
}
.frw-history-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}
.frw-history-table thead {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
}
.frw-history-table th,
.frw-history-table td {
    padding: 12px 14px;
    text-align: left;
    font-size: 14px;
}
.frw-history-table tbody tr:nth-child(even) {
    background: #f8fafc;
}
.frw-history-table tbody tr:hover {
    background: #eef2ff;
}


.frw-history-table-wrap,
.frw-coupons-table-wrap {
    margin: 20px auto;
    max-width: 900px;
}
.frw-history-table,
.frw-coupons-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(198, 44, 131, 0.15);
}
.frw-history-table thead,
.frw-coupons-table thead {
    background: #c62c83;
    color: #fff;
}
.frw-history-table th,
.frw-history-table td,
.frw-coupons-table th,
.frw-coupons-table td {
    padding: 12px 14px;
    text-align: left;
    font-size: 14px;
}
.frw-history-table tbody tr:nth-child(even),
.frw-coupons-table tbody tr:nth-child(even) {
    background: #fff5fa;
}
.frw-history-table tbody tr:hover,
.frw-coupons-table tbody tr:hover {
    background: #ffe6f2;
}
.frw-copy-btn {
    background: #c62c83;
    border: none;
    color: #fff;
    padding: 5px 10px;
    border-radius: 50px;
    font-size: 12px;
    cursor: pointer;
}
.frw-copy-btn:hover {
    background: #a9226b;
}
.frw-show-all {
    margin-top: 10px;
    background: #fff;
    border: 1px solid #c62c83;
    color: #c62c83;
    padding: 6px 14px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
}
.frw-show-all:hover {
    background: #c62c83;
    color: #fff;
}


.frw-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
}
.frw-popup {
    background: #fff;
    border-radius: 14px;
    padding: 20px 22px 16px;
    max-width: 380px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    position: relative;
}
.frw-popup h3 {
    margin-top: 0;
    font-size: 18px;
    color: #c62c83;
}
.frw-popup p {
    margin-bottom: 14px;
}
.frw-popup-close {
    position: absolute;
    top: 6px;
    right: 8px;
    border: none;
    background: transparent;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}


.frw-del-prize {
    background: transparent;
    border: none;
    color: #c62c83;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    margin-left: 6px;
}
.frw-del-prize:hover {
    color: #a9226b;
}


.frw-popup-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 16px;
    background: #c62c83;
    color: #fff !important;
    text-decoration: none;
    border-radius: 9999px;
    font-weight: 600;
    transition: background 0.25s ease;
}
.frw-popup-btn:hover {
    background: #a9226b;
}

.frw-wheel-hub {
    fill: #000000;
}
.frw-spin-btn {
    transition: transform .15s ease, box-shadow .15s ease;
}
.frw-spin-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(198,44,131,0.35);
}

/* Prevent countdown layout shift on mobile: force single-line, tabular numerals, and reserve height */
#frw-countdown, .frw-countdown {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  min-height: 1.4em;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 480px){
  #frw-countdown, .frw-countdown { font-size: 14px; }
}

/* Anti-blink for countdown updates */
#frw-countdown, .frw-countdown {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  -webkit-font-smoothing: antialiased;
  backface-visibility: hidden;
  transform: translateZ(0);
  will-change: contents;
  transition: none !important;
}
