/* ========================================
   COMPONENTS CSS - Arise Band_KE
   Reusable components, cards, buttons
   ======================================== */

/* === Navbar Styles === */
.navbar {
  min-height: 64px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  font-weight: 600;
  font-size: 1.1rem;
}

.navbar-brand span {
  display: inline-block;
}

.navbar-nav {
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  width: 100%;
  justify-content: flex-end;
}

.navbar-nav .nav-item {
  margin-bottom: 0 !important;
}

.navbar-nav .nav-link {
  padding: 0.5rem 1rem;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--accent1, #0dcaf0);
}

.navbar-nav .nav-link.active {
  color: var(--accent1, #0dcaf0);
  font-weight: 500;
}

/* === Event List Items === */
.list-group-item {
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.list-group-item:hover {
  background-color: #f8f9fa;
  transform: translateX(5px);
}

.list-group-item a {
  pointer-events: auto !important;
  cursor: pointer !important;
}

.list-group-item a:hover .fw-bold {
  color: #0dcaf0 !important;
}

/* === Carousel Container === */
.carousel-container {
  width: 400px;
  height: 250px;
}

/* === Card Hover Effects === */
.card:hover {
  transform: scale(1.02);
  box-shadow: 0 0.75rem 1.5rem rgba(8, 136, 156, 0.15);
  transition: all 0.3s ease-in-out;
}

.card-body {
  color: #f8f9fa;
  font-size: 1.05rem;
  line-height: 1.7;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

.card-title {
  font-size: 1.4rem;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* === Vision/Mission Card Component === */
.vision-mission-card {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  min-height: 250px;
  transition: box-shadow .25s ease;
}

.vision-mission-card img.card-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s cubic-bezier(.2,.8,.2,1), filter .4s ease;
  will-change: transform;
  filter: blur(3px) brightness(0.55);
  transform: scale(1.04);
}

.vision-mission-card .card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  background: linear-gradient(180deg, rgba(0,0,0,0.08) 40%, rgba(0,0,0,0.7) 100%);
  color: #fff;
  transition: background .3s ease;
}

.vision-mission-card .card-body {
  background: transparent;
  padding: 0;
  margin: 0 auto;
  max-width: 92%;
}

.vision-mission-card .card-title {
  margin-bottom: .25rem;
  color: #ffd580;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.vision-mission-card .card-text {
  font-size: .95rem;
  line-height: 1.4;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
  color: rgba(255,244,230,0.95);
  font-weight: 500;
}

/* Hover effects */
.vision-mission-card:hover {
  box-shadow: 0 12px 30px rgba(2,6,23,0.45);
}

.vision-mission-card:hover img.card-cover {
  transform: scale(1.08) rotate(-0.8deg);
  filter: blur(1px) brightness(0.5);
}

.vision-mission-card:hover .card-overlay {
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 20%, rgba(0,0,0,0.6) 100%);
}

/* === Event Logo Component === */
.event-logo-wrap {
  width: 64px;
  height: 64px;
  margin-right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: visible;
}

.event-logo {
  height: 64px;
  width: auto;
  object-fit: cover;
  border-radius: 6px;
  transform-origin: center;
  z-index: 1;
  display: block;
  animation: heartbeat 1.2s cubic-bezier(.4,0,.2,1) infinite;
  will-change: transform, filter;
  box-shadow: 0 0 0 rgba(0,0,0,0);
  transition: opacity .5s ease;
}

.event-logo-wrap::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(1);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: radial-gradient(circle at center,
    rgba(255,193,7,0.90) 0%,
    rgba(255,193,7,0.55) 18%,
    rgba(0,123,255,0.14) 45%,
    rgba(0,123,255,0.06) 60%,
    rgba(0,0,0,0) 100%);
  filter: blur(10px);
  z-index: 0;
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  animation: glowFade 2.4s ease-in-out infinite;
  will-change: transform, opacity, filter;
}

