/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #374151;
  background: linear-gradient(135deg, #ebf8ff 0%, #f3e8ff 100%);
  min-height: 100vh;
  -webkit-overflow-scrolling: touch;
}

/* Completely eliminate unnecessary scrolling */
html,
body {
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

@media (min-width: 769px) {
  body {
    position: static;
    overflow: auto;
    height: auto;
  }
}


/* Utility Classes */
.hidden {
  display: none !important;
}

/* Layout */
.screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  /* padding: 1rem; */
  transition: padding-top 0.3s ease;
}

#main-app-screen {
 background-image: url("https://my.goplus.mn/app/ntv/assets/gallery/Banner2.png");
  background-repeat: no-repeat;
  background-size: cover; /* дэлгэц дүүргэх */
  background-position: center; /* төв рүү байрлуулах */
  background-attachment: fixed; /* optional - scroll үед хөдөлгөхгүй */
}

#phone-entry-screen {
 background-image: url("https://my.goplus.mn/app/ntv/assets/gallery/Banner2.png");
  background-repeat: no-repeat;
}

#code-verification-screen {
 background-image: url("https://my.goplus.mn/app/ntv/assets/gallery/Banner2.png");
  background-repeat: no-repeat;
}

.screen.with-countdown {
  padding-top: 6rem;
}

.container {
  width: 100%;
  max-width: 28rem;
  margin: 0 auto;
}

.card {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  padding: 0.5rem 2rem 2rem;
  text-align: center;
}

/* Main App Layout */
.app-layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.main-content .container {
  width: 100%;
  max-width: 32rem;
}

/* Code Verification Screen Container */
#code-verification-screen .container {
  width: 100%;
  max-width: 32rem;
}

/* Phone Entry Screen Container */
#phone-entry-screen .container {
  width: 100%;
  max-width: 32rem;
}

#phone-entry-screen {
  display: flex;
  flex-direction: flex;
}

/* Adjustments for prize gallery in phone entry screen */
#phone-entry-screen .container:first-of-type {
  margin-bottom: 1rem;
}

#phone-entry-screen .container:first-of-type .card {
  padding-bottom: 1rem;
}

/* Loading Screen Container */
#loading-screen .container {
  width: 100%;
  max-width: 32rem;
}

/* Lottery Closed Screen Container */
#lottery-closed-screen .container {
  width: 100%;
  max-width: 32rem;
}

/* Header */
.header {
  background: white;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  max-width: 64rem;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header-left {
  flex: 1;
  display: flex;
  align-items: center;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-countdown {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #f5c3f1 0%, #6106d9 100%);
  border: 1px solid #f59e0b;
  border-radius: 0.5rem;
  color: #000000;
}

.countdown-icon {
  font-size: 1.25rem;
}

.countdown-info {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.countdown-label {
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0.8;
}

.countdown-value {
  font-size: 1rem;
  font-weight: 700;
  font-family: "Courier New", monospace;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-avatar {
  width: 2.5rem;
  height: 2.5rem;
  background: #dbeafe;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-details h2 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
  margin: 0;
}

.user-details p {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
}

.logout-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: transparent;
  border: 1px solid transparent;
  color: #6b7280;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.875rem;
}

.logout-btn:hover {
  background: #f3f4f6;
  color: #374151;
  border-color: #e5e7eb;
}

.logout-btn:active {
  background: #e5e7eb;
}

.logout-btn:hover {
  background: #f3f4f6;
  color: #111827;
}

.logout-text {
  display: none;
}

/* Main Content */
.main-content {
  padding: 0 1rem;
}

.section {
  width: 100%;
  max-width: 32rem;
  margin: 0 auto;
}

/* Icons */
.icon-container {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 2rem;
}

.icon-container.blue {
  background: #dbeafe;
}

.icon-container.green {
  background: #d1fae5;
}

.icon-container.purple {
  background: #e9d5ff;
}

.icon-container.red {
  background: #fee2e2;
}

.icon-container.gray {
  background: #f3f4f6;
}

/* Mini sponsor logos for icon containers */
.icon-with-sponsors {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  padding: 16px 20px !important;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%) !important;
  border: 2px solid #3b82f6 !important;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3) !important;
  border-radius: 1rem !important;
  width: 8rem !important;
  height: 8rem !important;
  align-items: center;
  justify-items: center;
}

.icon-with-sponsors.green {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%) !important;
  border-color: #22c55e !important;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3) !important;
}

.sponsor-logo-mini {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 40px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  height: 100%;
}

.sponsor-logo-mini:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.jetour-mini {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%) !important;
}

