:root {
  --bg-dark: #0a0812;
  --bg-card: rgba(22, 17, 36, 0.78);
  --border-glass: rgba(255, 120, 160, 0.22);
  --primary-pink: #ff3377;
  --primary-rose: #ff6584;
  --gold-accent: #f5b041;
  --gold-glow: rgba(245, 176, 65, 0.4);
  --text-main: #ffffff;
  --text-muted: #b4a9c4;
  --shahid-teal: #00d285;
}

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

body {
  font-family: 'Cairo', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Ambient glow background */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  animation: floatAmbient 12s ease-in-out infinite alternate;
}

.glow-1 {
  width: min(480px, 90vw);
  height: min(480px, 90vw);
  background: radial-gradient(circle, #ff2a70 0%, rgba(138, 43, 226, 0.4) 60%, transparent 80%);
  top: -80px;
  right: -60px;
}

.glow-2 {
  width: min(520px, 95vw);
  height: min(520px, 95vw);
  background: radial-gradient(circle, #7928ca 0%, rgba(255, 101, 132, 0.3) 50%, transparent 80%);
  bottom: 40px;
  left: -80px;
  animation-duration: 15s;
}

@keyframes floatAmbient {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, 20px) scale(1.08); }
  100% { transform: translate(-20px, 40px) scale(0.95); }
}

.stars-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.star {
  position: absolute;
  background: #fff;
  border-radius: 50%;
  opacity: 0.6;
  animation: twinkle var(--duration, 3s) infinite ease-in-out;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.2; transform: scale(0.8); }
  50% { opacity: 0.9; transform: scale(1.2); }
}

/* App Container */
.app-container {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
  padding: 30px 16px 50px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Header */
.hero-header {
  text-align: center;
  padding: 10px 4px 15px;
}

.exclusive-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 51, 119, 0.15);
  border: 1px solid rgba(255, 51, 119, 0.35);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.88rem;
  color: #ff99bb;
  font-weight: 600;
  margin-bottom: 14px;
  backdrop-filter: blur(8px);
  box-shadow: 0 0 20px rgba(255, 51, 119, 0.2);
}

.main-title {
  font-size: clamp(1.75rem, 5.5vw, 2.75rem);
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1.35;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #ffffff 40%, #ff8db2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.highlight-name {
  color: var(--primary-pink);
  -webkit-text-fill-color: var(--primary-pink);
  text-shadow: 0 0 25px rgba(255, 51, 119, 0.6);
  position: relative;
  display: inline-block;
}

.subtitle {
  color: var(--text-muted);
  font-size: clamp(0.95rem, 3vw, 1.15rem);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Glass Card common styles */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border-glass);
  border-radius: 22px;
  padding: 26px 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

/* VIP Cinema Ticket Component */
.ticket-section {
  display: flex;
  justify-content: center;
  perspective: 1000px;
}

.ticket-wrapper {
  display: flex;
  width: 100%;
  max-width: 760px;
  background: linear-gradient(145deg, #1b122c, #110b1e);
  border-radius: 20px;
  border: 1px solid rgba(245, 176, 65, 0.35);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.6), 0 0 35px rgba(245, 176, 65, 0.15);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.ticket-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--gold-accent), var(--primary-pink), var(--gold-accent));
}

.ticket-left {
  flex: 1;
  padding: 24px;
}

.ticket-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold-accent), #d48b13);
  color: #000;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 10px;
}

.ticket-movie-title {
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: 4px;
}

