/* Custom Premium CSS for Bhavani Yuva Group Frontend */
:root {
  --primary-color: #700c1a; /* Rich Maroon */
  --primary-hover: #4a030c;
  --secondary-color: #e5b83b; /* Shiny Gold */
  --secondary-hover: #b8860b;
  --dark-bg: #130204; /* Very Dark Maroon-Black */
  --panel-bg: rgba(26, 5, 8, 0.75);
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.1);
  --text-primary: #f3f4f6;
  --text-secondary: #e5e7eb;
  --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
  --font-family: 'Plus Jakarta Sans', sans-serif;
  --title-family: 'Outfit', sans-serif;
}

/* Logo and brand styles */
.brand-logo-img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 50%;
  border: 1.5px solid var(--secondary-color);
  background-color: rgba(255, 255, 255, 0.1);
  padding: 1px;
}
.brand-title-main {
  font-family: var(--title-family);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  display: block;
  line-height: 1.2;
}
.brand-sub {
  font-size: 0.65rem;
  color: var(--secondary-color) !important;
  display: block;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 1px;
}


body {
  background-color: var(--dark-bg);
  color: var(--text-primary);
  font-family: var(--font-family);
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--title-family);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Background Blob Animations */
.bg-blobs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.25;
  animation: float 20s infinite alternate;
}

.blob-1 {
  width: 500px;
  height: 500px;
  background: var(--primary-color);
  top: -100px;
  right: -50px;
}

.blob-2 {
  width: 600px;
  height: 600px;
  background: var(--secondary-color);
  bottom: -200px;
  left: -100px;
  animation-delay: -5s;
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(50px, 30px) scale(1.1); }
  100% { transform: translate(-20px, -50px) scale(0.9); }
}

/* Glassmorphism Navbar */
.main-navbar {
  background: rgba(11, 15, 25, 0.75);
  backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--glass-border);
  transition: all 0.3s ease;
  padding: 15px 0;
  z-index: 1030;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: #fff !important;
  font-size: 1.4rem;
  letter-spacing: 1px;
}

.brand-icon {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 1.8rem;
}

.brand-sub {
  font-size: 0.75rem;
  color: var(--secondary-color);
  display: block;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: -5px;
}

.navbar-nav .nav-link {
  color: var(--text-secondary) !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 16px !important;
  transition: all 0.2s ease;
}

.navbar-nav .nav-link:hover, 
.navbar-nav .nav-link.active {
  color: #fff !important;
  transform: translateY(-1px);
}