.ntv-mini {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.sain-mini {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
}

.skytel-mini {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

.mini-logo {
  height: 28px;
  width: auto;
  object-fit: contain;
  max-width: 44px;
  filter: brightness(0.95);
  transition: all 0.3s ease;
}

.jetour-mini .mini-logo {
  filter: brightness(1.1);
  height: 30px;
  max-width: 48px;
}

/* Typography */
h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.5rem;
}

h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #111827;
}

h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 1rem;
}

p {
  color: #6b7280;
  margin-bottom: 1.5rem;
}

/* Lottery Closed Screen */
#lottery-closed-screen .card {
  max-width: 100%;
}

#lottery-closed-screen h1 {
  color: #dc2626;
  margin-bottom: 1rem;
}

#lottery-closed-screen p {
  color: #6b7280;
  margin-bottom: 2rem;
  line-height: 1.6;
}

#lottery-closed-screen .btn {
  margin-top: 0.5rem;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.5rem;
}

.form-group input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: all 0.2s;
  background: white;
}

.form-group input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group input:disabled {
  background: #f9fafb;
  color: #9ca3af;
  cursor: not-allowed;
}

.code-input {
  text-align: center;
  font-size: 1.5rem !important;
  letter-spacing: 0.5rem;
  font-family: "Courier New", monospace;
}

/* Names Grid */
.names-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

/* Two columns on larger screens */
@media (min-width: 768px) {
  .names-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

/* Buttons */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  position: relative;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: #3b82f6;
  color: white;
}

.btn-primary:hover:not(:disabled) {
  background: #2563eb;
}

.btn-secondary {
  background: #6b7280;
  color: white;
  border: 1px solid #6b7280;
}

.btn-secondary:hover:not(:disabled) {
  background: #4b5563;
  border-color: #4b5563;
}

.btn-purple {
  background: #8b5cf6;
  color: white;
}

.btn-purple:hover:not(:disabled) {
  background: #7c3aed;
}

.link-btn {
  background: transparent;
  border: none;
  color: #3b82f6;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem;
  border-radius: 0.25rem;
  transition: all 0.2s;
}

.link-btn:hover {
  color: #2563eb;
  background: #ebf8ff;
}

.link-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Button Loading States */
.btn-spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Loading Spinner */
.loading-spinner {
  width: 2rem;
  height: 2rem;
  border: 3px solid #e5e7eb;
  border-top: 3px solid #3b82f6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

/* Timer */
.timer-container {
  text-align: center;
  margin-bottom: 1.5rem;
}

#timer-text {
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

#timer {
  font-weight: 600;
  color: #dc2626;
}

