:root {
  --cp-bg: #f4f4f4;
  --cp-green: #20a960;
  --cp-green-dark: #188e55;
  --cp-header: #0b0b0b;
  --cp-max: 480px;
  --cp-font: "DM Sans", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--cp-bg);
  font-family: var(--cp-font);
  color: #111;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

.cp-header {
  background: var(--cp-header);
  color: #fff;
  position: sticky; top: 0; z-index: 40;
}
.cp-header-inner {
  max-width: var(--cp-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 44px 1fr 72px;
  align-items: center;
  padding: 10px 14px;
  gap: 8px;
}
.cp-icon-btn {
  width: 40px; height: 40px; border: 0; background: transparent; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 22px; cursor: pointer;
}
.cp-logo { display:flex; justify-content:center; }
.cp-logo img { max-height: 42px; max-width: 210px; object-fit: contain; }
.cp-support {
  display: inline-flex; align-items: center; justify-content: flex-end; gap: 6px;
  color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap;
}

.cp-main {
  max-width: var(--cp-max);
  margin: 0 auto;
  padding: 12px 14px 40px;
}

.cp-hero {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  margin-bottom: 14px;
}
.cp-hero-media { position: relative; background: #111; }
.cp-hero-media img {
  display: block; width: 100%; aspect-ratio: 1/1; object-fit: cover;
}
.cp-badge-live {
  position: absolute; left: 12px; bottom: 12px;
  background: #e11d48; color: #fff;
  font-size: 12px; font-weight: 800;
  padding: 6px 10px; border-radius: 8px;
  display: inline-flex; align-items: center; gap: 6px;
}
.cp-live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #fff;
  animation: cp-pulse 1.4s infinite;
}
@keyframes cp-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,255,255,.7); }
  70% { box-shadow: 0 0 0 8px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}
