/* ================================
   BASE / RESET
================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: #020617;
  color: #e5e7eb;
  line-height: 1.5;
}

/* ================================
   CONTAINER
================================ */
.networth-container {
  max-width: 1150px;
  margin: 0 auto;
  padding: 25px 20px;
}

/* ================================
   GRID LAYOUT
================================ */
.networth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}

/* ================================
   COLUMN (DARK CARD)
================================ */
.networth-column {
  background: #0f172a;
  border: 1px solid #1f2937;
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: 0.25s ease;
}

.networth-column:hover {
  border-color: #374151;
  transform: translateY(-2px);
}

/* ================================
   COLUMN HEADINGS
================================ */
.column-title {
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
  padding-bottom: 10px;
  margin-bottom: 18px;
  border-bottom: 1px solid #1f2937;
  color: #f9fafb;
}

/* ================================
   ALIGNMENT FIX (VERY IMPORTANT)
================================ */
.networth-column .input-group {
  height: 115px; /* ensures row alignment */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* ================================
   INPUT GROUP
================================ */
.input-group {
  margin-bottom: 10px;
}

.input-group label {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: #e5e7eb;
}

/* helper text */
.helper-text {
  font-size: 0.8rem;
  color: #9ca3af;
  margin-bottom: 6px;
  line-height: 1.3;
}

/* ================================
   INPUT FIELDS
================================ */
.input-group input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #374151;
  background: #020617;
  color: #fff;
  font-size: 0.9rem;
  outline: none;
  transition: 0.2s ease;
}

.input-group input::placeholder {
  color: #6b7280;
}

.input-group input:focus {
  border-color: #6d5cff;
  box-shadow: 0 0 0 2px rgba(109,92,255,0.25);
}

/* ================================
   BUTTONS
================================ */
.networth-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
}

.primary-btn {
  background: #6d5cff;
  border: none;
  padding: 14px 26px;
  border-radius: 30px;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
}

.primary-btn:hover {
  background: #5746ff;
  transform: translateY(-1px);
}

.secondary-btn {
  background: transparent;
  border: 1px solid #374151;
  padding: 14px 26px;
  border-radius: 30px;
  color: #e5e7eb;
  cursor: pointer;
  transition: 0.2s ease;
}

.secondary-btn:hover {
  border-color: #6d5cff;
  color: #fff;
}

/* ================================
   OUTPUT SECTION
================================ */
.networth-output {
  display: none;
  margin-top: 30px;
  padding: 25px;
  border-radius: 14px;
  text-align: center;
  border: 1px solid #1f2937;
  background: #020617;

  opacity: 0;
  transform: translateY(10px);
  transition: 0.3s ease;
}

.networth-output.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* ================================
   VALUE
================================ */
.networth-value {
  font-size: 2.3rem;
  font-weight: 700;
  margin: 10px 0;
}

/* ================================
   POSITIVE STATE
================================ */
.networth-output.positive {
  background: rgba(0, 200, 120, 0.08);
  border: 1px solid #065f46;
}

.networth-output.positive .networth-value {
  color: #00c878;
}

/* ================================
   NEGATIVE STATE
================================ */
.networth-output.negative {
  background: rgba(255, 80, 80, 0.08);
  border: 1px solid #7f1d1d;
}

.networth-output.negative .networth-value {
  color: #ff4d4d;
}

/* ================================
   MESSAGE
================================ */
.networth-message {
  font-size: 0.95rem;
  color: #9ca3af;
  line-height: 1.6;
}

/* ================================
   MOBILE OPTIMIZATION
================================ */
@media (max-width: 900px) {
  .networth-grid {
    grid-template-columns: 1fr;
  }

  .networth-column .input-group {
    height: auto; /* disable fixed height on mobile */
  }

  .column-title {
    font-size: 1.15rem;
  }
}

@media (max-width: 500px) {
  .networth-container {
    padding: 15px;
  }

  .primary-btn,
  .secondary-btn {
    width: 100%;
  }

  .networth-actions {
    flex-direction: column;
  }
}

