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

body {
  font-family: 'Tajawal', sans-serif;
  background: linear-gradient(135deg, #1a2a3a, #0d5e56);
  min-height: 100vh;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px
}

:root {
  --teal: #00A99D;
  --dark: #2C3E50;
  --cream: #FDFCF5
}

.navbar {
  background: var(--dark);
  border-bottom: 5px solid #000;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 5px 0 0 #000;
  width: 100%
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 20px;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%
}

.logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: 1.5rem;
  color: var(--cream);
  text-decoration: none;
  white-space: nowrap;
  font-weight: bold
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0
}

.nav-link {
  color: var(--cream);
  text-decoration: none;
  font-weight: bold;
  padding: .5rem .75rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: .5rem;
  transition: all .2s
}

.nav-link:hover {
  background: rgba(0, 169, 157, .3)
}

.nav-link.active {
  background: var(--teal);
  color: white
}

.mobile-menu-btn {
  display: none;
  padding: .5rem;
  font-size: 1.5rem;
  min-width: 44px;
  min-height: 44px;
  background: transparent;
  border: 3px solid var(--cream);
  border-radius: 8px;
  color: var(--cream);
  cursor: pointer
}

.main-content {
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  width: 100%
}

.voting-section {
  width: 100%;
  max-width: 100%;
  margin-bottom: 100px
}

.voting-header {
  text-align: center;
  margin-bottom: 50px
}

.voting-header h1 {
  color: white;
  font-size: 2.8rem;
  margin-bottom: 15px;
  font-family: 'Changa', sans-serif;
  font-weight: 700
}

.voting-header p {
  color: rgba(255, 255, 255, .85);
  font-size: 1.3rem;
  letter-spacing: .5px
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
  padding: 0 50px;
  max-width: none
}

.movie-card {
  background: var(--cream);
  border: 2px solid var(--dark);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, .3);
  transition: all .3s ease
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 18px 18px 0 rgba(0, 0, 0, .55)
}

.movie-card.voted {
  border-color: var(--teal);
  box-shadow: 14px 14px 0 var(--teal)
}

.movie-poster {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1.4;
  overflow: hidden;
  background: #333
}

.movie-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top
}

.poster-fallback {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #555, #333);
  color: white;
  text-align: center;
  padding: 20px
}

.poster-fallback i {
  font-size: 4rem;
  margin-bottom: 20px
}

.vote-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(0, 0, 0, .92);
  color: white;
  padding: 9px 14px;
  border-radius: 25px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 1.05rem;
  border: 2px solid rgba(255, 255, 255, .3)
}

.movie-info {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-grow: 1
}

.movie-info h3 {
  font-size: 1rem;
  color: var(--dark);
  font-family: 'Changa', sans-serif;
  font-weight: 700
}

.movie-info p {
  color: #555;
  font-size: .75rem;
  line-height: 1.3
}

.vote-btn {
  width: 100%;
  padding: 6px 8px;
  background: var(--teal);
  color: white;
  border: 1px solid var(--dark);
  border-radius: 8px;
  font-size: .75rem;
  font-weight: bold;
  cursor: pointer;
  transition: all .2s;
  font-family: 'Tajawal', sans-serif;
  box-shadow: 2px 2px 0 var(--dark);
  margin-top: auto
}

.vote-btn:hover {
  transform: translateY(-2px);
  box-shadow: 7px 7px 0 var(--dark)
}

.vote-btn:active {
  transform: translateY(2px);
  box-shadow: 3px 3px 0 var(--dark)
}

.vote-btn.voted {
  background: #27ae60;
  opacity: .9
}

.ticket-container {
  width: 900px;
  max-width: 95%;
  display: flex;
  box-shadow: 0 20px 45px rgba(0, 0, 0, .6);
  border-radius: 25px;
  overflow: hidden
}

.ticket-left {
  flex: 2;
  background: var(--cream);
  padding: 2.5rem;
  display: flex;
  gap: 25px;
  border-radius: 25px 0 0 25px
}

.side-strip {
  width: 65px;
  background: var(--dark);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  padding: 25px 0;
  text-align: center;
  font-size: .85rem;
  flex-shrink: 0;
  font-weight: bold
}

.side-strip .ticket-id {
  writing-mode: vertical-rl;
  letter-spacing: 3px;
  font-family: 'Courier New', monospace;
  font-weight: bold;
  margin-top: 12px
}

.ticket-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px
}

.info-box {
  border: 2px solid var(--teal);
  border-radius: 14px;
  padding: 12px 18px;
  background: rgba(0, 169, 157, .08)
}

