*{box-sizing:border-box} body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Helvetica,Arial,sans-serif;background:linear-gradient(180deg,#9dd39a,#0f1f1a);min-height:100vh;color:#fff}
.container{max-width:1100px;margin:0 auto;padding:16px}
.card{background:linear-gradient(135deg,#154f2a,#185c2e);padding:18px;border-radius:18px;box-shadow:0 10px 20px rgba(0,0,0,.25);}
.row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.quick .btn{background:linear-gradient(135deg,#285e3a,#1e3f2b);border:1px solid rgba(255,255,255,.1);padding:14px;border-radius:16px;text-align:center;cursor:pointer;transition:.2s}
.quick .btn:hover{transform:translateY(-2px)}
h1{font-size:26px;margin:12px 0 16px 0}
.small{opacity:.9;font-size:14px}
.kicker{font-size:13px;opacity:.8;margin-top:8px}
.bottomnav{position:fixed;left:0;right:0;bottom:0;background:#73c377;display:grid;grid-template-columns:repeat(4,1fr);padding:8px 12px;border-top-left-radius:12px;border-top-right-radius:12px}
.bottomnav a{color:#0b1914;text-align:center;padding:6px 10px;text-decoration:none;font-weight:600;border-radius:10px}
.bottomnav a.active{background:#a8d8a9}
.section{margin:18px 0}
label{display:block;margin:6px 0 4px 0}
input,select,textarea{width:100%;padding:10px;border-radius:10px;border:1px solid rgba(255,255,255,.25);background:#11301f;color:#fff;outline:none}
button{padding:10px 14px;border-radius:12px;border:none;background:#69c16f;color:#0b1914;font-weight:700;cursor:pointer}
.center{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:60vh}
.notice{background:#1f3c2b;border:1px solid rgba(255,255,255,.2);padding:12px;border-radius:12px;margin-top:10px}
.linkbtn{background:#1e5f2b;border:1px solid rgba(255,255,255,.2);color:#fff}
.hidden{display:none}
ul{margin:0;padding-left:20px}
/* Admin styles */
.admin-wrap{display:grid;grid-template-columns:240px 1fr;min-height:100vh;background:#ffffff}
.sidebar{background:#f8f9fa;border-right:1px solid #e0e0e0;padding:16px;position:sticky;top:0;height:100vh;color:#333}
.sidebar h2{font-size:18px;margin:6px 0 14px 0;color:#333}
.sidebtn{display:block;width:100%;text-align:left;padding:10px 12px;border-radius:8px;background:#ffffff;margin-bottom:8px;border:1px solid #e0e0e0;cursor:pointer;color:#333;transition:all 0.2s}
.sidebtn:hover{background:#e9ecef}
.sidebtn.active{background:#0f7a3e;color:#fff;border-color:#0f7a3e}
.main{padding:20px;background:#ffffff;color:#333}
.table{width:100%;border-collapse:separate;border-spacing:0 8px}
.table th,.table td{padding:10px 12px;background:#f8f9fa;color:#333}
.table th{background:#e9ecef;color:#333;font-weight:600}
.badge-green{display:inline-block;padding:4px 8px;border-radius:999px;background:#69c16f;color:#f5f7f6;font-weight:700;font-size:12px}
.grid2{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}


/* === Admin page tweaks === */
body.admin-page{ background:#ffffff !important; color:#333 !important; }
body.admin-page .admin-wrap{ display:flex; min-height:100vh; }
body.admin-page .sidebar{ width:260px; background:#f8f9fa; padding:14px; border-right:1px solid #e0e0e0; }
body.admin-page .sidebar .sidebtn{ width:100%; display:block; margin:6px 0; padding:10px 12px; background:#fff; border:1px solid #e0e0e0; border-radius:8px; cursor:pointer; text-align:left; color:#333; }
body.admin-page .sidebar .sidebtn.active{ background:#0f7a3e; color:#fff; border-color:#0f7a3e; }
body.admin-page .main{ flex:1; padding:16px; background:#fff; color:#333; }

/* Form elements in admin */
body.admin-page input, 
body.admin-page select, 
body.admin-page textarea {
  background: #fff;
  color: #333;
  border: 1px solid #ddd;
}

/* === Mobile responsiveness (user + admin) === */
@media (max-width: 768px){
  .container{ padding:12px; }
  .row{ grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
  .grid3{ display:grid; grid-template-columns: 1fr !important; gap:12px; }
  .grid2{ display:grid; grid-template-columns: 1fr !important; gap:12px; }
  body.admin-page .admin-wrap{ flex-direction:column; }
  body.admin-page .sidebar{ width:100%; display:flex; overflow:auto; white-space:nowrap; border-right:none; border-bottom:1px solid #e0e0e0; }
  body.admin-page .sidebar h2{ display:none; }
  body.admin-page .sidebar .sidebtn{ flex:0 0 auto; margin:8px 6px; }
  body.admin-page .main{ padding:12px; }
  .bottomnav{ position:fixed; bottom:0; left:0; right:0; }
}

.sm-copy{font-size:12px;padding:4px 8px;border:1px solid #ddd;border-radius:8px;background:#f8f8f8;cursor:pointer;margin-left:6px;color:#333}

/* Radio buttons for deposit */
input[type="radio"] {
  width: auto;
  margin-right: 8px;
}

/* Search inputs */
input[type="text"] {
  background: #fff;
  color: #333;
  border: 1px solid #ddd;
}



/* Add these styles to your existing styles.css */
.badge-green { background: #69c16f; color: #0b1914; padding: 4px 8px; border-radius: 12px; font-size: 12px; font-weight: 700; display: inline-block; }
.badge-yellow { background: #f39c12; color: #000; padding: 4px 8px; border-radius: 12px; font-size: 12px; font-weight: 700; display: inline-block; }
.badge-red { background: #e74c3c; color: #fff; padding: 4px 8px; border-radius: 12px; font-size: 12px; font-weight: 700; display: inline-block; }

/* Enhanced table styles */
.table input[type="checkbox"] {
  width: auto;
  margin: 0;
}

/* Filter styles */
.grid2 input, .grid2 select {
  margin-bottom: 8px;
}

/* ===== FIX FOR ADMIN PANEL CARDS ONLY ===== */
/* Only target cards inside admin panel main area */
body.admin-page .main .card {
  background: rgb(235, 235, 235) !important;
  color: #333333 !important;
  border: 1px solid #cccccc !important;
}

body.admin-page .main .card *:not(button):not(input):not(select):not(textarea) {
  color: #333333 !important;
}

body.admin-page .main .card .small {
  color: #666666 !important;
}

body.admin-page .main [data-tab="payments"] .card input {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #cccccc !important;
}

body.admin-page .main [data-tab="payments"] .card input::placeholder {
  color: #999999 !important;
}

body.admin-page .main [data-tab="payments"] .card label {
  color: #333333 !important;
  font-weight: 600;
}

/* Ensure all cards in admin main area have light background */
body.admin-page .main .grid3 .card,
body.admin-page .main .grid2 .card {
  background: rgb(235, 235, 235) !important;
  color: #333333 !important;
}
/* Payment Method Logos */
.payment-logos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  margin: 15px 0;
}

.payment-logo-card {
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  padding: 15px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: white;
}

.payment-logo-card:hover {
  border-color: #69c16f;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.payment-logo-card.selected {
  border-color: #69c16f;
  background: #f0f9f0;
}

.payment-logo-large {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin: 0 auto 10px;
}

.payment-name {
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
}

.payment-details {
  font-size: 12px;
  color: #666;
/* Download App Button Styles */
.download-btn {
  background: linear-gradient(135deg, #69c16f, #4CAF50) !important;
  color: white !important;
  padding: 12px 24px !important;
  border: none !important;
  border-radius: 10px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  font-size: 16px !important;
  width: 100% !important;
  max-width: 280px !important;
  margin: 10px auto !important;
  display: block !important;
  text-align: center !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
}

.download-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(105, 193, 111, 0.4) !important;
}

/* YouTube Video Container */
.video-container {
  background: rgba(0,0,0,0.3) !important;
  border-radius: 10px !important;
  padding: 15px !important;
  margin: 15px 0 !important;
}

.video-placeholder {
  text-align: center !important;
  color: #888 !important;
  padding: 40px 20px !important;
}

.video-placeholder-icon {
  font-size: 48px !important;
  margin-bottom: 10px !important;
}

/* Login Page Specific Styles */
.login-extra {
  text-align: center !important;
  margin-top: 25px !important;
  padding-top: 20px !important;
  border-top: 1px solid rgba(255,255,255,0.2) !important;
}
/* ========== RED NOTIFICATION BADGES ========== */
.notification-badge {
  background: #e74c3c !important;
  color: white !important;
  border-radius: 50% !important;
  padding: 3px 8px !important;
  font-size: 11px !important;
  font-weight: bold !important;
  margin-left: 8px !important;
  min-width: 20px !important;
  height: 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  animation: pulse 1.5s infinite !important;
  border: 2px solid white !important;
  box-shadow: 0 2px 4px rgba(231, 76, 60, 0.5) !important;
}

@keyframes pulse {
  0% { 
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7);
  }
  70% { 
    transform: scale(1.05);
    box-shadow: 0 0 0 6px rgba(231, 76, 60, 0);
  }
  100% { 
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(231, 76, 60, 0);
  }
}

/* Red notification dot */
.notification-dot {
  position: absolute !important;
  top: 8px !important;
  right: 8px !important;
  width: 10px !important;
  height: 10px !important;
  background: #e74c3c !important;
  border-radius: 50% !important;
  animation: blink 1s infinite !important;
  border: 2px solid white !important;
  box-shadow: 0 0 5px rgba(231, 76, 60, 0.8) !important;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0.4; }
}

/* Button with notification styling */
.sidebtn.has-notification {
  position: relative !important;
  border-left: 4px solid #e74c3c !important;
  background: rgba(231, 76, 60, 0.1) !important;
}

.sidebtn.has-notification:hover {
  background: rgba(231, 76, 60, 0.15) !important;
}

.sidebtn.has-notification.active {
  background: #0f7a3e !important;
  border-left: 4px solid #e74c3c !important;
}

/* Notification header - Red theme */
.notification-header {
  background: linear-gradient(135deg, #ffeaea, #ffcdd2) !important;
  border: 2px solid #e74c3c !important;
  border-radius: 10px !important;
  padding: 15px !important;
  margin-bottom: 20px !important;
  display: none !important;
  box-shadow: 0 4px 8px rgba(231, 76, 60, 0.2) !important;
}

.notification-header.active {
  display: block !important;
  animation: slideIn 0.5s ease-out !important;
}

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

.notification-item {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin: 0 !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #c0392b !important;
}

.notification-count {
  background: #e74c3c !important;
  color: white !important;
  padding: 4px 12px !important;
  border-radius: 20px !important;
  font-size: 13px !important;
  font-weight: bold !important;
  margin-left: auto !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2) !important;
}

/* Make sure the badge is visible on active tabs */
.sidebtn.active .notification-badge {
  border: 2px solid #0f7a3e !important;
  box-shadow: 0 2px 4px rgba(231, 76, 60, 0.8) !important;
}

/* Emergency/Urgent notification style */
.notification-urgent {
  background: linear-gradient(135deg, #ff6b6b, #e74c3c) !important;
  border: 2px solid #c0392b !important;
}

.notification-urgent .notification-item {
  color: #fff !important;
}

.notification-urgent .notification-count {
  background: white !important;
  color: #e74c3c !important;
}
/* Ticker and Notification Styles */
.ticker-display {
  background: linear-gradient(135deg, #154f2a, #185c2e);
  color: white;
  padding: 10px 15px;
  border-radius: 8px;
  border-left: 4px solid #69c16f;
}

.ticker-display marquee {
  font-weight: 600;
}

.notification-card {
  background: linear-gradient(135deg, #ffeaa7, #fdcb6e);
  border: 2px solid #e17055;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 15px;
}

/* Admin Panel Styles for New Features */
.admin-tab-content {
  background: white;
  border-radius: 10px;
  padding: 20px;
  margin-top: 15px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.feature-preview {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 15px;
  margin-top: 15px;
}

/* WhatsApp Floating Button Styles */
#whatsappFloatingBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  animation: fadeIn 0.5s ease-in;
}

.whatsapp-floating-btn {
  background: #25D366 !important;
  color: white !important;
  width: 60px !important;
  height: 60px !important;
  border: none !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4) !important;
  transition: all 0.3s ease !important;
  font-size: 0 !important;
  padding: 0 !important;
}

.whatsapp-floating-btn:hover {
  background: #128C7E !important;
  transform: scale(1.1) !important;
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.6) !important;
}

.whatsapp-floating-btn svg {
  width: 30px;
  height: 30px;
}

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

/* Make sure the button is above bottom navigation */
@media (max-width: 768px){
  #whatsappFloatingBtn {
    bottom: 70px; /* Above bottom nav */
    right: 15px;
  }
}
/* WhatsApp Floating Button Styles - Fixed Position */
#whatsappFloatingBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  animation: fadeIn 0.5s ease-in;
}

.whatsapp-floating-btn {
  background: #25D366 !important;
  color: white !important;
  width: 60px !important;
  height: 60px !important;
  border: none !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4) !important;
  transition: all 0.3s ease !important;
  font-size: 0 !important;
  padding: 0 !important;
}

.whatsapp-floating-btn:hover {
  background: #128C7E !important;
  transform: scale(1.1) !important;
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.6) !important;
}

.whatsapp-floating-btn svg {
  width: 30px;
  height: 30px;
}

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

/* Pulse animation for WhatsApp button */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Mobile Optimization for Login Page */
.container.center {
  padding: 10px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.container.center .card {
  width: 100% !important;
  max-width: 100% !important;
  margin: 10px;
  padding: 20px 15px;
  border-radius: 12px;
}

/* Mobile-first responsive design */
@media (max-width: 768px) {
  body {
    font-size: 14px;
  }
  
  .container {
    padding: 10px;
  }
  
  h1 {
    font-size: 22px;
    margin: 8px 0 12px 0;
  }
  
  h2 {
    font-size: 20px;
    margin-bottom: 15px;
  }
  
  .card {
    padding: 15px;
    border-radius: 12px;
    margin: 8px 0;
  }
  
  /* Login form optimization */
  input, select, textarea {
    padding: 12px;
    font-size: 16px; /* Prevents zoom on iOS */
    border-radius: 8px;
  }
  
  button {
    padding: 12px 16px;
    font-size: 16px;
    border-radius: 8px;
  }
  
  /* Button grid for quick actions */
  .quick.row {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px;
  }
  
  .quick .btn {
    padding: 12px 8px;
    border-radius: 12px;
    font-size: 13px;
  }
  
  /* Bottom navigation spacing */
  .bottomnav {
    padding: 8px 10px;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
  }
  
  .bottomnav a {
    padding: 6px 4px;
    font-size: 12px;
    border-radius: 8px;
  }
  
  /* WhatsApp button mobile positioning */
  #whatsappFloatingBtn {
    bottom: 80px; /* Above bottom navigation */
    right: 15px;
    z-index: 1001;
  }
  
  /* Video container mobile optimization */
  .video-container iframe {
    height: 200px !important;
    border-radius: 8px;
  }
  
  /* Download button mobile */
  .download-btn {
    padding: 14px 20px !important;
    font-size: 16px !important;
  }
}

/* Extra small devices */
@media (max-width: 480px) {
  .container.center .card {
    padding: 15px 12px;
    margin: 5px;
  }
  
  .quick.row {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px;
  }
  
  .quick .btn {
    padding: 10px 6px;
    font-size: 12px;
  }
  
  #whatsappFloatingBtn {
    bottom: 70px;
    right: 12px;
  }
  
  .whatsapp-floating-btn {
    width: 55px !important;
    height: 55px !important;
  }
  
  .whatsapp-floating-btn svg {
    width: 26px;
    height: 26px;
  }
}

/* Prevent horizontal scrolling */
body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* Improve touch targets for mobile */
button, a, input[type="submit"] {
  min-height: 44px; /* Minimum touch target size */
}

/* Login page specific mobile optimization */
.login-extra {
  margin-top: 20px !important;
  padding-top: 15px !important;
}

.video-container {
  margin: 15px 0 !important;
}

/* Ensure bottom nav doesn't cover content */
.bottomnav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #73c377;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 8px 12px;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  z-index: 999; /* Lower than WhatsApp button */
}

/* Add padding to main content to prevent bottom nav overlap */
.container {
  padding-bottom: 70px; /* Space for bottom navigation */
}

/* Ensure WhatsApp button is always on top */
#whatsappFloatingBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 10000; /* Very high z-index to ensure it's above everything */
}
/* Add pulse animation for WhatsApp button */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Ensure WhatsApp button is always on top */
#whatsappFloatingBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 10000; /* Very high z-index to ensure it's above everything */
}

/* Ensure bottom nav doesn't cover content */
.bottomnav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #73c377;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 8px 12px;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  z-index: 999; /* Lower than WhatsApp button */
}

/* Add padding to main content to prevent bottom nav overlap */
.container {
  padding-bottom: 70px; /* Space for bottom navigation */
}
/* Emergency WhatsApp button visibility */
#whatsappFloatingBtn {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.whatsapp-floating-btn {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}
