* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: linear-gradient(to bottom right, #0f172a, #1e293b, #0f172a);
  color: white;
  font-family: 'Inter', sans-serif;
  padding: 40px;
}

.container {
  max-width: 1200px;
  margin: auto;
  text-align: center;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
}

.subtitle {
  color: #94a3b8;
  margin-bottom: 40px;
}

.content {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 60px;
  align-items: start;
  justify-content: center;
}

/* ==========================
   🪞 CARD & DEPTH EFFECT
   ========================== */
.perspective {
  perspective: 1400px; /* penting! biar efek 3D muncul */
  perspective-origin: center;
}

.card {
  width: 650px;
  height: 400px;
  border-radius: 16px;
  transform-style: preserve-3d;
  position: relative;
  margin: 0 auto;
  transform: rotateX(0deg) rotateY(0deg);
  transition: transform 0.3s ease;
  box-shadow: none;
}

.card-body {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform-style: preserve-3d;
  transform: translateZ(0px);
  transition: transform 0.25s ease;
  box-shadow: 0 0 20px rgba(255,255,255,0.3);
}

/* 🌫️ Depth layer (hapus efek gelap) */
.depth-layer {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.12), transparent);
  mix-blend-mode: screen;
  opacity: 0;
  transform: translateZ(0px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* sisi fisik kartu (ketebalan nyata ditingkatkan) */
.edge-layer {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  box-shadow: inset 0 0 8px rgba(0,0,0,0.4);
  transform: translateZ(-12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* glare kaca realistis */
.glare {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.35), rgba(255,255,255,0.05) 60%, transparent 100%);
  backdrop-filter: blur(6px) saturate(160%);
  opacity: 0;
  mix-blend-mode: screen;
  transition: opacity 0.3s ease;
}

.card:hover .glare {
  opacity: 0.5;
}


/* LOGO AREA */
.logo {
  position: absolute;
  top: 30px;
  left: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2;
}

.logo img {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  padding: 4px;
  backdrop-filter: blur(4px);
}

.logo-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.1;
  font-family: 'Ethnocentric', sans-serif;
}

.logo-text .club-pass {
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: 2px;
}

.logo-text .rialo {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* MEMBER INFO */
.member-info {
  position: absolute;
  top: 83%;
  left: 35%;
  transform: translate(-50%, -50%);
  text-align: left;
  z-index: 3;
}

.member-info h2 {
  font-size: 1.4rem;
  font-weight: 700;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.member-subtext {
  font-size: 1rem;
  opacity: 0.8;
  margin-top: 4px;
  letter-spacing: 2px;
}

/* PHOTO */
.bottom-right {
  position: absolute;
  bottom: 24px;
  left: 24px;
  z-index: 1;
}

.photo {
  width: 120px;
  height: 120px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* PATTERN */
.pattern {
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
  opacity: 0.1;
  transform: translate(30%, -30%);
}

/* CONTROLS */
.controls {
  background: rgba(30, 41, 59, 0.5);
  padding: 30px;
  border-radius: 16px;
  border: 1px solid #334155;
  text-align: left;
}

.controls label {
  display: block;
  margin-top: 10px;
  margin-bottom: 5px;
  font-weight: 500;
}

input[type="text"], input[type="file"] {
  width: 100%;
  padding: 8px 12px;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 6px;
  color: white;
}

/* THEMES */
.themes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.theme-btn {
  border: 2px solid transparent;
  padding: 16px;
  border-radius: 12px;
  font-weight: 600;
  transition: 0.2s;
}

.theme-btn:hover {
  transform: scale(1.05);
}

.theme-btn.active {
  border-color: white;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}

#download {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(to right, #2563eb, #9333ea);
  color: white;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
}

.info {
  text-align: center;
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: 12px;
}

.logo-text .club-pass,
.logo-text .rialo,
.member-info h2,
.member-subtext {
  transition: color 0.3s ease-in-out;
}
/* sisi fisik kartu (ketebalan nyata) */
.edge-layer {
  box-shadow: inset 0 0 8px rgba(0,0,0,0.4);
  transform: translateZ(-12px);
}

/* Ensure card is fully captured in PNG */
.card {
  overflow: visible;
}
/* IDENTIK DENGAN ASLI - tambahan di bawah */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: linear-gradient(to bottom right, #0f172a, #1e293b, #0f172a);
  color: white;
  font-family: 'Inter', sans-serif;
  padding: 40px;
}

.container {
  max-width: 1200px;
  margin: auto;
  text-align: center;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
}

.subtitle {
  color: #94a3b8;
  margin-bottom: 40px;
}

.content {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 60px;
  align-items: start;
  justify-content: center;
}

/* CARD ASLI */
.perspective { perspective: 1400px; perspective-origin: center; }
.card { width: 650px; height: 400px; border-radius: 16px; transform-style: preserve-3d; position: relative; margin: 0 auto; transform: rotateX(0deg) rotateY(0deg); transition: transform 0.3s ease; box-shadow: none; }
.card-body { position: absolute; inset: 0; border-radius: 16px; overflow: hidden; background-image: url('image.jpeg'); background-size: cover; background-position: center; background-repeat: no-repeat; opacity: 0.98; transform-style: preserve-3d; transform: translateZ(0px); transition: transform 0.25s ease; }

.depth-layer, .edge-layer, .glare { position: absolute; inset: 0; pointer-events: none; transition: 0.3s ease; }
.depth-layer { background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.12), transparent); mix-blend-mode: screen; opacity: 0; }
.edge-layer { box-shadow: inset 0 0 8px rgba(0,0,0,0.4); transform: translateZ(-12px); opacity: 0; }
.glare { background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.35), rgba(255,255,255,0.05) 60%, transparent 100%); backdrop-filter: blur(6px) saturate(160%); opacity: 0; mix-blend-mode: screen; }
.card:hover .glare { opacity: 0.5; }

