/* ==========================================
   TESTUPI.COM - COMPLETE STYLESHEET
   Professional UPI Verification Service
   ========================================== */

/* ==========================================
   1. CSS VARIABLES & RESET
   ========================================== */

:root {
  /* Color Palette */
  --primary: #667eea;
  --primary-dark: #5568d3;
  --primary-light: #7c8ef0;
  --secondary: #764ba2;
  --secondary-dark: #63408a;
  --success: #48BB78;
  --success-light: #68D391;
  --warning: #F6AD55;
  --danger: #FC8181;
  --info: #63B3ED;

  /* Text Colors */
  --text-dark: #2d3748;
  --text-medium: #4a5568;
  --text-light: #718096;
  --text-lighter: #a0aec0;

  /* Background Colors */
  --bg-white: #ffffff;
  --bg-light: #f7fafc;
  --bg-lighter: #edf2f7;
  --bg-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.3);
  --shadow-primary: 0 8px 24px rgba(102, 126, 234, 0.4);

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Spacing */
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--bg-primary);
  color: var(--text-dark);
  line-height: 1.6;
  padding: var(--space-lg);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ==========================================
   2. ANIMATED BACKGROUND
   ========================================== */

.bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.shape {
  position: absolute;
  opacity: 0.1;
  animation: float 20s infinite ease-in-out;
}

.shape-1 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.8), transparent);
  top: 10%;
  left: 10%;
  animation-delay: 0s;
  animation-duration: 25s;
}

.shape-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.6), transparent);
  top: 50%;
  right: 10%;
  animation-delay: 5s;
  animation-duration: 30s;
}

.shape-3 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.7), transparent);
  bottom: 10%;
  left: 50%;
  animation-delay: 10s;
  animation-duration: 35s;
}

@keyframes float {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  25% {
    transform: translate(30px, -30px) scale(1.1);
  }

  50% {
    transform: translate(-20px, 20px) scale(0.9);
  }

  75% {
    transform: translate(20px, 30px) scale(1.05);
  }
}

/* ==========================================
   3. CONTAINER & LAYOUT
   ========================================== */

.container {
  max-width: 750px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.card {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl) var(--space-xl);
  box-shadow: var(--shadow-xl);
  animation: slideUpFade 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--bg-primary);
  animation: shimmer 3s infinite linear;
}

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

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

@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================
   4. HEADER
   ========================================== */

.header {
  text-align: center;
  margin-bottom: var(--space-xl);
  animation: fadeDown 0.8s ease;
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.logo-container {
  display: inline-block;
}

.logo {
  font-size: 64px;
  animation: bounce 2s ease-in-out infinite, rotate 20s linear infinite;
  display: inline-block;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-15px) scale(1.05);
  }
}

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

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

.logo-text {
  font-size: 36px;
  font-weight: 800;
  color: var(--bg-white);
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  margin-top: var(--space-sm);
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tagline {
  color: rgba(255, 255, 255, 0.95);
  font-size: 14px;
  font-weight: 500;
  margin-top: var(--space-xs);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ==========================================
   5. HERO SECTION
   ========================================== */

.hero {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.hero-title {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: var(--space-md);
  letter-spacing: -0.5px;
}

.gradient-text {
  background: var(--bg-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 5s ease infinite;
  background-size: 200% 200%;
}

@keyframes gradientShift {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-light);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto;
}

/* ==========================================
   6. STATS SECTION
   ========================================== */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-lg);
  margin: var(--space-xl) 0;
  padding: var(--space-lg);
  background: linear-gradient(135deg, #fff5f5 0%, #f0f4ff 100%);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.stat-item {
  text-align: center;
  padding: var(--space-md);
  border-radius: var(--radius-md);
  background: var(--bg-white);
  transition: all var(--transition-base);
  cursor: default;
}

.stat-item:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: var(--shadow-md);
}

.stat-number {
  display: block;
  font-size: 36px;
  font-weight: 800;
  background: var(--bg-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-xs);
  animation: countUp 2s ease-out;
}

@keyframes countUp {
  from {
    opacity: 0;
    transform: scale(0.5);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.stat-label {
  font-size: 13px;
  color: var(--text-light);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ==========================================
   7. FEATURES SECTION
   ========================================== */

.section-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: var(--space-lg);
}

.features {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
}

.feature-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--bg-white);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  cursor: pointer;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--bg-primary);
  transition: height var(--transition-base);
}