/* Error Messages */
.error-message {
  color: #dc2626;
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

.error-box {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 0.5rem;
  padding: 0.75rem;
  margin-bottom: 1.5rem;
  color: #b91c1c;
  font-size: 0.875rem;
  text-align: left;
}

/* Warning Message */
.warning-message {
  background-color: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.warning-icon {
  font-size: 16px;
  color: #f39c12;
}

.warning-text {
  font-size: 14px;
  color: #856404;
  font-weight: 500;
}

/* Names List */
.names-list-container {
  margin-bottom: 2rem;
  margin-top: 1.5rem;
  text-align: left;
}

.names-list-container h3 {
  margin-bottom: 0.5rem;
}

.names-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.name-item {
  background: linear-gradient(135deg, #ebf8ff 0%, #f3e8ff 100%);
  border: 1px solid #bfdbfe;
  border-radius: 0.5rem;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.name-number {
  font-size: 0.875rem;
  font-weight: 500;
  color: #3b82f6;
}

.name-text {
  font-weight: 500;
  color: #111827;
}

.empty-names {
  text-align: center;
  padding: 2rem;
  color: #9ca3af;
}

/* Countdown Banner */
.countdown-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #f5c3f1 0%, #6106d9 100%);
  color: white;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.2);
}

/* Screen-specific countdown banners */
.screen-countdown {
  color: white;
  z-index: 1000;
  height: auto;
}

.screen-countdown img {
  height: 900px !important;
  width: auto;
}

.screen-countdown .countdown-content {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 500;
}

.screen-countdown .countdown-text {
  font-size: 0.875rem;
}

.screen-countdown .countdown-timer {
  font-family: "Courier New", monospace;
  font-size: 1.375rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 0.25rem;
  border: 1px solid rgba(59, 130, 246, 0.3);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.countdown-content {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 500;
}

.countdown-text {
  font-size: 0.875rem;
}

.countdown-timer {
  font-family: "Courier New", monospace;
  font-size: 1.25rem;
  text-wrap: wrap;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 0.25rem;
  border: 1px solid rgba(59, 130, 246, 0.3);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Adjust body padding when countdown is shown */
body.countdown-active {
  padding-top: 3rem;
}

/* Notice */
.notice {
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: 0.5rem;
  padding: 1rem;
  text-align: center;
  font-weight: 500;
  color: #92400e;
}

.countdown-content {
  max-width: 64rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
}

.countdown-text {
  font-size: 0.875rem;
}

.countdown-timer {
  font-size: 1.125rem;
  font-weight: 700;
  font-family: "Courier New", monospace;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 0.375rem;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Countdown responsive adjustments */
.countdown-banner + .screen {
  padding-top: 4rem;
}

@media (min-width: 641px) and (max-width: 768px) {
  .container {
    max-width: 36rem;
  }

  .card {
    padding: 2rem;
  }

  .header-content {
    flex-direction: row;
    align-items: center;
  }

  .header-countdown {
    padding: 0.625rem 1rem;
  }

  .main-content {
    padding: 2rem 1rem;
  }
}

@media (min-width: 640px) {
  .section {
    max-width: 40rem;
  }

  .logout-text {
    display: inline;
  }

  .card {
    padding: 2.5rem;
  }

  .countdown-text {
    font-size: 1rem;
  }

  .countdown-timer {
    font-size: 1.25rem;
  }
}

@media (min-width: 768px) {
  .screen {
    padding: 2rem;
  }

  h1 {
    font-size: 1.875rem;
  }

  .main-content {
    padding: 3rem 2rem;
  }

  .container {
    max-width: 40rem;
  }

  .names-list {
    grid-template-columns: 1fr 1fr;
  }
}

/* Mobile Layout Improvements */
@media (max-width: 768px) {
  body {
    overflow-x: hidden; /* Prevent horizontal scrolling */
  }

  .screen {
    min-height: calc(
      100vh - 10px
    ); /* Slightly reduce to prevent vertical scrolling */
    padding-top: 0;
  }

  .screen.with-countdown {
    padding-top: 2.5rem; /* Reduce padding when countdown is visible */
  }

  .screen-countdown {
    height: auto; /* Adjust height automatically */
  }

  .screen-countdown .countdown-content {
    padding: 0.5rem;
  }

  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }
}

/* Very small screens */
@media (max-width: 360px) {
  .mobile-logo-layout .container {
    margin-top: 45px;
  }

  .mobile-logo-layout .screen-countdown {
  
  }

  .mobile-logo-layout .app-layout {
    /* margin-top: 45px; */
  }
}

/* Fix mobile-specific spacing and scrolling issues */
@media (max-width: 768px) {
  #phone-entry-screen {
    padding-top: 0;
    position: relative;
    /* margin-top: 40px; */
  }

  #phone-entry-screen.with-countdown {
    padding-top: 0;
    /* margin-top: 40px; */
  }

  #code-verification-screen {
    padding-top: 0;
    position: relative;
    /* margin-top: 40px; */
  }

  #code-verification-screen.with-countdown {
    padding-top: 0;
    /* margin-top: 40px; */
  }

  .flowing-logos-container-inline {
    margin-top: 5px;
  }

  /* Better hardware acceleration for smooth animation */
  .flowing-logos {
    -webkit-transform: translateZ(0);
    -moz-transform: translateZ(0);
    -ms-transform: translateZ(0);
    -o-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: transform;
  }
}

