/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

html, body {
  height: 100%;
  width: 100%;
  overflow: hidden;
  background: #1a1f2e;
}

body {
  font-family: 'Roboto', sans-serif;
  color: white;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

#root {
  height: 100%;
  width: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  font-family: 'Roboto', sans-serif;
  color: white;
}

/* Logo Section */
.logo-section {
  text-align: center;
  padding: 2rem;
  background: #FFD700;
  border-radius: 20px;
  margin-bottom: 3rem;
  position: relative;
  z-index: 1;
}

.logo-section h1 {
  font-size: 2.5rem;
  font-weight: bold;
  color: #1a1f2e;
  margin-bottom: 1rem;
}

.logo-section h2 {
  font-size: 1.8rem;
  color: #1a1f2e;
  margin-bottom: 0.5rem;
}

.logo-section p {
  font-size: 1.2rem;
  color: #1a1f2e;
}

/* Info Grid */
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding: 0 1rem;
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.info-box {
  background: rgba(26, 31, 46, 0.9);
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  border: 1px solid rgba(20, 241, 149, 0.3);
  box-shadow: 0 4px 15px rgba(20, 241, 149, 0.1);
}

.info-title {
  color: #14F195;
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
}

.info-value {
  color: white;
  font-size: 2rem;
  font-weight: bold;
  word-break: break-word;
}

