/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --wheel-size: clamp(300px, 82vw, 460px);
}

body{
  background:
    radial-gradient(1100px 700px at 18% 22%, rgba(110,60,255,.25), transparent 60%),
    radial-gradient(900px 600px at 80% 30%, rgba(0,190,255,.18), transparent 62%),
    radial-gradient(750px 520px at 55% 88%, rgba(255,90,180,.14), transparent 60%),
    linear-gradient(180deg, #040414 0%, #090725 55%, #05010c 100%);
  overflow-x: hidden;
  position: relative;
}

body::before{
  content:"";
  position: fixed;
  inset:0;
  pointer-events:none;
  z-index:-2;

  /* Layer 1: small stars (padat) */
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,.95) 60%, transparent 61%),
    radial-gradient(1px 1px at 22% 78%, rgba(255,255,255,.75) 60%, transparent 61%),
    radial-gradient(1px 1px at 35% 35%, rgba(255,255,255,.90) 60%, transparent 61%),
    radial-gradient(1px 1px at 48% 85%, rgba(255,255,255,.70) 60%, transparent 61%),
    radial-gradient(1px 1px at 62% 25%, rgba(255,255,255,.88) 60%, transparent 61%),
    radial-gradient(1px 1px at 78% 68%, rgba(255,255,255,.80) 60%, transparent 61%),
    radial-gradient(1px 1px at 88% 40%, rgba(255,255,255,.85) 60%, transparent 61%),

    /* Layer 2: bigger stars (lebih “kelihatan”) */
    radial-gradient(2px 2px at 30% 15%, rgba(255,255,255,.55) 60%, transparent 61%),
    radial-gradient(2px 2px at 70% 22%, rgba(255,255,255,.45) 60%, transparent 61%),
    radial-gradient(2px 2px at 18% 55%, rgba(255,255,255,.35) 60%, transparent 61%),
    radial-gradient(2px 2px at 64% 82%, rgba(255,255,255,.40) 60%, transparent 61%);

  /* bikin bintang “nyala” */
  filter:
    drop-shadow(0 0 10px rgba(255,255,255,.18))
    drop-shadow(0 0 26px rgba(120,180,255,.10));

  opacity: 1;
  animation: starDrift 22s linear infinite, starTwinkle 5.5s ease-in-out infinite;
}

@keyframes starDrift{
  0%   { transform: translate3d(0,0,0); }
  100% { transform: translate3d(-18px, 24px, 0); } /* gerak halus */
}

@keyframes starTwinkle{
  0%,100%{ opacity:.75; }
  50%{ opacity:1; }
}


.galaxy-dust{
  position: fixed;
  inset:-30%;
  z-index:-1;
  pointer-events:none;
  background:
    radial-gradient(120px 120px at 20% 30%, rgba(255,255,255,.08), transparent 60%),
    radial-gradient(160px 160px at 75% 35%, rgba(0,200,255,.10), transparent 60%),
    radial-gradient(140px 140px at 55% 80%, rgba(180,90,255,.10), transparent 60%),
    radial-gradient(180px 180px at 35% 75%, rgba(255,90,180,.08), transparent 60%);
  filter: blur(18px);
  animation: dustFloat 14s ease-in-out infinite;
}
/* Parallax layer tambahan */
html::before{
  content:"";
  position: fixed;
  inset:0;
  pointer-events:none;
  z-index:-3;

  background:
    radial-gradient(1px 1px at 12% 30%, rgba(255,255,255,.45) 60%, transparent 61%),
    radial-gradient(1px 1px at 40% 12%, rgba(255,255,255,.35) 60%, transparent 61%),
    radial-gradient(1px 1px at 55% 55%, rgba(255,255,255,.38) 60%, transparent 61%),
    radial-gradient(1px 1px at 85% 25%, rgba(255,255,255,.30) 60%, transparent 61%);

  filter: blur(.2px);
  opacity: .7;
  animation: starDrift2 34s linear infinite;
}

@keyframes starDrift2{
  0%   { transform: translate3d(0,0,0); }
  100% { transform: translate3d(24px, -18px, 0); } /* arah beda => depth */
}

.shooting-star{
  position: fixed;
  top: 12%;
  left: -20%;
  width: 220px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.9), transparent);
  filter: drop-shadow(0 0 10px rgba(255,255,255,.35));
  transform: rotate(12deg);
  opacity: 0;
  z-index:-1;
  pointer-events:none;
  animation: shoot 6.5s linear infinite;
}

