html, body {
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Header and Button Positioning */
.header-container {
  position: relative;
  width: 100%;
}

.wave-top {
  position: absolute;
  top: 0;
  width: 100%;
  height: 150px;
  z-index: 1; /* Below button */
}

.history-btn-container {
  position: relative;
  z-index: 2; /* Above wave */
  display: flex;
  justify-content: flex-end;
  padding-top: 15px;
  padding-right: 20px;
}

/* Rest of your existing CSS remains unchanged */
.history-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.history-popup-container {
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  position: relative;
}

.history-entry {
  border-bottom: 1px solid #eee;
  padding: 10px 0;
}

.donate-btn-container {
  position: absolute;
  z-index: 2;
  top: 15px;
  left: 20px;
}

#btnDonate, #btnHistory{
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#submitBtn {
  margin-top: -5px !important;
}

body {
  background: linear-gradient(135deg, #e0eafc, #cfdef3);
  font-family: 'Segoe UI', sans-serif;
  padding-top: 0;
  margin: 0;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 40px;
  margin-top: 30px; /* Added to account for header space */
}

.card {
  width: 90%;
  max-width: 560px;
  border: none;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  animation: fadeIn 0.8s ease;
  background: #ffffff;
}

/* ... rest of your existing CSS remains exactly the same ... */

.card-body {
  padding: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.spinner-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100px;
}

.spinner-border {
  width: 2.5rem;
  height: 2.5rem;
}

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

label {
  text-align: left;
  display: block;
}

.subtitle {
  margin-bottom: 30px;
  color: #555;
  font-size: 0.9rem;
}

.logo-top {
  width: 48px;
  margin-bottom: 10px;
}

.ig-box {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 8px 10px;
  margin-bottom: 12px;
  background-color: #fff;
  word-break: break-word;
  white-space: normal;
  cursor: pointer;
}

textarea#uniqueName {
  resize: none;
  overflow-y: auto;
  min-height: 28px;
  max-height: 150px;
  line-height: 1.4;
}

.rich-status {
  font-size: 14px;
  margin: 10px 0 0 0;
  padding: 6px 10px;
  border-radius: 4px;
  background: #f8f9fa;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.status-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(0,0,0,0.2);
  border-radius: 50%;
  border-top-color: #000;
  animation: spin 0.8s linear infinite;
}

.status-success {
  color: #28a745;
  background-color: rgba(40, 167, 69, 0.1);
}

.status-error {
  color: #dc3545;
  background-color: rgba(220, 53, 69, 0.1);
}

.status-check, .status-error-icon {
  font-weight: bold;
  margin-right: 0;
}

.status-warning {
  color: #8E6C0A;
  background-color: #FFF3CD;
}

.status-warning-icon {
  color: #FFAB00;
}

.guide-link, .warning-link {
	color: inherit;
    text-decoration: underline;
    cursor: pointer;
    font-weight: 500;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.custom-footer {
  text-align: center;
  padding: 15px 0;
  background: rgba(255,255,255,0.8);
  color: #555;
  font-size: 0.85rem;
  border-top: 1px solid rgba(0,0,0,0.05);
  margin-top: 20px;
}

.footer-link {
  color: #1877f2;
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}