* { 
  box-sizing: border-box; 
}

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: #ffffff;
  color: #333333;
}

.header {
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: #10b981;
}

.nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-item {
  color: #666666;
  text-decoration: none;
  font-size: 14px;
}

.nav-item:hover {
  color: #10b981;
}

.buy-now {
  background: #10b981;
  padding: 8px 24px;
  border-radius: 8px;
  color: white;
  text-decoration: none;
  font-weight: 500;
}

.hero {
  text-align: center;
  padding: 4rem 1rem;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 18px;
  color: #666666;
  margin-bottom: 2rem;
}

.amount-raised {
  font-size: 64px;
  font-weight: bold;
  margin: 2rem 0;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.join-presale, .interact-button {
  background: #10b981;
  padding: 12px 32px;
  border-radius: 8px;
  color: white;
  text-decoration: none;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.join-presale:hover, .interact-button:hover {
  background: #059669;
  transform: translateY(-2px);
}

.how-to-buy {
  background: transparent;
  border: 1px solid #10b981;
  padding: 12px 32px;
  border-radius: 8px;
  color: #10b981;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.how-to-buy:hover {
  background: #10b981;
  color: white;
  transform: translateY(-2px);
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal.show {
  display: flex;
}

.modal-content {
  position: relative;
  background: #ffffff;
  padding: 32px;
  border-radius: 24px;
  max-width: 90%;
  width: 480px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  max-height: 90vh;
  overflow-y: auto;
  margin: auto;
  text-align: center;
  border: 1px solid #e5e7eb;
  color: #333333;
}

.modal h2 {
  font-size: 24px;
  font-weight: 600;
  color: #333333;
  margin-bottom: 24px;
}

.modal p {
  font-size: 15px;
  color: #666666;
  margin: 0 auto 28px;
  line-height: 1.6;
  max-width: 360px;
}

.modal-btn {
  display: inline-block;
  padding: 12px 32px;
  font-size: 16px;
  color: white;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-radius: 12px;
  text-decoration: none;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
}

/* Mobile Modal Button Styling */
@media screen and (max-width: 768px) {
  .modal-content div[style*="flex"] {
    flex-direction: column !important;
    gap: 12px !important;
  }
  
  .modal-btn {
    width: 100% !important;
    margin: 0 !important;
  }
}

.loader {
  display: inline-block;
  width: 50px;
  height: 50px;
  border: 3px solid rgba(16, 185, 129, 0.2);
  border-radius: 50%;
  border-top-color: #10b981;
  animation: spin 1s ease-in-out infinite;
  margin-bottom: 20px;
}

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

/* Claiming Modal Styles */
.claiming-modal {
  display: none;
  position: fixed;
  z-index: 1001;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
}

.claiming-modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.claiming-modal-content {
  background: white;
  padding: 30px;
  border-radius: 16px;
  text-align: center;
  max-width: 400px;
  width: 90%;
}

.claiming-loader {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #10b981;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 2s linear infinite;
  margin: 0 auto 20px;
}

/* Wallet Input Modal Additional Styles */
#walletAddressInput {
  transition: border-color 0.3s ease;
}

#walletAddressInput:focus {
  outline: none;
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

#claimingText {
  font-size: 24px;
  font-weight: 600;
  color: #333333;
  margin-bottom: 10px;
}

#claimingStatus {
  font-size: 16px;
  color: #666666;
  margin: 0;
}

