:root {
  --brand-orange: #ee4d2d;
  --brand-orange-light: #ff6b35;
  --brand-orange-dark: #c83214;
  --brand-gold: #ffb800;
  --brand-gold-light: #ffe899;
  --brand-green: #00a86b;
  --brand-green-dark: #007f50;
  --sheet-bg: #f5f6fa;
  --card-white: #ffffff;
  --text-dark: #111827;
  --text-body: #374151;
  --text-muted: #6b7280;
  --border-subtle: #e5e7eb;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  min-height: 100%;
  background-color: var(--sheet-bg);
  color: var(--text-dark);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
  user-select: none;
}

.confetti-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 200;
}

.campaign-wrapper {
  max-width: 460px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--sheet-bg);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
}

/* ================= TOP ORANGE COMMERCIAL HERO STAGE ================= */
.hero-stage {
  position: relative;
  background: linear-gradient(180deg, #e5391a 0%, #ee4d2d 42%, #ff7a2f 100%);
  padding: 12px 16px 38px;
  border-bottom-left-radius: 28px;
  border-bottom-right-radius: 28px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(238, 77, 45, 0.22);
}

.hero-rays {
  position: absolute;
  top: 52%;
  left: 50%;
  width: 680px;
  height: 680px;
  margin-left: -340px;
  margin-top: -340px;
  background: repeating-conic-gradient(
    from 0deg,
    rgba(255, 255, 255, 0.07) 0deg 10deg,
    transparent 10deg 20deg
  );
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

/* App Navbar */
.app-navbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.merchant-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  max-width: 58%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.icon-verified {
  width: 14px;
  height: 14px;
  color: #4ade80;
  flex-shrink: 0;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lang-segmented {
  display: inline-flex;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 2px;
  border-radius: 999px;
}

.lang-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  font-family: inherit;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s;
}

.lang-btn.active {
  background: #ffffff;
  color: var(--brand-orange);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.sound-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(0, 0, 0, 0.22);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Activity Ticker Pill */
.activity-pill-bar {
  position: relative;
  z-index: 2;
  background: rgba(153, 27, 10, 0.42);
  border: 1px solid rgba(255, 232, 153, 0.35);
  border-radius: 999px;
  padding: 4px 10px 4px 5px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.live-tag {
  background: #ffeb3b;
  color: #991b0a;
  font-size: 10px;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 999px;
  letter-spacing: 0.4px;
  flex-shrink: 0;
}

.ticker-viewport {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-track {
  display: inline-flex;
  gap: 32px;
  font-size: 12px;
  color: #ffffff;
  animation: tickerScroll 22s linear infinite;
}

.ticker-track b {
  color: #ffe885;
  font-weight: 800;
}

@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Campaign Title */
.campaign-heading {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-bottom: 12px;
}

.campaign-sub-pill {
  display: inline-block;
  background: #fff3b0;
  color: #b4290f;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.8px;
  padding: 3px 12px;
  border-radius: 999px;
  margin-bottom: 6px;
  box-shadow: 0 2px 6px rgba(138, 28, 7, 0.25);
}

.campaign-title {
  font-size: 24px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.3px;
  line-height: 1.18;
  text-shadow: 0 2px 0 #b8290e, 0 4px 10px rgba(120, 22, 5, 0.35);
  margin-bottom: 4px;
}

.campaign-desc {
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.94);
}

/* ================= PHYSICAL COMMERCIAL SPIN WHEEL ================= */
.wheel-container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 4px;
}

.wheel-stopper {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  transform-origin: 50% 16px;
  transition: transform 0.07s ease-out;
}

.wheel-stopper.tick {
  transform: translateX(-50%) rotate(-18deg);
}

.wheel-outer-frame {
  position: relative;
  width: 318px;
  height: 318px;
  border-radius: 50%;
  padding: 15px;
  background: linear-gradient(180deg, #ffca28 0%, #ff8f00 50%, #d84315 100%);
  box-shadow:
    0 10px 0 #9f2409,
    0 16px 32px rgba(95, 18, 4, 0.45),
    inset 0 2px 4px rgba(255, 255, 255, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.wheel-outer-frame::before {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 9px solid #c62828;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.led-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 15;
}

.led-bulb {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  margin: -4px 0 0 -4px;
  background: #ffffff;
  border: 1.5px solid #ffb300;
  box-shadow: 0 0 6px #fff59d;
  transition: opacity 0.2s, transform 0.2s;
}

.led-bulb.alt {
  background: #ffeb3b;
  border-color: #ff6f00;
}

.led-bulb.dim {
  opacity: 0.4;
  transform: scale(0.82);
  box-shadow: none;
}

.wheel-inner-lip {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 4px solid #ffd54f;
  overflow: hidden;
  background: #fffdf9;
  box-shadow: inset 0 0 12px rgba(180, 45, 15, 0.22);
  z-index: 10;
}

#wheelCanvas {
  width: 100%;
  height: 100%;
  display: block;
  will-change: transform;
}

/* Center 3D Tactile SPIN Button */
.center-spin-btn {
  position: absolute;
  z-index: 25;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  border: 4px solid #ffffff;
  padding: 0;
  background: linear-gradient(180deg, #ffe57f 0%, #ffb300 55%, #e65100 100%);
  box-shadow:
    0 5px 0 #992600,
    0 8px 16px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.1s;
}

.center-spin-btn:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #992600, 0 4px 8px rgba(0, 0, 0, 0.3);
}

.center-btn-face {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 25%, #ff6d3f 0%, #e5391a 70%, #b71c1c 100%);
  border: 2px solid #ffe082;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.center-btn-face strong {
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.4px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.center-btn-face small {
  font-size: 9px;
  font-weight: 800;
  color: #ffecb3;
  margin-top: 2px;
  letter-spacing: 0.5px;
}

/* 3D Trapezoid Stand Base */
.wheel-base-stand {
  position: relative;
  z-index: 5;
  margin-top: -10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stand-neck {
  width: 110px;
  height: 18px;
  background: linear-gradient(90deg, #991b0a 0%, #d84315 50%, #991b0a 100%);
  clip-path: polygon(12% 0%, 88% 0%, 100% 100%, 0% 100%);
}

.stand-platform {
  width: 210px;
  height: 26px;
  background: linear-gradient(180deg, #ffd54f 0%, #ff9800 100%);
  border: 2px solid #ffffff;
  border-radius: 999px;
  box-shadow: 0 4px 0 #992600, 0 6px 14px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stand-platform span {
  font-size: 10px;
  font-weight: 900;
  color: #7f1d06;
  letter-spacing: 0.8px;
}

/* ================= BOTTOM WHITE CARDS SHEET ================= */
.content-sheet {
  position: relative;
  z-index: 10;
  margin-top: -18px;
  padding: 0 14px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.white-card {
  background: var(--card-white);
  border-radius: 16px;
  border: 1px solid #eceef4;
  box-shadow: 0 4px 16px rgba(17, 24, 39, 0.06);
  padding: 14px 16px;
}

.spin-control-card {
  border-color: #ffd8cc;
  box-shadow: 0 6px 20px rgba(238, 77, 45, 0.1);
}

.chance-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.chance-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ticket-svg-wrap {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #fff2ed;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chance-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-body);
}

.chance-pill {
  background: #fff4e5;
  border: 1px solid #ffd591;
  color: #d46b08;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 999px;
}

.chance-pill strong {
  font-size: 15px;
  font-weight: 900;
  color: var(--brand-orange);
}

.shopee-primary-btn {
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 14px 18px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.3px;
  color: #ffffff;
  background: linear-gradient(180deg, #ff6b35 0%, #ee4d2d 100%);
  box-shadow: 0 4px 0 #b8290e, 0 6px 16px rgba(238, 77, 45, 0.32);
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s;
}

.shopee-primary-btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #b8290e, 0 3px 8px rgba(238, 77, 45, 0.25);
}

.shopee-primary-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* Unclaimed Voucher Banner Card */
.unclaimed-voucher-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff9f5;
  border: 1.5px solid #ff9c7d;
  padding: 11px 14px;
}

.voucher-left-tag {
  background: var(--brand-orange);
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  padding: 8px 9px;
  border-radius: 8px;
  letter-spacing: 0.5px;
}

.voucher-mid-info {
  flex: 1;
}

.voucher-sub {
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-orange);
}

.voucher-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-dark);
}

.voucher-claim-btn {
  background: var(--brand-green);
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 8px 14px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

/* Verified Feed Card */
.feed-card {
  padding: 13px 14px;
}

.feed-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
}

.feed-title-group {
  display: flex;
  align-items: center;
  gap: 7px;
}

.feed-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}

.feed-title-group h3 {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--text-dark);
}

.verified-tag {
  font-size: 10.5px;
  font-weight: 700;
  color: #059669;
  background: #ecfdf5;
  padding: 2px 8px;
  border-radius: 999px;
}

.feed-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.live-feed-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  padding: 6px 9px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #f1f5f9;
}

.live-feed-user {
  font-weight: 700;
  color: var(--text-body);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.live-feed-prize {
  font-weight: 800;
  color: var(--brand-orange);
}

.live-feed-time {
  font-size: 11px;
  color: var(--text-muted);
}

/* Compliance Footer */
.compliance-footer {
  margin-top: auto;
  padding-top: 8px;
  text-align: center;
  font-size: 11px;
  color: #9ca3af;
  line-height: 1.45;
}

/* ================= VOUCHER TICKET POP-UP MODAL ================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.72);
  backdrop-filter: blur(4px);
}

.voucher-modal {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 386px;
  background: #ffffff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
  animation: modalBounceIn 0.32s cubic-bezier(0.175, 0.885, 0.32, 1.25);
}

@keyframes modalBounceIn {
  0% { transform: scale(0.82); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.modal-close-x {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.22);
  color: #ffffff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
}

.voucher-modal-top {
  position: relative;
  background: linear-gradient(135deg, #e5391a 0%, #ff6b35 100%);
  padding: 22px 18px 18px;
  text-align: center;
  color: #ffffff;
  overflow: hidden;
}

.winner-pill-badge {
  display: inline-block;
  background: #ffe885;
  color: #991b0a;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.8px;
  padding: 3px 12px;
  border-radius: 999px;
  margin-bottom: 6px;
}

.voucher-modal-title {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.3px;
  color: #ffffff;
}

/* Ticket Notch Divider */
.ticket-notch-row {
  position: relative;
  height: 20px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -10px;
  z-index: 5;
}

.notch-circle {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #272e3b;
}

.notch-left {
  left: -10px;
}

.notch-right {
  right: -10px;
}

.notch-dashed-line {
  width: calc(100% - 36px);
  border-top: 2px dashed #ffd8cc;
}

.voucher-modal-body {
  padding: 8px 18px 20px;
}

/* Won Voucher Ticket Box */
.won-voucher-ticket {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff8f5;
  border: 1.5px solid #ffc9b8;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
}

.won-voucher-graphic {
  width: 68px;
  height: 68px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ee4d2d, #ff8f00);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(238, 77, 45, 0.25);
}

.won-voucher-details {
  flex: 1;
  text-align: left;
}

.won-voucher-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 900;
  color: var(--brand-orange);
  background: #ffe8e0;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 4px;
}

.won-voucher-name {
  font-size: 17px;
  font-weight: 900;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 5px;
}

.won-voucher-verified {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #059669;
}

/* Countdown Urgency Banner */
.countdown-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  padding: 7px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
}

.countdown-clock {
  font-family: monospace;
  font-size: 14px;
  font-weight: 900;
  background: #dc2626;
  color: #ffffff;
  padding: 1px 7px;
  border-radius: 5px;
}

.voucher-modal-desc {
  text-align: center;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* Two Commercial CTA Buttons */
.cta-buttons-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.commercial-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  padding: 12px 14px;
  border-radius: 13px;
  color: #ffffff;
  transition: transform 0.1s;
}

.commercial-btn:active {
  transform: scale(0.98);
}

.btn-cs-claim {
  background: linear-gradient(135deg, #00b374 0%, #00875a 100%);
  box-shadow: 0 4px 14px rgba(0, 168, 107, 0.3);
}

.btn-web-register {
  background: linear-gradient(135deg, #ff6b35 0%, #ee4d2d 100%);
  box-shadow: 0 4px 14px rgba(238, 77, 45, 0.32);
}

.btn-icon-circle {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.btn-label-col {
  flex: 1;
  text-align: left;
  display: flex;
  flex-direction: column;
}

.btn-main-title {
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
}

.btn-sub-caption {
  font-size: 11px;
  opacity: 0.9;
  font-weight: 600;
  margin-top: 2px;
}

.btn-arrow {
  font-size: 18px;
  font-weight: 900;
  opacity: 0.9;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #111827;
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  z-index: 250;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.hidden {
  display: none !important;
}