/* Fix for mobile positioning issues */
@media (max-width: 768px) {
  body {
    /* Allow scrolling on mobile if needed */
    position: relative;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .screen {
    /* padding-top: 45px !important; */
    min-height: calc(100vh - 40px);
  }

  .screen-countdown {
    height: auto;
    min-height: 50px;
  }

  .screen-countdown img {
    height: auto;
    width: 100%;
    max-height:590px;
    object-fit: cover;
  }

  .screen-countdown .countdown-content {
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .screen-countdown .countdown-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  }

  .screen-countdown .countdown-timer {
    font-size: 1.1rem;
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  }

  .card {
    margin-top: 5px;
    padding-top: 10px;
  }
}

/* Specific fix for phone-countdown mobile spacing issue */
@media (max-width: 768px) {
  #phone-countdown,
  #code-countdown,
  .screen-countdown {
    z-index: 1001;
    height: auto;
    min-height: 50px;
    display: flex;
    align-items: center;
  }

  #phone-entry-screen,
  #code-verification-screen,
  #loading-screen,
  #lottery-closed-screen,
  #main-app-screen {
    display: flex;
    flex-direction: column;
  }

  #phone-entry-screen .container,
  #code-verification-screen .container,
  #loading-screen .container,
  #lottery-closed-screen .container,
  #main-app-screen .container {
    margin-top: 10px;
  }

  /* Make sure containers have proper z-index */
  .container {
    position: relative;
    z-index: 10;
  }

  /* Fix the countdown to be clearly visible at the top */
  /* .screen-countdown {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1005 !important;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  } */
}

/* Phone entry screen prize gallery adjustments */
#phone-entry-screen,
#code-verification-screen,
#loading-screen,
#lottery-closed-screen,
#main-app-screen {
  /* padding-top: 90px !important; */
}

#lottery-closed-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  #phone-entry-screen,
  #code-verification-screen,
  #loading-screen,
  #lottery-closed-screen,
  #main-app-screen {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* padding: 60px 1rem 1rem !important; */
  }
}

#phone-entry-screen .main-image-container {
  max-height: 350px;
  overflow: hidden;
}

#phone-entry-screen .main-image-slider {
  animation-duration: 35s;
}

#phone-entry-screen .main-image {
  width: 380px;
  height: 280px;
}

/* Thumbnail styles removed to save resources */

@media (max-width: 480px) {
  #phone-entry-screen .main-image-container {
    max-height: 260px;
  }

  #phone-entry-screen .main-image {
    width: 280px;
    height: 210px;
  }

  #phone-entry-screen .prize-title {
    font-size: 1.2rem;
  }
}

/* Improve spacing and responsiveness for phone-entry-screen */
#phone-entry-screen .container {
  margin-bottom: 1rem;
}

#phone-entry-screen .card {
  padding-bottom: 1.5rem;
}

/* Reduce padding for better spacing in phone entry layout */
#phone-entry-screen .container:first-of-type .card {
  padding: 0.5rem 1rem 1rem;
}

/* Extra spacing adjustments for mobile */
@media (max-width: 480px) {
  #phone-entry-screen .screen-countdown {
    margin-bottom: 0.5rem;
  }

  #phone-entry-screen .container:first-of-type {
    margin-bottom: 0.5rem;
  }

  #phone-entry-screen .container:first-of-type .card {
    padding: 0.5rem 0.75rem 0.75rem;
  }
}

/* Focus Styles for Accessibility */
button:focus,
input:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* Smooth Transitions */
.screen,
.section,
.btn,
input {
  transition: all 0.3s ease;
}

/* Print Styles */
@media print {
  .header,
  .btn,
  .logout-btn {
    display: none;
  }

  .screen {
    min-height: auto;
    padding: 1rem;
  }

  .card {
    box-shadow: none;
    border: 1px solid #e5e7eb;
  }
}

