@font-face {
  font-family: 'Poppins';
  src: url('../fonts/poppins/poppins-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('../fonts/poppins/poppins-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('../fonts/poppins/poppins-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --primary-color: #b81c81;
  --bg-desktop: #eaedf1;
  --bg-mobile: #fdfdfd;
  /* Reverted to original light theme */
  --text-main: #000000;
  --text-muted: #555555;
  --card-bg: #ffffff;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-desktop);
  font-family: 'Poppins', sans-serif;
}

/* Centralized Mobile Wrapper */
.mobile-wrapper {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background-color: var(--bg-mobile);
  color: var(--text-main);
  position: relative;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
}

/* Custom app header that stays at the top of the wrapper */
.app-header {
  background: linear-gradient(45deg, rgba(177, 31, 129, 1) 0%, rgba(202, 22, 131, 1) 27%, rgba(237, 90, 158, 1) 79%);
  border-bottom: 1px solid #ddd;
  padding: 8px 10px;
  /* Reduced for more space below */
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1040;
}

.app-header img {
  height: 40px;
  width: auto;
}

.home-btn {
  background-color: #ffffff;
  color: var(--primary-color);
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: opacity 0.2s;
}

.home-btn:hover {
  opacity: 0.85;
  color: var(--primary-color);
}

/* Marquee in header */
.marquee-container {
  overflow: hidden;
  width: 100%;
  white-space: nowrap;
  margin: 0 10px;
  flex-grow: 1;
}

.marquee-track {
  display: inline-block;
  white-space: nowrap;
  animation: marquee 10s linear infinite;
}

.marquee-text {
  color: #ffffff;
  /* Reverted to white */
  font-size: 18px;
  font-weight: 600;
  margin-right: 50px;
}

@keyframes marquee {
  0% {
    transform: translateX(100%);
  }

  100% {
    transform: translateX(-100%);
  }
}

/* Main Content Area */
.app-content {
  flex-grow: 1;
  padding: 10px;
  /* Reduced padding */
  position: relative;
}

/* Loader */
#loader-main {
  background: rgba(255, 255, 255, 0.9);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}

.loader {
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Custom app footer */
.app-footer {
  background: linear-gradient(45deg, rgba(177, 31, 129, 1) 0%, rgba(202, 22, 131, 1) 27%, rgba(237, 90, 158, 1) 79%);
  border-top: 1px solid #ddd;
  padding: 8px 0;
  text-align: center;
  margin-top: auto;
  position: sticky;
  bottom: 0;
  z-index: 1030;
}

.marquee-footer-container {
  overflow: hidden;
  width: 100%;
  white-space: nowrap;
}

.marquee-footer-track {
  display: inline-block;
  white-space: nowrap;
  animation: footermarquee 15s linear infinite;
}

.marquee-footer-text {
  color: #ffffff;
  /* White text for colored footer */
  font-weight: 600;
  font-size: 17px;
  /* Reduced size */
  margin-right: 50px;
}

@keyframes footermarquee {
  0% {
    transform: translateX(100%);
  }

  100% {
    transform: translateX(-100%);
  }
}

.app-footer p {
  margin: 2px 0 0 0;
  font-size: 11px;
  color: #ffffff;
  opacity: 0.9;
}

.app-footer a {
  color: #ffffff;
  font-weight: bold;
  text-decoration: underline;
}

/* --- Global Jingle Video Container --- */
.jingle-container {
  margin: 15px 10px 10px;
  background-color: #000;
  border-radius: 12px;
  overflow: hidden;
  position: sticky;
  bottom: 53px;
  /* Ensure this anchors immediately above the ~52px app-footer natively */
  z-index: 1020;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.jingle-label {
  background-color: #111;
  color: #fff;
  text-align: center;
  font-size: 9px;
  padding: 3px 0;
  font-weight: bold;
  letter-spacing: 1.5px;
}

.jingle-player {
  width: 100%;
  max-height: 190px;
  height: auto;
  display: block;
  object-fit: contain;

}

.jingle-unmute-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background-color: rgba(0, 0, 0, 0.6);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s;
}

.jingle-unmute-btn:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

/* Custom UI Alert / Toast System */
.toast-alert {
  position: fixed;
  bottom: 80px;
  /* Sits above footer */
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background-color: #333333;
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  pointer-events: none;
  text-align: center;
  max-width: 80%;
  word-wrap: break-word;
}

.toast-alert.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Modal-style Custom Alert for blocking warnings */
.custom-modal-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.custom-modal-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.custom-modal-box {
  background: #fff;
  width: 85%;
  max-width: 320px;
  margin: auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transform: scale(0.9);
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.custom-modal-overlay.show .custom-modal-box {
  transform: scale(1);
}

.custom-modal-header {
  background: linear-gradient(135deg, var(--primary-color), #8b0064);
  padding: 15px;
  text-align: center;
  color: white;
  font-weight: 600;
  font-size: 16px;
}

.custom-modal-body {
  padding: 20px 15px;
  text-align: center;
  color: #333;
  font-size: 14px;
  line-height: 1.5;
}

.custom-modal-footer {
  border-top: 1px solid #eee;
  display: flex;
}

.custom-modal-btn {
  flex: 1;
  padding: 12px;
  background: transparent;
  border: none;
  font-weight: 600;
  color: var(--primary-color);
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s;
}

.custom-modal-btn:active {
  background: #f5f5f5;
}