.success {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  z-index: 20;
  position: relative;
  width: 100%;
  max-width: 420px;
  animation: cardIn .7s cubic-bezier(.34, 1.56, .64, 1) both;
  will-change: transform, opacity;
}

.ticket {
  width: 100%;
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 26px 76px rgba(196, 30, 58, .22), 0 1px 0 rgba(255, 255, 255, .8) inset;
  overflow: hidden;
  border: 1px solid rgba(196, 30, 58, .09);
  position: relative;
  transform: translate3d(0,0,0);
}

/* Performance scaling for mobile */
@media (max-width: 768px) {
  .ticket {
    box-shadow: 0 10px 30px rgba(196, 30, 58, 0.15) !important;
  }
}

.ticket::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, transparent 20%, rgba(255,255,255,0.4) 40%, rgba(255,215,0,0.3) 50%, rgba(255,105,180,0.3) 60%, transparent 80%);
  background-size: 200% 200%;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 10;
  animation: holoShimmer 4s infinite linear;
  will-change: background-position;
}

@keyframes holoShimmer {
  0% { background-position: 200% 50%; }
  100% { background-position: -200% 50%; }
}

.t-head {
  background: linear-gradient(160deg, var(--rose2), var(--rose), #8B0D22);
  padding: 38px 24px 32px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.t-head::before {
  content: '';
  position: absolute;
  top: -70px;
  left: -70px;
  width: 220px;
  height: 220px;
  background: rgba(255, 255, 255, .06);
  border-radius: 50%;
}

.t-head::after {
  content: '';
  position: absolute;
  bottom: -44px;
  right: -44px;
  width: 170px;
  height: 170px;
  background: rgba(255, 255, 255, .05);
  border-radius: 50%;
}

.big-heart {
  font-size: 65px;
  display: block;
  position: relative;
  z-index: 2;
  animation: hb 1.3s ease-in-out infinite;
}

@keyframes hb {
  0%, 100% {
    transform: translate3d(0,0,0) scale(1);
  }
  15% {
    transform: translate3d(0,0,0) scale(1.22);
  }
  30% {
    transform: translate3d(0,0,0) scale(1);
  }
  50% {
    transform: translate3d(0,0,0) scale(1.1);
  }
}

.t-head h2 {
  font-size: 27px;
  line-height: 1.65;
  font-weight: 900;
  position: relative;
  z-index: 2;
  margin-top: 10px;
}

.t-head p {
  font-size: 13.5px;
  opacity: .75;
  margin-top: 5px;
  position: relative;
  z-index: 2;
  font-weight: 400;
}

.zz {
  height: 20px;
  background: #fff;
  position: relative;
  margin-top: -1px;
}

.zz::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, var(--rose2), var(--rose), #8B0D22);
  clip-path: polygon(0% 0%, 4% 100%, 8% 0%, 12% 100%, 16% 0%, 20% 100%, 24% 0%, 28% 100%, 32% 0%, 36% 100%, 40% 0%, 44% 100%, 48% 0%, 52% 100%, 56% 0%, 60% 100%, 64% 0%, 68% 100%, 72% 0%, 76% 100%, 80% 0%, 84% 100%, 88% 0%, 92% 100%, 96% 0%, 100% 100%, 100% 0%);
}

.t-body {
  padding: 22px 24px 28px;
}

/* ============ Charisma Card CSS ============ */
.charisma-body {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.exclusive-row {
  border-bottom: 1px dashed rgba(196, 30, 58, .11) !important;
  padding-bottom: 14px !important;
  margin-bottom: 12px;
}

/* Header التحدي */
.charisma-header {
  text-align: center;
  padding: 14px 0 8px;
  border-bottom: 1px dashed rgba(196, 30, 58, .1);
  margin-bottom: 14px;
}

.charisma-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.5;
}

/* قسم الهينتات */
.charisma-hints {
  background: linear-gradient(135deg, rgba(196, 30, 58, .04), rgba(201, 151, 58, .03));
  border: 1px dashed rgba(196, 30, 58, .13);
  border-radius: 14px;
  padding: 0;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, padding 0.4s ease, margin 0.4s ease;
}

/* Revealed state */
.charisma-hints.has-hints {
  padding: 14px 16px;
  margin-bottom: 14px;
  max-height: 200px;
  gap: 10px;
}

.hint-summary {
  margin: 0;
  font-size: 0.82rem;
  color: #5a4a4a;
  line-height: 1.55;
  font-style: italic;
}

/* Hidden hint line (before reveal) */
.ch-hint.hidden {
  display: none;
}

/* Charisma hint button style */
.charisma-hint-btn {
  background: transparent;
  color: #aaa;
  border: 1.5px dashed rgba(196, 30, 58, .3);
  padding: 7px 16px;
  border-radius: 20px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  align-self: center;
}

.charisma-hint-btn:hover {
  color: var(--rose);
  border-color: var(--rose);
  background: rgba(196, 30, 58, .04);
}


/* Neon Input Zone */
.neon-input-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.neon-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #888;
  text-align: center;
  margin: 0;
}