/* Mobile-specific responsive styles */
@media (max-width: 640px) {
  /* Screen countdown mobile styles */
  .screen-countdown .countdown-content {
    padding: 0.5rem 1rem;
    flex-direction: column;
    gap: 0.25rem;
    text-align: center;
  }

  .screen-countdown .countdown-text {
    font-size: 0.75rem;
  }

  .screen-countdown .countdown-timer {
    font-size: 0.875rem;
    padding: 0.125rem 0.375rem;
  }

  .screen.with-countdown {
    padding-top: 5rem;
  }

  /* Header mobile styles */
  .header-content {
    padding: 0.75rem 1rem;
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }

  .header-left {
    order: 1;
  }

  .header-right {
    order: 2;
    justify-content: space-between;
  }

  .header-countdown {
    justify-content: center;
    padding: 0.75rem 1rem;
  }

  .countdown-label {
    font-size: 0.6875rem;
  }

  .countdown-value {
    font-size: 0.875rem;
  }

  .user-info {
    text-align: center;
  }

  .user-details h2 {
    font-size: 1rem;
  }

  .user-details p {
    font-size: 0.8125rem;
  }

  .logout-btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    color: #374151;
    border-radius: 0.5rem;
    min-height: 2.5rem;
    font-weight: 500;
  }

  .logout-btn:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
  }

  /* Better mobile container and card */
  .container {
    max-width: 100%;
    padding: 0 1rem;
  }

  .card {
    padding: 1.5rem;
    margin: 0.5rem 0;
  }

  .main-content {
    padding: 1rem 0.5rem;
  }

  h1 {
    font-size: 1.375rem;
  }

  /* Better mobile form layout */
  .names-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .form-group {
    margin-bottom: 1.25rem;
  }

  .form-group label {
    font-size: 0.9375rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
  }

  .form-group input {
    padding: 1rem;
    font-size: 1rem;
    border-width: 2px;
    border-radius: 0.75rem;
  }

  .form-group input:focus {
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
  }

  .btn {
    padding: 1rem 1.5rem;
    font-size: 1rem;
    border-radius: 0.75rem;
    font-weight: 700;
  }

  /* Make mobile interactions easier */
  .btn,
  .form-group input,
  .logout-btn {
    min-height: 3rem;
  }

  /* Better mobile spacing */
  .section {
    padding: 1rem 0;
  }

  .names-list-container {
    margin-bottom: 1.5rem;
  }

  .name-item {
    padding: 1rem;
    border-radius: 0.75rem;
  }
}

/* Toast Messages */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.3s ease;
  min-width: 300px;
  max-width: 400px;
}

.toast.show {
  opacity: 1;
  transform: translateX(0);
}

.toast-content {
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.toast-message {
  flex-grow: 1;
  font-weight: 500;
  color: #333;
}

.toast-close {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #666;
  padding: 0;
  margin-left: 16px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toast-close:hover {
  color: #333;
}

.toast-success {
  border-left: 4px solid #4caf50;
}

.toast-success .toast-message {
  color: #2e7d32;
}

.toast-error {
  border-left: 4px solid #f44336;
  background-color: #ffebee;
}

.toast-error .toast-message {
  color: #c62828;
  font-weight: bold;
}

@media (max-width: 768px) {
  .toast {
    left: 20px;
    right: 20px;
    min-width: auto;
    max-width: none;
  }
}

#phone-form {
  margin-top: 1.5rem;
}

#phone-display {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 1rem;
}

#code-form {
  margin-top: 1.5rem;
}

#header-phone {
  font-size: 1rem;
  font-weight: 600;
}

#names-form {
  margin-top: 1.5rem;
}

/* Sponsor Logos Styles */
.sponsor-logos {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 100;
}

.sponsor-logos-main {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  max-width: 100%;
}

/* Logo Cards */
.logo-card {
  background: #ffffff;
  border-radius: 8px;
  padding: 8px 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  min-width: 60px;
}

.logo-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Individual card backgrounds for better contrast */
.ntv-card {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-color: #bae6fd;
}

.jetour-card {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  border-color: #475569;
}

.sain-card {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border-color: #fecaca;
}

.skytel-card {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-color: #bfdbfe;
}

.sponsor-logo {
  height: 28px;
  width: auto;
  object-fit: contain;
  filter: brightness(0.95);
  transition: filter 0.3s ease;
  max-width: 70px;
}

.sponsor-logo:hover {
  filter: brightness(1);
}

/* Individual logo styles for better visibility */
.ntv-logo {
  height: 24px;
  max-width: 50px;
}

.jetour-logo {
  height: 30px;
  max-width: 80px;
  filter: brightness(1.1); /* Brighter for white logo on dark background */
}

.sain-logo {
  height: 26px;
  max-width: 60px;
}