.btn-login-nav {
  background: transparent;
  color: #fff !important;
  border: 1px solid var(--primary-color);
  border-radius: 50px;
  padding: 8px 24px !important;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-login-nav:hover {
  background: var(--primary-color);
  box-shadow: 0 0 15px rgba(112, 12, 26, 0.4);
}

.btn-member {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: #fff;
  border-radius: 50px;
  padding: 8px 20px;
  font-weight: 600;
}

.btn-member:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.profile-dropdown {
  background: rgba(17, 24, 39, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 8px;
  box-shadow: var(--card-shadow);
}

.profile-dropdown .dropdown-item {
  color: var(--text-secondary);
  border-radius: 8px;
  padding: 8px 16px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.profile-dropdown .dropdown-item:hover {
  background: var(--glass-bg);
  color: #fff;
}

/* Glass Cards */
.glass-card {
  background: var(--panel-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 30px;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px 0 rgba(112, 12, 26, 0.15);
}

/* Hero Section */
.hero-section {
  padding: 120px 0 80px 0;
  position: relative;
}

.hero-tag {
  background: rgba(112, 12, 26, 0.15);
  border: 1px solid rgba(229, 184, 59, 0.3);
  color: #f8e5b9;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 20px;
}

.text-gradient {
  background: linear-gradient(135deg, #fff 30%, #f8e5b9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.6;
}

.btn-primary-gradient {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 14px 36px;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(112, 12, 26, 0.4);
  transition: all 0.3s ease;
}

.btn-primary-gradient:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 25px rgba(112, 12, 26, 0.6);
  color: #fff;
}

.btn-outline-glass {
  background: transparent;
  color: #fff;
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  padding: 14px 36px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline-glass:hover {
  background: var(--glass-bg);
  border-color: #fff;
}

/* Statistics Counter */
.stat-item {
  text-align: center;
}

.stat-num {
  font-size: 2.8rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 5px;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Sections */
.section-padding {
  padding: 80px 0;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 15px;
  text-align: center;
}

.section-desc {
  color: var(--text-secondary);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 50px auto;
}

.icon-box {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: rgba(112, 12, 26, 0.15);
  border: 1px solid rgba(229, 184, 59, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.icon-box-emerald {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.2);
  color: var(--secondary-color);
}

/* Login/Login Card styling */
.login-card {
  max-width: 480px;
  margin: 0 auto;
}

.form-control-glass {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 12px 16px;
  color: #fff;
  transition: all 0.3s ease;
}

.form-control-glass:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary-color);
  box-shadow: 0 0 10px rgba(112, 12, 26, 0.3);
  color: #fff;
}

/* Footer Section */
.footer-section {
  background: #060911;
  border-top: 1px solid var(--glass-border);
  padding: 80px 0 30px 0;
  font-size: 0.95rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: #fff !important;
  font-size: 1.4rem;
  text-decoration: none;
}

.footer-heading {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--primary-color);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s ease;
}

.footer-links a:hover {
  color: #fff;
  padding-left: 5px;
}

.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact li {
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
}

.footer-contact i {
  margin-top: 3px;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: var(--primary-color);
  color: #fff;
  transform: translateY(-3px);
}

.footer-divider {
  border-top: 1px solid var(--glass-border);
  margin: 50px 0 30px 0;
}

/* User Profile Styling */
.profile-sidebar {
  text-align: center;
}

.profile-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 3px solid var(--primary-color);
  padding: 5px;
  background: var(--dark-bg);
  margin: 0 auto 20px auto;
}

.badge-active {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--secondary-color);
  padding: 6px 12px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-block;
}

.badge-disabled {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
  padding: 6px 12px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-block;
}

/* Payment Overlay Checkout & Receipt Card */
.payment-tabs .nav-link {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 12px 20px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.payment-tabs .nav-link.active {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
  box-shadow: 0 0 15px rgba(112, 12, 26, 0.4);
}

.qr-container {
  background: #fff;
  padding: 20px;
  border-radius: 16px;
  display: inline-block;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  text-align: center;
}

.qr-img {
  width: 180px;
  height: 180px;
}

.receipt-card {
  background: #fff;
  color: #0b0f19;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 15px 50px rgba(0,0,0,0.6);
  position: relative;
  overflow: hidden;
}

.receipt-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 8px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.receipt-header {
  border-bottom: 2px dashed #e2e8f0;
  padding-bottom: 20px;
  margin-bottom: 20px;
  text-align: center;
}

.receipt-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-30deg);
  font-size: 8rem;
  color: rgba(16, 185, 129, 0.08);
  font-weight: 900;
  pointer-events: none;
  user-select: none;
}

.receipt-table th {
  font-weight: 600;
  color: #64748b;
  border-bottom: 1px solid #f1f5f9;
}

.receipt-table td {
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
}

.receipt-total {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0b0f19;
}

/* Spinner Loader Overlay */
.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 15, 25, 0.9);
  backdrop-filter: blur(10px);
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.spinner-glow {
  width: 60px;
  height: 60px;
  border: 4px solid var(--glass-border);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s infinite linear;
  box-shadow: 0 0 20px rgba(112, 12, 26, 0.4);
}

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

/* Public Transparency Graph styling */
.transparency-header {
  background: linear-gradient(180deg, rgba(112,12,26,0.2) 0%, rgba(19,2,4,0) 100%);
  padding: 100px 0 50px 0;
  text-align: center;
}

/* Simulated Mailbox Panel */
.mailbox-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  font-size: 0.7rem;
}

.mail-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mail-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary-color);
}

.mail-item.unread {
  border-left: 4px solid var(--primary-color);
}