@keyframes shoot{
  0%,70%{ opacity:0; transform: translateX(0) rotate(12deg); }
  75%{ opacity:1; }
  100%{ opacity:0; transform: translateX(160vw) rotate(12deg); }
}


@keyframes dustFloat{
  0%,100%{ transform: translate(-1%, -1%) scale(1); }
  50%{ transform: translate(2%, 1.5%) scale(1.03); }
}


@keyframes starTwinkle{
  0%,100%{ opacity:.75; transform: translateY(0); }
  50%{ opacity:1; transform: translateY(-6px); }
}

.hidden {
    display: none !important;
}
/* =========================
   Loading Screen (Galaxy UI)
   ========================= */
.loading-screen{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  background: radial-gradient(900px 600px at 25% 20%, rgba(120,70,255,.20), transparent 60%),
              radial-gradient(800px 550px at 80% 35%, rgba(0,210,255,.16), transparent 62%),
              linear-gradient(180deg, #040414 0%, #090725 55%, #05010c 100%);
}

.loading-bg{
  position:absolute;
  inset:-20%;
  pointer-events:none;
}

.loading-stars{
  position:absolute;
  inset:0;
  background-image:
    radial-gradient(2px 2px at 10% 15%, rgba(255,255,255,.95) 50%, transparent 60%),
    radial-gradient(1px 1px at 22% 72%, rgba(255,255,255,.7) 50%, transparent 60%),
    radial-gradient(2px 2px at 38% 32%, rgba(255,255,255,.85) 50%, transparent 60%),
    radial-gradient(1px 1px at 55% 86%, rgba(255,255,255,.6) 50%, transparent 60%),
    radial-gradient(2px 2px at 68% 24%, rgba(255,255,255,.9) 50%, transparent 60%),
    radial-gradient(1px 1px at 83% 58%, rgba(255,255,255,.65) 50%, transparent 60%),
    radial-gradient(3px 3px at 30% 18%, rgba(255,255,255,.35) 50%, transparent 60%),
    radial-gradient(3px 3px at 72% 78%, rgba(255,255,255,.25) 50%, transparent 60%);
  filter: drop-shadow(0 0 10px rgba(255,255,255,.18));
  opacity:.95;
  animation: starsTwinkle 4.8s ease-in-out infinite, starsDrift 18s linear infinite;
}

.loading-nebula{
  position:absolute;
  inset:-10%;
  background:
    radial-gradient(260px 260px at 20% 30%, rgba(255,255,255,.09), transparent 62%),
    radial-gradient(320px 320px at 78% 32%, rgba(0,200,255,.13), transparent 60%),
    radial-gradient(280px 280px at 55% 82%, rgba(180,90,255,.13), transparent 60%),
    radial-gradient(360px 360px at 35% 75%, rgba(255,90,180,.11), transparent 62%);
  filter: blur(22px);
  animation: nebulaFloat 12s ease-in-out infinite;
  opacity: .9;
}

@keyframes starsTwinkle{
  0%,100%{ opacity:.85; }
  50%{ opacity:1; }
}
@keyframes starsDrift{
  0%{ transform: translate3d(0,0,0); }
  100%{ transform: translate3d(2.5%, -2%, 0); }
}
@keyframes nebulaFloat{
  0%,100%{ transform: translate(-1%, -1%) scale(1); }
  50%{ transform: translate(2%, 1.5%) scale(1.03); }
}

.loading-card{
  position:relative;
  width:min(680px, 92vw);
  border-radius: 22px;
  padding: 22px 22px 18px;
  background: rgba(10, 10, 30, 0.55);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 30px 80px rgba(0,0,0,0.55);
  backdrop-filter: blur(14px);
}

.loading-top{
  display:flex;
  gap: 16px;
  align-items:center;
  margin-bottom: 16px;
}

.loading-icon{
  width: 62px;
  height: 62px;
  display:grid;
  place-items:center;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(251,191,36,.25), rgba(168,85,247,.18));
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: inset 0 0 18px rgba(255,255,255,.08);
  font-size: 30px;
  animation: iconPulse 1.8s ease-in-out infinite;
}
@keyframes iconPulse{
  0%,100%{ transform: translateY(0) scale(1); }
  50%{ transform: translateY(-2px) scale(1.02); }
}

.loading-kicker{
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
  margin-bottom: 4px;
}

.loading-title{
  font-family: 'Bebas Neue', sans-serif;
  font-size: 44px;
  letter-spacing: 0.08em;
  line-height: 1;
  background: linear-gradient(to right, #fcd34d, #fbbf24, #f59e0b);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  text-shadow: 0 0 28px rgba(255,215,0,.28);
}

.loading-subtitle{
  margin-top: 8px;
  color: rgba(254,243,199,.95);
  font-weight: 600;
}

.loading-meter{
  margin-top: 16px;
}

.loading-meter-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom: 10px;
}

