.update-container {
  max-width: 700px;
  margin: 40px auto;
  background-color: #1a1a1a;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
  color: #ddd;
}

.update-heading {
  text-align: center;
  margin-bottom: 25px;
  font-size: 24px;
  color: #fff;
}

.update-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: flex;
  flex-direction: column;
}

.form-row label {
  margin-bottom: 8px;
  font-weight: bold;
  color: #bbb;
}

.form-row input[type="text"],
.form-row textarea,
.form-row input[type="file"] {
  padding: 10px;
  border: 1px solid #444;
  background-color: #222;
  color: #ddd;
  border-radius: 6px;
  font-size: 14px;
}

.form-row textarea {
  resize: vertical;
}

.submit-button {
  padding: 12px;
  background-color: #4caf50;
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.submit-button:hover {
  background-color: #45a049;
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.submit-button.is-submitting {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0.9;
}

.submit-button__spinner {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  box-sizing: border-box;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-right-color: currentColor;
  border-radius: 50%;
  animation: token-update-spin 0.72s linear infinite;
}

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

.fasttrack-actions {
  gap: 10px;
}

.submit-button--lifetime {
  background: #d49a27;
  color: #111;
}

.submit-button--lifetime:hover {
  background: #e8ad37;
}

.social-row .social-inputs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.social-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-item img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.3));
}

.social-item input {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid #444;
  border-radius: 6px;
  background-color: #222;
  color: #ddd;
  font-size: 14px;
}

.social-input-control {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
}

.social-input-control input {
  width: 100%;
  padding-right: 36px;
}

.social-input-control input.is-valid { border-color: #35c77a; }
.social-input-control input.is-invalid { border-color: #ef6670; }

.social-link-status {
  position: absolute;
  right: 11px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  pointer-events: none;
}

.social-link-status.is-valid { color: #45d98a; }
.social-link-status.is-invalid { color: #ff6f78; }

@media (max-width: 768px) {
  .update-container {
    margin: 16px 10px;
    padding: 16px;
    max-width: calc(100% - 20px);
  }

  .update-heading {
    font-size: 20px;
    margin-bottom: 18px;
  }

  .form-row {
    gap: 0;
  }

  .form-row label {
    font-size: 15px;
  }

  .form-row input[type="text"],
  .form-row textarea,
  .form-row input[type="file"],
  .form-row input {
    font-size: 16px;
    padding: 12px;
  }

  .social-item {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }

  .social-item img {
    width: 18px;
    height: 18px;
  }

  .logo-preview-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .logo-preview {
    width: 64px;
    height: 64px;
  }

  .submit-button {
    min-height: 44px;
    font-size: 16px;
  }

  #paymentSection code {
    display: block;
    overflow-wrap: anywhere;
    word-break: break-all;
  }
}
.save-popup {
  background-color: #2ecc71;
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-weight: bold;
  text-align: center;
  box-shadow: 0 0 8px rgba(0,0,0,0.2);
}
.logo-preview-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}

.logo-preview {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #444;
  background: #1a1a1a;
}