.ticket-tagline {
  color: var(--gold-accent);
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.ticket-details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.detail-item {
  display: flex;
  flex-direction: column;
}

.detail-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.detail-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.highlight-seat {
  color: var(--primary-rose);
  font-size: 1.05rem;
  text-shadow: 0 0 10px rgba(255, 101, 132, 0.5);
}

/* Ticket Divider & Notches */
.ticket-divider {
  width: 2px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dashed-line {
  width: 1px;
  height: calc(100% - 36px);
  border-left: 2px dashed rgba(255, 255, 255, 0.25);
}

.notch {
  position: absolute;
  width: 22px;
  height: 22px;
  background: var(--bg-dark);
  border-radius: 50%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.notch-top {
  top: -11px;
  box-shadow: inset 0 -3px 5px rgba(0, 0, 0, 0.6);
}

.notch-bottom {
  bottom: -11px;
  box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.6);
}

.ticket-right {
  width: 175px;
  background: rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 14px;
  text-align: center;
  gap: 10px;
}

.cinema-icon {
  font-size: 2.6rem;
  filter: drop-shadow(0 0 10px rgba(255, 200, 50, 0.4));
}

.barcode {
  display: flex;
  gap: 3px;
  height: 44px;
  align-items: stretch;
  padding: 0 6px;
}

.barcode span {
  width: 2.5px;
  background: #fff;
  opacity: 0.85;
}

.barcode span:nth-child(2n) { width: 1.5px; }
.barcode span:nth-child(3n) { width: 3.5px; }
.barcode span:nth-child(5n) { width: 2px; }

.ticket-code {
  font-family: monospace;
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.stamp {
  border: 1.5px dashed var(--gold-accent);
  color: var(--gold-accent);
  font-weight: 800;
  font-size: 0.7rem;
  padding: 3px 6px;
  border-radius: 4px;
  transform: rotate(-8deg);
  letter-spacing: 1px;
}

/* Movie Showcase Section */
.movie-showcase {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  align-items: center;
}

.poster-container {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6);
  aspect-ratio: 2/3;
  background: #110d1c;
}

.movie-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.poster-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--shahid-teal);
  color: #000;
  font-weight: 800;
  font-size: 0.72rem;
  padding: 4px 8px;
  border-radius: 6px;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(0, 210, 133, 0.4);
}

.poster-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 14px;
}

.play-hint {
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
}

.movie-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.tag {
  background: rgba(255, 255, 255, 0.08);
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.tag-shahid {
  background: rgba(0, 210, 133, 0.15);
  color: #55efc4;
  border: 1px solid rgba(0, 210, 133, 0.3);
}

.tag-rating {
  background: rgba(245, 176, 65, 0.15);
  color: var(--gold-accent);
}

.movie-heading {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: #fff;
}

.movie-synopsis {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 16px;
}

.perks-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.perk {
  font-size: 0.92rem;
  font-weight: 600;
  color: #e5def3;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Snacks Section */
.section-title {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 4px;
  text-align: center;
}

.section-sub {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
  margin-bottom: 20px;
}

.snacks-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.snack-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
  text-align: center;
}

.snack-card:active {
  transform: scale(0.97);
}

.snack-card.selected {
  background: rgba(255, 51, 119, 0.14);
  border-color: var(--primary-pink);
  box-shadow: 0 0 16px rgba(255, 51, 119, 0.3);
}

.snack-emoji {
  font-size: 2.2rem;
}

.snack-name {
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.3;
}

.snack-status {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
}

.snack-card.selected .snack-status {
  color: #ff99bb;
}

/* RSVP Action Section */
.rsvp-card {
  text-align: center;
  position: relative;
  overflow: hidden;
  border-color: rgba(255, 51, 119, 0.35);
  background: linear-gradient(180deg, rgba(30, 20, 50, 0.85), rgba(15, 10, 25, 0.92));
}

.heart-pulse {
  font-size: 3.2rem;
  display: inline-block;
  animation: heartBeat 1.4s infinite ease-in-out;
  margin-bottom: 8px;
}

@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  14% { transform: scale(1.22); }
  28% { transform: scale(1); }
  42% { transform: scale(1.22); }
  70% { transform: scale(1); }
}

.rsvp-title {
  font-size: clamp(1.5rem, 4vw, 1.9rem);
  font-weight: 900;
  margin-bottom: 8px;
}

.rsvp-desc {
  color: var(--text-muted);
  font-size: 0.98rem;
  margin-bottom: 22px;
}

