:root {
  --max-width: 1200px;
  --radius-md: 8px;
}

.main-footer {
  background: #31135D;
  color: rgba(255, 255, 255, 0.9);
  padding: 2rem 1.5rem 1rem;
  width: 100%;
  margin: 0;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem;
  margin-bottom: 0;
}

.footer-column {
  display: flex;
  flex-direction: column;
  min-height: 280px;
}

.footer-column h4 {
  color: white;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.footer-column a {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  margin-bottom: 0.4rem;
  transition: color 0.3s ease;
  font-size: 0.9rem;
}

.footer-column a:hover {
  color: white;
}

/* Referral Section Styles */
.referral-text,
.import-text {
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
}

.referral-options {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.referral-options label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
}

.referral-options input[type="radio"] {
  cursor: pointer;
}

.referral-input,
.import-input {
  width: 100%;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  color: white;
  margin-bottom: 0.25rem;
  height: 44px;
  box-sizing: border-box;
  font-size: 0.9rem;
}

.referral-input::placeholder,
.import-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.referral-input:focus,
.import-input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.15);
}

.share-btn,
.import-btn {
  width: 100%;
  background: #5B21B6;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s ease;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.5rem;
}

.share-btn:hover,
.import-btn:hover {
  background: #6D28D9;
  transform: translateY(-2px);
}

.share-btn:active,
.import-btn:active {
  transform: translateY(0);
}

.import-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Footer Bottom Styles */
.footer-bottom {
  text-align: center;
  padding: 1.5rem 0;
  margin: 0;
  background: #f5f5f5;
  border-top: 1px solid #e0e0e0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  font-size: 0.9rem;
  color: #666;
}

.footer-bottom a {
  color: #666;
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: color 0.3s ease;
}

.footer-bottom a:hover {
  color: #333;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 1rem;
  }

  .footer-column {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1.5rem;
    min-height: auto;
  }

  .footer-column:last-child {
    border-bottom: none;
  }

  .footer-column h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }

  .footer-column a {
    display: block;
    padding: 0.5rem 0;
    font-size: 0.95rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    padding: 1.5rem 1rem;
    font-size: 0.9rem;
  }
}