.feature-card:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.feature-card:hover::before {
  height: 100%;
}

.feature-icon {
  font-size: 32px;
  flex-shrink: 0;
  animation: wiggle 2s ease-in-out infinite;
}

@keyframes wiggle {

  0%,
  100% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(-5deg);
  }

  75% {
    transform: rotate(5deg);
  }
}

.feature-card:hover .feature-icon {
  animation: bounce 0.6s ease;
}

.feature-content {
  flex: 1;
}

.feature-title {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: var(--space-xs);
  font-size: 16px;
}

.feature-description {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}

/* ==========================================
   8. PRICING SECTION
   ========================================== */

.pricing-section {
  text-align: center;
  margin: var(--space-xl) 0;
}

.price-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary);
  color: var(--bg-white);
  padding: var(--space-lg) var(--space-2xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-primary);
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  position: relative;
  overflow: hidden;
}

.price-badge::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent);
  animation: rotate 10s linear infinite;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    box-shadow: var(--shadow-primary);
  }

  50% {
    transform: scale(1.05);
    box-shadow: 0 12px 36px rgba(102, 126, 234, 0.5);
  }
}

.price-amount {
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
  position: relative;
  z-index: 1;
}

.price-label {
  font-size: 16px;
  font-weight: 600;
  opacity: 0.95;
  margin-top: var(--space-xs);
  position: relative;
  z-index: 1;
}

.price-note {
  font-size: 14px;
  color: var(--text-light);
  margin-top: var(--space-md);
}

/* ==========================================
   9. PAYMENT SECTION
   ========================================== */

.payment-section {
  text-align: center;
  margin: var(--space-xl) 0;
}

.payment-button-wrapper {
  margin-bottom: var(--space-md);
}

.payment-button-wrapper form {
  display: inline-block;
}

/* Razorpay Button Customization */
.razorpay-payment-button {
  background: var(--bg-primary) !important;
  color: var(--bg-white) !important;
  border: none !important;
  padding: 20px 60px !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  border-radius: var(--radius-lg) !important;
  cursor: pointer !important;
  transition: all var(--transition-base) !important;
  box-shadow: var(--shadow-primary) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  position: relative !important;
  overflow: hidden !important;
}

.razorpay-payment-button::before {
  content: '' !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  width: 0 !important;
  height: 0 !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.3) !important;
  transform: translate(-50%, -50%) !important;
  transition: width 0.6s, height 0.6s !important;
}

.razorpay-payment-button:hover::before {
  width: 300px !important;
  height: 300px !important;
}

.razorpay-payment-button:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 12px 40px rgba(102, 126, 234, 0.5) !important;
}

.payment-note {
  font-size: 14px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
}

/* ==========================================
   10. HOW IT WORKS
   ========================================== */

.how-it-works {
  margin: var(--space-xl) 0;
  padding: var(--space-xl);
  background: var(--bg-light);
  border-radius: var(--radius-lg);
}

.steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: var(--space-md);
  align-items: center;
  margin-top: var(--space-lg);
}

.step-item {
  text-align: center;
  padding: var(--space-lg);
  background: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  position: relative;
}

.step-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.step-number {
  width: 60px;
  height: 60px;
  margin: 0 auto var(--space-md);
  background: var(--bg-primary);
  color: var(--bg-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
  box-shadow: var(--shadow-primary);
  animation: bounce 2s ease-in-out infinite;
}

.step-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: var(--space-xs);
}

.step-description {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.5;
}

.step-arrow {
  font-size: 32px;
  color: var(--primary);
  font-weight: bold;
  animation: slideRight 1.5s ease-in-out infinite;
}

@keyframes slideRight {

  0%,
  100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(10px);
  }
}