.neon-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 2px solid rgba(196, 30, 58, .3);
  background: rgba(255, 255, 255, 0.9);
  font-family: 'Tajawal', sans-serif;
  font-size: 0.95rem;
  color: var(--dark);
  text-align: center;
  outline: none;
  transition: all 0.35s ease;
  box-shadow: 0 0 0 0 rgba(196, 30, 58, 0);
}

.neon-input:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(196, 30, 58, .12), 0 0 20px rgba(196, 30, 58, .15);
  background: #fff;
}

.neon-confirm-btn {
  background: linear-gradient(135deg, var(--rose), #8B0D22);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 50px;
  font-family: 'Tajawal', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(196, 30, 58, .35);
  position: relative;
  overflow: hidden;
}

.neon-confirm-btn::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent);
  transition: left 0.5s ease;
}

.neon-confirm-btn:hover::after {
  left: 150%;
}

.neon-confirm-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(196, 30, 58, .45);
}

.neon-confirm-btn:active {
  transform: translateY(1px);
  box-shadow: 0 4px 12px rgba(196, 30, 58, .3);
}

.charisma-success {
  font-size: 1rem;
  font-weight: 700;
  color: var(--rose);
  text-align: center;
  margin: 0;
  animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}


.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(196, 30, 58, .11);
  font-size: 14px;
}

.row:last-of-type {
  border-bottom: none;
}

.row span {
  color: #aaa;
}

.row strong {
  color: var(--dark);
  font-weight: 700;
}

.cd-wrap {
  margin-top: 16px;
  background: linear-gradient(135deg, rgba(196, 30, 58, .04), rgba(201, 151, 58, .04));
  border-radius: 16px;
  padding: 16px 12px 13px;
  border: 1px solid rgba(196, 30, 58, .07);
}

.cd-lbl {
  font-size: 11.5px;
  color: #bba;
  font-weight: 700;
  margin-bottom: 11px;
  letter-spacing: 1px;
}

.cd {
  display: flex;
  justify-content: center;
  gap: 8px;
  direction: ltr;
}

.tb {
  width: 68px;
  text-align: center;
}

.tn {
  width: 68px;
  height: 68px;
  border-radius: 14px;
  background: var(--dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 27px;
  font-weight: 900;
  box-shadow: 0 7px 20px rgba(26, 10, 14, .3);
  position: relative;
  overflow: hidden;
  transform: translate3d(0,0,0);
  will-change: transform;
}

.tn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: rgba(255, 255, 255, .07);
}

.tn.flip {
  animation: fl .22s ease;
}

@keyframes fl {
  0% {
    transform: translate3d(0,0,0) scaleY(1);
  }
  50% {
    transform: translate3d(0,0,0) scaleY(.55);
  }
  100% {
    transform: translate3d(0,0,0) scaleY(1);
  }
}

.tl {
  margin-top: 6px;
  color: #bba;
  font-size: 11px;
  font-weight: 700;
}

.tsep {
  font-size: 26px;
  font-weight: 900;
  color: var(--rose);
  align-self: center;
  margin-top: -10px;
}

/* Shake animation for Ticket */
@keyframes ticketShake {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  10%, 30%, 50%, 70%, 90% { transform: translate3d(-3px, 2px, 0) rotate(-1deg); }
  20%, 40%, 60%, 80% { transform: translate3d(3px, -2px, 0) rotate(1deg); }
}
.ticket.shake {
  animation: ticketShake 0.6s ease-in-out infinite;
}

/* Exit animation for Success Card */
@keyframes cardOut {
  from {
    opacity: 1;
    transform: translate3d(0,0,0) scale(1);
  }
  to {
    opacity: 0;
    transform: translate3d(0, -60px, 0) scale(0.85) rotate(2deg);
  }
}
.success.fade-out {
  animation: cardOut 0.7s cubic-bezier(.36, 0, .66, -.56) both;
}