.event-logo-wrap::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.96);
  width: 54px;
  height: 54px;
  border-radius: 8px;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.12), rgba(255,255,255,0) 40%);
  z-index: 2;
  opacity: 0;
  animation: innerSheen 2.4s ease-in-out infinite;
  pointer-events: none;
}

/* === Vintage/CTA Button Styles === */
.btn-vintage {
  background: linear-gradient(180deg, #f7e7c8 0%, #e7cfa6 100%);
  color: #2b1b10;
  border: 1px solid rgba(80,55,34,0.12);
  box-shadow: 0 8px 26px rgba(18,10,6,0.45), inset 0 1px 0 rgba(255,255,255,0.6);
  border-radius: 8px;
  padding: .6rem 1.1rem;
  font-weight: 700;
  transition: transform .12s ease, box-shadow .12s ease;
}

.btn-vintage:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 38px rgba(18,10,6,0.5);
}

.btn-outline-vintage {
  background: transparent;
  color: #fff8ee;
  border: 1px solid rgba(255, 250, 240, 0.18);
  box-shadow: 0 6px 18px rgba(0,0,0,0.45);
  border-radius: 8px;
  padding: .55rem 1rem;
}

.btn-outline-vintage:hover {
  background: rgba(255,250,240,0.06);
  transform: translateY(-2px);
}

.btn-cta {
  border-radius: 999px;
  padding: .85rem 1.6rem;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(0,123,255,0.22);
  background: linear-gradient(90deg, var(--accent1), var(--accent2));
  color: #001827;
  transition: transform .18s ease, box-shadow .18s ease;
  border: none;
}

.btn-cta:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 18px 40px rgba(0,123,255,0.32);
}

/* === Vintage Card === */
.vintage-card {
  background: rgba(255, 249, 238, 0.92);
  border-radius: 10px;
  padding: 18px;
  box-shadow: 0 12px 30px rgba(6,4,2,0.45), inset 0 1px 0 rgba(255,255,255,0.6);
  color: #2b1b10;
  border: 1px solid rgba(120,90,60,0.08);
}

.vintage-card .card-title {
  font-weight: 700;
  margin-bottom: .6rem;
  color: #2b1b10;
}

.vintage-card .form-control {
  background: rgba(245,238,226,0.95);
  border: 1px solid rgba(140,105,75,0.18);
  padding: .6rem .75rem;
  color: #2b1b10;
  border-radius: 6px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
  transition: transform .08s ease, box-shadow .08s ease;
}

.vintage-card .form-control:focus {
  outline: none;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(18,10,6,0.16);
  border-color: rgba(120,90,60,0.3);
}

/* === Contact Card === */
.contact-card {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  max-width: 1100px;
  border-radius: 18px;
  padding: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid var(--glass-border);
  box-shadow: 0 12px 40px rgba(2,6,23,0.6), inset 0 1px 0 rgba(255,255,255,0.02);
  backdrop-filter: blur(8px) saturate(120%);
}

.contact-card .form-control {
  background: linear-gradient(180deg, rgba(255,255,255,0.01), rgba(255,255,255,0.00));
  border: 1px solid rgba(255,255,255,0.06);
  border-left: 4px solid transparent;
  color: #eaf9ff;
  padding: 16px 14px;
  transition: all .22s ease;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(2,6,23,0.5);
}

.contact-card .form-control::placeholder {
  color: rgba(234,249,255,0.6);
}

.contact-card .form-control:focus {
  outline: none;
  border-color: rgba(0,255,247,0.28);
  border-left-color: var(--accent1);
  box-shadow: 0 10px 30px rgba(0,123,255,0.12), 0 0 30px rgba(0,255,247,0.04);
  transform: translateY(-2px);
}

/* ========================================
   EVENT NOTIFICATION POPUP
   ======================================== */

.event-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

.event-popup.show {
  display: flex;
}

.event-popup-content {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-radius: 1.5rem;
  width: 90%;
  max-width: 450px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
  animation: slideUp 0.4s ease;
  border: 2px solid rgba(13, 202, 240, 0.3);
}