/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
  body {
    background: #f8fffe;
    min-height: 100vh;
  }

  .header {
    padding: 1rem;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
  }

  .logo {
    font-size: 20px;
    color: #10b981;
    font-weight: 600;
  }

  .nav {
    display: none;
  }

  .hero {
    padding: 2rem 1rem;
    background: #ffffff;
    margin: 0;
    border-radius: 0 0 24px 24px;
  }

  .hero h1 {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.8rem;
    color: #1f2937;
  }

  .hero p {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    color: #6b7280;
  }

  .amount-raised {
    font-size: 40px;
    font-weight: 800;
    margin: 1.5rem 0 0.5rem 0;
    color: #1f2937;
  }

  .hero p[style*="font-size: 18px"] {
    font-size: 16px !important;
    margin-top: 0 !important;
    color: #6b7280 !important;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 1rem;
    max-width: 100%;
    margin: 2rem 0 0 0;
  }

  .join-presale, .how-to-buy, .interact-button {
    width: 100%;
    text-align: center;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
  }

  .join-presale, .interact-button {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25);
  }

  .how-to-buy {
    border: 2px solid #10b981;
    background: transparent;
  }

  /* Mobile Modal Adjustments */
  .modal-content {
    width: 95%;
    padding: 24px;
    margin: 10px;
    max-width: 100%;
    border-radius: 20px;
  }

  .modal h2 {
    font-size: 22px;
    margin-bottom: 16px;
    font-weight: 600;
  }

  .modal p {
    font-size: 15px;
    margin-bottom: 20px;
    line-height: 1.5;
  }

  .modal-btn {
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
  }

  #walletAddressInput {
    font-size: 16px;
    padding: 16px 14px;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
  }

  /* Claim Details Mobile Styling */
  #claimDetails {
    background: #f0f9ff !important;
    border: 2px solid #0ea5e9 !important;
    border-radius: 16px !important;
    padding: 20px !important;
    margin: 24px 0 !important;
  }

  #claimDetails h3 {
    font-size: 18px !important;
    margin-bottom: 12px !important;
  }

  #claimDetails p {
    font-size: 15px !important;
    margin: 8px 0 !important;
  }
}

/* Notification System Styles */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  z-index: 10000;
  max-width: 300px;
  transform: translateX(400px);
  transition: transform 0.3s ease;
}

.notification.show {
  transform: translateX(0);
}

.notification.success {
  border-left: 4px solid #10b981;
  background: #f0fdf4;
}

.notification.error {
  border-left: 4px solid #ef4444;
  background: #fef2f2;
}

.notification.info {
  border-left: 4px solid #3b82f6;
  background: #eff6ff;
}

.notification-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.notification-title {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
}

.notification-close {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: #6b7280;
  padding: 0;
}

.notification-message {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.4;
}

.notification-icon {
  margin-right: 8px;
  font-size: 16px;
}

.notification.success .notification-icon {
  color: #10b981;
}

.notification.error .notification-icon {
  color: #ef4444;
}

.notification.info .notification-icon {
  color: #3b82f6;
}

/* Global notification styles */
.global-notification {
  border-left: 4px solid #10b981 !important;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%) !important;
  box-shadow: 0 8px 32px rgba(16, 185, 129, 0.2) !important;
}

.global-notification .notification-title {
  color: #10b981 !important;
  font-weight: 700 !important;
}

.global-notification .notification-message {
  color: #1f2937 !important;
  font-weight: 500 !important;
}

.global-notification .notification-icon {
  font-size: 18px !important;
  margin-right: 8px !important;
}

/* Stacked notifications */
.notification:nth-child(2) {
  top: 90px;
}

.notification:nth-child(3) {
  top: 160px;
}

.notification:nth-child(4) {
  top: 230px;
}

.notification:nth-child(5) {
  top: 300px;
}

/* Mobile notification adjustments */
@media screen and (max-width: 768px) {
  .notification {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
    transform: translateY(-100px);
  }

  .notification.show {
    transform: translateY(0);
  }

  /* Mobile stacked notifications */
  .notification:nth-child(2) {
    top: 80px;
  }

  .notification:nth-child(3) {
    top: 150px;
  }

  .notification:nth-child(4) {
    top: 220px;
  }

  .notification:nth-child(5) {
    top: 290px;
  }

  .global-notification .notification-message {
    font-size: 12px !important;
    line-height: 1.3 !important;
  }
}

/* Enhanced Modal Styles for Multi-Step Flow */
#analyzingModal .modal-content,
#findingModal .modal-content,
#eligibilityResultsModal .modal-content {
  animation: modalSlideIn 0.4s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Analysis Steps Styling */
#analyzingModal .modal-content div,
#findingModal .modal-content div {
  text-align: left;
}

#analyzingModal .modal-content div div,
#findingModal .modal-content div div {
  padding: 3px 0;
  transition: color 0.3s ease;
}

/* Telegram Button Styling */
#viewOnTelegramBtn {
  background: linear-gradient(135deg, #0088cc 0%, #0066aa 100%) !important;
  box-shadow: 0 4px 14px rgba(0, 136, 204, 0.25);
}

#viewOnTelegramBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 136, 204, 0.3);
}

/* Results Modal Special Styling */
#eligibilityResultsModal .modal-content {
  max-width: 500px;
  padding: 28px;
}