/* Premium Glassmorphic Pagination styling */
.page-link-glass {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: rgba(255, 255, 255, 0.7) !important;
  transition: all 0.3s ease;
  padding: 8px 16px;
}
.page-link-glass:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  color: #fff !important;
}
.page-item.active .page-link-glass {
  background: linear-gradient(135deg, #700c1a, #991225) !important;
  border-color: #e5b83b !important;
  color: #fff !important;
}
.page-item.disabled .page-link-glass {
  background: rgba(255, 255, 255, 0.02) !important;
  border-color: rgba(255, 255, 255, 0.05) !important;
  color: rgba(255, 255, 255, 0.3) !important;
}

/* Table Hover text contrast overrides for readability */
.table-hover tbody tr:hover td {
  color: rgba(255, 255, 255, 0.95) !important;
}
.table-hover tbody tr:hover .text-secondary {
  color: rgba(255, 255, 255, 0.8) !important;
}
.table-hover tbody tr:hover .text-gradient-primary {
  background: none !important;
  -webkit-text-fill-color: #ffffff !important;
  color: #ffffff !important;
}
.table-hover tbody tr:hover .text-primary {
  color: var(--secondary-color) !important;
}

/* Glassmorphic custom status badges for bulletproof contrast */
.bg-glass-status-success {
  background: rgba(46, 204, 113, 0.15) !important;
  color: #2ecc71 !important;
  border: 1px solid rgba(46, 204, 113, 0.4) !important;
  padding: 6px 14px !important;
  border-radius: 50px !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  display: inline-block !important;
}

.bg-glass-status-warning {
  background: rgba(241, 196, 15, 0.15) !important;
  color: #f1c40f !important;
  border: 1px solid rgba(241, 196, 15, 0.4) !important;
  padding: 6px 14px !important;
  border-radius: 50px !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  display: inline-block !important;
}

.bg-glass-status-danger {
  background: rgba(231, 76, 60, 0.15) !important;
  color: #e74c3c !important;
  border: 1px solid rgba(231, 76, 60, 0.4) !important;
  padding: 6px 14px !important;
  border-radius: 50px !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  display: inline-block !important;
}

/* Rules Section Styling */
.rules-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.rules-card-gold {
  background: radial-gradient(circle at top left, #1a080c, #0a0103);
  border: 2px solid var(--secondary-color);
  border-radius: 20px;
  padding: 35px;
  position: relative;
  box-shadow: 0 0 25px rgba(229, 184, 59, 0.15), var(--card-shadow);
  height: 100%;
}

.rules-card-gold::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  bottom: 6px;
  border: 1.5px dashed rgba(229, 184, 59, 0.35);
  border-radius: 15px;
  pointer-events: none;
  z-index: 0;
}

.rules-card-gold * {
  position: relative;
  z-index: 1;
}

.rules-header-gold {
  text-align: center;
  margin-bottom: 25px;
}

.rules-logo-gold {
  width: 75px;
  height: 75px;
  object-fit: contain;
  margin-bottom: 12px;
  border: 2px solid var(--secondary-color);
  border-radius: 50%;
  padding: 4px;
  background-color: rgba(112, 12, 26, 0.3);
  box-shadow: 0 0 15px rgba(229, 184, 59, 0.3);
}

.rules-title-gold {
  color: var(--secondary-color);
  font-family: var(--title-family);
  font-weight: 800;
  font-size: 1.7rem;
  letter-spacing: 1px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.rules-subtitle-gold {
  color: #f8e5b9;
  font-size: 0.95rem;
  margin-top: 5px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.rules-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rules-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 12px;
}

.rules-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.rules-icon-circle {
  min-width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(112, 12, 26, 0.4);
  border: 1.5px solid var(--secondary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary-color);
  font-size: 1rem;
  box-shadow: 0 0 6px rgba(229, 184, 59, 0.2);
}

.rules-text {
  color: var(--text-primary);
  font-size: 0.95rem;
  line-height: 1.45;
  margin: 0;
}

.rules-footer-gold {
  text-align: center;
  margin-top: 25px;
  padding-top: 15px;
  border-top: 1px solid rgba(229, 184, 59, 0.2);
}

.rules-footer-text {
  color: var(--secondary-color);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Timeline schedule styling */
.timeline-schedule {
  position: relative;
  padding-left: 24px;
  margin-top: 15px;
}

.timeline-schedule::before {
  content: '';
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--secondary-color), var(--primary-color));
}

.timeline-item {
  position: relative;
  margin-bottom: 25px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -24px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--dark-bg);
  border: 3.5px solid var(--secondary-color);
  z-index: 2;
  box-shadow: 0 0 6px var(--secondary-color);
}

.timeline-badge-date {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
  border: 1px solid var(--secondary-color);
  color: #fff;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 12px;
  box-shadow: 0 4px 10px rgba(112,12,26,0.3);
}

.timeline-content-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 18px;
  transition: all 0.3s ease;
}

.timeline-content-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(229, 184, 59, 0.3);
  transform: translateX(4px);
}

.timeline-content-card h5 {
  color: var(--secondary-color);
  font-size: 1.05rem;
  margin-bottom: 8px;
  font-weight: 600;
}

.timeline-content-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.45;
  margin: 0;
}

/* Lang toggle button styles */
.lang-toggle-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(229, 184, 59, 0.3);
  color: var(--secondary-color) !important;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.lang-toggle-btn:hover {
  background: var(--secondary-color);
  color: #111 !important;
  border-color: var(--secondary-color);
  box-shadow: 0 0 10px rgba(229, 184, 59, 0.4);
}