.event-popup-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  font-size: 2rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.event-popup-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.event-popup-header {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.event-popup-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.8);
}

.event-popup-body {
  padding: 2rem;
  text-align: center;
  color: #fff;
}

.event-popup-body h4 {
  color: #0dcaf0;
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.event-popup-body h5 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #fff;
}

.event-popup-body p {
  font-size: 1.1rem;
  margin: 0.5rem 0;
  color: rgba(255, 255, 255, 0.9);
}

.event-location,
.event-date {
  font-weight: 500;
}

/* Countdown Timer Styles */
.countdown-timer {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem 0;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(13, 202, 240, 0.1);
  border: 2px solid rgba(13, 202, 240, 0.3);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  min-width: 70px;
}

.countdown-value {
  font-size: 2rem;
  font-weight: 700;
  color: #0dcaf0;
  line-height: 1;
  display: block;
  margin-bottom: 0.25rem;
}

.countdown-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.5px;
}

.event-popup-body .btn-primary {
  background: linear-gradient(135deg, #0dcaf0 0%, #007bff 100%);
  border: none;
  padding: 0.75rem 2rem;
  font-weight: 600;
  font-size: 1.1rem;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(13, 202, 240, 0.3);
}

.event-popup-body .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13, 202, 240, 0.5);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Responsive Styles */
@media (max-width: 576px) {
  .event-popup-content {
    width: 95%;
    max-width: 350px;
  }
  
  .event-popup-body {
    padding: 1.5rem;
  }
  
  .event-popup-body h4 {
    font-size: 1.25rem;
  }
  
  .event-popup-body h5 {
    font-size: 1.4rem;
  }
  
  .countdown-timer {
    gap: 0.5rem;
  }
  
  .countdown-item {
    min-width: 60px;
    padding: 0.5rem 0.75rem;
  }
  
  .countdown-value {
    font-size: 1.5rem;
  }
  
  .countdown-label {
    font-size: 0.65rem;
  }
}

/* ========================================
   ATTENDANCE CONFIRMATION MODAL
   ======================================== */

.attendance-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

.attendance-modal.show {
  display: flex;
}

.attendance-modal-content {
  background: linear-gradient(135deg, #16213e 0%, #0f3460 100%);
  border-radius: 1.5rem;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
  animation: scaleIn 0.4s ease;
  border: 2px solid rgba(13, 202, 240, 0.4);
}

.attendance-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  font-size: 2rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.attendance-modal-close:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: rotate(90deg);
}

.attendance-modal-body {
  padding: 3rem 2rem 2rem;
  text-align: center;
  color: #fff;
}

.attendance-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #0dcaf0 0%, #007bff 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 3rem;
  font-weight: bold;
  color: #fff;
  box-shadow: 0 10px 30px rgba(13, 202, 240, 0.4);
  animation: pulse 2s infinite;
}

.attendance-modal-body h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
}

.attendance-modal-body p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
}

.event-details-summary {
  background: rgba(13, 202, 240, 0.1);
  border: 1px solid rgba(13, 202, 240, 0.3);
  border-radius: 1rem;
  padding: 1.25rem;
  text-align: left;
}

.event-details-summary p {
  margin: 0.5rem 0;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.95);
}

.event-details-summary strong {
  color: #0dcaf0;
  margin-right: 0.5rem;
}

.attendance-form {
  text-align: left;
  margin-bottom: 1.5rem;
}

.attendance-form .form-control {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(13, 202, 240, 0.3);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.attendance-form .form-control::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.attendance-form .form-control:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.15);
  border-color: #0dcaf0;
  box-shadow: 0 0 0 0.2rem rgba(13, 202, 240, 0.25);
}

.attendance-actions {
  margin-top: 1.5rem;
}

.attendance-actions .btn {
  border-radius: 0.75rem;
  padding: 0.85rem 1.5rem;
  font-weight: 600;
  font-size: 1.05rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.attendance-actions .btn-success {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  border: none;
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
}

.attendance-actions .btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(40, 167, 69, 0.6);
}