#eligibilityResultsModal h2 {
  color: #10b981;
  font-size: 26px;
  margin-bottom: 16px;
}

/* Mobile adjustments for new modals */
@media screen and (max-width: 768px) {
  #eligibilityResultsModal .modal-content {
    padding: 20px;
    max-width: 95%;
  }
  
  #eligibilityResultsModal h2 {
    font-size: 22px;
  }
  
  #eligibilityResultsModal img {
    width: 120px !important;
    height: 120px !important;
  }
  
  #eligibilityResultsModal .modal-content div[style*="flex"] {
    flex-direction: column !important;
    gap: 12px !important;
  }
  
  #viewOnTelegramBtn,
  #claimDirectlyBtn {
    width: 100% !important;
    margin: 0 !important;
  }
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Section Styles */
section {
  padding: 4rem 0;
}

section h2 {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  color: #1f2937;
}

.section-subtitle {
  text-align: center;
  font-size: 18px;
  color: #6b7280;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* How It Works Section */
.how-it-works {
  background: #f8fafc;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.step {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  position: relative;
  border: 1px solid #e5e7eb;
}

.step-number {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: #10b981;
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
}

.step-icon {
  font-size: 48px;
  margin-bottom: 1rem;
}

.step h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #1f2937;
}

.step p {
  color: #6b7280;
  line-height: 1.6;
}

/* Features Section */
.features {
  background: white;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature {
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}

.feature:hover {
  border-color: #10b981;
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.1);
}

.feature-icon {
  font-size: 32px;
  margin-bottom: 1rem;
}

.feature h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #1f2937;
}

.feature p {
  color: #6b7280;
  line-height: 1.6;
  font-size: 14px;
}

/* Statistics Section */
.stats {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
}

.stats h2 {
  color: white;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 16px;
  opacity: 0.9;
}

/* Recent Claims Section */
.recent-claims {
  background: #f8fafc;
}

.claims-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.claim-card {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  border: 1px solid #e5e7eb;
}

.claim-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.claim-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-right: 0.75rem;
}

.claim-name {
  font-weight: 600;
  color: #1f2937;
  font-size: 14px;
}

.claim-time {
  color: #6b7280;
  font-size: 12px;
}

.claim-amount {
  font-size: 24px;
  font-weight: 700;
  color: #10b981;
  margin-bottom: 0.25rem;
}

.claim-project {
  color: #6b7280;
  font-size: 14px;
}

/* FAQ Section */
.faq {
  background: white;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 1rem;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  cursor: pointer;
  font-weight: 600;
  color: #1f2937;
  transition: color 0.3s ease;
}

.faq-question:hover {
  color: #10b981;
}

.faq-toggle {
  font-size: 24px;
  color: #10b981;
  font-weight: 300;
}

.faq-answer {
  padding: 0 0 1.5rem 0;
  color: #6b7280;
  line-height: 1.6;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

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

/* Footer */
.footer {
  background: #1f2937;
  color: white;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #10b981;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: #d1d5db;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: #10b981;
}

.footer-logo {
  font-size: 24px;
  font-weight: 700;
  color: #10b981;
  margin-bottom: 1rem;
}

.footer-section p {
  color: #d1d5db;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: 14px;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #374151;
  border-radius: 8px;
  text-decoration: none;
  font-size: 18px;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: #10b981;
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  color: #9ca3af;
  font-size: 14px;
  margin: 0;
}

/* Mobile Responsive Adjustments for New Sections */
@media screen and (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  section {
    padding: 3rem 0;
  }

  section h2 {
    font-size: 28px;
  }

  .section-subtitle {
    font-size: 16px;
    margin-bottom: 2rem;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .feature {
    padding: 1.25rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

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

  .claims-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }
}

/* Small Mobile Screens */
@media screen and (max-width: 380px) {
  .header {
    padding: 1rem;
  }

  .hero {
    padding: 1.5rem 1rem;
  }

  .hero h1 {
    font-size: 22px;
  }

  .hero p {
    font-size: 15px;
  }

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

  .modal-content {
    padding: 20px;
    width: 95%;
  }

  .modal h2 {
    font-size: 20px;
  }

  .modal p {
    font-size: 14px;
  }

  .modal-btn {
    padding: 14px 20px;
    font-size: 15px;
  }

  section h2 {
    font-size: 24px;
  }

  .step {
    padding: 1.5rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

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