/* ==========================================
   11. FAQ SECTION
   ========================================== */

.faq {
  margin: var(--space-xl) 0;
}

.faq-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.faq-item {
  background: var(--bg-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-base);
  border: 2px solid transparent;
}

.faq-item:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  padding: var(--space-lg);
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  transition: all var(--transition-base);
}

.faq-question:hover {
  color: var(--primary);
}

.faq-icon {
  font-size: 24px;
  font-weight: 300;
  color: var(--primary);
  transition: transform var(--transition-base);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow), padding var(--transition-base);
  padding: 0 var(--space-lg);
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 var(--space-lg) var(--space-lg);
}

.faq-answer p {
  color: var(--text-medium);
  line-height: 1.7;
  font-size: 15px;
}

.faq-answer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition-fast);
}

.faq-answer a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* ==========================================
   12. TRUST BADGES
   ========================================== */

.trust-section {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 2px solid var(--bg-lighter);
}

.trust-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  background: var(--bg-white);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  cursor: default;
}

.trust-badge:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.badge-icon {
  font-size: 20px;
}

.badge-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-medium);
}

/* ==========================================
   13. FOOTER
   ========================================== */

.footer {
  margin-top: var(--space-xl);
  text-align: center;
  padding-top: var(--space-lg);
  border-top: 2px solid var(--bg-lighter);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
}

.footer-link {
  color: var(--text-light);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition-fast);
  position: relative;
}

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

.footer-link:hover {
  color: var(--primary);
}

.footer-link:hover::after {
  width: 100%;
}

.footer-text {
  color: var(--text-light);
  font-size: 13px;
  margin-bottom: var(--space-xs);
}

.footer-subtext {
  color: var(--text-lighter);
  font-size: 12px;
}

/* ==========================================
   14. TOAST NOTIFICATION
   ========================================== */

.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  padding: var(--space-md) var(--space-lg);
  background: var(--text-dark);
  color: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  transform: translateY(150%);
  opacity: 0;
  transition: all var(--transition-base);
  z-index: 9999;
  max-width: 300px;
  font-size: 14px;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast.success {
  background: var(--success);
}

.toast.error {
  background: var(--danger);
}

.toast.info {
  background: var(--info);
}

/* ==========================================
   15. RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 768px) {
  body {
    padding: var(--space-md);
  }

  .card {
    padding: var(--space-xl) var(--space-lg);
    border-radius: var(--radius-lg);
  }

  .logo {
    font-size: 48px;
  }

  .logo-text {
    font-size: 28px;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .stats {
    grid-template-columns: 1fr;
    gap: var(--space-md);
    padding: var(--space-md);
  }

  .stat-number {
    font-size: 28px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .price-amount {
    font-size: 36px;
  }

  .price-badge {
    padding: var(--space-md) var(--space-xl);
  }

  .razorpay-payment-button {
    width: 100% !important;
    padding: 18px 32px !important;
    font-size: 18px !important;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .step-arrow {
    transform: rotate(90deg);
    animation: slideDown 1.5s ease-in-out infinite;
  }

  @keyframes slideDown {

    0%,
    100% {
      transform: rotate(90deg) translateY(0);
    }

    50% {
      transform: rotate(90deg) translateY(10px);
    }
  }

  .trust-badges {
    gap: var(--space-sm);
  }

  .trust-badge {
    padding: var(--space-xs) var(--space-md);
  }

  .badge-text {
    font-size: 12px;
  }

  .footer-links {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .toast {
    right: var(--space-md);
    left: var(--space-md);
    bottom: var(--space-md);
    max-width: none;
  }
}

@media (max-width: 480px) {
  .card {
    padding: var(--space-lg) var(--space-md);
  }

  .section-title {
    font-size: 20px;
  }

  .feature-card {
    flex-direction: column;
    text-align: center;
  }

  .feature-icon {
    font-size: 40px;
  }
}

/* ==========================================
   16. UTILITY CLASSES
   ========================================== */

.text-center {
  text-align: center;
}

