* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-color: #0b0a14;
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --accent-purple: #9b87f5;
  --btn-primary: #6c5ce7;
  --btn-primary-hover: #5b4bc4;
  --btn-dark: #38394a;
  --btn-dark-hover: #454659;
  --nav-btn-bg: rgba(255, 255, 255, 0.08);
  --card-bg: rgba(255, 255, 255, 0.04);
  --card-border: rgba(255, 255, 255, 0.08);
  --input-bg: rgba(255, 255, 255, 0.06);
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  width: 100%;
}

/* Hide number input spinners */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type=number] {
  -moz-appearance: textfield;
}

.navbar {
  width: 100%;
  padding: 1.25rem clamp(1rem, 5vw, 4rem);
  background-color: var(--bg-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

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

.brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #ffffff;
  flex-shrink: 0;
}

.brand-title {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.3px;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: clamp(1rem, 3vw, 2rem);
  align-items: center;
}

.nav-link {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 400;
  transition: color 0.2s ease;
}

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

.nav-actions {
  display: flex;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 500;
  font-size: clamp(0.875rem, 1.5vw, 0.95rem);
  border-radius: 8px;
  padding: 0.7rem 1.4rem;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  min-height: 44px;
}

.btn-secondary.nav-btn {
  background-color: #6c5ce7;
  color: #ffffff;
  border: none;
  padding: 0.6rem 1.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 12px;
  box-shadow: none;
}

.btn-secondary.nav-btn:hover {
  background-color: #5b4bc4;
  box-shadow: none;
}

.btn-primary {
  background-color: var(--btn-primary);
  color: #ffffff;
  font-weight: 500;
}

.btn-primary:hover {
  background-color: var(--btn-primary-hover);
  transform: translateY(-2px);
}

.btn-dark {
  background-color: var(--btn-dark);
  color: #ffffff;
  font-weight: 500;
}

.btn-dark:hover {
  background-color: var(--btn-dark-hover);
  transform: translateY(-2px);
}

.hero-section {
  padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 5vw, 4rem);
  flex: 1;
  width: 100%;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.hero-content {
  max-width: 620px;
  width: 100%;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.1rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.hero-description {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--text-secondary);
  line-height: 1.6;
  font-weight: 400;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.stats-section {
  padding: clamp(3rem, 6vw, 5rem) clamp(1rem, 5vw, 4rem);
  text-align: center;
  background-color: #0b0a14;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  width: 100%;
}

.stats-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.stats-title {
  font-size: clamp(1.4rem, 3.5vw, 2.1rem);
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

.highlight-purple {
  color: var(--accent-purple);
  font-weight: 600;
}

.highlight-purple-sub {
  color: var(--accent-purple);
  font-weight: 500;
}

.stats-subtitle {
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  color: var(--text-secondary);
  font-weight: 400;
  margin-top: 0.6rem;
}

/* Donate Section & Cards */
.donate-section {
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1rem, 5vw, 4rem);
  width: 100%;
  flex: 1;
}

.donate-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 2rem;
  align-items: start;
}

.donate-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  backdrop-filter: blur(12px);
  width: 100%;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.card-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  font-weight: 400;
  margin-bottom: 1.5rem;
}

.card-links {
  margin-bottom: 1.5rem;
}

.external-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #a0aec0;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  transition: color 0.2s;
}

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

.card-badges {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.badge {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-secondary);
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 400;
}

.received-counter {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 400;
}

.counter-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #f59e0b;
}

/* Form Card Styling */
.form-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.form-header .card-title {
  margin-bottom: 0;
}

.btn-discord {
  background-color: #5865F2;
  color: #ffffff;
  padding: 0.55rem 1rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-discord:hover {
  background-color: #4752c4;
}

.discord-badge {
  background: rgba(88, 101, 242, 0.15);
  border: 1px solid rgba(88, 101, 242, 0.35);
  color: #a5b4fc;
  padding: 0.45rem 0.9rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  white-space: nowrap;
}

.user-status-dot {
  width: 8px;
  height: 8px;
  background-color: #22c55e;
  border-radius: 50%;
  flex-shrink: 0;
}

.donation-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.form-group {
  width: 100%;
}

.amount-input-wrapper {
  display: flex;
  gap: 0.5rem;
  background: var(--input-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 4px;
  transition: border-color 0.2s;
}

.amount-input-wrapper:focus-within {
  border-color: var(--accent-purple);
}

.form-select {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.75rem 0.5rem 0.75rem 0.85rem;
  cursor: pointer;
  outline: none;
}

.form-select option {
  background: #1a192c;
  color: #ffffff;
}

.form-control {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  padding: 0.85rem 1rem;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.amount-input {
  border: none;
  background: transparent;
  font-weight: 500;
  font-size: 1.05rem;
}

.form-control:focus {
  border-color: var(--accent-purple);
  background: rgba(255, 255, 255, 0.09);
}

.form-control::placeholder {
  color: #64748b;
  font-weight: 400;
}

.textarea-input {
  resize: vertical;
  min-height: 90px;
}

.btn-submit-donate {
  background-color: var(--btn-primary);
  color: #ffffff;
  border-radius: 12px;
  padding: 0.95rem 1.5rem;
  width: 100%;
  font-size: 1.05rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
}

.btn-submit-donate:hover {
  background-color: var(--btn-primary-hover);
  transform: translateY(-2px);
}

/* Footer */
.site-footer {
  width: 100%;
  padding: clamp(2rem, 4vw, 3rem) clamp(1rem, 5vw, 4rem);
  background-color: var(--bg-color);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.copyright {
  font-size: 0.95rem;
  color: #e2e8f0;
  font-weight: 400;
}

.disclaimer {
  font-size: 0.85rem;
  color: #94a3b8;
  font-weight: 400;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
}

.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #ffffff;
}

/* Responsive */
@media (max-width: 868px) {
  .donate-container {
    grid-template-columns: 1fr;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .footer-container {
    flex-direction: column-reverse;
    gap: 2rem;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .nav-links {
    display: none;
  }

  .nav-brand {
    gap: 0.5rem;
  }

  .btn-secondary.nav-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }
}

@media (min-width: 1440px) {
  .nav-container,
  .hero-container,
  .stats-container,
  .donate-container,
  .footer-container {
    max-width: 1320px;
  }
}