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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #0f1428 100%);
  color: #e0e6ed;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

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

.star {
  position: absolute;
  background: white;
  border-radius: 50%;
  animation: twinkle 3s infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

header {
  position: relative;
  text-align: center;
  padding: 3rem 2rem 2rem;
  z-index: 1;
}

.header-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(138, 43, 226, 0.3) 0%, transparent 70%);
  filter: blur(60px);
  z-index: -1;
}

.cosmic-title {
  font-size: 3.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #a78bfa 0%, #ec4899 50%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 30px rgba(167, 139, 250, 0.5);
  animation: float 4s ease-in-out infinite;
}

.subtitle {
  font-size: 1.2rem;
  color: #a5b4fc;
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
}

.philosophy-text {
  max-width: 700px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(167, 139, 250, 0.3);
  border-radius: 15px;
  backdrop-filter: blur(10px);
}

.philosophy-text p {
  color: #cbd5e1;
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 0.8rem;
  text-align: center;
}

.philosophy-text p:first-child {
  color: #f9a8d4;
  font-size: 1.1rem;
  font-weight: 600;
}

.philosophy-text p:nth-child(2) {
  color: #a78bfa;
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.philosophy-text p:nth-child(3) {
  color: #e9d5ff;
  font-style: italic;
}

.philosophy-text p:last-child {
  margin-bottom: 0;
  margin-top: 1rem;
  font-size: 0.95rem;
}

main {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
}

.calculator-card {
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.2);
  margin-bottom: 2rem;
}

#pastMode h2 {
  color: #c4b5fd;
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

.description {
  color: #94a3b8;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.input-group {
  margin-bottom: 1.5rem;
}

.input-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #a5b4fc;
  font-weight: 500;
}

.input-group input {
  width: 100%;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 10px;
  color: #e0e6ed;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.input-group input:focus {
  outline: none;
  border-color: #8b5cf6;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

.cosmic-button {
  position: relative;
  width: 100%;
  padding: 1.2rem;
  background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.2s ease;
  margin-top: 1rem;
}

.cosmic-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5);
}

.button-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
  animation: rotate 3s linear infinite;
}

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

.progress-container {
  display: none;
  margin-top: 2rem;
  text-align: center;
  padding: 2rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 16px;
}

.progress-text {
  color: #c4b5fd;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  font-weight: 500;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.zodiac-compass {
  width: 280px;
  height: 280px;
  margin: 2rem auto;
  position: relative;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(139, 92, 246, 0.2) 0%, rgba(15, 23, 42, 0.8) 70%);
  border: 3px solid rgba(139, 92, 246, 0.5);
  box-shadow: 0 0 40px rgba(139, 92, 246, 0.4), inset 0 0 30px rgba(139, 92, 246, 0.2);
}

.zodiac-ring {
  width: 100%;
  height: 100%;
  position: relative;
}

.zodiac-segment {
  position: absolute;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: rgba(167, 139, 250, 0.3);
  transition: all 0.4s ease;
  transform-origin: center;
}

.zodiac-segment:nth-child(1) { top: 5%; left: 50%; transform: translateX(-50%); }
.zodiac-segment:nth-child(2) { top: 12%; right: 20%; }
.zodiac-segment:nth-child(3) { top: 30%; right: 5%; }
.zodiac-segment:nth-child(4) { top: 50%; right: 0%; transform: translateY(-50%); }
.zodiac-segment:nth-child(5) { bottom: 30%; right: 5%; }
.zodiac-segment:nth-child(6) { bottom: 12%; right: 20%; }
.zodiac-segment:nth-child(7) { bottom: 5%; left: 50%; transform: translateX(-50%); }
.zodiac-segment:nth-child(8) { bottom: 12%; left: 20%; }
.zodiac-segment:nth-child(9) { bottom: 30%; left: 5%; }
.zodiac-segment:nth-child(10) { top: 50%; left: 0%; transform: translateY(-50%); }
.zodiac-segment:nth-child(11) { top: 30%; left: 5%; }
.zodiac-segment:nth-child(12) { top: 12%; left: 20%; }

.zodiac-segment.active {
  color: #fbbf24;
  text-shadow: 0 0 15px #fbbf24, 0 0 25px rgba(251, 191, 36, 0.6);
  transform: scale(1.2);
}

.compass-pointer {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 80px;
  background: linear-gradient(to bottom, #8b5cf6, transparent);
  transform-origin: bottom center;
  transform: translate(-50%, -80px);
  opacity: 0.7;
}

.compass-pointer.spinning {
  animation: spinPointer 2s linear infinite;
}

@keyframes spinPointer {
  from { transform: translate(-50%, -80px) rotate(0deg); }
  to { transform: translate(-50%, -80px) rotate(360deg); }
}

.compass-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 32px;
  color: #c4b5fd;
  text-shadow: 0 0 20px rgba(139, 92, 246, 0.8);
}


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