.mt-1 {
  margin-top: var(--space-xs);
}

.mt-2 {
  margin-top: var(--space-sm);
}

.mt-3 {
  margin-top: var(--space-md);
}

.mt-4 {
  margin-top: var(--space-lg);
}

.mt-5 {
  margin-top: var(--space-xl);
}

.mb-1 {
  margin-bottom: var(--space-xs);
}

.mb-2 {
  margin-bottom: var(--space-sm);
}

.mb-3 {
  margin-bottom: var(--space-md);
}

.mb-4 {
  margin-bottom: var(--space-lg);
}

.mb-5 {
  margin-bottom: var(--space-xl);
}

/* ==========================================
   18. INDIA'S DIGITAL PRIDE - UPI SECTION
   ========================================== */

.upi-pride-section {
  margin: var(--space-xl) 0;
  padding: var(--space-xl);
  background: linear-gradient(135deg, #fff8f0 0%, #f0f4ff 50%, #f0fff0 100%);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}

.upi-pride-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #FF9933 0%, #FF9933 33%, #FFFFFF 33%, #FFFFFF 66%, #138808 66%, #138808 100%);
}

/* Pride Header */
.pride-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.tricolor-bar {
  width: 120px;
  height: 6px;
  margin: 0 auto var(--space-md);
  background: linear-gradient(90deg, #FF9933 0%, #FF9933 33%, #FFFFFF 33%, #FFFFFF 66%, #138808 66%, #138808 100%);
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pride-title {
  font-size: clamp(28px, 5vw, 38px);
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: var(--space-xs);
  letter-spacing: -0.5px;
}

.pride-subtitle {
  font-size: 18px;
  color: var(--text-light);
  font-weight: 500;
}

/* Live Counter Wrapper */
.live-counter-wrapper {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-xl);
  text-align: center;
  box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
  position: relative;
  overflow: hidden;
}

.live-counter-wrapper::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent 60%);
  animation: rotate 30s linear infinite;
}

.counter-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  position: relative;
  z-index: 1;
}

.live-indicator {
  width: 12px;
  height: 12px;
  background: #48BB78;
  border-radius: 50%;
  animation: pulse-live 1.5s ease-in-out infinite;
  box-shadow: 0 0 0 4px rgba(72, 187, 120, 0.3);
}

@keyframes pulse-live {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.2);
    opacity: 0.7;
  }
}

.counter-label {
  color: rgba(255, 255, 255, 0.95);
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Transaction Counter Display */
.transaction-counter {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-bottom: var(--space-lg);
  position: relative;
  z-index: 1;
}

.counter-digit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 60px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  font-size: 36px;
  font-weight: 800;
  color: white;
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, background 0.3s ease;
  position: relative;
  overflow: hidden;
}

.counter-digit::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.counter-digit.flip {
  animation: flipDigit 0.3s ease-out;
}

@keyframes flipDigit {
  0% {
    transform: perspective(200px) rotateX(0deg);
  }

  50% {
    transform: perspective(200px) rotateX(-90deg);
    background: rgba(255, 255, 255, 0.25);
  }

  100% {
    transform: perspective(200px) rotateX(0deg);
  }
}

.counter-comma {
  font-size: 36px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 2px;
}

/* Counter Stats */
.counter-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-xl);
  margin-bottom: var(--space-md);
  position: relative;
  z-index: 1;
}

.counter-stat-item {
  text-align: center;
}

.counter-stat-item .stat-value {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: white;
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
}

.counter-stat-item .stat-desc {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.counter-stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.3);
}

.counter-source {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  position: relative;
  z-index: 1;
}

/* Pride Content */
.pride-content {
  margin-top: var(--space-lg);
}

.content-intro {
  margin-bottom: var(--space-xl);
}

.content-heading {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: var(--space-md);
}

.content-paragraph {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-medium);
  margin-bottom: var(--space-md);
}

