/* Itemsatis raffle listing — V6.6 */
.section-banner {
  background: linear-gradient(90deg,#ff3b12,#ff9700);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:11px 14px;
  border-radius:8px;
  box-shadow:0 5px 16px rgba(255,101,0,.18);
}
.section-banner .banner-title{font-size:15px;font-weight:800;color:#fff}

.raffles-shell{max-width:1080px;margin:0 auto}.raffles-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.raffle-list-card{
  background:#fff;
  color:#171b24;
  border:1px solid #e7e9ee;
  border-radius:14px;
  padding:16px;
  box-shadow:0 8px 26px rgba(20,31,51,.06);
  min-width:0;
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;
}
.raffle-list-card:hover{transform:translateY(-2px);box-shadow:0 14px 34px rgba(20,31,51,.10);border-color:#ffd1b4}
.raffle-card-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.raffle-publisher{display:flex;align-items:center;gap:11px;min-width:0}
.raffle-publisher img{width:48px;height:48px;border-radius:12px;object-fit:cover;border:1px solid #eceef2;background:#f6f7f9}
.raffle-publisher strong{display:block;font-size:14px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.raffle-publisher span{display:block;font-size:11px;color:#788191;margin-top:2px}
.raffle-state{flex:none;border-radius:7px;padding:6px 9px;font-size:10px;font-weight:900;letter-spacing:.3px;color:#fff}
.raffle-state.is-active{background:#20b15a}.raffle-state.is-ended{background:#14b8c9}
.raffle-list-title{font-size:15px;font-weight:800;margin:15px 0 4px;overflow-wrap:anywhere;color:#171b24}
.raffle-list-subtitle{font-size:11px;color:#758091;margin:0 0 12px}
.raffle-mini-products{display:flex;align-items:center;gap:6px;min-height:42px;margin-bottom:14px}
.raffle-mini-products img{width:38px;height:38px;border-radius:8px;object-fit:cover;border:1px solid #e5e7eb;background:#f7f8fa}
.raffle-more-products{width:38px;height:38px;border-radius:8px;display:grid;place-items:center;background:#fff3e9;color:#ff6500;font-size:11px;font-weight:800;border:1px solid #ffd9bd}
.raffle-metrics{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:16px 0}
.raffle-metric{border-radius:10px;padding:12px 13px;color:#fff;min-width:0}
.raffle-metric span{display:block;font-size:10px;font-weight:800;opacity:.95;margin-bottom:2px}
.raffle-metric strong{display:block;font-size:16px;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.raffle-value-metric{background:#42b74d}.raffle-count-metric{background:#2699e8}
.raffle-time-area{min-height:58px;display:flex;align-items:center;justify-content:center;flex-direction:column;margin:4px 0 14px}
.raffle-time-label{font-size:11px;color:#7a8493;font-weight:700;margin-bottom:6px}
.countdown-timer{display:flex;gap:7px;justify-content:center;margin:0}
.time-box{background:#f7f8fa;border:1px solid #e5e8ed;border-radius:8px;padding:5px 9px;text-align:center;min-width:52px;box-shadow:none}
.time-value{display:block;font-size:14px;font-weight:900;color:#171b24}.time-label{font-size:9px;color:#7d8795}
.raffle-ended-copy{color:#ef3d48;font-size:13px;font-weight:800}
.raffle-card-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.raffle-card-actions form{margin:0}
.raffle-detail-btn,.raffle-join-btn{width:100%;height:38px;border-radius:7px;display:flex;align-items:center;justify-content:center;gap:7px;font-size:12px;font-weight:800;text-decoration:none;border:0;transition:filter .18s ease,transform .18s ease}
.raffle-detail-btn{background:#ff6500;color:#fff}.raffle-detail-btn:hover{color:#fff;filter:brightness(.94)}
.raffle-join-btn{background:#61c97a;color:#fff}.raffle-join-btn:disabled{opacity:.55;cursor:not-allowed}.raffle-join-btn:not(:disabled):hover{filter:brightness(.94)}
.raffle-detail-btn:active,.raffle-join-btn:not(:disabled):active{transform:scale(.98)}
.raffle-empty{min-height:180px;display:flex;align-items:center;justify-content:center;gap:10px;background:#fff;border:1px solid #e7e9ee;border-radius:14px;color:#737d8d}

html[data-theme="dark"] .raffle-list-card,html[data-theme="dark"] .raffle-empty{background:#111b2e!important;color:#f5f7fb!important;border-color:#2b3a53!important;box-shadow:0 14px 34px rgba(0,0,0,.22)}
html[data-theme="dark"] .raffle-list-title,html[data-theme="dark"] .raffle-publisher strong{color:#f5f7fb!important}
html[data-theme="dark"] .raffle-publisher span,html[data-theme="dark"] .raffle-list-subtitle,html[data-theme="dark"] .raffle-time-label{color:#aab5c5!important}
html[data-theme="dark"] .raffle-mini-products img{border-color:#33445f;background:#17243a}
html[data-theme="dark"] .raffle-more-products{background:#2a1b13;color:#ff9a55;border-color:#654024}
html[data-theme="dark"] .time-box{background:#17243a!important;border-color:#33445f!important}
html[data-theme="dark"] .time-value{color:#f5f7fb!important}html[data-theme="dark"] .time-label{color:#aab5c5!important}

@media(max-width:767.98px){.raffles-grid{grid-template-columns:1fr;gap:14px}.raffle-list-card{padding:14px}.raffle-metrics{gap:8px}.raffle-card-actions{grid-template-columns:1fr}.raffle-card-actions form{width:100%}}

.raffle-pagination{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;margin-top:24px}.raffle-pagination a,.raffle-pagination span{min-width:38px;height:38px;padding:0 10px;border-radius:10px;display:flex;align-items:center;justify-content:center;text-decoration:none;font-weight:800}.raffle-pagination a{background:#fff;border:1px solid #e3e8ef;color:#273140}.raffle-pagination a.active{background:#ff6500;border-color:#ff6500;color:#fff}.raffle-pagination a.disabled{opacity:.45;pointer-events:none}.raffle-pagination span{color:#7f8898}html[data-theme="dark"] .raffle-pagination a{background:#111b2e!important;border-color:#2b3a53!important;color:#eef3fb!important}html[data-theme="dark"] .raffle-pagination a.active{background:#ff6500!important;border-color:#ff6500!important;color:#fff!important}html[data-theme="dark"] .raffle-pagination span{color:#aab5c5!important}