.skytel-logo {
  height: 24px;
  max-width: 55px;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .sponsor-logos {
    padding: 8px 12px;
    margin-bottom: 12px;
    border-radius: 8px;
  }

  .sponsor-logos-main {
    padding: 12px 16px;
    margin-bottom: 16px;
    border-radius: 12px;
  }

  .logo-container {
    gap: 8px;
    justify-content: space-between;
  }

  .logo-card {
    padding: 6px 8px;
    min-height: 32px;
    min-width: 45px;
    border-radius: 6px;
  }

  .sponsor-logo {
    height: 20px;
    max-width: 50px;
  }

  .ntv-logo {
    height: 18px;
    max-width: 35px;
  }

  .jetour-logo {
    height: 22px;
    max-width: 55px;
  }

  .sain-logo {
    height: 20px;
    max-width: 45px;
  }

  .skytel-logo {
    height: 18px;
    max-width: 40px;
  }
}

@media (max-width: 480px) {
  .sponsor-logos {
    padding: 6px 8px;
    margin-bottom: 8px;
  }

  .sponsor-logos-main {
    padding: 8px 12px;
    margin-bottom: 12px;
  }

  .logo-container {
    gap: 6px;
    justify-content: space-between;
    flex-wrap: nowrap;
  }

  .logo-card {
    padding: 4px 6px;
    min-height: 28px;
    min-width: 35px;
    border-radius: 4px;
    flex: 1;
    max-width: 70px;
  }

  .sponsor-logo {
    height: 16px;
    max-width: 40px;
    flex-shrink: 1;
  }

  .ntv-logo {
    height: 14px;
    max-width: 28px;
  }

  .jetour-logo {
    height: 18px;
    max-width: 45px;
  }

  .sain-logo {
    height: 16px;
    max-width: 35px;
  }

  .skytel-logo {
    height: 14px;
    max-width: 30px;
  }
}

@media (max-width: 360px) {
  .sponsor-logos {
    padding: 4px 6px;
    margin-bottom: 6px;
  }

  .logo-container {
    gap: 4px;
  }

  .logo-card {
    padding: 3px 4px;
    min-height: 24px;
    min-width: 30px;
  }

  .sponsor-logo {
    height: 14px;
    max-width: 32px;
  }

  .ntv-logo {
    height: 12px;
    max-width: 22px;
  }

  .jetour-logo {
    height: 16px;
    max-width: 35px;
  }

  .sain-logo {
    height: 14px;
    max-width: 28px;
  }

  .skytel-logo {
    height: 12px;
    max-width: 24px;
  }
}

/* Ensure logos stay at top on mobile screens */
@media (max-width: 768px) {
  .screen {
    display: flex;
    flex-direction: column;
  }

  .sponsor-logos,
  .sponsor-logos-main {
    order: -1;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
  }

  .container {
    flex: 1;
  }
}

/* Mobile responsiveness for mini logos */
@media (max-width: 768px) {
  .icon-with-sponsors {
    gap: 6px;
    padding: 12px 16px !important;
    width: 7rem !important;
    height: 7rem !important;
  }

  .sponsor-logo-mini {
    min-width: 40px;
    min-height: 32px;
    padding: 6px 8px;
  }

  .mini-logo {
    height: 22px;
    max-width: 36px;
  }

  .jetour-mini .mini-logo {
    height: 24px;
    max-width: 40px;
  }
}

@media (max-width: 480px) {
  .icon-with-sponsors {
    gap: 4px;
    padding: 10px 12px !important;
    width: 6rem !important;
    height: 6rem !important;
  }

  .sponsor-logo-mini {
    min-width: 36px;
    min-height: 28px;
    padding: 4px 6px;
  }

  .mini-logo {
    height: 18px;
    max-width: 32px;
  }

  .jetour-mini .mini-logo {
    height: 20px;
    max-width: 36px;
  }
}

/* Flowing sponsor logos at top of screens */
/* Flowing logos container - now inline within card */
.flowing-logos-container-inline {
  width: 100%;
  height: 80px;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.8) 0%,
    rgba(240, 249, 255, 0.9) 100%
  );
  border-radius: 12px;
  margin-bottom: 20px;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(59, 130, 246, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 1;
  -webkit-transform: translateZ(0);
  -moz-transform: translateZ(0);
  -ms-transform: translateZ(0);
  -o-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  perspective: 1000px;
}