.attendance-actions .btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  background: transparent;
}

.attendance-actions .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  transform: translateY(-2px);
}

.attendance-actions .btn-link {
  text-decoration: none;
  padding: 0.5rem;
  opacity: 0.8;
}

.attendance-actions .btn-link:hover {
  opacity: 1;
  text-decoration: underline;
}

/* Pulse Animation for Icon */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 10px 30px rgba(13, 202, 240, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(13, 202, 240, 0.6);
  }
}

@keyframes scaleIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Responsive Styles for Attendance Modal */
@media (max-width: 576px) {
  .attendance-modal-content {
    width: 95%;
    max-width: 380px;
  }
  
  .attendance-modal-body {
    padding: 2rem 1.5rem 1.5rem;
  }
  
  .attendance-icon {
    width: 70px;
    height: 70px;
    font-size: 2.5rem;
  }
  
  .attendance-modal-body h3 {
    font-size: 1.4rem;
  }
  
  .attendance-modal-body p {
    font-size: 1rem;
  }
  
  .event-details-summary {
    padding: 1rem;
  }
  
  .event-details-summary p {
    font-size: 0.95rem;
  }
  
  .attendance-actions .btn {
    font-size: 1rem;
    padding: 0.75rem 1.25rem;
  }
}

/* ========================================
   M-PESA PAYMENT MODAL STYLES
   ======================================== */

.mpesa-step {
  display: none;
  text-align: center;
  padding: 1rem 0;
}

.mpesa-step.active {
  display: block;
}

.mpesa-step .py-4 {
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
}

/* M-Pesa Logo Circle */
.mpesa-logo-circle {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #00a651 0%, #007a3d 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  box-shadow: 0 8px 25px rgba(0, 166, 81, 0.4);
  animation: mpesaPulse 2s infinite;
}

@keyframes mpesaPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 8px 25px rgba(0, 166, 81, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(0, 166, 81, 0.6);
  }
}

/* Payment Summary Box */
.payment-summary {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 2px solid #dee2e6;
  border-radius: 0.75rem;
  padding: 1rem;
  margin: 0.75rem 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.payment-summary .text-muted {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.payment-summary strong {
  color: #495057;
  font-size: 1.1rem;
}

/* Processing Animation */
.spinner-border {
  width: 3rem;
  height: 3rem;
  border-width: 0.3rem;
  margin-bottom: 1.5rem;
}

.phone-animation {
  font-size: 2.5rem;
  color: #00a651;
  margin: 1rem 0;
  animation: shake 0.8s infinite;
}

@keyframes shake {
  0%, 100% {
    transform: translateX(0) rotate(0deg);
  }
  25% {
    transform: translateX(-5px) rotate(-5deg);
  }
  50% {
    transform: translateX(0) rotate(0deg);
  }
  75% {
    transform: translateX(5px) rotate(5deg);
  }
}

/* Success Icon */
.success-icon {
  font-size: 3.5rem;
  color: #28a745;
  margin-bottom: 0.75rem;
  animation: successPop 0.5s ease-out;
}

@keyframes successPop {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Error Icon */
.error-icon {
  font-size: 3.5rem;
  color: #dc3545;
  margin-bottom: 0.75rem;
  animation: errorShake 0.5s ease-out;
}

@keyframes errorShake {
  0%, 100% {
    transform: translateX(0);
  }
  20%, 60% {
    transform: translateX(-10px);
  }
  40%, 80% {
    transform: translateX(10px);
  }
}

/* Receipt Box */
.receipt-box {
  background: #fff;
  border: 2px dashed #00a651;
  border-radius: 0.75rem;
  padding: 1rem;
  margin: 0.75rem 0;
  box-shadow: 0 4px 12px rgba(0, 166, 81, 0.15);
}

.receipt-box .text-muted {
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

.receipt-box strong {
  color: #00a651;
  font-size: 1rem;
}

/* Error Message */
#errorMessage {
  color: #dc3545;
  font-weight: 600;
  margin: 1rem 0;
  padding: 1rem;
  background: rgba(220, 53, 69, 0.1);
  border-radius: 0.5rem;
  border-left: 4px solid #dc3545;
}

/* M-Pesa Modal Structure */
#mpesaModal .modal-dialog {
  max-width: 500px;
  margin: 1.75rem auto;
}

#mpesaModal .modal-content {
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

/* M-Pesa Modal Header */
#mpesaModal .modal-header {
  background: linear-gradient(135deg, #00a651 0%, #007a3d 100%);
  border-bottom: none;
  padding: 1.5rem;
  flex-shrink: 0;
}

#mpesaModal .modal-header .modal-title {
  color: #fff;
  font-weight: 600;
}

/* M-Pesa Modal Body */
#mpesaModal .modal-body {
  max-height: calc(90vh - 180px);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1.5rem;
  flex: 1 1 auto;
}