/* How UPI Works Section */
.how-upi-works {
  margin: var(--space-xl) 0;
  padding: var(--space-xl);
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.upi-visual-container {
  text-align: center;
  margin: var(--space-lg) 0;
}

.upi-flow-gif {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.gif-caption {
  margin-top: var(--space-sm);
  font-size: 13px;
  color: var(--text-light);
  font-style: italic;
}

/* UPI Layers */
.upi-layers {
  margin-top: var(--space-lg);
}

.layer-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--bg-light);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
  transition: all var(--transition-base);
  border-left: 4px solid var(--primary);
}

.layer-item:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-sm);
}

.layer-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.layer-content h5 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: var(--space-xs);
}

.layer-content p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
  margin: 0;
}

.layer-connector {
  text-align: center;
  font-size: 24px;
  color: var(--primary);
  padding: var(--space-xs) 0;
  animation: bounce 2s ease-in-out infinite;
}

/* UPI Features Grid */
.upi-features-detail {
  margin: var(--space-xl) 0;
}

.upi-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
}

.upi-feature-item {
  background: white;
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: all var(--transition-base);
  border: 2px solid transparent;
}

.upi-feature-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.feature-icon-circle {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto var(--space-md);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.upi-feature-item h5 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: var(--space-xs);
}

.upi-feature-item p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
  margin: 0;
}

/* Global Comparison Table */
.global-comparison {
  margin: var(--space-xl) 0;
}

.comparison-table {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin: var(--space-lg) 0;
}

.comparison-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  padding: var(--space-md);
}

.comparison-header .comp-col {
  color: white;
  font-weight: 700;
  font-size: 14px;
  text-align: center;
}

.comparison-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  padding: var(--space-md);
  border-bottom: 1px solid var(--bg-lighter);
  transition: background var(--transition-fast);
}

.comparison-row:last-child {
  border-bottom: none;
}

.comparison-row:hover {
  background: var(--bg-light);
}

.comparison-row.upi-row {
  background: linear-gradient(90deg, rgba(255, 153, 51, 0.1) 0%, rgba(19, 136, 8, 0.1) 100%);
}

.comp-col {
  text-align: center;
  font-size: 14px;
  color: var(--text-medium);
  display: flex;
  align-items: center;
  justify-content: center;
}

.comp-col.highlight {
  color: var(--success);
  font-weight: 700;
}

.system-badge {
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
}

.upi-badge {
  background: linear-gradient(135deg, #FF9933 0%, #138808 100%);
  color: white;
}

.visa-badge {
  background: #1A1F71;
  color: white;
}

.mc-badge {
  background: #EB001B;
  color: white;
}

.paypal-badge {
  background: #003087;
  color: white;
}

.comparison-note {
  background: var(--bg-light);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--text-medium);
  border-left: 4px solid var(--warning);
}

/* UPI Ecosystem */
.upi-ecosystem {
  margin: var(--space-xl) 0;
}

.apps-showcase {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-lg);
  margin: var(--space-lg) 0;
}

.app-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-md);
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  min-width: 100px;
  cursor: default;
}