.results-container {
  display: none;
  margin-top: 2rem;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.results-container h2 {
  color: #c4b5fd;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
}

.summary-box {
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  color: #e0e6ed;
  font-size: 1.1rem;
  line-height: 1.8;
}

.table-container {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(15, 23, 42, 0.4);
  border-radius: 12px;
  overflow: hidden;
  font-size: 0.9rem;
}

th, td {
  padding: 0.75rem 0.5rem;
  text-align: left;
  border-bottom: 1px solid rgba(139, 92, 246, 0.2);
  word-wrap: break-word;
}

th {
  background: rgba(139, 92, 246, 0.2);
  color: #c4b5fd;
  font-weight: 600;
  white-space: nowrap;
}

td {
  color: #cbd5e1;
}

th:nth-child(1), td:nth-child(1) {
  min-width: 180px;
}

th:nth-child(2), td:nth-child(2) {
  min-width: 120px;
}

th:nth-child(3), td:nth-child(3) {
  min-width: 130px;
  font-weight: 600;
  color: #c084fc;
  text-align: center;
}

th:nth-child(4), td:nth-child(4) {
  min-width: 200px;
  font-style: italic;
  color: #a5b4fc;
}

th:nth-child(5), td:nth-child(5) {
  min-width: 250px;
  font-weight: 500;
  color: #fbbf24;
}

th:nth-child(6), td:nth-child(6) {
  min-width: 100px;
  text-align: center;
}

tr:last-child td {
  border-bottom: none;
}

tr:hover {
  background: rgba(139, 92, 246, 0.1);
}

.donation-card {
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(236, 72, 153, 0.3);
  border-radius: 20px;
  padding: 2.5rem;
  text-align: center;
  box-shadow: 0 8px 32px rgba(236, 72, 153, 0.2);
}

.donation-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  animation: float 3s ease-in-out infinite;
}

.donation-card h3 {
  color: #f9a8d4;
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

.donation-card p {
  color: #94a3b8;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.paypal-donate-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #0070ba 0%, #003087 100%);
  color: white;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 112, 186, 0.4);
  margin: 1.5rem auto;
}

.paypal-donate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(0, 112, 186, 0.6);
  background: linear-gradient(135deg, #003087 0%, #001f5b 100%);
}

.paypal-logo {
  font-weight: 700;
  letter-spacing: 0.5px;
}

.donation-note {
  font-size: 0.9rem;
  color: #64748b;
  margin-top: 1rem;
}

.faq-section {
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 20px;
  padding: 2.5rem;
  margin-top: 3rem;
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.2);
}

