.panorama-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: #0a0a0f;
}

.panorama-container .bg-image {
  position: absolute;
  top: -20px;
  left: -20px;
  width: calc(100% + 40px);
  height: calc(100% + 40px);
  background-size: cover;
  background-position: center;
  filter: blur(8px);
  opacity: 0;
  transition: opacity 1.5s ease;
}

.panorama-container .bg-image.loaded {
  opacity: 1;
}

.panorama-container .bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom,
    rgba(10, 10, 15, 0.75) 0%,
    rgba(10, 10, 15, 0.85) 50%,
    rgba(10, 10, 15, 0.93) 100%
  );
  z-index: 1;
}

.donate-layout {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  position: relative;
}

.container {
  max-width: 700px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  padding-top: calc(75px + 1rem);
  flex-shrink: 0;
}

.page-header {
  text-align: center;
  margin-bottom: 2rem;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.page-header p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.transparency-toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: none;
  color: var(--primary-purple-light);
  font-size: 0.9rem;
  font-family: inherit;
  cursor: pointer;
  margin: 0.5rem auto 0;
  padding: 0;
  transition: color 0.2s ease;
}

.transparency-toggle:hover {
  color: #c4a3ff;
}


.transparency-details {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin-top: 1rem;
  text-align: left;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.transparency-details p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.65;
  margin: 0 0 0.75rem;
}

.transparency-details p:last-child {
  margin-bottom: 0;
}

.content-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.content-card-content {
  padding: 2rem;
}

.mc-username-wrapper {
  position: relative;
  margin-bottom: 1.5rem;
}

.mc-input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1rem;
  pointer-events: none;
}

#mc-username {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 2.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 1.05rem;
  font-family: inherit;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

#mc-username:focus {
  outline: none;
  border-color: var(--primary-purple-light);
  background: rgba(255, 255, 255, 0.08);
}

#mc-username::placeholder {
  color: var(--text-muted);
}

.optional-tag {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-muted);
  font-style: italic;
}

.required-tag {
  font-size: 0.8rem;
  font-weight: 400;
  color: #ff6b6b;
  font-style: italic;
}

.discord-link-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0.4rem 0 0;
}

.discord-error {
  color: #ff6b6b;
  font-size: 0.85rem;
  margin: 0 0 1rem;
}

.discord-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.7rem 1.25rem;
  background: #5865F2;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 1.5rem;
}

.discord-link-btn:hover {
  background: #4752c4;
  transform: translateY(-1px);
}

.discord-linked {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1rem;
  background: rgba(88, 101, 242, 0.15);
  border: 1px solid rgba(88, 101, 242, 0.3);
  border-radius: 8px;
  margin-bottom: 1.5rem;
  color: #a8b3ff;
  font-weight: 600;
  font-size: 0.95rem;
}

.discord-linked i {
  color: #5865F2;
  font-size: 1.1rem;
}

.discord-unlink {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  transition: color 0.2s;
}

.discord-unlink:hover {
  color: #ff6b6b;
}

.anonymous-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  color: var(--text-secondary);
  font-size: 0.95rem;
  cursor: pointer;
  margin-bottom: 0.25rem;
}