/* Legacy fixed container - kept for backwards compatibility */
.flowing-logos-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(248, 250, 252, 0.95) 100%
  );
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.5);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 200;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.flowing-logos {
  display: flex;
  align-items: center;
  gap: 55px;
  animation: flowRight 25s linear infinite;
  white-space: nowrap;
  padding: 0 10px; /* Add padding to avoid edges touching container */
  width: max-content;
  position: absolute;
  left: 0;
}

/* Inline version has smaller logos */
.flowing-logos-container-inline .flowing-logos {
  gap: 45px;
  animation: flowRight 30s linear infinite;
  animation-timing-function: linear;
}

.flowing-logo {
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  padding: 8px 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Inline version has smaller logo containers */
.flowing-logos-container-inline .flowing-logo {
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transform: scale(1);
  transition: transform 0.4s ease, box-shadow 0.3s ease;
}

.flowing-logo:hover {
  transform: scale(1.25) translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 20;
}

.flowing-logo img {
  height: 32px;
  width: auto;
  object-fit: contain;
  max-width: 80px;
  filter: brightness(0.9);
  transition: filter 0.3s ease;
}

/* Inline version has smaller images */
.flowing-logos-container-inline .flowing-logo img {
  height: 32px;
  max-width: 70px;
  filter: brightness(1);
}

.flowing-logo:hover img {
  filter: brightness(1);
}

/* Special styling for jetour logo */
.flowing-logo img[alt="JeTour"] {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  border-radius: 6px;
  padding: 6px 10px;
  filter: brightness(1.2);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
}

/* Flowing logos animation */
@keyframes flowRight {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-50%)); /* Exactly half width for perfect loop */
  }
}

/* Add a subtle float animation */
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.flowing-logo {
  animation: float 3s ease-in-out infinite;
  animation-delay: calc(var(--animation-order, 0) * 0.5s);
}

.flowing-logo:nth-child(1) {
  --animation-order: 1;
}
.flowing-logo:nth-child(2) {
  --animation-order: 2;
}
.flowing-logo:nth-child(3) {
  --animation-order: 3;
}
.flowing-logo:nth-child(4) {
  --animation-order: 4;
}
.flowing-logo:nth-child(5) {
  --animation-order: 5;
}
.flowing-logo:nth-child(6) {
  --animation-order: 6;
}
.flowing-logo:nth-child(7) {
  --animation-order: 7;
}
.flowing-logo:nth-child(8) {
  --animation-order: 8;
}
.flowing-logo:nth-child(9) {
  --animation-order: 1;
}
.flowing-logo:nth-child(10) {
  --animation-order: 2;
}
.flowing-logo:nth-child(11) {
  --animation-order: 3;
}
.flowing-logo:nth-child(12) {
  --animation-order: 4;
}

/* Center logo scaling animation */
@keyframes centerScale {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.5);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    z-index: 10;
  }
}

.flowing-logo:nth-child(4n + 2) {
  animation: centerScale 5s ease-in-out infinite, float 3s ease-in-out infinite;
  animation-delay: 1s, calc(var(--animation-order, 0) * 0.5s);
}

.flowing-logo:nth-child(4n + 4) {
  animation: centerScale 5s ease-in-out infinite, float 3s ease-in-out infinite;
  animation-delay: 3s, calc(var(--animation-order, 0) * 0.5s);
}

/* Mobile responsive for flowing logos */
@media (max-width: 768px) {
  .flowing-logos-container-inline {
    height: 70px;
    margin-bottom: 16px;
  }

  .flowing-logos {
    gap: 40px;
    animation-duration: 25s; /* Slower animation on mobile */
  }

  .flowing-logo {
    padding: 8px 12px;
    border-radius: 8px;
  }

  .flowing-logo img {
    height: 28px;
    max-width: 65px;
  }

  .flowing-logo img[alt="JeTour"] {
    padding: 4px 8px;
  }
}

@media (max-width: 480px) {
  .flowing-logos-container-inline {
    height: 60px;
    margin-bottom: 14px;
  }

  .flowing-logos {
    gap: 30px;
    animation-duration: 15s;
  }

  .flowing-logo {
    padding: 6px 8px;
  }

  .flowing-logo img {
    height: 24px;
    max-width: 55px;
  }
}

/* Prize Gallery Styles */
.prize-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #333;
  font-weight: bold;
}

.prize-gallery {
  width: 100%;
  max-width: 700px;
  margin: 0 auto 2rem;
  position: relative;
}