.app-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.app-icon-wrapper {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.app-icon-wrapper.phonepe {
  background: linear-gradient(135deg, #5f259f 0%, #6739b6 100%);
}

.app-icon-wrapper.gpay {
  background: linear-gradient(135deg, #4285f4 0%, #34a853 50%, #fbbc05 100%);
}

.app-icon-wrapper.paytm {
  background: linear-gradient(135deg, #00baf2 0%, #002970 100%);
}

.app-icon-wrapper.bhim {
  background: linear-gradient(135deg, #003580 0%, #0066cc 100%);
}

.app-icon-wrapper.amazon {
  background: linear-gradient(135deg, #ff9900 0%, #232f3e 100%);
}

.app-icon-wrapper.whatsapp {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
}

.app-emoji {
  filter: brightness(0) invert(1);
}

.app-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
}

.app-share {
  font-size: 11px;
  color: var(--text-light);
  background: var(--bg-lighter);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.ecosystem-note {
  text-align: center;
  font-size: 14px;
  color: var(--text-medium);
}

/* UPI Timeline */
.upi-timeline {
  margin: var(--space-xl) 0;
}

.timeline-container {
  position: relative;
  padding-left: 30px;
}

.timeline-container::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: var(--radius-full);
}

.timeline-item {
  position: relative;
  margin-bottom: var(--space-lg);
  padding-left: var(--space-lg);
}

.timeline-dot {
  position: absolute;
  left: -24px;
  top: 4px;
  width: 16px;
  height: 16px;
  background: white;
  border: 4px solid var(--primary);
  border-radius: 50%;
  transition: all var(--transition-base);
}

.timeline-item:hover .timeline-dot {
  transform: scale(1.3);
  background: var(--primary);
}

.timeline-item.current .timeline-dot {
  background: var(--success);
  border-color: var(--success);
  animation: pulse-live 1.5s ease-in-out infinite;
}

.timeline-content {
  background: white;
  padding: var(--space-md);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.timeline-item:hover .timeline-content {
  transform: translateX(8px);
  box-shadow: var(--shadow-md);
}

.timeline-date {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.timeline-content h5 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: var(--space-xs);
}

.timeline-content p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
  margin: 0;
}

/* Pride Closing */
.pride-closing {
  margin-top: var(--space-xl);
}

.closing-content {
  text-align: center;
  padding: var(--space-xl);
  background: linear-gradient(135deg, rgba(255, 153, 51, 0.1) 0%, rgba(255, 255, 255, 0.5) 50%, rgba(19, 136, 8, 0.1) 100%);
  border-radius: var(--radius-lg);
  border: 2px solid transparent;
  background-clip: padding-box;
}

.closing-emoji {
  font-size: 48px;
  display: block;
  margin-bottom: var(--space-md);
  animation: bounce 2s ease-in-out infinite;
}

.closing-content h4 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: var(--space-md);
}

.closing-content p {
  font-size: 16px;
  color: var(--text-medium);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto var(--space-lg);
}

.pride-badge {
  display: inline-block;
  background: linear-gradient(135deg, #FF9933 0%, #138808 100%);
  color: white;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-full);
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* UPI Section Responsive */
@media (max-width: 768px) {
  .upi-pride-section {
    padding: var(--space-lg);
    margin: var(--space-lg) 0;
  }

  .counter-digit {
    width: 28px;
    height: 40px;
    font-size: 22px;
  }

  .counter-comma {
    font-size: 22px;
  }

  .counter-stats {
    flex-direction: column;
    gap: var(--space-md);
  }

  .counter-stat-divider {
    width: 60px;
    height: 1px;
  }

  .comparison-header,
  .comparison-row {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    padding: var(--space-sm);
    font-size: 12px;
  }

  .system-badge {
    font-size: 11px;
    padding: 2px 6px;
  }

  .apps-showcase {
    gap: var(--space-md);
  }

  .app-item {
    min-width: 80px;
    padding: var(--space-sm);
  }

  .timeline-container {
    padding-left: 20px;
  }

  .timeline-item {
    padding-left: var(--space-md);
  }

  .timeline-dot {
    left: -17px;
    width: 12px;
    height: 12px;
    border-width: 3px;
  }
}

@media (max-width: 480px) {
  .counter-digit {
    width: 22px;
    height: 32px;
    font-size: 18px;
  }

  .counter-comma {
    font-size: 18px;
    margin: 0 1px;
  }

  .pride-title {
    font-size: 24px;
  }

  .upi-feature-grid {
    grid-template-columns: 1fr;
  }

  .comparison-header .comp-col,
  .comparison-row .comp-col {
    font-size: 10px;
    padding: 2px;
  }

  .comparison-header,
  .comparison-row {
    grid-template-columns: 1.2fr 0.8fr 0.8fr 0.8fr;
  }
}

/* ==========================================
   19. INLINE FLAG & APP LOGO STYLES
   ========================================== */

.inline-flag {
  height: 28px;
  width: auto;
  vertical-align: middle;
  margin-right: 8px;
  border-radius: 3px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.badge-flag {
  height: 16px;
  width: auto;
  vertical-align: middle;
  margin-right: 4px;
  border-radius: 2px;
}

/* App Logo Styling */
.app-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  transition: transform var(--transition-base);
}

.app-item:hover .app-logo {
  transform: scale(1.15);
}

.app-icon-wrapper {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-lighter);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

.app-item:hover .app-icon-wrapper {
  background: var(--bg-white);
  box-shadow: var(--shadow-md);
}

/* ==========================================
   20. PAYMENT SUCCESS MODAL
   ========================================== */

.payment-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
}

.payment-modal-overlay.active {
  display: flex;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.modal-skip-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  z-index: 10001;
}

.modal-skip-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateX(5px);
}

.payment-modal {
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  max-width: 500px;
  width: 100%;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
  animation: modalSlideUp 0.4s ease-out;
  position: relative;
  overflow: hidden;
}

.payment-modal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--success));
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.modal-logo {
  height: 45px;
  width: auto;
  margin-bottom: var(--space-md);
}

.modal-header h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--success);
  margin: 0;
}