.anonymous-label input[type="checkbox"] {
  accent-color: var(--primary-purple);
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.anonymous-hint {
  display: block;
  width: 100%;
  font-size: 0.8rem;
  color: var(--text-muted);
  padding-left: 1.65rem;
  margin-top: -0.25rem;
}

.form-divider {
  height: 1px;
  background: var(--border-color);
  margin: 1.5rem 0;
}

.skip-warning-btn {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
}

.skip-warning-btn:hover {
  background: rgba(108, 71, 166, 0.3);
  border-color: var(--primary-purple-light);
}

.frequency-toggle {
  display: flex;
  gap: 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.frequency-option {
  flex: 1;
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.frequency-option i {
  font-size: 1.3rem;
}

.frequency-option .freq-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.frequency-option:hover {
  background: rgba(108, 71, 166, 0.1);
}

.frequency-option.selected {
  background: linear-gradient(135deg, rgba(108, 71, 166, 0.4), rgba(148, 111, 227, 0.25));
  color: var(--text-primary);
}

.frequency-option.selected .freq-desc {
  color: var(--text-secondary);
}

.amount-label {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  font-weight: 600;
}

.amount-presets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.amount-preset {
  padding: 0.85rem 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 1.05rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.amount-preset:hover {
  background: rgba(108, 71, 166, 0.2);
  border-color: var(--primary-purple-light);
}

.amount-preset.selected {
  background: linear-gradient(135deg, rgba(108, 71, 166, 0.5), rgba(148, 111, 227, 0.35));
  border-color: var(--primary-purple-light);
}

.custom-amount-wrapper {
  position: relative;
  margin-bottom: 2rem;
}

.custom-amount-wrapper .dollar-sign {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  font-size: 1.1rem;
  pointer-events: none;
}

#custom-amount {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 2.25rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 1.05rem;
  font-family: inherit;
  transition: all 0.2s ease;
  -moz-appearance: textfield;
  appearance: textfield;
}

#custom-amount:focus {
  outline: none;
  border-color: var(--primary-purple-light);
  background: rgba(255, 255, 255, 0.08);
}

#custom-amount::-webkit-inner-spin-button,
#custom-amount::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.btn-primary {
  background: linear-gradient(135deg, #6c47a6, #946fe3);
  color: white;
  border: none;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  font-family: inherit;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(108, 71, 166, 0.4);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.info-box {
  background: rgba(108, 71, 166, 0.15);
  border-left: 4px solid var(--primary-purple);
  padding: 1.25rem;
  border-radius: 4px;
  margin: 1.5rem 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.error-box {
  background: rgba(255, 107, 107, 0.15);
  border-left: 4px solid #ff6b6b;
  padding: 1.25rem;
  border-radius: 6px;
  margin: 1.5rem 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}

.success-box {
  background: rgba(76, 175, 80, 0.15);
  border-left: 4px solid #4caf50;
  padding: 1.5rem;
  border-radius: 6px;
  margin: 1.5rem 0;
  color: #fff;
}

.success-box h3 {
  color: #4caf50;
  margin-bottom: 0.5rem;
}

.hidden {
  display: none !important;
}

.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
}

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

.secure-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 1rem;
}

.secure-note i {
  margin-right: 0.35rem;
}

.manage-section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.manage-section p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.manage-toggle {
  background: none;
  border: none;
  color: var(--primary-purple-light);
  cursor: pointer;
  font-size: 0.95rem;
  text-decoration: underline;
  padding: 0;
}

.manage-toggle:hover {
  color: #c4a3ff;
}

.manage-form {
  display: flex;
  gap: 0.75rem;
  max-width: 400px;
  margin: 1rem auto 0;
}

.manage-form input {
  flex: 1;
  padding: 0.7rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.manage-form input::placeholder {
  color: var(--text-muted);
}

.manage-form button {
  padding: 0.7rem 1.25rem;
  background: rgba(108, 71, 166, 0.3);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-primary);
  cursor: pointer;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.manage-form button:hover {
  background: rgba(108, 71, 166, 0.5);
}

.manage-error {
  color: #ff6b6b;
  font-size: 0.85rem;
  margin-top: 0.75rem;
}

/* Supporters sidebar */
.supporters-sidebar {
  position: fixed;
  right: 1.5rem;
  top: calc(75px + 1.5rem);
  width: 220px;
  max-height: calc(100vh - 75px - 3rem);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 10;
}

.supporters-header {
  padding: 0.85rem 1rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary-purple-light);
  border-bottom: 1px solid var(--border-color);
  text-align: center;
  flex-shrink: 0;
}

.supporters-header i {
  margin-right: 0.3rem;
}

.supporters-list {
  overflow-y: auto;
  flex: 1;
  padding: 0.5rem 0;
}

.supporters-list::-webkit-scrollbar {
  width: 4px;
}

.supporters-list::-webkit-scrollbar-track {
  background: transparent;
}

.supporters-list::-webkit-scrollbar-thumb {
  background: rgba(108, 71, 166, 0.3);
  border-radius: 4px;
}

.supporter-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.85rem;
  transition: background 0.15s ease;
}

.supporter-row:hover {
  background: rgba(108, 71, 166, 0.1);
}

.supporter-avatar {
  width: 24px;
  height: 24px;
  border-radius: 3px;
  image-rendering: pixelated;
  flex-shrink: 0;
}

.supporter-name {
  font-size: 0.85rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.supporters-loading {
  display: flex;
  justify-content: center;
  padding: 1.5rem 0;
}

.supporters-empty {
  text-align: center;
  padding: 1.5rem 0.75rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.supporters-load-more {
  padding: 0.55rem;
  background: none;
  border: none;
  border-top: 1px solid var(--border-color);
  color: var(--primary-purple-light);
  font-size: 0.8rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease;
  flex-shrink: 0;
}

.supporters-load-more:hover {
  background: rgba(108, 71, 166, 0.15);
}

@media (max-width: 1200px) {
  .supporters-sidebar {
    display: none;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
    padding-top: calc(75px + 1rem);
  }

  .page-header h1 {
    font-size: 2rem;
  }

  .content-card-content {
    padding: 1.5rem;
  }

  .amount-presets {
    grid-template-columns: repeat(2, 1fr);
  }
}