.logo { position: absolute; top: 30px; left: 30px; display: flex; align-items: center; gap: 12px; z-index: 2; }
.logo img { width: 80px; height: 80px; border-radius: 8px; padding: 4px; backdrop-filter: blur(1px); }
.logo-text { display: flex; flex-direction: column; text-align: left; line-height: 1.1; font-family: 'Ethnocentric', sans-serif; }
.logo-text .club-pass { font-weight: 700; font-size: 2rem; letter-spacing: 2px; }
.logo-text .rialo { font-size: 0.9rem; opacity: 0.8; }

.member-info { position: absolute; top: 83%; left: 35%; transform: translate(-50%, -50%); text-align: left; z-index: 3; }
.member-info h2 { font-size: 1.4rem; font-weight: 700; text-shadow: 0 2px 6px rgba(0,0,0,0.5); }
.member-subtext { font-size: 1rem; opacity: 0.8; margin-top: 4px; letter-spacing: 2px; }

.bottom-right { position: absolute; bottom: 24px; left: 24px; z-index: 1; }
.photo { width: 120px; height: 120px; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,0.3); background: rgba(255,255,255,0.1); backdrop-filter: blur(6px); }
.photo img { width: 100%; height: 100%; object-fit: cover; }

.pattern { position: absolute; top: 0; right: 0; width: 200px; height: 200px; background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%); opacity: 0.1; transform: translate(30%, -30%); }

.controls { background: rgba(30,41,59,0.5); padding: 30px; border-radius: 16px; border: 1px solid #334155; text-align: left; }
.controls label { display: block; margin-top: 10px; margin-bottom: 5px; font-weight: 500; }
input[type="text"], input[type="file"] { width: 100%; padding: 8px 12px; background: #0f172a; border: 1px solid #334155; border-radius: 6px; color: white; }

.themes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 20px; }
.theme-btn { border: 2px solid transparent; padding: 16px; border-radius: 12px; font-weight: 600; transition: 0.2s; }
.theme-btn:hover { transform: scale(1.05); }
.theme-btn.active { border-color: white; box-shadow: 0 0 12px rgba(255,255,255,0.4); }

#download { width: 100%; padding: 14px; border: none; border-radius: 8px; background: linear-gradient(to right, #2563eb, #9333ea); color: white; font-weight: 600; cursor: pointer; margin-top: 10px; }
.info { text-align: center; font-size: 0.8rem; color: #94a3b8; margin-top: 12px; }

/* ==========================
   🕸️ HALLOWEEN MODE
   ========================== */
.halloween-mode .card-body {
  background: linear-gradient(135deg, #3b0764 0%, #7e22ce 40%, #ff6b00 100%);
  background-size: cover;
  box-shadow: 0 0 25px rgba(255, 107, 0, 0.6);
}

.halloween-decor {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.bat {
  position: absolute;
  width: 80px;
  opacity: 0.7;
  animation: fly 8s linear infinite;
}
.bat1 { top: 10%; left: -10%; animation-delay: 0s; }
.bat2 { top: 50%; left: -15%; animation-delay: 2s; }

@keyframes fly {
  0% { transform: translateX(-10%) scale(0.9); opacity: 0; }
  25% { opacity: 1; }
  50% { transform: translateX(120vw) translateY(-20px) scale(1); }
  100% { transform: translateX(-10%) translateY(0px) scale(0.9); opacity: 0; }
}

.moon {
  position: absolute;
  top: 20px;
  right: 40px;
  width: 100px;
  opacity: 0.8;
  filter: drop-shadow(0 0 12px #ffb347);
}

.pumpkin {
  position: absolute;
  bottom: 20px;
  right: 30px;
  width: 90px;
  opacity: 0.9;
  filter: drop-shadow(0 0 8px #ff6b00);
}

.mist {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 80px;
  background: radial-gradient(circle at 50% 100%, rgba(255,255,255,0.25), transparent 70%);
  animation: mist 6s ease-in-out infinite;
}
@keyframes mist {
  0%,100% { opacity: 0.3; transform: translateX(0); }
  50% { opacity: 0.6; transform: translateX(20px); }
}
/* 🎃 Background hanya aktif untuk Haunted Night */
.card-body {
  background: transparent; /* TANPA !important biar bisa diubah via JS */
}

.haunted-only {
  background-image: url("image.jpeg") !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}
/* 🔮 Fix blur di Haunted Night tanpa ubah struktur */
.haunted-only .glare,
.haunted-only .photo,
.haunted-only .logo img {
  backdrop-filter: none !important;
}
/* 🕸️ Gradient text khusus tema Haunted Night */
.haunted-only .club-pass{
  background: linear-gradient(0deg, #000000, #ececec);
  -webkit-background-clip: text;  
  -webkit-text-fill-color: transparent;
  color: transparent;
}