#mpesaModal .modal-footer {
  flex-shrink: 0;
  padding: 1rem 1.5rem;
  border-top: 1px solid #dee2e6;
}

/* M-Pesa Modal Buttons */
#mpesaModal .btn {
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

#mpesaModal .btn-success {
  background: linear-gradient(135deg, #00a651 0%, #007a3d 100%);
  border: none;
  box-shadow: 0 4px 15px rgba(0, 166, 81, 0.3);
}

#mpesaModal .btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 166, 81, 0.5);
}

#mpesaModal .btn-primary {
  background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
  border: none;
  box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

#mpesaModal .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13, 110, 253, 0.5);
}

/* Responsive M-Pesa Modal */
@media (max-width: 576px) {
  #mpesaModal .modal-dialog {
    margin: 0.5rem;
  }
  
  #mpesaModal .modal-body {
    max-height: calc(100vh - 180px);
    padding: 1rem;
  }
  
  .mpesa-logo-circle {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
  }
  
  .payment-summary {
    padding: 0.75rem;
    margin: 0.5rem 0;
  }
  
  .success-icon,
  .error-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
  }
  
  .phone-animation {
    font-size: 2rem;
  }
  
  .receipt-box {
    padding: 0.75rem;
    margin: 0.5rem 0;
  }
  
  #mpesaModal .btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
  }
  
  #mpesaModal .modal-header {
    padding: 1rem;
  }
  
  #mpesaModal .modal-footer {
    padding: 0.75rem 1rem;
  }
}

/* ========================================
   FAN WALL PAGE STYLES
   ======================================== */

.fanwall-content {
  background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
  min-height: 100vh;
}

.filter-section {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid rgba(13, 202, 240, 0.2);
}

.filter-section .nav-link {
  background: rgba(13, 202, 240, 0.1);
  border: 2px solid rgba(13, 202, 240, 0.3);
  color: #0dcaf0;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  transition: all 0.3s ease;
  font-weight: 600;
}

.filter-section .nav-link:hover {
  background: rgba(13, 202, 240, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(13, 202, 240, 0.3);
}

.filter-section .nav-link.active {
  background: linear-gradient(135deg, #0dcaf0 0%, #0a8fb8 100%);
  color: #000;
  border-color: #0dcaf0;
  box-shadow: 0 5px 20px rgba(13, 202, 240, 0.5);
}

.fanwall-post-card {
  background: linear-gradient(135deg, rgba(22, 33, 62, 0.9) 0%, rgba(26, 26, 46, 0.9) 100%);
  border: 2px solid rgba(13, 202, 240, 0.2);
  border-radius: 15px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.fanwall-post-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0dcaf0, #6610f2, #0dcaf0);
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.fanwall-post-card:hover::before {
  opacity: 1;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.fanwall-post-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 40px rgba(13, 202, 240, 0.4);
  border-color: rgba(13, 202, 240, 0.6);
}

.post-media {
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.post-media:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.post-media::after {
  content: '🔍 Click to view';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.post-media:hover::after {
  opacity: 1;
}

.post-actions .btn {
  transition: all 0.3s ease;
}

.post-actions .btn:hover {
  transform: scale(1.1);
}

/* Modal styles for post creation */
#postModal .modal-content {
  border: 2px solid rgba(13, 202, 240, 0.3);
  border-radius: 15px;
}

#postModal .form-control {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(13, 202, 240, 0.3);
  color: #fff;
  transition: all 0.3s ease;
}

#postModal .form-control:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: #0dcaf0;
  box-shadow: 0 0 0 0.25rem rgba(13, 202, 240, 0.25);
  color: #fff;
}

#postModal .form-control::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

#postModal .form-label {
  color: #0dcaf0;
  font-weight: 600;
}

#postModal .btn-check:checked + .btn {
  background: linear-gradient(135deg, #0dcaf0 0%, #0a8fb8 100%);
  border-color: #0dcaf0;
  color: #000;
}

/* Media viewer modal */
#viewMediaModal .modal-dialog {
  max-width: 90vw;
}