/* Referral Section */
.referral-container {
  background: rgba(26, 31, 46, 0.9);
  border: 1px solid rgba(20, 241, 149, 0.3);
  border-radius: 15px;
  padding: 2rem;
  margin: 2rem 0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.referral-title {
  color: #FFD700;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  font-weight: bold;
}

.referral-link {
  background: rgba(26, 31, 46, 0.9);
  border: 1px solid rgba(20, 241, 149, 0.3);
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  word-break: break-all;
  font-family: monospace;
  color: #14F195;
}

.copy-button {
  background: #14F195;
  color: #1a1f2e;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  margin-bottom: 2rem;
}

/* Fundraising Section */
.fundraising-input {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(20, 241, 149, 0.3);
}

.wallet-status {
  color: #14F195;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  text-align: center;
}

.input-container {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.input-container input {
  flex: 1;
  background: rgba(26, 31, 46, 0.9);
  border: 1px solid rgba(20, 241, 149, 0.3);
  padding: 1rem;
  border-radius: 12px;
  color: white;
  font-size: 1rem;
  outline: none;
}

.input-container input:focus {
  border-color: #14F195;
}

.connect-button,
.contribute-button {
  background: #14F195;
  color: #1a1f2e;
  border: none;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-size: 1rem;
  cursor: pointer;
  font-weight: bold;
  white-space: nowrap;
}

.contribute-button {
  background: #FFD700;
}

/* Stats Section */
.stats-section {
  margin-top: 2rem;
  text-align: center;
}

.stats-title {
  color: #14F195;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.stats-value {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.stats-token-value {
  color: #00ff00;
  font-size: 16px;
  margin-bottom: 10px;
  opacity: 0.9;
}

.stats-note {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.refresh-button {
  background: transparent;
  color: #14F195;
  border: 1px solid #14F195;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
}

/* Main Features Section */
.main-features-section {
  background: rgba(26, 31, 46, 0.8);
  padding: 2rem;
  border-radius: 15px;
  margin-bottom: 2rem;
  border: 2px solid #FFD700;
}

.section-title {
  color: #FFD700;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  text-transform: uppercase;
  text-align: center;
}

.features-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(20, 241, 149, 0.2);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-title {
  color: #14F195;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.feature-description {
  color: white;
  font-size: 1rem;
  line-height: 1.5;
}

/* Achievement Banner */
.achievement-banner {
  background: linear-gradient(135deg, rgba(20, 241, 149, 0.1) 0%, rgba(255, 215, 0, 0.1) 100%);
  padding: 1.5rem;
  border-radius: 12px;
  margin: 2rem 0;
  border: 2px solid #FFD700;
  text-align: center;
}

.achievement-title {
  color: #FFD700;
  margin-bottom: 1rem;
  font-size: 1.6rem;
}

.achievement-item {
  color: #14F195;
  margin: 0.5rem 0;
  font-size: 1.1rem;
  font-weight: bold;
}

/* Description Section */
.description-section {
  background: rgba(20, 241, 149, 0.1);
  padding: 2rem;
  border-radius: 15px;
  margin-bottom: 2rem;
  border: 1px solid rgba(20, 241, 149, 0.2);
  backdrop-filter: blur(10px);
}

.description-title {
  color: #14F195;
  margin-bottom: 1.5rem;
  font-size: 2rem;
  text-align: center;
}

.description-text {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  color: white;
}

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

.description-feature-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(20, 241, 149, 0.2);
  transition: transform 0.3s ease;
}

.description-feature-card:hover {
  transform: translateY(-5px);
}

.description-feature-title {
  color: #14F195;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.description-feature-text {
  color: white;
  font-size: 1rem;
}

/* Tokenomics Section */
.tokenomics-section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(20, 241, 149, 0.2);
}

.tokenomics-title {
  color: #14F195;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  text-align: center;
}

.tokenomics-list {
  margin-bottom: 2rem;
}

.tokenomics-item {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Vesting Schedule */
.vesting-schedule {
  margin-top: 2rem;
}

.vesting-title {
  color: #14F195;
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.vesting-item {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Roadmap Section */
.roadmap-section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(20, 241, 149, 0.2);
}

.roadmap-title {
  color: #14F195;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  text-align: center;
}

.roadmap-item {
  color: white;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  position: relative;
}

.roadmap-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background-color: #14F195;
  border-radius: 50%;
}

/* Buttons */
button {
  background: linear-gradient(135deg, #14F195 0%, #0fb574 100%);
  color: #1a1f2e;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: bold;
  width: 100%;
  max-width: 300px;
  margin: 8px auto;
  text-transform: uppercase;
  cursor: pointer;
}

button:active {
  transform: scale(0.98);
}

/* Connected wallet */
.wallet-connected {
  color: #14F195;
  font-size: 14px;
  text-align: center;
  padding: 8px;
  word-break: break-all;
}

/* Input container */
.input-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px auto;
  width: 100%;
  max-width: 300px;
}

input {
  padding: 12px;
  border: 1px solid rgba(20, 241, 149, 0.2);
  border-radius: 8px;
  font-size: 14px;
  background: rgba(26, 31, 46, 0.8);
  color: white;
  width: 100%;
}

input:focus {
  border-color: #14F195;
  outline: none;
}

/* Referral section */
.referral-section {
  max-width: 800px;
  margin: -1rem auto 3rem;
  padding: 2rem;
  background: rgba(26, 31, 46, 0.9);
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(20, 241, 149, 0.2);
  border: 1px solid rgba(20, 241, 149, 0.3);
  position: relative;
  z-index: 4;
}

.referral-title {
  color: #FFD700;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.referral-link {
  background: rgba(255, 255, 255, 0.05);
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  word-break: break-all;
  font-family: monospace;
  font-size: 1rem;
  color: #14F195;
}

.copy-button {
  background: #14F195;
  color: #1a1f2e;
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1rem auto;
  transition: all 0.3s ease;
}

.copy-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(20, 241, 149, 0.3);
}

.copy-icon {
  font-size: 1.2rem;
}

hr {
  border: none;
  border-top: 1px solid rgba(20, 241, 149, 0.2);
  margin: 2rem 0;
}

.stats-title {
  color: #14F195;
  font-size: 1.5rem;
  margin: 1.5rem 0;
}

.investment-total {
  font-size: 1.2rem;
  color: white;
  margin-bottom: 0.5rem;
}

.no-investments {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.refresh-button {
  background: rgba(20, 241, 149, 0.1);
  color: #14F195;
  border: 1px solid rgba(20, 241, 149, 0.3);
  padding: 0.8rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1rem auto;
  transition: all 0.3s ease;
}

.refresh-button:hover {
  background: rgba(20, 241, 149, 0.2);
  transform: translateY(-2px);
}

.refresh-icon {
  font-size: 1.2rem;
}

/* Transaction list */
.transactions-list {
  max-height: 300px;
  overflow-y: auto;
}

.transaction-item {
  padding: 12px;
  background: rgba(26, 31, 46, 0.8);
  border-radius: 12px;
  margin-bottom: 8px;
  border: 1px solid rgba(20, 241, 149, 0.2);
}

.transaction-item div {
  margin-bottom: 6px;
  color: white;
  font-size: 14px;
}

/* Stats section */
.stats-section {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(20, 241, 149, 0.2);
}

.stats-section h4 {
  color: #14F195;
  margin-bottom: 16px;
  font-size: 18px;
}

/* Tokenomics section */
.tokenomics-section {
  background: rgba(26, 31, 46, 0.8);
  padding: 20px;
  border-radius: 12px;
  margin: 20px 0;
  border: 1px solid rgba(20, 241, 149, 0.2);
}

.tokenomics-section h3 {
  color: #14F195;
  margin-bottom: 16px;
  font-size: 20px;
}

.tokenomics-item {
  font-size: 14px;
  margin: 10px 0;
  padding: 8px;
  border-radius: 8px;
  background: rgba(20, 241, 149, 0.1);
  color: white;
}

/* Vesting schedule */
.vesting-schedule {
  background: rgba(20, 241, 149, 0.05);
  padding: 16px;
  border-radius: 12px;
  margin-top: 20px;
  border: 1px solid rgba(20, 241, 149, 0.2);
}

.vesting-schedule h3 {
  color: #14F195;
  font-size: 18px;
  margin-bottom: 12px;
}

.vesting-item {
  font-size: 14px;
  margin: 8px 0;
  color: white;
}

/* Mobile optimizations */
@media screen and (max-width: 768px) {
  .container {
    padding: 0.5rem;
  }

  .logo-section {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }

  .logo-section h1 {
    font-size: 2rem;
  }

  .logo-section h2 {
    font-size: 1.5rem;
  }

  .info-grid {
    gap: 0.8rem;
    padding: 0 0.5rem;
  }

  .info-box {
    padding: 1rem;
  }

  .info-title {
    font-size: 1rem;
  }

  .info-value {
    font-size: 1.6rem;
  }

  button {
    padding: 10px 16px;
    font-size: 13px;
  }

  .input-container {
    gap: 10px;
  }

  input {
    padding: 10px;
    font-size: 13px;
  }

  .referral-section,
  .tokenomics-section,
  .vesting-schedule {
    padding: 16px;
  }

  .referral-section h3,
  .tokenomics-section h3 {
    font-size: 18px;
  }

  .transaction-item {
    padding: 10px;
  }

  .transaction-item div,
  .tokenomics-item,
  .vesting-item {
    font-size: 13px;
  }
}

/* iOS height fix */
@supports (-webkit-touch-callout: none) {
  html {
    height: -webkit-fill-available;
  }
}

/* Safe area fixes */
@supports (padding: max(0px)) {
  #root {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
    padding-top: max(16px, env(safe-area-inset-top));
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }
}

@media screen and (max-width: 600px) {
  .referral-container {
    padding: 1rem;
  }
  
  .input-container {
    flex-direction: column;
  }
  
  .input-container input,
  .connect-button,
  .contribute-button {
    width: 100%;
  }
}

/* Social links */
.social-links-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 40px;
  margin-bottom: 30px;
}

.community-text {
  color: #ffffff;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 25px;
  letter-spacing: 2px;
}

.social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  transition: transform 0.2s;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  padding: 10px;
}

.social-link:hover {
  transform: scale(1.1);
  background-color: rgba(255, 255, 255, 0.2);
}

.social-icon {
  width: 100%;
  height: 100%;
  filter: brightness(1.1);
}

/* User Presale Stats Section */
.user-presale-stats-section {
  margin-top: 30px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  text-align: center;
}

.user-presale-stats-title {
  color: #ffffff;
  font-size: 20px;
  margin-bottom: 15px;
  font-weight: bold;
}

.user-presale-stats-value {
  color: #ffd700;
  font-size: 18px;
  margin-bottom: 10px;
}

.user-presale-stats-token-value {
  color: #00ff00;
  font-size: 18px;
  margin-bottom: 10px;
}