/* Buttons */
.buttons-group {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.btn {
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 15px 30px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  transition: all 0.25s ease;
  min-height: 52px;
}

.btn-full {
  width: 100%;
}

.btn-accept {
  background: linear-gradient(135deg, #ff3377, #ff6584);
  color: #fff;
  box-shadow: 0 10px 25px rgba(255, 51, 119, 0.45);
  width: 100%;
  max-width: 380px;
}

.btn-accept:hover, .btn-accept:active {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255, 51, 119, 0.65);
}

.btn-shahid {
  background: linear-gradient(135deg, #00d285, #009e60);
  color: #fff;
  box-shadow: 0 8px 22px rgba(0, 210, 133, 0.35);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* Acceptance Result Reveal */
.acceptance-modal {
  display: none;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  animation: fadeInDown 0.5s ease forwards;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.celebration-badge {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--gold-accent);
  margin-bottom: 10px;
}

.love-note {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffc4d6;
  margin-bottom: 22px;
  line-height: 1.5;
}

/* Shahid Credentials Card */
.shahid-credentials-card {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(0, 210, 133, 0.35);
  border-radius: 18px;
  padding: 20px 16px;
  margin: 0 auto 20px;
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.cred-header {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 10px;
}

.cred-badge {
  background: var(--shahid-teal);
  color: #000;
  font-weight: 900;
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 5px;
}

.cred-header h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.cred-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  padding: 10px 14px;
  border-radius: 12px;
  gap: 10px;
}

.cred-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.cred-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.cred-value {
  font-family: -apple-system, BlinkMacSystemFont, monospace;
  font-size: 0.95rem;
  font-weight: 700;
  color: #55efc4;
  word-break: break-all;
}

.password-masked {
  letter-spacing: 2px;
}

.cred-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-icon-toggle {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 8px;
  padding: 6px 9px;
  cursor: pointer;
  font-size: 0.95rem;
}

.btn-copy {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-copy:active {
  background: var(--shahid-teal);
  color: #000;
}

.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}

.toast-alert {
  font-size: 0.9rem;
  color: #55efc4;
  font-weight: 700;
  margin-top: 10px;
  min-height: 22px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.toast-alert.show {
  opacity: 1;
}

/* Footer */
.footer {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
  padding-top: 15px;
}

.footer strong {
  color: var(--primary-pink);
}

/* Responsive Styles for Mobile (Phones) */
@media (max-width: 768px) {
  .app-container {
    padding: 20px 14px 40px;
    gap: 22px;
  }

  .glass-card {
    padding: 22px 16px;
    border-radius: 20px;
  }

  /* Vertical boarding pass / ticket layout on mobile */
  .ticket-wrapper {
    flex-direction: column;
    border-radius: 18px;
  }
  
  .ticket-left {
    padding: 20px 18px 16px;
  }

  .ticket-divider {
    width: 100%;
    height: 2px;
  }

  .dashed-line {
    width: calc(100% - 36px);
    height: 1px;
    border-left: none;
    border-top: 2px dashed rgba(255, 255, 255, 0.22);
  }

  .notch {
    top: 50%;
    left: auto;
    transform: translateY(-50%);
  }

  .notch-top {
    right: -11px;
    box-shadow: inset 3px 0 5px rgba(0, 0, 0, 0.6);
  }

  .notch-bottom {
    left: -11px;
    box-shadow: inset -3px 0 5px rgba(0, 0, 0, 0.6);
  }

  .ticket-right {
    width: 100%;
    flex-direction: row;
    justify-content: space-around;
    padding: 16px 20px 20px;
  }

  .barcode {
    height: 38px;
  }

  .movie-showcase {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 20px;
  }

  .poster-container {
    max-width: 220px;
    margin: 0 auto;
  }

  .movie-tags, .perks-list {
    align-items: center;
    justify-content: center;
  }

  .cred-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .cred-actions, .btn-copy {
    width: 100%;
    justify-content: center;
  }

  .cred-actions .btn-copy {
    flex: 1;
  }
}