.faq-section h2 {
  color: #c4b5fd;
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
  background: linear-gradient(135deg, #a78bfa 0%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.faq-item {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.faq-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.faq-item h3 {
  color: #a78bfa;
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.faq-item p {
  color: #cbd5e1;
  line-height: 1.8;
  font-size: 1rem;
}

footer {
  position: relative;
  z-index: 1;
  background: rgba(15, 23, 42, 0.8);
  border-top: 1px solid rgba(139, 92, 246, 0.3);
  padding: 3rem 2rem 2rem;
  color: #64748b;
  font-size: 0.9rem;
  margin-top: 3rem;
}

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

.footer-section h4 {
  color: #a78bfa;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer-section p {
  color: #94a3b8;
  line-height: 1.7;
  font-size: 0.95rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(139, 92, 246, 0.2);
  margin-top: 2rem;
}

.footer-bottom p {
  margin: 0.5rem 0;
}

.disclaimer {
  font-size: 0.85rem;
  margin-top: 0.5rem;
  font-style: italic;
  color: #64748b;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease;
}

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

.modal-content {
  position: relative;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(20, 30, 48, 0.95) 100%);
  border: 2px solid rgba(139, 92, 246, 0.5);
  border-radius: 24px;
  padding: 2.5rem;
  max-width: 550px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(139, 92, 246, 0.4);
  animation: slideUp 0.4s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: #94a3b8;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: rgba(139, 92, 246, 0.2);
  color: #fff;
  transform: rotate(90deg);
}

.modal-icon {
  font-size: 4rem;
  text-align: center;
  margin-bottom: 1rem;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.modal-title {
  text-align: center;
  color: #c4b5fd;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #a78bfa 0%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.modal-message {
  text-align: center;
  color: #cbd5e1;
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.impact-box {
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.impact-title {
  color: #f9a8d4;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  text-align: center;
}

.impact-text {
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.6;
  text-align: center;
}

.donation-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.donation-amount-btn {
  position: relative;
  background: rgba(15, 23, 42, 0.6);
  border: 2px solid rgba(139, 92, 246, 0.3);
  border-radius: 12px;
  padding: 1.2rem 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.donation-amount-btn:hover {
  border-color: #8b5cf6;
  background: rgba(139, 92, 246, 0.2);
  transform: translateY(-2px);
}

.donation-amount-btn.popular {
  border-color: #ec4899;
  background: rgba(236, 72, 153, 0.15);
}

.donation-amount-btn.popular:hover {
  border-color: #ec4899;
  background: rgba(236, 72, 153, 0.25);
}

.donation-amount-btn.selected {
  border-color: #8b5cf6;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.3) 0%, rgba(236, 72, 153, 0.3) 100%);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

.popular-badge {
  position: absolute;
  top: -10px;
  background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.amount {
  font-size: 1.5rem;
  font-weight: 700;
  color: #a78bfa;
}

.amount-label {
  font-size: 0.85rem;
  color: #94a3b8;
}

.modal-donate-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  background: linear-gradient(135deg, #0070ba 0%, #003087 100%);
  color: white;
  padding: 1.2rem 2rem;
  border-radius: 12px;
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 6px 25px rgba(0, 112, 186, 0.5);
  margin: 1.5rem 0;
  border: none;
  cursor: pointer;
}

.modal-donate-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 35px rgba(0, 112, 186, 0.7);
  background: linear-gradient(135deg, #003087 0%, #001f5b 100%);
}

.paypal-icon {
  font-size: 1.5rem;
}

.social-proof {
  text-align: center;
  margin-bottom: 1.5rem;
}

.social-proof p {
  color: #cbd5e1;
  font-size: 0.95rem;
}

.maybe-later-btn {
  width: 100%;
  padding: 0.9rem;
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 10px;
  color: #94a3b8;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 1rem;
}

.maybe-later-btn:hover {
  border-color: #94a3b8;
  background: rgba(148, 163, 184, 0.1);
}

.gratitude-note {
  text-align: center;
  color: #64748b;
  font-size: 0.9rem;
  font-style: italic;
  margin-top: 1rem;
}

.ai-interpretation {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(236, 72, 153, 0.15) 100%);
  border: 2px solid rgba(139, 92, 246, 0.4);
  border-radius: 16px;
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.2);
}

.ai-interpretation h3 {
  color: #e9d5ff;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  text-align: center;
  text-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

.ai-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  gap: 1rem;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(139, 92, 246, 0.3);
  border-top-color: #8b5cf6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.ai-loading p {
  color: #c4b5fd;
  font-size: 1rem;
  font-style: italic;
}

.ai-content {
  color: #e0e6ed;
  font-size: 1.05rem;
  line-height: 1.8;
  background: rgba(15, 23, 42, 0.4);
  padding: 1.5rem;
  border-radius: 12px;
  border-left: 4px solid #8b5cf6;
}

.ai-content p {
  margin-bottom: 1rem;
}

.ai-content strong {
  color: #c4b5fd;
  font-weight: 600;
}

.ai-content table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(15, 23, 42, 0.6);
  border-radius: 12px;
  overflow: hidden;
  display: block;
  overflow-x: auto;
}

.ai-content table th,
.ai-content table td {
  padding: 0.8rem;
  text-align: left;
  border-bottom: 1px solid rgba(139, 92, 246, 0.3);
  font-size: 0.95rem;
  line-height: 1.5;
}

.ai-content table th {
  background: rgba(139, 92, 246, 0.3);
  color: #c4b5fd;
  font-weight: 600;
  min-width: 120px;
}

.ai-content table td {
  color: #e0e6ed;
  min-width: 200px;
}

.ai-content table tr:last-child td {
  border-bottom: none;
}

.ai-content table tr:hover {
  background: rgba(139, 92, 246, 0.1);
}

@media (max-width: 768px) {
  .cosmic-title {
    font-size: 2.5rem;
  }
  
  .calculator-card,
  .donation-card {
    padding: 1.5rem;
  }
  
  
  .modal-content {
    padding: 2rem 1.5rem;
  }
  
  .donation-options {
    grid-template-columns: 1fr;
  }
  
  .ai-interpretation {
    padding: 1.5rem;
  }
  
  .ai-interpretation h3 {
    font-size: 1.2rem;
  }
  
  .ai-content table th,
  .ai-content table td {
    padding: 0.6rem;
    font-size: 0.85rem;
    min-width: 100px;
  }
  
  .ai-content {
    padding: 1rem;
  }
}