#viewMediaModal img,
#viewMediaModal video {
  max-height: 85vh;
  width: auto;
  margin: 0 auto;
  display: block;
}

/* Cursor pointer utility */
.cursor-pointer {
  cursor: pointer;
}

/* ========================================
   FAN WALL INLINE SECTION STYLES
   ======================================== */

#fanwall {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  position: relative;
}

#fanwall::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><text x="50%" y="50%" font-size="40" fill="rgba(13,202,240,0.05)" text-anchor="middle" dominant-baseline="middle">♪</text></svg>');
  opacity: 0.3;
  pointer-events: none;
}

/* Fan Wall Form Card */
#fanwall .card {
  background: linear-gradient(135deg, rgba(22, 33, 62, 0.95) 0%, rgba(26, 26, 46, 0.95) 100%);
  border: 2px solid rgba(13, 202, 240, 0.3);
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#fanwall .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(13, 202, 240, 0.3);
}

#fanwall .form-control {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(13, 202, 240, 0.3);
  color: #fff;
  transition: all 0.3s ease;
}

#fanwall .form-control:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: #0dcaf0;
  box-shadow: 0 0 0 0.25rem rgba(13, 202, 240, 0.25);
  color: #fff;
}

#fanwall .form-control::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

#fanwall .form-label {
  color: #0dcaf0;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

#fanwall .form-text {
  color: rgba(255, 255, 255, 0.6);
}

/* Avatar Circle */
.avatar-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0dcaf0 0%, #0a8fb8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(13, 202, 240, 0.4);
}

/* Fan Wall Post Cards */
#fanWallPosts .card {
  background: linear-gradient(135deg, rgba(22, 33, 62, 0.8) 0%, rgba(26, 26, 46, 0.8) 100%);
  border: 1px solid rgba(13, 202, 240, 0.2);
  transition: all 0.3s ease;
  animation: fadeInUp 0.5s ease-out;
}

#fanWallPosts .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(13, 202, 240, 0.3);
  border-color: rgba(13, 202, 240, 0.5);
}

/* Fade in animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 0.6s ease-out;
}

/* Delete button */
.delete-post {
  opacity: 0;
  transition: opacity 0.3s ease;
}

#fanWallPosts .card:hover .delete-post {
  opacity: 1;
}

/* Post count badge */
#postCount {
  font-size: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
}

/* Load more button */
#loadMoreBtn {
  min-width: 200px;
  padding: 0.75rem 2rem;
  border: 2px solid #0dcaf0;
  transition: all 0.3s ease;
}

#loadMoreBtn:hover {
  background: #0dcaf0;
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(13, 202, 240, 0.4);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  #fanwall .display-5 {
    font-size: 2rem;
  }
  
  .avatar-circle {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  
  #fanWallPosts .card {
    margin-bottom: 1rem;
  }
}

/* Character counter styling */
#charCount {
  font-weight: 600;
  color: #0dcaf0;
}

#fanMessage:invalid ~ .form-text #charCount {
  color: #dc3545;
}

/* Success animation for submit button */
.btn-success {
  animation: successPulse 0.5s ease-out;
}

@keyframes successPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