.prize-gallery-main {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  overflow: hidden;
  margin-bottom: 0.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.main-gallery-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.main-gallery-image:hover {
  transform: scale(1.02);
}

.gallery-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s;
  z-index: 2;
}

.gallery-nav-btn:hover {
  opacity: 1;
}

.prev-btn {
  left: 10px;
}

.next-btn {
  right: 10px;
}

.prize-gallery-thumbnails {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.gallery-thumbnail {
  width: 60px;
  height: 60px;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.3s, transform 0.2s;
  border: 2px solid transparent;
}

.gallery-thumbnail:hover {
  opacity: 0.9;
  transform: scale(1.05);
}

.gallery-thumbnail.active {
  opacity: 1;
  border-color: #8b5cf6;
}

.gallery-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Lightbox Styles */
.gallery-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: transparent;
  color: white;
  border: none;
  font-size: 28px;
  cursor: pointer;
  z-index: 1001;
}

.lightbox-image-container {
  position: relative;
}

.lightbox-image {
  max-width: 100%;
  max-height: 80vh;
  display: block;
  border-radius: 4px;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  transition: background 0.3s;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox-nav.prev {
  left: -60px;
}

.lightbox-nav.next {
  right: -60px;
}

.lightbox-counter {
  position: absolute;
  bottom: -30px;
  left: 0;
  right: 0;
  text-align: center;
  color: white;
  font-size: 14px;
}

/* React Components Styles */
.prize-gallery {
  width: 100%;
  max-width: 700px;
  margin: 0 auto 2rem;
  position: relative;
}

.prize-gallery-main {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  overflow: hidden;
  margin-bottom: 0.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.main-gallery-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.main-gallery-image:hover {
  transform: scale(1.02);
}

.gallery-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s;
  z-index: 2;
}

.gallery-nav-btn:hover {
  opacity: 1;
}

.prev-btn {
  left: 10px;
}

.next-btn {
  right: 10px;
}

.prize-gallery-thumbnails {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.gallery-thumbnail {
  width: 60px;
  height: 60px;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.3s, transform 0.2s;
  border: 2px solid transparent;
}

.gallery-thumbnail:hover {
  opacity: 0.9;
  transform: scale(1.05);
}

.gallery-thumbnail.active {
  opacity: 1;
  border-color: #8b5cf6;
}

.gallery-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Lightbox Styles */
.gallery-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: transparent;
  color: white;
  border: none;
  font-size: 28px;
  cursor: pointer;
  z-index: 1001;
}

.lightbox-image-container {
  position: relative;
}

.lightbox-image {
  max-width: 100%;
  max-height: 80vh;
  display: block;
  border-radius: 4px;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  transition: background 0.3s;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox-nav.prev {
  left: -60px;
}

.lightbox-nav.next {
  right: -60px;
}

.lightbox-counter {
  position: absolute;
  bottom: -30px;
  left: 0;
  right: 0;
  text-align: center;
  color: white;
  font-size: 14px;
}

/* Flowing Logos Styles */
.flowing-logos-container-inline {
  width: 100%;
  overflow: hidden;
  margin: 0 auto 1.5rem;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  padding: 10px 0;
}

.flowing-logos {
  display: flex;
  align-items: center;
  animation: flowLogos 30s linear infinite;
  width: fit-content;
}

.flowing-logo {
  flex: 0 0 auto;
  height: 40px;
  margin: 0 20px;
  opacity: 0.85;
  transition: opacity 0.3s;
}

.flowing-logo:hover {
  opacity: 1;
}

.flowing-logo img {
  height: 100%;
  width: auto;
}

@keyframes flowLogos {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Mobile Responsive Adjustments for React Components */
@media (max-width: 768px) {
  .prize-gallery-main {
    padding-bottom: 75%; /* More square aspect ratio on mobile */
  }

  .gallery-nav-btn {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }

  .prize-gallery-thumbnails {
    gap: 5px;
  }

  .gallery-thumbnail {
    width: 40px;
    height: 40px;
  }

  .lightbox-nav {
    width: 40px;
    height: 40px;
  }

  .lightbox-nav.prev {
    left: -45px;
  }

  .lightbox-nav.next {
    right: -45px;
  }

  .flowing-logo {
    height: 30px;
    margin: 0 15px;
  }
}