.loading-label{
  color: rgba(255,255,255,.72);
  font-weight: 700;
}

.loading-percent{
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: .08em;
  color: rgba(255,255,255,.9);
}

.loading-bar-wrap{
  position:relative;
  height: 12px;
  border-radius: 999px;
  overflow:hidden;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.12);
}

.loading-bar{
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #fbbf24, #ec4899, #a855f7, #22d3ee);
  box-shadow: 0 0 18px rgba(251,191,36,.25);
  transition: width .35s ease;
}

.loading-glowline{
  position:absolute;
  inset: -40px;
  background: radial-gradient(600px 120px at 20% 50%, rgba(255,255,255,.12), transparent 60%);
  animation: glowSweep 1.8s ease-in-out infinite;
  mix-blend-mode: screen;
  pointer-events:none;
}

@keyframes glowSweep{
  0%{ transform: translateX(-8%); opacity:.2; }
  50%{ transform: translateX(8%); opacity:.55; }
  100%{ transform: translateX(-8%); opacity:.2; }
}

.loading-hint{
  margin-top: 14px;
  color: rgba(255,255,255,.60);
  font-size: 13px;
}

/* Respect user motion settings */
@media (prefers-reduced-motion: reduce){
  .loading-stars, .loading-nebula, .loading-icon, .loading-glowline{
    animation: none !important;
  }
}

/* Main Container */
.main-container {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.bg-pattern {
    position: absolute;
    inset: 0;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZGVmcz48cGF0dGVybiBpZD0iZ3JpZCIgd2lkdGg9IjQwIiBoZWlnaHQ9IjQwIiBwYXR0ZXJuVW5pdHM9InVzZXJTcGFjZU9uVXNlIj48cGF0aCBkPSJNIDQwIDAgTCAwIDAgMCA0MCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSJyZ2JhKDI1NSwyNTUsMjU1LDAuMDUpIiBzdHJva2Utd2lkdGg9IjEiLz48L3BhdHRlcm4+PC9kZWZzPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjZ3JpZCkiLz48L3N2Zz4=');
    opacity: 0.3;
}

.bg-gradient-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 128px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), transparent);
}

.bg-gradient-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 256px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(15deg); }
}

.content-wrapper {
    position: relative;
    z-index: 10;
    padding: 24px 16px;
    max-width: 1536px;
    margin: 0 auto;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 48px;
    margin-top: 32px;
    animation: fadeInDown 1s ease-out;
}

.main-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 56px;
    font-weight: 900;
    letter-spacing: 0.05em;
    background: linear-gradient(to right, #fcd34d, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
    margin-bottom: 16px;
}

.subtitle {
    font-size: 24px;
    color: #fef3c7;
    font-weight: 700;
    letter-spacing: 0.025em;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Main Content Layout */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
    justify-content: center;
    width: 100%;
}

@media (min-width: 1024px) {
    .main-content {
        flex-direction: row;
        align-items: flex-start;
        max-width: 1792px;
        margin: 0 auto;
    }
}

.wheel-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeInScale 1s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.side-column {
    width: 100%;
    max-width: 384px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    animation: fadeInRight 1s ease-out;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Wheel Styles */
.wheel-wrapper {
    position: relative;
    margin-bottom: 32px;
    width: var(--wheel-size);
    height: var(--wheel-size);
    display: flex;
    align-items: center;
    justify-content: center;
}

.wheel-glow {
    position: absolute;
    inset: -7px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.3), transparent);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

.wheel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.wheel-outer-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b, #fbbf24, #f59e0b);
    box-shadow: 
        0 0 60px rgba(255, 215, 0, 0.8),
        inset 0 0 40px rgba(255, 255, 255, 0.3);
    border: 8px solid #FFD700;
}

.wheel-outer-ring::before {
    content: '';
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    border: 4px solid rgba(253, 224, 71, 0.5);
}

.wheel-outer-ring::after {
    content: '';
    position: absolute;
    inset: 16px;
    border-radius: 50%;
    border: 2px solid rgba(254, 243, 199, 0.3);
}

.wheel-canvas{
  position:absolute;
  inset: 18px;          /* biar masuk ke dalam ring (ring kamu ada border + glow) */
  width: calc(100% - 36px);
  height: calc(100% - 36px);
  border-radius:50%;
  overflow:hidden;
  transition: transform 5s cubic-bezier(0.17, 0.67, 0.12, 0.99);
}


.wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: clamp(72px, 22vw, 112px);
    height: clamp(72px, 22vw, 112px);
    border-radius: 50%;
    background: linear-gradient(135deg, #fef3c7, #fbbf24, #f59e0b);
    border: 4px solid white;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(40px, 12vw, 64px);
    z-index: 10;
}

.wheel-pointer {
    position: absolute;
    top: -px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 24px solid transparent;
    border-right: 24px solid transparent;
    border-top: 48px solid #FFD700;
    filter: drop-shadow(0 0 16px #FFD700);
    z-index: 20;
}

.wheel-pointer::after {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: #dc2626;
    border-radius: 50%;
    border: 2px solid white;
}

/* Spin Button */
.spin-button {
    position: relative;
    font-family: 'Segoe UI', sans-serif;
    font-size: 28px;
    font-weight: 900;
    padding: 20px 64px;
    border-radius: 9999px;
    border: 4px solid #FFA500;
    background: linear-gradient(to right, #fbbf24, #f59e0b, #f59e0b);
    color: #581c87;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.6), 0 10px 30px rgba(0, 0, 0, 0.5);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.spin-button:not(:disabled):hover {
    transform: scale(1.1);
    box-shadow: 0 0 60px rgba(255, 215, 0, 0.8), 0 15px 40px rgba(0, 0, 0, 0.6);
}

.spin-button:not(:disabled):active {
    transform: scale(0.95);
}

.spin-button:disabled {
    background: linear-gradient(to right, #4b5563, #6b7280);
    color: #9ca3af;
    cursor: not-allowed;
    box-shadow: none;
    border-color: #6b7280;
}

/* Form Card */
.form-card {
    background: linear-gradient(135deg, rgba(107, 33, 168, 0.8), rgba(131, 24, 67, 0.8));
    backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 24px;
    border: 2px solid rgba(251, 191, 36, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.form-title {
    font-size: 20px;
    font-weight: 900;
    color: #fbbf24;
    margin-bottom: 16px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.form-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.input-coupon,
.input-email {
    width: 100%;
    padding: 16px 20px;
    border-radius: 12px;
    border: 3px solid #f59e0b;
    background: rgba(255, 255, 255, 0.95);
    color: #1f2937;
    text-align: center;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    outline: none;
    transition: all 0.3s ease;
}

.input-coupon:focus,
.input-email:focus {
    border-color: #fbbf24;
    box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.5);
}

.input-coupon::placeholder,
.input-email::placeholder {
    text-transform: none;
    letter-spacing: normal;
    color: #6b7280;
    font-weight: 600;
}

.input-email {
    background: rgb(255 0 0 / 50%);
    color: white;
    border-color: rgb(255 204 0 / 68%);
    font-weight: 600;
    text-transform: none;
    letter-spacing: normal;
}

.input-email:focus {
    border-color: #c084fc;
    box-shadow: 0 0 0 2px rgba(192, 132, 252, 0.5);
}

.input-email::placeholder {
    color: #d8b4fe;
}

.error-message {
    background: #dc2626;
    color: white;
    font-size: 14px;
    font-weight: 700;
    padding: 12px 16px;
    border-radius: 8px;
    text-align: center;
    border: 2px solid #ef4444;
}

/* Winners Cards */
.winners-card {
    background: linear-gradient(135deg, rgba(131, 24, 67, 0.8), rgba(107, 33, 168, 0.8));
    backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 24px;
    border: 2px solid rgba(251, 191, 36, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.winners-card-green {
    background: linear-gradient(135deg, rgba(6, 95, 70, 0.8), rgba(5, 150, 105, 0.8));
    border-color: rgba(52, 211, 153, 0.3);
}

.winners-title {
    font-size: 18px;
    font-weight: 900;
    color: #fbbf24;
    margin-bottom: 16px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.winners-title-green {
    color: #6ee7b7;
}

.winners-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.winners-list-scrollable {
    max-height: 384px;
    overflow-y: auto;
}

.winners-list-scrollable::-webkit-scrollbar {
    width: 8px;
}

.winners-list-scrollable::-webkit-scrollbar-track {
    background: rgba(6, 95, 70, 0.2);
    border-radius: 4px;
}

.winners-list-scrollable::-webkit-scrollbar-thumb {
    background: #10b981;
    border-radius: 4px;
}

.winner-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    background: linear-gradient(to right, rgba(107, 33, 168, 0.6), transparent);
    border-left: 4px solid #FFD700;
    animation: slideInWinner 0.4s ease-out;
}

@keyframes slideInWinner {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.winner-item-green {
    background: linear-gradient(to right, rgba(5, 150, 105, 0.4), transparent);
    border-color: #10b981;
}

.winner-item-real {
    background: linear-gradient(to right, rgba(217, 119, 6, 0.4), rgba(180, 83, 9, 0.4));
    border: 2px solid rgba(251, 191, 36, 0.5);
    border-left-width: 4px;
}

.winner-item img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    padding: 4px;
    background: white;
    flex-shrink: 0;
}

.winner-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 900;
    font-size: 12px;
    flex-shrink: 0;
}

.winner-info {
    flex: 1;
    min-width: 0;
}

.winner-name {
    font-size: 14px;
    font-weight: 900;
    color: #fcd34d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.winner-name-green {
    color: #6ee7b7;
}

.winner-prize {
    font-size: 12px;
    font-weight: 600;
    color: #e9d5ff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.winner-prize-green {
    color: #a7f3d0;
}

.winner-time {
    font-size: 12px;
    font-weight: 700;
    color: #d8b4fe;
    flex-shrink: 0;
    margin-left: 8px;
}

.winner-time-green {
    color: #6ee7b7;
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(12px);
    padding: 16px;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    position: relative;
    background: linear-gradient(135deg, #fbbf24, #f59e0b, #ea580c);
    border-radius: 24px;
    padding: 32px;
    max-width: 512px;
    width: 100%;
    text-align: center;
    border: 8px solid #fcd34d;
    box-shadow: 0 0 80px rgba(255, 215, 0, 0.8);
    animation: bounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes bounceIn {
    0% {
        transform: scale(0) rotate(-10deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.05) rotate(2deg);
    }
    70% {
        transform: scale(0.9) rotate(-1deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.modal-title {
    font-size: 48px;
    font-weight: 900;
    color: #581c87;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    margin-bottom: 24px;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.5);
}

.modal-prize {
    background: white;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.prize-image-container {
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
}

.prize-image {
    width: 128px;
    height: 128px;
    object-fit: contain;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.prize-name {
    font-size: 36px;
    font-weight: 900;
    color: #581c87;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.prize-description {
    font-size: 16px;
    font-weight: 600;
    color: #4b5563;
}

.modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-buttons-row {
    display: flex;
    gap: 12px;
}

.modal-button {
    flex: 1;
    font-weight: 900;
    padding: 16px 24px;
    border-radius: 9999px;
    border: 4px solid;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.modal-button:hover {
    transform: scale(1.05);
}

.modal-button-purple {
    background: linear-gradient(to right, #7c3aed, #6b21a8);
    color: #fcd34d;
    border-color: #6b21a8;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.modal-button-green {
    background: linear-gradient(to right, #059669, #047857);
    color: white;
    border-color: #047857;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.modal-button-close {
    width: 100%;
    background: #581c87;
    color: #fcd34d;
    border-color: #6b21a8;
    font-size: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-title {
        font-size: 36px;
    }

    .subtitle {
        font-size: 18px;
    }

    .spin-button {
        font-size: 20px;
        padding: 16px 48px;
    }

    .modal-title {
        font-size: 32px;
    }

    .prize-name {
        font-size: 24px;
    }

    .modal-buttons-row {
        flex-direction: column;
    }
}

/* =======================
   Form Input Modern
   ======================= */
.form-content-modern {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 12px;
  background: rgba(255,255,255,0.04);
  border-radius: 14px;
  box-shadow: 0 0 25px rgba(255,255,255,0.05);
  backdrop-filter: blur(6px);
}

.input-wrapper {
  display: flex;
  flex-direction: column;
}

.input-wrapper label {
  color: rgba(255,255,255,0.75);
  font-size: 14px;
  margin-bottom: 6px;
  letter-spacing: 0.03em;
}

.styled-input {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(0,0,0,0.3);
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
}

.styled-input:focus {
  outline: none;
  border-color: #fcd34d;
  box-shadow: 0 0 12px rgba(251,191,36,0.4);
}

.btn-livechat {
  background: linear-gradient(90deg, #ec4899, #8b5cf6);
  border: none;
  border-radius: 12px;
  color: white;
  font-weight: 700;
  padding: 10px 16px;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.btn-livechat:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(139,92,246,0.4);
}

/* =======================
   Kartu Pemenang Modern
   ======================= */
.modern-winners {
  margin-top: 22px;
  background: rgba(255,255,255,0.05);
  border-radius: 14px;
  padding: 14px 12px;
  box-shadow: 0 0 25px rgba(255,255,255,0.05);
}