.cp-hero-body { padding: 14px; }
.cp-title { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.cp-sub { margin: 4px 0 0; font-size: 12px; font-weight: 700; color: #9aa0a6; text-transform: uppercase; }
.cp-progress-wrap { margin-top: 12px; }
.cp-progress-meta {
  display: flex; justify-content: space-between; font-size: 12px; color: #6b7280; margin-bottom: 6px;
}
.cp-progress {
  background: #e9ecef; border-radius: 999px; height: 10px; overflow: hidden;
}
.cp-progress > span {
  display: block; height: 100%;
  background: linear-gradient(90deg, #28b866, #1f9d57);
  border-radius: 999px;
}

.cp-packages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 14px 0 12px;
}
.cp-pack {
  position: relative;
  background: #111; color: #fff;
  border: 0; border-radius: 12px;
  padding: 12px 8px 10px;
  text-align: center; cursor: pointer;
  font-family: inherit;
}
.cp-pack strong { display: block; font-size: 20px; font-weight: 800; line-height: 1.1; }
.cp-pack small { display: block; margin-top: 4px; font-size: 11px; opacity: .85; font-weight: 600; }
.cp-pack.active { outline: 2px solid var(--cp-green); }
.cp-pack .popular {
  position: absolute; top: -8px; left: 50%; transform: translateX(-50%);
  background: var(--cp-green); color: #fff;
  font-size: 10px; font-weight: 800;
  padding: 2px 8px; border-radius: 999px; white-space: nowrap;
}

.cp-qty {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-bottom: 12px;
}
.cp-qty button {
  width: 42px; height: 42px; border: 0; border-radius: 10px;
  background: #e5e7eb; color: #111; font-size: 22px; font-weight: 700; cursor: pointer;
}
.cp-qty input {
  width: 110px; height: 42px; border: 0; border-radius: 10px;
  background: #e5e7eb; text-align: center; font-size: 18px; font-weight: 700;
}

.cp-buy {
  width: 100%; border: 0; border-radius: 12px;
  background: linear-gradient(180deg, #28b866 0%, #1f9d57 100%);
  color: #fff;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px; cursor: pointer;
  box-shadow: 0 8px 18px rgba(32,169,96,.28);
  font-family: inherit;
}
.cp-buy-left { display: flex; align-items: center; gap: 10px; text-align: left; }
.cp-buy-icon {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.18);
  display: inline-flex; align-items: center; justify-content: center;
}
.cp-buy-text strong { display: block; font-size: 16px; font-weight: 800; line-height: 1.1; }
.cp-buy-text small { display: block; font-size: 11px; opacity: .92; }
.cp-buy-price {
  background: rgba(255,255,255,.16); border-radius: 10px;
  padding: 8px 10px; font-weight: 800; font-size: 15px; white-space: nowrap;
}
.cp-min-note { margin-top: 8px; font-size: 12px; color: #6b7280; text-align: center; }

.cp-accordion {
  margin-top: 14px; background: #fff; border-radius: 14px; overflow: hidden;
}
.cp-accordion summary {
  list-style: none; cursor: pointer;
  padding: 14px; font-weight: 700; font-size: 14px;
  display: flex; justify-content: space-between; align-items: center;
}
.cp-accordion summary::-webkit-details-marker { display: none; }
.cp-accordion .body {
  padding: 0 14px 14px; color: #4b5563; font-size: 13px; line-height: 1.5;
  white-space: pre-wrap;
}

.cp-prizes {
  margin-top: 16px; background: #fff; border-radius: 16px; padding: 14px;
}
.cp-prizes-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 10px;
  margin-bottom: 12px;
}
.cp-prizes-head h2 {
  margin: 0; font-size: 18px; font-weight: 800;
  display: flex; align-items: center; gap: 8px;
}
.cp-prizes-head h2 i { color: #eab308; }
.cp-prizes-head p { margin: 4px 0 0; font-size: 12px; color: #6b7280; }
.cp-total-box {
  background: #2563eb; color: #fff;
  border-radius: 10px; padding: 8px 10px; text-align: center; min-width: 70px;
}
.cp-total-box small { display: block; font-size: 10px; opacity: .9; }
.cp-total-box strong { font-size: 18px; }

.cp-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.cp-tab {
  border: 0; border-radius: 10px; padding: 10px; font-weight: 800; font-size: 13px;
  cursor: pointer; font-family: inherit; color: #fff;
}
.cp-tab.disp { background: #14b8a6; }
.cp-tab.sort { background: #fb7185; }
.cp-tab.inactive { opacity: .55; }

.cp-prize-row {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  gap: 10px; align-items: center;
  background: #f8fafc;
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 8px;
}
.cp-prize-row.drawn { background: #e8f5e9; }
.cp-prize-num {
  background: #334155; color: #fff;
  border-radius: 10px; padding: 10px 8px;
  text-align: center; font-weight: 800; font-size: 14px;
}
.cp-prize-desc { font-weight: 700; font-size: 14px; }
.cp-prize-status { font-size: 12px; font-weight: 700; color: #64748b; }
.cp-prize-row.drawn .cp-prize-status { color: #15803d; display: flex; align-items: center; gap: 4px; }

.cp-footer {
  margin-top: 18px; text-align: center; color: #6b7280; font-size: 11px;
}
.cp-age {
  display: inline-block; background: #e9ecef; border-radius: 999px;
  padding: 6px 12px; font-weight: 600; margin-bottom: 8px;
}

.cp-drawer { position: fixed; inset: 0; z-index: 100; display: none; }
.cp-drawer.open { display: block; }
.cp-drawer-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.cp-drawer-panel {
  position: absolute; top: 0; left: 0; bottom: 0; width: min(320px, 86vw);
  background: #0b0b0b; color: #fff; padding: 18px 16px;
}
.cp-drawer-panel a {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 8px; color: #fff; border-bottom: 1px solid rgba(255,255,255,.08); font-weight: 600;
}