/* Payment Steps */
.payment-steps {
  margin: var(--space-lg) 0;
}

.payment-step {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--bg-light);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
  opacity: 0.4;
  transform: translateX(-20px);
  transition: all 0.4s ease-out;
  position: relative;
  overflow: hidden;
}

.payment-step.active {
  opacity: 1;
  transform: translateX(0);
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(72, 187, 120, 0.1) 100%);
  border: 2px solid var(--primary-light);
}

.payment-step.completed {
  opacity: 1;
  transform: translateX(0);
  background: linear-gradient(135deg, rgba(72, 187, 120, 0.1) 0%, rgba(72, 187, 120, 0.05) 100%);
  border: 2px solid var(--success);
}

.payment-step .step-icon {
  font-size: 28px;
  flex-shrink: 0;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
}

.payment-step .step-content {
  flex: 1;
}

.payment-step .step-content h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 4px 0;
}

.payment-step .step-content p {
  font-size: 13px;
  color: var(--text-light);
  margin: 0;
}

.payment-step .step-check {
  width: 28px;
  height: 28px;
  background: var(--success);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  opacity: 0;
  transform: scale(0);
  transition: all 0.3s ease-out;
}

.payment-step.completed .step-check {
  opacity: 1;
  transform: scale(1);
}

/* Payment ID Display */
.payment-id-display {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  text-align: center;
  margin: var(--space-lg) 0;
}

.payment-id-label {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.payment-id-value {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: white;
  font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
  word-break: break-all;
}

/* Modal Progress Bar */
.modal-progress {
  height: 6px;
  background: var(--bg-lighter);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin: var(--space-lg) 0 var(--space-md);
}

.modal-progress .progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--success));
  border-radius: var(--radius-full);
  transition: width 0.1s linear;
}

.redirect-text {
  text-align: center;
  font-size: 14px;
  color: var(--text-light);
  margin: 0;
}

.redirect-text span {
  font-weight: 700;
  color: var(--primary);
}

/* Modal Responsive */
@media (max-width: 768px) {
  .payment-modal {
    padding: var(--space-xl) var(--space-lg);
    margin: var(--space-md);
    max-height: 90vh;
    overflow-y: auto;
  }

  .modal-skip-btn {
    top: 10px;
    right: 10px;
    padding: 8px 16px;
    font-size: 12px;
  }

  .modal-header h2 {
    font-size: 24px;
  }

  .payment-step {
    padding: var(--space-sm);
  }

  .payment-step .step-icon {
    width: 38px;
    height: 38px;
    font-size: 22px;
  }

  .payment-step .step-content h4 {
    font-size: 14px;
  }

  .payment-step .step-content p {
    font-size: 12px;
  }
}

/* ==========================================
   17. PRINT STYLES
   ========================================== */

@media print {
  body {
    background: var(--bg-white);
    padding: 0;
  }

  .bg-animation,
  .header,
  .payment-section,
  .footer,
  .trust-section,
  .payment-modal-overlay {
    display: none !important;
  }

  .card {
    box-shadow: none;
    padding: var(--space-md);
  }
}