.info-box label {
  display: block;
  color: var(--dark);
  font-size: .82rem;
  font-weight: bold;
  margin-bottom: 6px;
  letter-spacing: .5px
}

.info-box span,
.info-box input {
  display: block;
  font-size: 1.15rem;
  color: var(--dark);
  font-weight: bold;
  background: transparent;
  border: none;
  width: 100%;
  font-family: 'Tajawal', sans-serif
}

.info-box.highlight {
  background: var(--teal);
  color: white
}

.info-box.highlight label,
.info-box.highlight input {
  color: white
}

.info-box.highlight input::placeholder {
  color: rgba(255, 255, 255, .75)
}

.ticket-right {
  flex: 1;
  background: var(--teal);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  position: relative;
  border-left: 4px dashed rgba(255, 255, 255, .5);
  border-radius: 0 25px 25px 0
}

.ticket-right::before,
.ticket-right::after {
  content: '';
  position: absolute;
  width: 45px;
  height: 45px;
  background: #15454d;
  border-radius: 50%;
  left: -23px;
  z-index: 10
}

.ticket-right::before {
  top: -22px
}

.ticket-right::after {
  bottom: -22px
}

.brand-logo {
  font-family: 'Changa', sans-serif;
  font-size: 2.2rem;
  margin-bottom: 12px;
  line-height: 1.2;
  font-weight: 700
}

.brand-subtitle {
  font-size: 1.2rem;
  opacity: .92;
  margin-bottom: 18px;
  font-weight: 600
}

.character-img {
  font-size: 5rem;
  margin-bottom: 12px
}

.actions {
  margin-top: 40px;
  display: flex;
  gap: 20px;
  justify-content: center
}

.btn-action {
  padding: 14px 40px;
  border: none;
  border-radius: 10px;
  font-size: 1.05rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all .2s;
  font-family: 'Tajawal', sans-serif;
  box-shadow: 0 5px 0 rgba(0, 0, 0, .2)
}

.btn-email {
  background: var(--dark);
  color: white;
  box-shadow: 0 5px 0 #0f1620
}

.btn-action:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 0 rgba(0, 0, 0, .3)
}

.btn-action:active {
  transform: translateY(1px);
  box-shadow: 0 3px 0 rgba(0, 0, 0, .2)
}

.btn-action:disabled {
  opacity: .65;
  cursor: not-allowed
}

.scroll-to-ticket-btn {
  position: fixed;
  top: 90px;
  right: 20px;
  padding: 12px 20px;
  background: var(--teal);
  color: white;
  border: none;
  border-radius: 25px;
  font-size: .95rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .3);
  transition: all .3s;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 8px
}

.scroll-to-ticket-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .4)
}

.scroll-to-ticket-btn:active {
  transform: scale(.98)
}

@media (max-width:1200px) {
  body {
    padding: 25px 15px
  }

  .movie-grid {
    gap: 40px;
    padding: 0 30px
  }

  .voting-header h1 {
    font-size: 2.5rem
  }
}

@media (max-width:1024px) {
  .movie-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
    padding: 0 25px
  }

  .voting-header h1 {
    font-size: 2.3rem
  }

  .ticket-container {
    width: 90%
  }
}

@media (max-width:768px) {
  body {
    padding: 0
  }

  .voting-header h1 {
    font-size: 1.9rem
  }

  .voting-header p {
    font-size: 1rem
  }

  .movie-grid {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 0 15px
  }

  .movie-card {
    border: 6px solid var(--dark);
    border-radius: 20px
  }

  .movie-info {
    padding: 20px;
    gap: 12px
  }

  .movie-info h3 {
    font-size: 1.4rem
  }

  .movie-info p {
    font-size: .95rem
  }

  .vote-btn {
    padding: 14px 15px;
    font-size: 1rem
  }

  .ticket-container {
    flex-direction: column-reverse;
    width: 100%;
    border-radius: 20px
  }

  .ticket-left,
  .ticket-right {
    border-radius: 0
  }

  .ticket-left {
    border-radius: 0 0 20px 20px;
    padding: 1.8rem
  }

  .ticket-right {
    border-radius: 20px 20px 0 0;
    border-left: none;
    border-bottom: 4px dashed rgba(255, 255, 255, .5);
    padding: 1.8rem
  }

  .ticket-right::before,
  .ticket-right::after {
    display: none
  }

  .side-strip {
    display: none
  }

  .actions {
    flex-direction: column
  }

  .btn-action {
    width: 100%;
    justify-content: center
  }

  .nav-links {
    display: none
  }

  .mobile-menu-btn {
    display: block
  }
}
